blob: f20384d49811bd7fb876ac8a9a30a44c461228da [file] [log] [blame]
cristy3ed852e2009-09-05 21:47:34 +00001#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
cristy14fefe52012-05-21 00:59:18 +00003# Generated by GNU Autoconf 2.69 for ImageMagick 7.0.0-0.
cristy3ed852e2009-09-05 21:47:34 +00004#
5# Report bugs to <http://www.imagemagick.org>.
6#
cristycd4c5312009-11-22 01:19:08 +00007#
cristy14fefe52012-05-21 00:59:18 +00008# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
cristycd4c5312009-11-22 01:19:08 +00009#
cristy8b350f62009-11-15 23:12:43 +000010#
cristy3ed852e2009-09-05 21:47:34 +000011# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
cristy8b350f62009-11-15 23:12:43 +000013## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000016
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000019if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000020 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
cristy8b350f62009-11-15 23:12:43 +000027 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
cristy3ed852e2009-09-05 21:47:34 +000032esac
cristy3ed852e2009-09-05 21:47:34 +000033fi
34
35
cristy3ed852e2009-09-05 21:47:34 +000036as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000043# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000050 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000060 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000061 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
cristy3ed852e2009-09-05 21:47:34 +000083
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000092as_myself=
cristy8b350f62009-11-15 23:12:43 +000093case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000094 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +0000100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
cristy3ed852e2009-09-05 21:47:34 +0000102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +0000113 exit 1
cristy3ed852e2009-09-05 21:47:34 +0000114fi
115
cristy8b350f62009-11-15 23:12:43 +0000116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +0000123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
cristy8b350f62009-11-15 23:12:43 +0000134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
cristy14fefe52012-05-21 00:59:18 +0000137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
cristy8b350f62009-11-15 23:12:43 +0000162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
cristy14fefe52012-05-21 00:59:18 +0000195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
cristy0c60a692010-11-04 01:09:47 +0000201test \$(( 1 + 1 )) = 2 || exit 1
202
203 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207 PATH=/empty FPATH=/empty; export PATH FPATH
208 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
cristy8b350f62009-11-15 23:12:43 +0000210 if (eval "$as_required") 2>/dev/null; then :
211 as_have_required=yes
212else
213 as_have_required=no
214fi
215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 as_found=:
225 case $as_dir in #(
226 /*)
227 for as_base in sh bash ksh sh5; do
228 # Try only shells that exist, to save several forks.
229 as_shell=$as_dir/$as_base
230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 CONFIG_SHELL=$as_shell as_have_required=yes
233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234 break 2
235fi
236fi
237 done;;
238 esac
239 as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243 CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248 if test "x$CONFIG_SHELL" != x; then :
cristy14fefe52012-05-21 00:59:18 +0000249 export CONFIG_SHELL
250 # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258 *v*x* | *x*v* ) as_opts=-vx ;;
259 *v* ) as_opts=-v ;;
260 *x* ) as_opts=-x ;;
261 * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
cristy8b350f62009-11-15 23:12:43 +0000268fi
269
270 if test x$as_have_required = xno; then :
271 $as_echo "$0: This script requires a shell more modern than all"
272 $as_echo "$0: the shells that I found on your system."
273 if test x${ZSH_VERSION+set} = xset ; then
274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276 else
277 $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: http://www.imagemagick.org about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282 fi
283 exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301 { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310 return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318 set +e
319 as_fn_set_status $1
320 exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329 case $as_dir in #(
330 -*) as_dir=./$as_dir;;
331 esac
332 test -d "$as_dir" || eval $as_mkdir_p || {
333 as_dirs=
334 while :; do
335 case $as_dir in #(
336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337 *) as_qdir=$as_dir;;
338 esac
339 as_dirs="'$as_qdir' $as_dirs"
340 as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342 X"$as_dir" : 'X\(//\)[^/]' \| \
343 X"$as_dir" : 'X\(//\)$' \| \
344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\/\)[^/].*/{
351 s//\1/
352 q
353 }
354 /^X\(\/\/\)$/{
355 s//\1/
356 q
357 }
358 /^X\(\/\).*/{
359 s//\1/
360 q
361 }
362 s/.*/./; q'`
363 test -d "$as_dir" && break
364 done
365 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +0000366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +0000367
368
369} # as_fn_mkdir_p
cristy14fefe52012-05-21 00:59:18 +0000370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376 test -f "$1" && test -x "$1"
377} # as_fn_executable_p
cristy8b350f62009-11-15 23:12:43 +0000378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385 eval 'as_fn_append ()
386 {
387 eval $1+=\$2
388 }'
389else
390 as_fn_append ()
391 {
392 eval $1=\$$1\$2
393 }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402 eval 'as_fn_arith ()
403 {
404 as_val=$(( $* ))
405 }'
406else
407 as_fn_arith ()
408 {
409 as_val=`expr "$@" || test $? -eq 1`
410 }
411fi # as_fn_arith
412
413
cristy98dddb52010-11-04 00:30:15 +0000414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +0000416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +0000418# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +0000419as_fn_error ()
420{
cristy98dddb52010-11-04 00:30:15 +0000421 as_status=$1; test $as_status -eq 0 && as_status=1
422 if test "$4"; then
423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +0000425 fi
cristy98dddb52010-11-04 00:30:15 +0000426 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +0000427 as_fn_exit $as_status
428} # as_fn_error
429
cristy3ed852e2009-09-05 21:47:34 +0000430if expr a : '\(a\)' >/dev/null 2>&1 &&
431 test "X`expr 00001 : '.*\(...\)'`" = X001; then
432 as_expr=expr
433else
434 as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438 as_basename=basename
439else
440 as_basename=false
441fi
442
cristy8b350f62009-11-15 23:12:43 +0000443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444 as_dirname=dirname
445else
446 as_dirname=false
447fi
cristy3ed852e2009-09-05 21:47:34 +0000448
cristy3ed852e2009-09-05 21:47:34 +0000449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451 X"$0" : 'X\(//\)$' \| \
452 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454 sed '/^.*\/\([^/][^/]*\)\/*$/{
455 s//\1/
456 q
457 }
458 /^X\/\(\/\/\)$/{
459 s//\1/
460 q
461 }
462 /^X\/\(\/\).*/{
463 s//\1/
464 q
465 }
466 s/.*/./; q'`
467
cristy8b350f62009-11-15 23:12:43 +0000468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +0000474
475
cristy8b350f62009-11-15 23:12:43 +0000476 as_lineno_1=$LINENO as_lineno_1a=$LINENO
477 as_lineno_2=$LINENO as_lineno_2a=$LINENO
478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
cristy3ed852e2009-09-05 21:47:34 +0000481 sed -n '
482 p
483 /[$]LINENO/=
484 ' <$as_myself |
485 sed '
486 s/[$]LINENO.*/&-/
487 t lineno
488 b
489 :lineno
490 N
491 :loop
492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493 t loop
494 s/-\n.*//
495 ' >$as_me.lineno &&
496 chmod +x "$as_me.lineno" ||
cristy8b350f62009-11-15 23:12:43 +0000497 { $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 +0000498
cristy14fefe52012-05-21 00:59:18 +0000499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500 # already done that, so ensure we don't try to do so again and fall
501 # in an infinite loop. This has already happened in practice.
502 _as_can_reexec=no; export _as_can_reexec
cristy3ed852e2009-09-05 21:47:34 +0000503 # Don't try to exec as it changes $[0], causing all sort of problems
504 # (the dirname of $[0] is not the place where we might find the
505 # original and so on. Autoconf is especially sensitive to this).
506 . "./$as_me.lineno"
507 # Exit status is that of the last command.
508 exit
509}
510
cristy3ed852e2009-09-05 21:47:34 +0000511ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +0000512case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +0000513-n*)
cristy8b350f62009-11-15 23:12:43 +0000514 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +0000515 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +0000516 xy) ECHO_C='\c';;
517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
518 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +0000519 esac;;
520*)
521 ECHO_N='-n';;
522esac
cristy3ed852e2009-09-05 21:47:34 +0000523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526 rm -f conf$$.dir/conf$$.file
527else
528 rm -f conf$$.dir
529 mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532 if ln -s conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s='ln -s'
534 # ... but there are two gotchas:
535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +0000537 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +0000538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +0000539 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000540 elif ln conf$$.file conf$$ 2>/dev/null; then
541 as_ln_s=ln
542 else
cristy14fefe52012-05-21 00:59:18 +0000543 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000544 fi
545else
cristy14fefe52012-05-21 00:59:18 +0000546 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +0000547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +0000552 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +0000553else
554 test -d ./-p && rmdir ./-p
555 as_mkdir_p=false
556fi
557
cristy14fefe52012-05-21 00:59:18 +0000558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +0000560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
cristy73bd4a52010-10-05 11:24:23 +0000567SHELL=${CONFIG_SHELL-/bin/sh}
568
cristy73bd4a52010-10-05 11:24:23 +0000569lt_ltdl_dir='ltdl'
570
571lt_dlopen_dir="$lt_ltdl_dir"; lt_libobj_prefix="$lt_ltdl_dir/"
572
cristy0c60a692010-11-04 01:09:47 +0000573
cristycd4c5312009-11-22 01:19:08 +0000574test -n "$DJDIR" || exec 7<&0 </dev/null
575exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000576
577# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000578# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000579# so uname gets run too.
580ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
581
582#
583# Initializations.
584#
585ac_default_prefix=/usr/local
586ac_clean_files=
587ac_config_libobj_dir=.
588LIBOBJS=
589cross_compiling=no
590subdirs=
591MFLAGS=
592MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000593
594# Identity of this package.
595PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000596PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000597PACKAGE_VERSION='7.0.0-0'
598PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000599PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000600PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000601
cristy4c08aed2011-07-01 19:47:50 +0000602ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000603ac_config_libobj_dir=ltdl
604# Factoring default headers for most tests.
605ac_includes_default="\
606#include <stdio.h>
607#ifdef HAVE_SYS_TYPES_H
608# include <sys/types.h>
609#endif
610#ifdef HAVE_SYS_STAT_H
611# include <sys/stat.h>
612#endif
613#ifdef STDC_HEADERS
614# include <stdlib.h>
615# include <stddef.h>
616#else
617# ifdef HAVE_STDLIB_H
618# include <stdlib.h>
619# endif
620#endif
621#ifdef HAVE_STRING_H
622# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623# include <memory.h>
624# endif
625# include <string.h>
626#endif
627#ifdef HAVE_STRINGS_H
628# include <strings.h>
629#endif
630#ifdef HAVE_INTTYPES_H
631# include <inttypes.h>
632#endif
633#ifdef HAVE_STDINT_H
634# include <stdint.h>
635#endif
636#ifdef HAVE_UNISTD_H
637# include <unistd.h>
638#endif"
639
cristycd4c5312009-11-22 01:19:08 +0000640ac_header_list=
cristy73bd4a52010-10-05 11:24:23 +0000641ac_subst_vars='ltdl_LTLIBOBJS
642ltdl_LIBOBJS
643am__EXEEXT_FALSE
644am__EXEEXT_TRUE
645LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000646MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000647MAGICK_LIBS
648MAGICK_LDFLAGS
649MAGICK_PCFLAGS
650MAGICK_CPPFLAGS
651MAGICK_CXXFLAGS
652MAGICK_CFLAGS
653MAGICK_DEP_LIBS
654MAGICK_LTDLDEPS
655MAGICK_LIBLTDL
656OSX_GCOV_LDFLAG
657DELEGATES
658MAGICKCORE_PATH
659PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000660WITH_PERL_DYNAMIC_FALSE
661WITH_PERL_DYNAMIC_TRUE
662WITH_PERL_STATIC_FALSE
663WITH_PERL_STATIC_TRUE
664WITH_PERL_FALSE
665WITH_PERL_TRUE
666PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000667GSVersion
668GSPSDevice
669GSPDFDevice
670GSMonoDevice
671GSEPSDevice
672GSColorDevice
673GSCMYKDevice
674GSAlphaDevice
675XPSVersion
676XPSCMYKDevice
677XPSColorDevice
678XPSMonoDevice
679PCLVersion
680PCLCMYKDevice
681PCLColorDevice
682PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000683ZIP_DELEGATE_FALSE
684ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000685ZIP
cristy73bd4a52010-10-05 11:24:23 +0000686P7ZIP_DELEGATE_FALSE
687P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000688P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000689RPM_DELEGATE_FALSE
690RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000691RPM
692PERL
693TAR
694ShowImageDelegate
695type_include_files
696ghostscript_font_dir
697windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000698dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000699PrintDelegate
700ZipDelegate
701XPSDelegate
702WWWDecodeDelegate
703WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000704UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000705TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000706SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000707SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000708RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000709RMDelegate
710RLEEncodeDelegate
711PSDelegate
712POVDelegate
713PGPDecodeDelegate
714PCLDelegate
715MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000716MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000717MPEGEncodeDelegate
718MPEGDecodeDelegate
719MANDelegate
720LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000721LPRDelegate
722LPDelegate
723ILBMEncodeDelegate
724ILBMDecodeDelegate
725HTMLDecodeDelegate
726HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000727GnuplotDecodeDelegate
728MogrifyDelegate
729DisplayDelegate
730ConvertDelegate
731FIGDecodeDelegate
732EditorDelegate
733EchoDelegate
734DVIDecodeDelegate
735GVCDecodeDelegate
736DNGDecodeDelegate
737CatDelegate
738CGMDecodeDelegate
739BrowseDelegate
740BZIPDelegate
741BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000742AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000743SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000744SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000745CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000746DOCUMENTATION_PATH
747FILTER_PATH
748CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000749LIBRARY_PATH
750EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000751INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000752PERLMAINCC
753XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000754XML_DELEGATE_FALSE
755XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000756xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000757WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000758WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000759WMF_DELEGATE_FALSE
760WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000761WEBP_LIBS
762WEBP_DELEGATE_FALSE
763WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000764TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000765TIFF_DELEGATE_FALSE
766TIFF_DELEGATE_TRUE
767CAIRO_DELEGATE_FALSE
768CAIRO_DELEGATE_TRUE
769RSVG_DELEGATE_FALSE
770RSVG_DELEGATE_TRUE
771CAIRO_SVG_LIBS
772CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000773RSVG_LIBS
774RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000775PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000776PNG_DELEGATE_FALSE
777PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000778PANGOCAIRO_DELEGATE_FALSE
779PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000780PANGO_DELEGATE_FALSE
781PANGO_DELEGATE_TRUE
782PANGO_LIBS
783PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000784OPENEXR_DELEGATE_FALSE
785OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000786OPENEXR_LIBS
787OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000788LZMA_DELEGATE_FALSE
789LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000790LZMA_LIBS
791LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000792LQR_DELEGATE_FALSE
793LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000794LQR_LIBS
795LQR_CFLAGS
796LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797LCMS_DELEGATE_FALSE
798LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000799JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000800JP2_DELEGATE_FALSE
801JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000802JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000803JPEG_DELEGATE_FALSE
804JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000805JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000806JBIG_DELEGATE_FALSE
807JBIG_DELEGATE_TRUE
808GVC_DELEGATE_FALSE
809GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000810GVC_LIBS
811GVC_CFLAGS
812GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000813GS_DELEGATE_FALSE
814GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000815FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000816FREETYPE_DELEGATE_FALSE
817FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000818freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000819FONTCONFIG_DELEGATE_FALSE
820FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000821FONTCONFIG_LIBS
822FONTCONFIG_CFLAGS
823FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824FPX_DELEGATE_FALSE
825FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000826FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000827FFTW_DELEGATE_FALSE
828FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000829DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000830DJVU_DELEGATE_FALSE
831DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000832DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000833DPS_DELEGATE_FALSE
834DPS_DELEGATE_TRUE
835AUTOTRACE_DELEGATE_FALSE
836AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000837AUTOTRACE_LIBS
838AUTOTRACE_CFLAGS
839LIB_DL
840ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000841ZLIB_DELEGATE_FALSE
842ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000843XEXT_LIBS
844X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000845X11_DELEGATE_FALSE
846X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000847X_EXTRA_LIBS
848X_LIBS
849X_PRE_LIBS
850X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000851XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000852BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000853BZLIB_DELEGATE_FALSE
854BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000855CCMALLOCDelegate
856UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000857HasUMEM_FALSE
858HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000859THREAD_LIBS
860GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000861WITH_MAGICK_PLUS_PLUS_FALSE
862WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000863OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000864MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000865POW_LIB
866LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000867UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000868UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000869UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000870UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000871UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000872UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000873INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000874INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000875UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000876UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000877INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000878INT32_T
879UINT16_T
880INT16_T
881UINT8_T
882INT8_T
883LIBRARY_EXTRA_CPPFLAGS
884MODULE_EXTRA_CPPFLAGS
885LIBSTDCLDFLAGS
886PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000887MAGICK_LT_RELEASE_OPTS
cristy3ed852e2009-09-05 21:47:34 +0000888QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000889LEGACY_SUPPORT_FALSE
890LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000891MAINT
892MAINTAINER_MODE_FALSE
893MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000894MAGICK_HDRI
895DLLDFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000896WITH_LTDL_FALSE
897WITH_LTDL_TRUE
898WITH_MODULES_FALSE
899WITH_MODULES_TRUE
900WITH_SHARED_LIBS_FALSE
901WITH_SHARED_LIBS_TRUE
902LTDLOPEN
903LT_CONFIG_H
904CONVENIENCE_LTDL_FALSE
905CONVENIENCE_LTDL_TRUE
906INSTALL_LTDL_FALSE
907INSTALL_LTDL_TRUE
908ARGZ_H
909sys_symbol_underscore
910LIBADD_DL
911LT_DLPREOPEN
912LIBADD_DLD_LINK
913LIBADD_SHL_LOAD
914LIBADD_DLOPEN
915LT_DLLOADERS
916INCLTDL
917LTDLINCL
918LTDLDEPS
919LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000920LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000921CXXCPP
922OTOOL64
923OTOOL
924LIPO
925NMEDIT
926DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000927MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000928RANLIB
cristyda16f162011-02-19 23:52:17 +0000929ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000930AR
931NM
932ac_ct_DUMPBIN
933DUMPBIN
934LIBTOOL
935OBJDUMP
936DLLTOOL
937AS
cristy3ed852e2009-09-05 21:47:34 +0000938LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000939CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000940CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000941OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000942PTHREAD_CFLAGS
943PTHREAD_LIBS
944PTHREAD_CC
945ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000946SHAREARCH_DIR
947INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000948WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000949USING_CL_FALSE
950USING_CL_TRUE
951CYGWIN_BUILD_FALSE
952CYGWIN_BUILD_TRUE
953WIN32_NATIVE_BUILD_FALSE
954WIN32_NATIVE_BUILD_TRUE
955WINGDI32_DELEGATE_FALSE
956WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000957GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000958PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000959PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000960LN_S
cristy3ed852e2009-09-05 21:47:34 +0000961LD
cristy73bd4a52010-10-05 11:24:23 +0000962FGREP
963SED
964am__fastdepCXX_FALSE
965am__fastdepCXX_TRUE
966CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000967ac_ct_CXX
968CXXFLAGS
969CXX
cristya0b81c32010-01-22 02:54:33 +0000970EGREP
971GREP
972CPP
cristy73bd4a52010-10-05 11:24:23 +0000973am__fastdepCC_FALSE
974am__fastdepCC_TRUE
975CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000976am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000977AMDEPBACKSLASH
978AMDEP_FALSE
979AMDEP_TRUE
980am__quote
981am__include
982DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000983OBJEXT
984EXEEXT
985ac_ct_CC
986CPPFLAGS
987LDFLAGS
988CFLAGS
989CC
990DIRSEP
991MAGICK_FILTER_MODULE_PATH
992MAGICK_CONFIGURE_BUILD_PATH
993MAGICK_CONFIGURE_SRC_PATH
994MAGICK_CODER_MODULE_PATH
995MAN_DIR
996INFO_DIR
997PERSISTINCLUDE_DIR
998INCLUDE_DIR
999LIB_DIR
1000LOCALSTATE_DIR
1001SHAREDSTATE_DIR
1002SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001003DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001004DATA_DIR
1005LIBEXEC_DIR
1006SBIN_DIR
1007BIN_DIR
1008EXEC_PREFIX_DIR
1009PREFIX_DIR
1010CONFIG_STATUS_DEPENDENCIES
1011MAGICK_LIB_VERSION_NUMBER
1012MAGICK_LIB_VERSION_TEXT
1013MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001014AM_BACKSLASH
1015AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001016AM_DEFAULT_V
1017AM_V
cristy73bd4a52010-10-05 11:24:23 +00001018am__untar
1019am__tar
1020AMTAR
1021am__leading_dot
1022SET_MAKE
1023AWK
1024mkdir_p
1025MKDIR_P
1026INSTALL_STRIP_PROGRAM
1027STRIP
1028install_sh
1029MAKEINFO
1030AUTOHEADER
1031AUTOMAKE
1032AUTOCONF
1033ACLOCAL
1034VERSION
1035PACKAGE
1036CYGPATH_W
1037am__isrc
1038INSTALL_DATA
1039INSTALL_SCRIPT
1040INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001041PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001042PACKAGE_RELEASE_DATE
1043PACKAGE_LIB_VERSION_NUMBER
1044PACKAGE_LIB_VERSION
1045PACKAGE_CHANGE_DATE
1046PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001047PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001048MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001049MAGICK_LIBRARY_VERSION_INFO
1050MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001051MAGICK_LIBRARY_AGE
1052MAGICK_LIBRARY_REVISION
1053MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001054MAGICK_TARGET_OS
1055MAGICK_TARGET_VENDOR
1056MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001057target_os
1058target_vendor
1059target_cpu
1060target
1061host_os
1062host_vendor
1063host_cpu
1064host
1065build_os
1066build_vendor
1067build_cpu
1068build
1069CONFIGURE_ARGS
1070DISTCHECK_CONFIG_FLAGS
1071target_alias
1072host_alias
1073build_alias
1074LIBS
1075ECHO_T
1076ECHO_N
1077ECHO_C
1078DEFS
1079mandir
1080localedir
1081libdir
1082psdir
1083pdfdir
1084dvidir
1085htmldir
1086infodir
1087docdir
1088oldincludedir
1089includedir
1090localstatedir
1091sharedstatedir
1092sysconfdir
1093datadir
1094datarootdir
1095libexecdir
1096sbindir
1097bindir
1098program_transform_name
1099prefix
1100exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001101PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001102PACKAGE_BUGREPORT
1103PACKAGE_STRING
1104PACKAGE_VERSION
1105PACKAGE_TARNAME
1106PACKAGE_NAME
1107PATH_SEPARATOR
1108SHELL'
1109ac_subst_files=''
1110ac_user_opts='
1111enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001112enable_silent_rules
1113enable_dependency_tracking
1114with_gnu_ld
1115with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001116with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001117enable_bounds_checking
1118enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001119with_includearch_dir
1120with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001121with_threads
1122enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001123enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001124enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001125enable_shared
1126enable_static
1127with_pic
1128enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001129with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001130enable_libtool_lock
1131with_included_ltdl
1132with_ltdl_include
1133with_ltdl_lib
1134enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001135with_modules
1136enable_delegate_build
1137enable_deprecated
1138enable_installed
1139enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001140enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001141enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001142enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001143enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001144enable_ccmalloc
1145enable_efence
1146enable_prof
1147enable_gprof
1148enable_gcov
1149with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001150enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001151with_quantum_depth
1152with_cache
1153with_frozenpaths
1154with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001155with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001156with_perl
1157with_perl_options
1158with_umem
1159with_libstdc
1160with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001161with_x
cristy3ed852e2009-09-05 21:47:34 +00001162with_zlib
1163with_autotrace
1164with_dps
1165with_djvu
cristy430a7312010-01-21 20:44:04 +00001166with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001167with_fftw
1168with_fpx
1169with_fontconfig
1170with_freetype
1171with_gslib
1172with_fontpath
1173with_gs_font_dir
1174with_gvc
1175with_jbig
1176with_jpeg
1177with_jp2
1178with_lcms
cristy71203402010-06-18 13:12:03 +00001179with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001180with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001181with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001182with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001183with_pango
cristy3ed852e2009-09-05 21:47:34 +00001184with_png
1185with_rsvg
1186with_tiff
cristyb1860752011-03-14 00:27:46 +00001187with_webp
cristy3ed852e2009-09-05 21:47:34 +00001188with_windows_font_dir
1189with_wmf
1190with_xml
1191'
1192 ac_precious_vars='build_alias
1193host_alias
1194target_alias
1195CC
1196CFLAGS
1197LDFLAGS
1198LIBS
1199CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001200CPP
cristy3ed852e2009-09-05 21:47:34 +00001201CXX
1202CXXFLAGS
1203CCC
cristy73bd4a52010-10-05 11:24:23 +00001204PKG_CONFIG
1205CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001206XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001207AUTOTRACE_CFLAGS
1208AUTOTRACE_LIBS
1209FONTCONFIG_CFLAGS
1210FONTCONFIG_LIBS
1211GVC_CFLAGS
1212GVC_LIBS
1213LQR_CFLAGS
1214LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001215LZMA_CFLAGS
1216LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001217OPENEXR_CFLAGS
1218OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001219PANGO_CFLAGS
1220PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001221RSVG_CFLAGS
1222RSVG_LIBS
1223CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001224CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001225
1226
1227# Initialize some variables set by options.
1228ac_init_help=
1229ac_init_version=false
1230ac_unrecognized_opts=
1231ac_unrecognized_sep=
1232# The variables have the same names as the options, with
1233# dashes changed to underlines.
1234cache_file=/dev/null
1235exec_prefix=NONE
1236no_create=
1237no_recursion=
1238prefix=NONE
1239program_prefix=NONE
1240program_suffix=NONE
1241program_transform_name=s,x,x,
1242silent=
1243site=
1244srcdir=
1245verbose=
1246x_includes=NONE
1247x_libraries=NONE
1248
1249# Installation directory options.
1250# These are left unexpanded so users can "make install exec_prefix=/foo"
1251# and all the variables that are supposed to be based on exec_prefix
1252# by default will actually change.
1253# Use braces instead of parens because sh, perl, etc. also accept them.
1254# (The list follows the same order as the GNU Coding Standards.)
1255bindir='${exec_prefix}/bin'
1256sbindir='${exec_prefix}/sbin'
1257libexecdir='${exec_prefix}/libexec'
1258datarootdir='${prefix}/share'
1259datadir='${datarootdir}'
1260sysconfdir='${prefix}/etc'
1261sharedstatedir='${prefix}/com'
1262localstatedir='${prefix}/var'
1263includedir='${prefix}/include'
1264oldincludedir='/usr/include'
1265docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1266infodir='${datarootdir}/info'
1267htmldir='${docdir}'
1268dvidir='${docdir}'
1269pdfdir='${docdir}'
1270psdir='${docdir}'
1271libdir='${exec_prefix}/lib'
1272localedir='${datarootdir}/locale'
1273mandir='${datarootdir}/man'
1274
1275ac_prev=
1276ac_dashdash=
1277for ac_option
1278do
1279 # If the previous option needs an argument, assign it.
1280 if test -n "$ac_prev"; then
1281 eval $ac_prev=\$ac_option
1282 ac_prev=
1283 continue
1284 fi
1285
1286 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001287 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1288 *=) ac_optarg= ;;
1289 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001290 esac
1291
1292 # Accept the important Cygnus configure options, so we can diagnose typos.
1293
1294 case $ac_dashdash$ac_option in
1295 --)
1296 ac_dashdash=yes ;;
1297
1298 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1299 ac_prev=bindir ;;
1300 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1301 bindir=$ac_optarg ;;
1302
1303 -build | --build | --buil | --bui | --bu)
1304 ac_prev=build_alias ;;
1305 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1306 build_alias=$ac_optarg ;;
1307
1308 -cache-file | --cache-file | --cache-fil | --cache-fi \
1309 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1310 ac_prev=cache_file ;;
1311 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1312 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1313 cache_file=$ac_optarg ;;
1314
1315 --config-cache | -C)
1316 cache_file=config.cache ;;
1317
1318 -datadir | --datadir | --datadi | --datad)
1319 ac_prev=datadir ;;
1320 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1321 datadir=$ac_optarg ;;
1322
1323 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1324 | --dataroo | --dataro | --datar)
1325 ac_prev=datarootdir ;;
1326 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1327 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1328 datarootdir=$ac_optarg ;;
1329
1330 -disable-* | --disable-*)
1331 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1332 # Reject names that are not valid shell variable names.
1333 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001334 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001335 ac_useropt_orig=$ac_useropt
1336 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1337 case $ac_user_opts in
1338 *"
1339"enable_$ac_useropt"
1340"*) ;;
1341 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1342 ac_unrecognized_sep=', ';;
1343 esac
1344 eval enable_$ac_useropt=no ;;
1345
1346 -docdir | --docdir | --docdi | --doc | --do)
1347 ac_prev=docdir ;;
1348 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1349 docdir=$ac_optarg ;;
1350
1351 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1352 ac_prev=dvidir ;;
1353 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1354 dvidir=$ac_optarg ;;
1355
1356 -enable-* | --enable-*)
1357 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1358 # Reject names that are not valid shell variable names.
1359 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001360 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001361 ac_useropt_orig=$ac_useropt
1362 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1363 case $ac_user_opts in
1364 *"
1365"enable_$ac_useropt"
1366"*) ;;
1367 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1368 ac_unrecognized_sep=', ';;
1369 esac
1370 eval enable_$ac_useropt=\$ac_optarg ;;
1371
1372 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1373 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1374 | --exec | --exe | --ex)
1375 ac_prev=exec_prefix ;;
1376 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1377 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1378 | --exec=* | --exe=* | --ex=*)
1379 exec_prefix=$ac_optarg ;;
1380
1381 -gas | --gas | --ga | --g)
1382 # Obsolete; use --with-gas.
1383 with_gas=yes ;;
1384
1385 -help | --help | --hel | --he | -h)
1386 ac_init_help=long ;;
1387 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1388 ac_init_help=recursive ;;
1389 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1390 ac_init_help=short ;;
1391
1392 -host | --host | --hos | --ho)
1393 ac_prev=host_alias ;;
1394 -host=* | --host=* | --hos=* | --ho=*)
1395 host_alias=$ac_optarg ;;
1396
1397 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1398 ac_prev=htmldir ;;
1399 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1400 | --ht=*)
1401 htmldir=$ac_optarg ;;
1402
1403 -includedir | --includedir | --includedi | --included | --include \
1404 | --includ | --inclu | --incl | --inc)
1405 ac_prev=includedir ;;
1406 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1407 | --includ=* | --inclu=* | --incl=* | --inc=*)
1408 includedir=$ac_optarg ;;
1409
1410 -infodir | --infodir | --infodi | --infod | --info | --inf)
1411 ac_prev=infodir ;;
1412 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1413 infodir=$ac_optarg ;;
1414
1415 -libdir | --libdir | --libdi | --libd)
1416 ac_prev=libdir ;;
1417 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1418 libdir=$ac_optarg ;;
1419
1420 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1421 | --libexe | --libex | --libe)
1422 ac_prev=libexecdir ;;
1423 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1424 | --libexe=* | --libex=* | --libe=*)
1425 libexecdir=$ac_optarg ;;
1426
1427 -localedir | --localedir | --localedi | --localed | --locale)
1428 ac_prev=localedir ;;
1429 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1430 localedir=$ac_optarg ;;
1431
1432 -localstatedir | --localstatedir | --localstatedi | --localstated \
1433 | --localstate | --localstat | --localsta | --localst | --locals)
1434 ac_prev=localstatedir ;;
1435 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1436 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1437 localstatedir=$ac_optarg ;;
1438
1439 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1440 ac_prev=mandir ;;
1441 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1442 mandir=$ac_optarg ;;
1443
1444 -nfp | --nfp | --nf)
1445 # Obsolete; use --without-fp.
1446 with_fp=no ;;
1447
1448 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1449 | --no-cr | --no-c | -n)
1450 no_create=yes ;;
1451
1452 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1453 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1454 no_recursion=yes ;;
1455
1456 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1457 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1458 | --oldin | --oldi | --old | --ol | --o)
1459 ac_prev=oldincludedir ;;
1460 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1461 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1462 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1463 oldincludedir=$ac_optarg ;;
1464
1465 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1466 ac_prev=prefix ;;
1467 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1468 prefix=$ac_optarg ;;
1469
1470 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1471 | --program-pre | --program-pr | --program-p)
1472 ac_prev=program_prefix ;;
1473 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1474 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1475 program_prefix=$ac_optarg ;;
1476
1477 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1478 | --program-suf | --program-su | --program-s)
1479 ac_prev=program_suffix ;;
1480 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1481 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1482 program_suffix=$ac_optarg ;;
1483
1484 -program-transform-name | --program-transform-name \
1485 | --program-transform-nam | --program-transform-na \
1486 | --program-transform-n | --program-transform- \
1487 | --program-transform | --program-transfor \
1488 | --program-transfo | --program-transf \
1489 | --program-trans | --program-tran \
1490 | --progr-tra | --program-tr | --program-t)
1491 ac_prev=program_transform_name ;;
1492 -program-transform-name=* | --program-transform-name=* \
1493 | --program-transform-nam=* | --program-transform-na=* \
1494 | --program-transform-n=* | --program-transform-=* \
1495 | --program-transform=* | --program-transfor=* \
1496 | --program-transfo=* | --program-transf=* \
1497 | --program-trans=* | --program-tran=* \
1498 | --progr-tra=* | --program-tr=* | --program-t=*)
1499 program_transform_name=$ac_optarg ;;
1500
1501 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1502 ac_prev=pdfdir ;;
1503 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1504 pdfdir=$ac_optarg ;;
1505
1506 -psdir | --psdir | --psdi | --psd | --ps)
1507 ac_prev=psdir ;;
1508 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1509 psdir=$ac_optarg ;;
1510
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1513 silent=yes ;;
1514
1515 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1516 ac_prev=sbindir ;;
1517 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1518 | --sbi=* | --sb=*)
1519 sbindir=$ac_optarg ;;
1520
1521 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1522 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1523 | --sharedst | --shareds | --shared | --share | --shar \
1524 | --sha | --sh)
1525 ac_prev=sharedstatedir ;;
1526 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1527 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1528 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1529 | --sha=* | --sh=*)
1530 sharedstatedir=$ac_optarg ;;
1531
1532 -site | --site | --sit)
1533 ac_prev=site ;;
1534 -site=* | --site=* | --sit=*)
1535 site=$ac_optarg ;;
1536
1537 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1538 ac_prev=srcdir ;;
1539 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1540 srcdir=$ac_optarg ;;
1541
1542 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1543 | --syscon | --sysco | --sysc | --sys | --sy)
1544 ac_prev=sysconfdir ;;
1545 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1546 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1547 sysconfdir=$ac_optarg ;;
1548
1549 -target | --target | --targe | --targ | --tar | --ta | --t)
1550 ac_prev=target_alias ;;
1551 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1552 target_alias=$ac_optarg ;;
1553
1554 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1555 verbose=yes ;;
1556
1557 -version | --version | --versio | --versi | --vers | -V)
1558 ac_init_version=: ;;
1559
1560 -with-* | --with-*)
1561 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1562 # Reject names that are not valid shell variable names.
1563 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001564 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001565 ac_useropt_orig=$ac_useropt
1566 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1567 case $ac_user_opts in
1568 *"
1569"with_$ac_useropt"
1570"*) ;;
1571 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1572 ac_unrecognized_sep=', ';;
1573 esac
1574 eval with_$ac_useropt=\$ac_optarg ;;
1575
1576 -without-* | --without-*)
1577 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1578 # Reject names that are not valid shell variable names.
1579 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001580 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001581 ac_useropt_orig=$ac_useropt
1582 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1583 case $ac_user_opts in
1584 *"
1585"with_$ac_useropt"
1586"*) ;;
1587 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1588 ac_unrecognized_sep=', ';;
1589 esac
1590 eval with_$ac_useropt=no ;;
1591
1592 --x)
1593 # Obsolete; use --with-x.
1594 with_x=yes ;;
1595
1596 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1597 | --x-incl | --x-inc | --x-in | --x-i)
1598 ac_prev=x_includes ;;
1599 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1600 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1601 x_includes=$ac_optarg ;;
1602
1603 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1604 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1605 ac_prev=x_libraries ;;
1606 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1607 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1608 x_libraries=$ac_optarg ;;
1609
cristy98dddb52010-11-04 00:30:15 +00001610 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1611Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001612 ;;
1613
1614 *=*)
1615 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1616 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001617 case $ac_envvar in #(
1618 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001619 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001620 esac
cristy3ed852e2009-09-05 21:47:34 +00001621 eval $ac_envvar=\$ac_optarg
1622 export $ac_envvar ;;
1623
1624 *)
1625 # FIXME: should be removed in autoconf 3.0.
1626 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1627 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1628 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001629 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001630 ;;
1631
1632 esac
1633done
1634
1635if test -n "$ac_prev"; then
1636 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001638fi
1639
1640if test -n "$ac_unrecognized_opts"; then
1641 case $enable_option_checking in
1642 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001643 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001644 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1645 esac
1646fi
1647
1648# Check all directory arguments for consistency.
1649for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1650 datadir sysconfdir sharedstatedir localstatedir includedir \
1651 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1652 libdir localedir mandir
1653do
1654 eval ac_val=\$$ac_var
1655 # Remove trailing slashes.
1656 case $ac_val in
1657 */ )
1658 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1659 eval $ac_var=\$ac_val;;
1660 esac
1661 # Be sure to have absolute directory names.
1662 case $ac_val in
1663 [\\/$]* | ?:[\\/]* ) continue;;
1664 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1665 esac
cristy98dddb52010-11-04 00:30:15 +00001666 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001667done
1668
1669# There might be people who depend on the old broken behavior: `$host'
1670# used to hold the argument of --host etc.
1671# FIXME: To remove some day.
1672build=$build_alias
1673host=$host_alias
1674target=$target_alias
1675
1676# FIXME: To remove some day.
1677if test "x$host_alias" != x; then
1678 if test "x$build_alias" = x; then
1679 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001680 elif test "x$build_alias" != "x$host_alias"; then
1681 cross_compiling=yes
1682 fi
1683fi
1684
1685ac_tool_prefix=
1686test -n "$host_alias" && ac_tool_prefix=$host_alias-
1687
1688test "$silent" = yes && exec 6>/dev/null
1689
1690
1691ac_pwd=`pwd` && test -n "$ac_pwd" &&
1692ac_ls_di=`ls -di .` &&
1693ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001694 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001695test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001696 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001697
1698
1699# Find the source files, if location was not specified.
1700if test -z "$srcdir"; then
1701 ac_srcdir_defaulted=yes
1702 # Try the directory containing this script, then the parent directory.
1703 ac_confdir=`$as_dirname -- "$as_myself" ||
1704$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1705 X"$as_myself" : 'X\(//\)[^/]' \| \
1706 X"$as_myself" : 'X\(//\)$' \| \
1707 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1708$as_echo X"$as_myself" |
1709 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1710 s//\1/
1711 q
1712 }
1713 /^X\(\/\/\)[^/].*/{
1714 s//\1/
1715 q
1716 }
1717 /^X\(\/\/\)$/{
1718 s//\1/
1719 q
1720 }
1721 /^X\(\/\).*/{
1722 s//\1/
1723 q
1724 }
1725 s/.*/./; q'`
1726 srcdir=$ac_confdir
1727 if test ! -r "$srcdir/$ac_unique_file"; then
1728 srcdir=..
1729 fi
1730else
1731 ac_srcdir_defaulted=no
1732fi
1733if test ! -r "$srcdir/$ac_unique_file"; then
1734 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001735 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001736fi
1737ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1738ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001739 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001740 pwd)`
1741# When building in place, set srcdir=.
1742if test "$ac_abs_confdir" = "$ac_pwd"; then
1743 srcdir=.
1744fi
1745# Remove unnecessary trailing slashes from srcdir.
1746# Double slashes in file names in object file debugging info
1747# mess up M-x gdb in Emacs.
1748case $srcdir in
1749*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1750esac
1751for ac_var in $ac_precious_vars; do
1752 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1753 eval ac_env_${ac_var}_value=\$${ac_var}
1754 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1755 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1756done
1757
1758#
1759# Report the --help message.
1760#
1761if test "$ac_init_help" = "long"; then
1762 # Omit some internal or obsolete options to make the list less imposing.
1763 # This message is too long to be a string in the A/UX 3.1 sh.
1764 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001765\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001766
1767Usage: $0 [OPTION]... [VAR=VALUE]...
1768
1769To assign environment variables (e.g., CC, CFLAGS...), specify them as
1770VAR=VALUE. See below for descriptions of some of the useful variables.
1771
1772Defaults for the options are specified in brackets.
1773
1774Configuration:
1775 -h, --help display this help and exit
1776 --help=short display options specific to this package
1777 --help=recursive display the short help of all the included packages
1778 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001779 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001780 --cache-file=FILE cache test results in FILE [disabled]
1781 -C, --config-cache alias for \`--cache-file=config.cache'
1782 -n, --no-create do not create output files
1783 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1784
1785Installation directories:
1786 --prefix=PREFIX install architecture-independent files in PREFIX
1787 [$ac_default_prefix]
1788 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1789 [PREFIX]
1790
1791By default, \`make install' will install all the files in
1792\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1793an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1794for instance \`--prefix=\$HOME'.
1795
1796For better control, use the options below.
1797
1798Fine tuning of the installation directories:
1799 --bindir=DIR user executables [EPREFIX/bin]
1800 --sbindir=DIR system admin executables [EPREFIX/sbin]
1801 --libexecdir=DIR program executables [EPREFIX/libexec]
1802 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1803 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1804 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1805 --libdir=DIR object code libraries [EPREFIX/lib]
1806 --includedir=DIR C header files [PREFIX/include]
1807 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1808 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1809 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1810 --infodir=DIR info documentation [DATAROOTDIR/info]
1811 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1812 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001813 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001814 --htmldir=DIR html documentation [DOCDIR]
1815 --dvidir=DIR dvi documentation [DOCDIR]
1816 --pdfdir=DIR pdf documentation [DOCDIR]
1817 --psdir=DIR ps documentation [DOCDIR]
1818_ACEOF
1819
1820 cat <<\_ACEOF
1821
cristy73bd4a52010-10-05 11:24:23 +00001822Program names:
1823 --program-prefix=PREFIX prepend PREFIX to installed program names
1824 --program-suffix=SUFFIX append SUFFIX to installed program names
1825 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1826
cristy3ed852e2009-09-05 21:47:34 +00001827X features:
1828 --x-includes=DIR X include files are in DIR
1829 --x-libraries=DIR X library files are in DIR
1830
1831System types:
1832 --build=BUILD configure for building on BUILD [guessed]
1833 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1834 --target=TARGET configure for building compilers for TARGET [HOST]
1835_ACEOF
1836fi
1837
1838if test -n "$ac_init_help"; then
1839 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001840 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001841 esac
1842 cat <<\_ACEOF
1843
1844Optional Features:
1845 --disable-option-checking ignore unrecognized --enable/--with options
1846 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1847 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001848 --enable-silent-rules less verbose build output (undo: "make V=1")
1849 --disable-silent-rules verbose build output (undo: "make V=0")
1850 --enable-dependency-tracking
1851 do not reject slow dependency extractors
1852 --disable-dependency-tracking
1853 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001854 --enable-bounds-checking
1855 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001856 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001857 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001858 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001859 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001860 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001861 --enable-shared[=PKGS] build shared libraries [default=yes]
1862 --enable-static[=PKGS] build static libraries [default=yes]
1863 --enable-fast-install[=PKGS]
1864 optimize for fast installation [default=yes]
1865 --disable-libtool-lock avoid locking (might break parallel builds)
1866 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001867 --enable-delegate-build look for delegate libraries in build directory
1868 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001869 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001870 --disable-installed Formally install ImageMagick under PREFIX
1871 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001872 --enable-zero-configuration
1873 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001874 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001875 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001876 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001877 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001878 --enable-maintainer-mode
1879 enable make rules and dependencies not useful (and
1880 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001881 --enable-ccmalloc enable 'ccmalloc' memory debug support
1882 --enable-efence enable 'efence' memory debug support
1883 --enable-prof enable 'prof' profiling support
1884 --enable-gprof enable 'gprof' profiling support
1885 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001886 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001887 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001888
1889Optional Packages:
1890 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1891 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001892 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001893 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001894 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1895 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001896 --includearch-dir=DIR ARCH specific include directory
1897 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001898 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001899 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001900 both]
cristyda16f162011-02-19 23:52:17 +00001901 --with-sysroot=DIR Search for dependent libraries within DIR
1902 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001903 --with-included-ltdl use the GNU ltdl sources included here
1904 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1905 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001906 --with-modules enable building dynamically loadable modules
1907 --with-method-prefix=PREFIX
1908 prefix MagickCore API methods
1909 --with-quantum-depth=DEPTH
1910 number of bits in a pixel quantum (default 16)
1911 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1912 memory)
1913 --with-frozenpaths freeze delegate paths
1914 --without-magick-plus-plus
1915 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001916 --with-package-release-name=NAME
1917 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001918 --with-perl enable build/install of PerlMagick
1919 --with-perl-options=OPTIONS
1920 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001921 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001922 --with-umem enable umem memory allocation library support
1923 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1924 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001925 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-zlib disable ZLIB support
1927 --with-autotrace enable autotrace support
1928 --without-dps disable Display Postscript support
1929 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001930 --with-dejavu-font-dir=DIR
1931 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001932 --without-fftw disable FFTW support
1933 --without-fpx disable FlashPIX support
1934 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001935 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001936 --without-gslib enable Ghostscript library support
1937 --with-fontpath=DIR prepend to default font search path
1938 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001939 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001940 --without-jbig disable JBIG support
1941 --without-jpeg disable JPEG support
1942 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001943 --without-lcms disable lcms (v1.1X) support
1944 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001945 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001946 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001947 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001948 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001949 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001950 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001951 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001952 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001953 --with-windows-font-dir=DIR
1954 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001955 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001956 --without-xml disable XML support
1957
1958Some influential environment variables:
1959 CC C compiler command
1960 CFLAGS C compiler flags
1961 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1962 nonstandard directory <lib dir>
1963 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001964 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001965 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001966 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001967 CXX C++ compiler command
1968 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001969 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001970 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001971 XMKMF Path to xmkmf, Makefile generator for X Window System
1972 AUTOTRACE_CFLAGS
1973 C compiler flags for AUTOTRACE, overriding pkg-config
1974 AUTOTRACE_LIBS
1975 linker flags for AUTOTRACE, overriding pkg-config
1976 FONTCONFIG_CFLAGS
1977 C compiler flags for FONTCONFIG, overriding pkg-config
1978 FONTCONFIG_LIBS
1979 linker flags for FONTCONFIG, overriding pkg-config
1980 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1981 GVC_LIBS linker flags for GVC, overriding pkg-config
1982 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1983 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001984 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1985 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001986 OPENEXR_CFLAGS
1987 C compiler flags for OPENEXR, overriding pkg-config
1988 OPENEXR_LIBS
1989 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001990 PANGO_CFLAGS
1991 C compiler flags for PANGO, overriding pkg-config
1992 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001993 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1994 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1995 CAIRO_SVG_CFLAGS
1996 C compiler flags for CAIRO_SVG, overriding pkg-config
1997 CAIRO_SVG_LIBS
1998 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001999
2000Use these variables to override the choices made by `configure' or to help
2001it to find libraries and programs with nonstandard names/locations.
2002
2003Report bugs to <http://www.imagemagick.org>.
2004_ACEOF
2005ac_status=$?
2006fi
2007
2008if test "$ac_init_help" = "recursive"; then
2009 # If there are subdirs, report their specific --help.
2010 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2011 test -d "$ac_dir" ||
2012 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2013 continue
2014 ac_builddir=.
2015
2016case "$ac_dir" in
2017.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2018*)
2019 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2020 # A ".." for each directory in $ac_dir_suffix.
2021 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2022 case $ac_top_builddir_sub in
2023 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2024 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2025 esac ;;
2026esac
2027ac_abs_top_builddir=$ac_pwd
2028ac_abs_builddir=$ac_pwd$ac_dir_suffix
2029# for backward compatibility:
2030ac_top_builddir=$ac_top_build_prefix
2031
2032case $srcdir in
2033 .) # We are building in place.
2034 ac_srcdir=.
2035 ac_top_srcdir=$ac_top_builddir_sub
2036 ac_abs_top_srcdir=$ac_pwd ;;
2037 [\\/]* | ?:[\\/]* ) # Absolute name.
2038 ac_srcdir=$srcdir$ac_dir_suffix;
2039 ac_top_srcdir=$srcdir
2040 ac_abs_top_srcdir=$srcdir ;;
2041 *) # Relative name.
2042 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2043 ac_top_srcdir=$ac_top_build_prefix$srcdir
2044 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2045esac
2046ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2047
2048 cd "$ac_dir" || { ac_status=$?; continue; }
2049 # Check for guested configure.
2050 if test -f "$ac_srcdir/configure.gnu"; then
2051 echo &&
2052 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2053 elif test -f "$ac_srcdir/configure"; then
2054 echo &&
2055 $SHELL "$ac_srcdir/configure" --help=recursive
2056 else
2057 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2058 fi || ac_status=$?
2059 cd "$ac_pwd" || { ac_status=$?; break; }
2060 done
2061fi
2062
2063test -n "$ac_init_help" && exit $ac_status
2064if $ac_init_version; then
2065 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002066ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002067generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002068
cristy14fefe52012-05-21 00:59:18 +00002069Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002070This configure script is free software; the Free Software Foundation
2071gives unlimited permission to copy, distribute and modify it.
2072_ACEOF
2073 exit
2074fi
cristy8b350f62009-11-15 23:12:43 +00002075
2076## ------------------------ ##
2077## Autoconf initialization. ##
2078## ------------------------ ##
2079
2080# ac_fn_c_try_compile LINENO
2081# --------------------------
2082# Try to compile conftest.$ac_ext, and return whether this succeeded.
2083ac_fn_c_try_compile ()
2084{
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 rm -f conftest.$ac_objext
2087 if { { ac_try="$ac_compile"
2088case "(($ac_try" in
2089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2090 *) ac_try_echo=$ac_try;;
2091esac
2092eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2093$as_echo "$ac_try_echo"; } >&5
2094 (eval "$ac_compile") 2>conftest.err
2095 ac_status=$?
2096 if test -s conftest.err; then
2097 grep -v '^ *+' conftest.err >conftest.er1
2098 cat conftest.er1 >&5
2099 mv -f conftest.er1 conftest.err
2100 fi
2101 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2102 test $ac_status = 0; } && {
2103 test -z "$ac_c_werror_flag" ||
2104 test ! -s conftest.err
2105 } && test -s conftest.$ac_objext; then :
2106 ac_retval=0
2107else
2108 $as_echo "$as_me: failed program was:" >&5
2109sed 's/^/| /' conftest.$ac_ext >&5
2110
2111 ac_retval=1
2112fi
cristyda16f162011-02-19 23:52:17 +00002113 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002114 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002115
2116} # ac_fn_c_try_compile
2117
cristy95646052009-11-28 23:05:30 +00002118# ac_fn_c_try_cpp LINENO
2119# ----------------------
2120# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2121ac_fn_c_try_cpp ()
2122{
2123 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2124 if { { ac_try="$ac_cpp conftest.$ac_ext"
2125case "(($ac_try" in
2126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2127 *) ac_try_echo=$ac_try;;
2128esac
2129eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2130$as_echo "$ac_try_echo"; } >&5
2131 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2132 ac_status=$?
2133 if test -s conftest.err; then
2134 grep -v '^ *+' conftest.err >conftest.er1
2135 cat conftest.er1 >&5
2136 mv -f conftest.er1 conftest.err
2137 fi
2138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002139 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002140 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2141 test ! -s conftest.err
2142 }; then :
2143 ac_retval=0
2144else
2145 $as_echo "$as_me: failed program was:" >&5
2146sed 's/^/| /' conftest.$ac_ext >&5
2147
2148 ac_retval=1
2149fi
cristyda16f162011-02-19 23:52:17 +00002150 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002151 as_fn_set_status $ac_retval
2152
2153} # ac_fn_c_try_cpp
2154
cristy8b350f62009-11-15 23:12:43 +00002155# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2156# -------------------------------------------------------
2157# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2158# the include files in INCLUDES and setting the cache variable VAR
2159# accordingly.
2160ac_fn_c_check_header_mongrel ()
2161{
2162 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002163 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2165$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002166if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002167 $as_echo_n "(cached) " >&6
2168fi
2169eval ac_res=\$$3
2170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2171$as_echo "$ac_res" >&6; }
2172else
2173 # Is the header compilable?
2174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2175$as_echo_n "checking $2 usability... " >&6; }
2176cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2177/* end confdefs.h. */
2178$4
2179#include <$2>
2180_ACEOF
2181if ac_fn_c_try_compile "$LINENO"; then :
2182 ac_header_compiler=yes
2183else
2184 ac_header_compiler=no
2185fi
2186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2188$as_echo "$ac_header_compiler" >&6; }
2189
2190# Is the header present?
2191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2192$as_echo_n "checking $2 presence... " >&6; }
2193cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194/* end confdefs.h. */
2195#include <$2>
2196_ACEOF
2197if ac_fn_c_try_cpp "$LINENO"; then :
2198 ac_header_preproc=yes
2199else
2200 ac_header_preproc=no
2201fi
cristyda16f162011-02-19 23:52:17 +00002202rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2204$as_echo "$ac_header_preproc" >&6; }
2205
2206# So? What about this header?
2207case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2208 yes:no: )
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2210$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2212$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2213 ;;
2214 no:yes:* )
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2216$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2218$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2220$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2222$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2224$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002225( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002226## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002227## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002228 ) | sed "s/^/$as_me: WARNING: /" >&2
2229 ;;
2230esac
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2232$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002233if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002234 $as_echo_n "(cached) " >&6
2235else
2236 eval "$3=\$ac_header_compiler"
2237fi
2238eval ac_res=\$$3
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2240$as_echo "$ac_res" >&6; }
2241fi
cristyda16f162011-02-19 23:52:17 +00002242 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002243
2244} # ac_fn_c_check_header_mongrel
2245
2246# ac_fn_c_try_run LINENO
2247# ----------------------
2248# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2249# that executables *can* be run.
2250ac_fn_c_try_run ()
2251{
2252 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2253 if { { ac_try="$ac_link"
2254case "(($ac_try" in
2255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2256 *) ac_try_echo=$ac_try;;
2257esac
2258eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2259$as_echo "$ac_try_echo"; } >&5
2260 (eval "$ac_link") 2>&5
2261 ac_status=$?
2262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2263 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2264 { { case "(($ac_try" in
2265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2266 *) ac_try_echo=$ac_try;;
2267esac
2268eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2269$as_echo "$ac_try_echo"; } >&5
2270 (eval "$ac_try") 2>&5
2271 ac_status=$?
2272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2273 test $ac_status = 0; }; }; then :
2274 ac_retval=0
2275else
2276 $as_echo "$as_me: program exited with status $ac_status" >&5
2277 $as_echo "$as_me: failed program was:" >&5
2278sed 's/^/| /' conftest.$ac_ext >&5
2279
2280 ac_retval=$ac_status
2281fi
2282 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002283 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002284 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002285
2286} # ac_fn_c_try_run
2287
2288# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2289# -------------------------------------------------------
2290# Tests whether HEADER exists and can be compiled using the include files in
2291# INCLUDES, setting the cache variable VAR accordingly.
2292ac_fn_c_check_header_compile ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2296$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002297if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002298 $as_echo_n "(cached) " >&6
2299else
2300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2301/* end confdefs.h. */
2302$4
2303#include <$2>
2304_ACEOF
2305if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307else
2308 eval "$3=no"
2309fi
2310rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2311fi
2312eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002316
2317} # ac_fn_c_check_header_compile
2318
cristya0b81c32010-01-22 02:54:33 +00002319# ac_fn_cxx_try_compile LINENO
2320# ----------------------------
2321# Try to compile conftest.$ac_ext, and return whether this succeeded.
2322ac_fn_cxx_try_compile ()
2323{
2324 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2325 rm -f conftest.$ac_objext
2326 if { { ac_try="$ac_compile"
2327case "(($ac_try" in
2328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2329 *) ac_try_echo=$ac_try;;
2330esac
2331eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2332$as_echo "$ac_try_echo"; } >&5
2333 (eval "$ac_compile") 2>conftest.err
2334 ac_status=$?
2335 if test -s conftest.err; then
2336 grep -v '^ *+' conftest.err >conftest.er1
2337 cat conftest.er1 >&5
2338 mv -f conftest.er1 conftest.err
2339 fi
2340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2341 test $ac_status = 0; } && {
2342 test -z "$ac_cxx_werror_flag" ||
2343 test ! -s conftest.err
2344 } && test -s conftest.$ac_objext; then :
2345 ac_retval=0
2346else
2347 $as_echo "$as_me: failed program was:" >&5
2348sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 ac_retval=1
2351fi
cristyda16f162011-02-19 23:52:17 +00002352 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002353 as_fn_set_status $ac_retval
2354
2355} # ac_fn_cxx_try_compile
2356
cristy8b350f62009-11-15 23:12:43 +00002357# ac_fn_c_try_link LINENO
2358# -----------------------
2359# Try to link conftest.$ac_ext, and return whether this succeeded.
2360ac_fn_c_try_link ()
2361{
2362 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2363 rm -f conftest.$ac_objext conftest$ac_exeext
2364 if { { ac_try="$ac_link"
2365case "(($ac_try" in
2366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2367 *) ac_try_echo=$ac_try;;
2368esac
2369eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2370$as_echo "$ac_try_echo"; } >&5
2371 (eval "$ac_link") 2>conftest.err
2372 ac_status=$?
2373 if test -s conftest.err; then
2374 grep -v '^ *+' conftest.err >conftest.er1
2375 cat conftest.er1 >&5
2376 mv -f conftest.er1 conftest.err
2377 fi
2378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2379 test $ac_status = 0; } && {
2380 test -z "$ac_c_werror_flag" ||
2381 test ! -s conftest.err
2382 } && test -s conftest$ac_exeext && {
2383 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002384 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002385 }; then :
2386 ac_retval=0
2387else
2388 $as_echo "$as_me: failed program was:" >&5
2389sed 's/^/| /' conftest.$ac_ext >&5
2390
2391 ac_retval=1
2392fi
2393 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2394 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2395 # interfere with the next link command; also delete a directory that is
2396 # left behind by Apple's compiler. We do this before executing the actions.
2397 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002398 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002399 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002400
2401} # ac_fn_c_try_link
2402
cristy73bd4a52010-10-05 11:24:23 +00002403# ac_fn_c_check_func LINENO FUNC VAR
2404# ----------------------------------
2405# Tests whether FUNC exists, setting the cache variable VAR accordingly
2406ac_fn_c_check_func ()
2407{
2408 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2410$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002411if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002412 $as_echo_n "(cached) " >&6
2413else
2414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2415/* end confdefs.h. */
2416/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2418#define $2 innocuous_$2
2419
2420/* System header to define __stub macros and hopefully few prototypes,
2421 which can conflict with char $2 (); below.
2422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2423 <limits.h> exists even on freestanding compilers. */
2424
2425#ifdef __STDC__
2426# include <limits.h>
2427#else
2428# include <assert.h>
2429#endif
2430
2431#undef $2
2432
2433/* Override any GCC internal prototype to avoid an error.
2434 Use char because int might match the return type of a GCC
2435 builtin and then its argument prototype would still apply. */
2436#ifdef __cplusplus
2437extern "C"
2438#endif
2439char $2 ();
2440/* The GNU C library defines this for functions which it implements
2441 to always fail with ENOSYS. Some functions are actually named
2442 something starting with __ and the normal name is an alias. */
2443#if defined __stub_$2 || defined __stub___$2
2444choke me
2445#endif
2446
2447int
2448main ()
2449{
2450return $2 ();
2451 ;
2452 return 0;
2453}
2454_ACEOF
2455if ac_fn_c_try_link "$LINENO"; then :
2456 eval "$3=yes"
2457else
2458 eval "$3=no"
2459fi
2460rm -f core conftest.err conftest.$ac_objext \
2461 conftest$ac_exeext conftest.$ac_ext
2462fi
2463eval ac_res=\$$3
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2465$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002466 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002467
2468} # ac_fn_c_check_func
2469
2470# ac_fn_cxx_try_cpp LINENO
2471# ------------------------
2472# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2473ac_fn_cxx_try_cpp ()
2474{
2475 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2476 if { { ac_try="$ac_cpp conftest.$ac_ext"
2477case "(($ac_try" in
2478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2479 *) ac_try_echo=$ac_try;;
2480esac
2481eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2482$as_echo "$ac_try_echo"; } >&5
2483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2484 ac_status=$?
2485 if test -s conftest.err; then
2486 grep -v '^ *+' conftest.err >conftest.er1
2487 cat conftest.er1 >&5
2488 mv -f conftest.er1 conftest.err
2489 fi
2490 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002491 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002492 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2493 test ! -s conftest.err
2494 }; then :
2495 ac_retval=0
2496else
2497 $as_echo "$as_me: failed program was:" >&5
2498sed 's/^/| /' conftest.$ac_ext >&5
2499
2500 ac_retval=1
2501fi
cristyda16f162011-02-19 23:52:17 +00002502 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002503 as_fn_set_status $ac_retval
2504
2505} # ac_fn_cxx_try_cpp
2506
2507# ac_fn_cxx_try_link LINENO
2508# -------------------------
2509# Try to link conftest.$ac_ext, and return whether this succeeded.
2510ac_fn_cxx_try_link ()
2511{
2512 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2513 rm -f conftest.$ac_objext conftest$ac_exeext
2514 if { { ac_try="$ac_link"
2515case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518esac
2519eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2520$as_echo "$ac_try_echo"; } >&5
2521 (eval "$ac_link") 2>conftest.err
2522 ac_status=$?
2523 if test -s conftest.err; then
2524 grep -v '^ *+' conftest.err >conftest.er1
2525 cat conftest.er1 >&5
2526 mv -f conftest.er1 conftest.err
2527 fi
2528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2529 test $ac_status = 0; } && {
2530 test -z "$ac_cxx_werror_flag" ||
2531 test ! -s conftest.err
2532 } && test -s conftest$ac_exeext && {
2533 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002534 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002535 }; then :
2536 ac_retval=0
2537else
2538 $as_echo "$as_me: failed program was:" >&5
2539sed 's/^/| /' conftest.$ac_ext >&5
2540
2541 ac_retval=1
2542fi
2543 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2544 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2545 # interfere with the next link command; also delete a directory that is
2546 # left behind by Apple's compiler. We do this before executing the actions.
2547 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002548 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002549 as_fn_set_status $ac_retval
2550
2551} # ac_fn_cxx_try_link
2552
cristy98dddb52010-11-04 00:30:15 +00002553# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2554# ---------------------------------------------
2555# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2556# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002557ac_fn_c_check_decl ()
2558{
2559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002560 as_decl_name=`echo $2|sed 's/ *(.*//'`
2561 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2563$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002564if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002565 $as_echo_n "(cached) " >&6
2566else
2567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2568/* end confdefs.h. */
2569$4
2570int
2571main ()
2572{
cristy98dddb52010-11-04 00:30:15 +00002573#ifndef $as_decl_name
2574#ifdef __cplusplus
2575 (void) $as_decl_use;
2576#else
2577 (void) $as_decl_name;
2578#endif
cristy73bd4a52010-10-05 11:24:23 +00002579#endif
2580
2581 ;
2582 return 0;
2583}
2584_ACEOF
2585if ac_fn_c_try_compile "$LINENO"; then :
2586 eval "$3=yes"
2587else
2588 eval "$3=no"
2589fi
2590rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2591fi
2592eval ac_res=\$$3
2593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2594$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002595 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002596
2597} # ac_fn_c_check_decl
2598
cristy8b350f62009-11-15 23:12:43 +00002599# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2600# -------------------------------------------
2601# Tests whether TYPE exists after having included INCLUDES, setting cache
2602# variable VAR accordingly.
2603ac_fn_c_check_type ()
2604{
2605 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2607$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002608if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002609 $as_echo_n "(cached) " >&6
2610else
2611 eval "$3=no"
2612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2613/* end confdefs.h. */
2614$4
2615int
2616main ()
2617{
2618if (sizeof ($2))
2619 return 0;
2620 ;
2621 return 0;
2622}
2623_ACEOF
2624if ac_fn_c_try_compile "$LINENO"; then :
2625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2626/* end confdefs.h. */
2627$4
2628int
2629main ()
2630{
2631if (sizeof (($2)))
2632 return 0;
2633 ;
2634 return 0;
2635}
2636_ACEOF
2637if ac_fn_c_try_compile "$LINENO"; then :
2638
2639else
2640 eval "$3=yes"
2641fi
2642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2643fi
2644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2645fi
2646eval ac_res=\$$3
2647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2648$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002650
2651} # ac_fn_c_check_type
2652
cristy92703d82010-04-26 00:18:18 +00002653# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2654# ----------------------------------------------------
2655# Tries to find if the field MEMBER exists in type AGGR, after including
2656# INCLUDES, setting cache variable VAR accordingly.
2657ac_fn_c_check_member ()
2658{
2659 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2661$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002662if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002663 $as_echo_n "(cached) " >&6
2664else
2665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2666/* end confdefs.h. */
2667$5
2668int
2669main ()
2670{
2671static $2 ac_aggr;
2672if (ac_aggr.$3)
2673return 0;
2674 ;
2675 return 0;
2676}
2677_ACEOF
2678if ac_fn_c_try_compile "$LINENO"; then :
2679 eval "$4=yes"
2680else
2681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2682/* end confdefs.h. */
2683$5
2684int
2685main ()
2686{
2687static $2 ac_aggr;
2688if (sizeof ac_aggr.$3)
2689return 0;
2690 ;
2691 return 0;
2692}
2693_ACEOF
2694if ac_fn_c_try_compile "$LINENO"; then :
2695 eval "$4=yes"
2696else
2697 eval "$4=no"
2698fi
2699rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2700fi
2701rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2702fi
2703eval ac_res=\$$4
2704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2705$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002706 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002707
2708} # ac_fn_c_check_member
2709
cristy501c8042011-05-26 17:46:28 +00002710# ac_fn_c_find_intX_t LINENO BITS VAR
2711# -----------------------------------
2712# Finds a signed integer type with width BITS, setting cache variable VAR
2713# accordingly.
2714ac_fn_c_find_intX_t ()
2715{
2716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2718$as_echo_n "checking for int$2_t... " >&6; }
2719if eval \${$3+:} false; then :
2720 $as_echo_n "(cached) " >&6
2721else
2722 eval "$3=no"
2723 # Order is important - never check a type that is potentially smaller
2724 # than half of the expected target width.
2725 for ac_type in int$2_t 'int' 'long int' \
2726 'long long int' 'short int' 'signed char'; do
2727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2728/* end confdefs.h. */
2729$ac_includes_default
2730 enum { N = $2 / 2 - 1 };
2731int
2732main ()
2733{
2734static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002735test_array [0] = 0;
2736return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002737
2738 ;
2739 return 0;
2740}
2741_ACEOF
2742if ac_fn_c_try_compile "$LINENO"; then :
2743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2744/* end confdefs.h. */
2745$ac_includes_default
2746 enum { N = $2 / 2 - 1 };
2747int
2748main ()
2749{
2750static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2751 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002752test_array [0] = 0;
2753return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002754
2755 ;
2756 return 0;
2757}
2758_ACEOF
2759if ac_fn_c_try_compile "$LINENO"; then :
2760
2761else
2762 case $ac_type in #(
2763 int$2_t) :
2764 eval "$3=yes" ;; #(
2765 *) :
2766 eval "$3=\$ac_type" ;;
2767esac
2768fi
2769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2770fi
2771rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2772 if eval test \"x\$"$3"\" = x"no"; then :
2773
2774else
2775 break
2776fi
2777 done
2778fi
2779eval ac_res=\$$3
2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2781$as_echo "$ac_res" >&6; }
2782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2783
2784} # ac_fn_c_find_intX_t
2785
2786# ac_fn_c_find_uintX_t LINENO BITS VAR
2787# ------------------------------------
2788# Finds an unsigned integer type with width BITS, setting cache variable VAR
2789# accordingly.
2790ac_fn_c_find_uintX_t ()
2791{
2792 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2794$as_echo_n "checking for uint$2_t... " >&6; }
2795if eval \${$3+:} false; then :
2796 $as_echo_n "(cached) " >&6
2797else
2798 eval "$3=no"
2799 # Order is important - never check a type that is potentially smaller
2800 # than half of the expected target width.
2801 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2802 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804/* end confdefs.h. */
2805$ac_includes_default
2806int
2807main ()
2808{
2809static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002810test_array [0] = 0;
2811return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002812
2813 ;
2814 return 0;
2815}
2816_ACEOF
2817if ac_fn_c_try_compile "$LINENO"; then :
2818 case $ac_type in #(
2819 uint$2_t) :
2820 eval "$3=yes" ;; #(
2821 *) :
2822 eval "$3=\$ac_type" ;;
2823esac
2824fi
2825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2826 if eval test \"x\$"$3"\" = x"no"; then :
2827
2828else
2829 break
2830fi
2831 done
2832fi
2833eval ac_res=\$$3
2834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2835$as_echo "$ac_res" >&6; }
2836 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2837
2838} # ac_fn_c_find_uintX_t
2839
cristy8b350f62009-11-15 23:12:43 +00002840# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2841# --------------------------------------------
2842# Tries to find the compile-time value of EXPR in a program that includes
2843# INCLUDES, setting VAR accordingly. Returns whether the value could be
2844# computed
2845ac_fn_c_compute_int ()
2846{
2847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2848 if test "$cross_compiling" = yes; then
2849 # Depending upon the size, compute the lo and hi bounds.
2850cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2851/* end confdefs.h. */
2852$4
2853int
2854main ()
2855{
2856static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002857test_array [0] = 0;
2858return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002859
2860 ;
2861 return 0;
2862}
2863_ACEOF
2864if ac_fn_c_try_compile "$LINENO"; then :
2865 ac_lo=0 ac_mid=0
2866 while :; do
2867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2868/* end confdefs.h. */
2869$4
2870int
2871main ()
2872{
2873static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002874test_array [0] = 0;
2875return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002876
2877 ;
2878 return 0;
2879}
2880_ACEOF
2881if ac_fn_c_try_compile "$LINENO"; then :
2882 ac_hi=$ac_mid; break
2883else
2884 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2885 if test $ac_lo -le $ac_mid; then
2886 ac_lo= ac_hi=
2887 break
2888 fi
2889 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2890fi
2891rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2892 done
2893else
2894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2895/* end confdefs.h. */
2896$4
2897int
2898main ()
2899{
2900static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002901test_array [0] = 0;
2902return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002903
2904 ;
2905 return 0;
2906}
2907_ACEOF
2908if ac_fn_c_try_compile "$LINENO"; then :
2909 ac_hi=-1 ac_mid=-1
2910 while :; do
2911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2912/* end confdefs.h. */
2913$4
2914int
2915main ()
2916{
2917static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002918test_array [0] = 0;
2919return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002920
2921 ;
2922 return 0;
2923}
2924_ACEOF
2925if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_lo=$ac_mid; break
2927else
2928 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2929 if test $ac_mid -le $ac_hi; then
2930 ac_lo= ac_hi=
2931 break
2932 fi
2933 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936 done
2937else
2938 ac_lo= ac_hi=
2939fi
2940rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2941fi
2942rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2943# Binary search between lo and hi bounds.
2944while test "x$ac_lo" != "x$ac_hi"; do
2945 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2947/* end confdefs.h. */
2948$4
2949int
2950main ()
2951{
2952static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002953test_array [0] = 0;
2954return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002955
2956 ;
2957 return 0;
2958}
2959_ACEOF
2960if ac_fn_c_try_compile "$LINENO"; then :
2961 ac_hi=$ac_mid
2962else
2963 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2964fi
2965rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2966done
2967case $ac_lo in #((
2968?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2969'') ac_retval=1 ;;
2970esac
2971 else
2972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2973/* end confdefs.h. */
2974$4
2975static long int longval () { return $2; }
2976static unsigned long int ulongval () { return $2; }
2977#include <stdio.h>
2978#include <stdlib.h>
2979int
2980main ()
2981{
2982
2983 FILE *f = fopen ("conftest.val", "w");
2984 if (! f)
2985 return 1;
2986 if (($2) < 0)
2987 {
2988 long int i = longval ();
2989 if (i != ($2))
2990 return 1;
2991 fprintf (f, "%ld", i);
2992 }
2993 else
2994 {
2995 unsigned long int i = ulongval ();
2996 if (i != ($2))
2997 return 1;
2998 fprintf (f, "%lu", i);
2999 }
3000 /* Do not output a trailing newline, as this causes \r\n confusion
3001 on some platforms. */
3002 return ferror (f) || fclose (f) != 0;
3003
3004 ;
3005 return 0;
3006}
3007_ACEOF
3008if ac_fn_c_try_run "$LINENO"; then :
3009 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3010else
3011 ac_retval=1
3012fi
3013rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3014 conftest.$ac_objext conftest.beam conftest.$ac_ext
3015rm -f conftest.val
3016
3017 fi
cristyda16f162011-02-19 23:52:17 +00003018 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003019 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003020
3021} # ac_fn_c_compute_int
3022
3023# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3024# ---------------------------------------------------------
3025# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3026# the include files in INCLUDES and setting the cache variable VAR
3027# accordingly.
3028ac_fn_cxx_check_header_mongrel ()
3029{
3030 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003031 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3033$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003034if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003035 $as_echo_n "(cached) " >&6
3036fi
3037eval ac_res=\$$3
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3039$as_echo "$ac_res" >&6; }
3040else
3041 # Is the header compilable?
3042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3043$as_echo_n "checking $2 usability... " >&6; }
3044cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3045/* end confdefs.h. */
3046$4
3047#include <$2>
3048_ACEOF
3049if ac_fn_cxx_try_compile "$LINENO"; then :
3050 ac_header_compiler=yes
3051else
3052 ac_header_compiler=no
3053fi
3054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3056$as_echo "$ac_header_compiler" >&6; }
3057
3058# Is the header present?
3059{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3060$as_echo_n "checking $2 presence... " >&6; }
3061cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3062/* end confdefs.h. */
3063#include <$2>
3064_ACEOF
3065if ac_fn_cxx_try_cpp "$LINENO"; then :
3066 ac_header_preproc=yes
3067else
3068 ac_header_preproc=no
3069fi
cristyda16f162011-02-19 23:52:17 +00003070rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3072$as_echo "$ac_header_preproc" >&6; }
3073
3074# So? What about this header?
3075case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3076 yes:no: )
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3078$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3080$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3081 ;;
3082 no:yes:* )
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3084$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3085 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3086$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3088$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3090$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3092$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003093( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003094## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003095## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003096 ) | sed "s/^/$as_me: WARNING: /" >&2
3097 ;;
3098esac
3099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3100$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003101if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003102 $as_echo_n "(cached) " >&6
3103else
3104 eval "$3=\$ac_header_compiler"
3105fi
3106eval ac_res=\$$3
3107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3108$as_echo "$ac_res" >&6; }
3109fi
cristyda16f162011-02-19 23:52:17 +00003110 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003111
3112} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003113cat >config.log <<_ACEOF
3114This file contains any messages produced by compilers while
3115running configure, to aid debugging if configure makes a mistake.
3116
cristy29eb34e2011-10-16 00:46:08 +00003117It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003118generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003119
3120 $ $0 $@
3121
3122_ACEOF
3123exec 5>>config.log
3124{
3125cat <<_ASUNAME
3126## --------- ##
3127## Platform. ##
3128## --------- ##
3129
3130hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3131uname -m = `(uname -m) 2>/dev/null || echo unknown`
3132uname -r = `(uname -r) 2>/dev/null || echo unknown`
3133uname -s = `(uname -s) 2>/dev/null || echo unknown`
3134uname -v = `(uname -v) 2>/dev/null || echo unknown`
3135
3136/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3137/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3138
3139/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3140/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3141/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3142/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3143/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3144/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3145/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3146
3147_ASUNAME
3148
3149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3150for as_dir in $PATH
3151do
3152 IFS=$as_save_IFS
3153 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003154 $as_echo "PATH: $as_dir"
3155 done
cristy3ed852e2009-09-05 21:47:34 +00003156IFS=$as_save_IFS
3157
3158} >&5
3159
3160cat >&5 <<_ACEOF
3161
3162
3163## ----------- ##
3164## Core tests. ##
3165## ----------- ##
3166
3167_ACEOF
3168
3169
3170# Keep a trace of the command line.
3171# Strip out --no-create and --no-recursion so they do not pile up.
3172# Strip out --silent because we don't want to record it for future runs.
3173# Also quote any args containing shell meta-characters.
3174# Make two passes to allow for proper duplicate-argument suppression.
3175ac_configure_args=
3176ac_configure_args0=
3177ac_configure_args1=
3178ac_must_keep_next=false
3179for ac_pass in 1 2
3180do
3181 for ac_arg
3182 do
3183 case $ac_arg in
3184 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3185 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3186 | -silent | --silent | --silen | --sile | --sil)
3187 continue ;;
3188 *\'*)
3189 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3190 esac
3191 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003192 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003193 2)
cristy8b350f62009-11-15 23:12:43 +00003194 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003195 if test $ac_must_keep_next = true; then
3196 ac_must_keep_next=false # Got value, back to normal.
3197 else
3198 case $ac_arg in
3199 *=* | --config-cache | -C | -disable-* | --disable-* \
3200 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3201 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3202 | -with-* | --with-* | -without-* | --without-* | --x)
3203 case "$ac_configure_args0 " in
3204 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3205 esac
3206 ;;
3207 -* ) ac_must_keep_next=true ;;
3208 esac
3209 fi
cristy8b350f62009-11-15 23:12:43 +00003210 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003211 ;;
3212 esac
3213 done
3214done
cristy8b350f62009-11-15 23:12:43 +00003215{ ac_configure_args0=; unset ac_configure_args0;}
3216{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003217
3218# When interrupted or exit'd, cleanup temporary files, and complete
3219# config.log. We remove comments because anyway the quotes in there
3220# would cause problems or look ugly.
3221# WARNING: Use '\'' to represent an apostrophe within the trap.
3222# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3223trap 'exit_status=$?
3224 # Save into config.log some information that might help in debugging.
3225 {
3226 echo
3227
cristy98dddb52010-11-04 00:30:15 +00003228 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003229## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003230## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003231 echo
3232 # The following way of writing the cache mishandles newlines in values,
3233(
3234 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3235 eval ac_val=\$$ac_var
3236 case $ac_val in #(
3237 *${as_nl}*)
3238 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003239 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003240$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3241 esac
3242 case $ac_var in #(
3243 _ | IFS | as_nl) ;; #(
3244 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003245 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003246 esac ;;
3247 esac
3248 done
3249 (set) 2>&1 |
3250 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3251 *${as_nl}ac_space=\ *)
3252 sed -n \
3253 "s/'\''/'\''\\\\'\'''\''/g;
3254 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3255 ;; #(
3256 *)
3257 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3258 ;;
3259 esac |
3260 sort
3261)
3262 echo
3263
cristy98dddb52010-11-04 00:30:15 +00003264 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003265## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003266## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003267 echo
3268 for ac_var in $ac_subst_vars
3269 do
3270 eval ac_val=\$$ac_var
3271 case $ac_val in
3272 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3273 esac
3274 $as_echo "$ac_var='\''$ac_val'\''"
3275 done | sort
3276 echo
3277
3278 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003279 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003280## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003281## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003282 echo
3283 for ac_var in $ac_subst_files
3284 do
3285 eval ac_val=\$$ac_var
3286 case $ac_val in
3287 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3288 esac
3289 $as_echo "$ac_var='\''$ac_val'\''"
3290 done | sort
3291 echo
3292 fi
3293
3294 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003295 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003296## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003297## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003298 echo
3299 cat confdefs.h
3300 echo
3301 fi
3302 test "$ac_signal" != 0 &&
3303 $as_echo "$as_me: caught signal $ac_signal"
3304 $as_echo "$as_me: exit $exit_status"
3305 } >&5
3306 rm -f core *.core core.conftest.* &&
3307 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3308 exit $exit_status
3309' 0
3310for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003311 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003312done
3313ac_signal=0
3314
3315# confdefs.h avoids OS command line length limits that DEFS can exceed.
3316rm -f -r conftest* confdefs.h
3317
cristy8b350f62009-11-15 23:12:43 +00003318$as_echo "/* confdefs.h */" > confdefs.h
3319
cristy3ed852e2009-09-05 21:47:34 +00003320# Predefined preprocessor variables.
3321
3322cat >>confdefs.h <<_ACEOF
3323#define PACKAGE_NAME "$PACKAGE_NAME"
3324_ACEOF
3325
cristy3ed852e2009-09-05 21:47:34 +00003326cat >>confdefs.h <<_ACEOF
3327#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3328_ACEOF
3329
cristy3ed852e2009-09-05 21:47:34 +00003330cat >>confdefs.h <<_ACEOF
3331#define PACKAGE_VERSION "$PACKAGE_VERSION"
3332_ACEOF
3333
cristy3ed852e2009-09-05 21:47:34 +00003334cat >>confdefs.h <<_ACEOF
3335#define PACKAGE_STRING "$PACKAGE_STRING"
3336_ACEOF
3337
cristy3ed852e2009-09-05 21:47:34 +00003338cat >>confdefs.h <<_ACEOF
3339#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3340_ACEOF
3341
cristy8b350f62009-11-15 23:12:43 +00003342cat >>confdefs.h <<_ACEOF
3343#define PACKAGE_URL "$PACKAGE_URL"
3344_ACEOF
3345
cristy3ed852e2009-09-05 21:47:34 +00003346
3347# Let the site file select an alternate cache file if it wants to.
3348# Prefer an explicitly selected file to automatically selected ones.
3349ac_site_file1=NONE
3350ac_site_file2=NONE
3351if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003352 # We do not want a PATH search for config.site.
3353 case $CONFIG_SITE in #((
3354 -*) ac_site_file1=./$CONFIG_SITE;;
3355 */*) ac_site_file1=$CONFIG_SITE;;
3356 *) ac_site_file1=./$CONFIG_SITE;;
3357 esac
cristy3ed852e2009-09-05 21:47:34 +00003358elif test "x$prefix" != xNONE; then
3359 ac_site_file1=$prefix/share/config.site
3360 ac_site_file2=$prefix/etc/config.site
3361else
3362 ac_site_file1=$ac_default_prefix/share/config.site
3363 ac_site_file2=$ac_default_prefix/etc/config.site
3364fi
3365for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3366do
3367 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003368 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003369 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003370$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3371 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003372 . "$ac_site_file" \
3373 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3375as_fn_error $? "failed to load site script $ac_site_file
3376See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003377 fi
3378done
3379
3380if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003381 # Some versions of bash will fail to source /dev/null (special files
3382 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3383 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: loading cache $cache_file" >&6;}
3386 case $cache_file in
3387 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3388 *) . "./$cache_file";;
3389 esac
3390 fi
3391else
cristy8b350f62009-11-15 23:12:43 +00003392 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003393$as_echo "$as_me: creating cache $cache_file" >&6;}
3394 >$cache_file
3395fi
3396
cristycd4c5312009-11-22 01:19:08 +00003397as_fn_append ac_header_list " stdlib.h"
3398as_fn_append ac_header_list " unistd.h"
3399as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003400# Check that the precious variables saved in the cache have kept the same
3401# value.
3402ac_cache_corrupted=false
3403for ac_var in $ac_precious_vars; do
3404 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3405 eval ac_new_set=\$ac_env_${ac_var}_set
3406 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3407 eval ac_new_val=\$ac_env_${ac_var}_value
3408 case $ac_old_set,$ac_new_set in
3409 set,)
cristy8b350f62009-11-15 23:12:43 +00003410 { $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 +00003411$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3412 ac_cache_corrupted=: ;;
3413 ,set)
cristy8b350f62009-11-15 23:12:43 +00003414 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003415$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3416 ac_cache_corrupted=: ;;
3417 ,);;
3418 *)
3419 if test "x$ac_old_val" != "x$ac_new_val"; then
3420 # differences in whitespace do not lead to failure.
3421 ac_old_val_w=`echo x $ac_old_val`
3422 ac_new_val_w=`echo x $ac_new_val`
3423 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003424 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003425$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3426 ac_cache_corrupted=:
3427 else
cristy8b350f62009-11-15 23:12:43 +00003428 { $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 +00003429$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3430 eval $ac_var=\$ac_old_val
3431 fi
cristy8b350f62009-11-15 23:12:43 +00003432 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003433$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003434 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003435$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3436 fi;;
3437 esac
3438 # Pass precious variables to config.status.
3439 if test "$ac_new_set" = set; then
3440 case $ac_new_val in
3441 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3442 *) ac_arg=$ac_var=$ac_new_val ;;
3443 esac
3444 case " $ac_configure_args " in
3445 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003446 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003447 esac
3448 fi
3449done
3450if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003451 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003453 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003454$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003455 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003456fi
cristy8b350f62009-11-15 23:12:43 +00003457## -------------------- ##
3458## Main body of script. ##
3459## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003460
3461ac_ext=c
3462ac_cpp='$CPP $CPPFLAGS'
3463ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3464ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3465ac_compiler_gnu=$ac_cv_c_compiler_gnu
3466
3467
3468
3469ac_aux_dir=
3470for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003471 if test -f "$ac_dir/install-sh"; then
3472 ac_aux_dir=$ac_dir
3473 ac_install_sh="$ac_aux_dir/install-sh -c"
3474 break
3475 elif test -f "$ac_dir/install.sh"; then
3476 ac_aux_dir=$ac_dir
3477 ac_install_sh="$ac_aux_dir/install.sh -c"
3478 break
3479 elif test -f "$ac_dir/shtool"; then
3480 ac_aux_dir=$ac_dir
3481 ac_install_sh="$ac_aux_dir/shtool install -c"
3482 break
3483 fi
cristy3ed852e2009-09-05 21:47:34 +00003484done
3485if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003486 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003487fi
3488
3489# These three variables are undocumented and unsupported,
3490# and are intended to be withdrawn in a future Autoconf release.
3491# They can cause serious problems if a builder's source tree is in a directory
3492# whose full name contains unusual characters.
3493ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3494ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3495ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3496
3497
3498
3499
cristybc556452012-08-17 19:44:03 +00003500
cristy3ed852e2009-09-05 21:47:34 +00003501ac_config_headers="$ac_config_headers config/config.h"
3502
cristy24fc1fe2010-10-23 21:13:01 +00003503
cristy4c08aed2011-07-01 19:47:50 +00003504ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003505
cristy2df32802012-09-17 01:15:28 +00003506ac_config_files="$ac_config_files common.shi config/configure.xml config/delegates.xml config/ImageMagick.rdf config/MagickCore.dox config/MagickWand.dox config/Magick++.dox config/type-dejavu.xml config/type-ghostscript.xml config/type-windows.xml config/type.xml ImageMagick.spec Magick++/bin/Magick++-config MagickCore/ImageMagick.pc Magick++/lib/ImageMagick++.pc Magick++/lib/Magick++.pc MagickCore/MagickCore-config MagickCore/MagickCore.pc MagickCore/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 MagickWand/MagickWand-config MagickWand/MagickWand.pc"
cristy3ed852e2009-09-05 21:47:34 +00003507
3508
3509#
3510# Save initial user-tunable values
3511#
3512USER_LIBS=$LIBS
3513for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3514 eval isset=\${$var+set}
3515 if test "$isset" = 'set'; then
3516 eval val=$`echo $var`
3517 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3518 fi
3519done
3520
3521
3522CONFIGURE_ARGS="$0 ${ac_configure_args}"
3523
3524
3525# Source file containing package/library versioning information.
3526. ${srcdir}/version.sh
3527
cristy15a88782010-01-31 23:24:49 +00003528echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003529# Make sure we can run config.sub.
3530$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003531 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003532
cristy8b350f62009-11-15 23:12:43 +00003533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003534$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003535if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003536 $as_echo_n "(cached) " >&6
3537else
3538 ac_build_alias=$build_alias
3539test "x$ac_build_alias" = x &&
3540 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3541test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003542 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003543ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003544 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003545
3546fi
cristy8b350f62009-11-15 23:12:43 +00003547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003548$as_echo "$ac_cv_build" >&6; }
3549case $ac_cv_build in
3550*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003551*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003552esac
3553build=$ac_cv_build
3554ac_save_IFS=$IFS; IFS='-'
3555set x $ac_cv_build
3556shift
3557build_cpu=$1
3558build_vendor=$2
3559shift; shift
3560# Remember, the first character of IFS is used to create $*,
3561# except with old shells:
3562build_os=$*
3563IFS=$ac_save_IFS
3564case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3565
3566
cristy8b350f62009-11-15 23:12:43 +00003567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003568$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003569if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003570 $as_echo_n "(cached) " >&6
3571else
3572 if test "x$host_alias" = x; then
3573 ac_cv_host=$ac_cv_build
3574else
3575 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003576 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003577fi
3578
3579fi
cristy8b350f62009-11-15 23:12:43 +00003580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003581$as_echo "$ac_cv_host" >&6; }
3582case $ac_cv_host in
3583*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003584*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003585esac
3586host=$ac_cv_host
3587ac_save_IFS=$IFS; IFS='-'
3588set x $ac_cv_host
3589shift
3590host_cpu=$1
3591host_vendor=$2
3592shift; shift
3593# Remember, the first character of IFS is used to create $*,
3594# except with old shells:
3595host_os=$*
3596IFS=$ac_save_IFS
3597case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3598
3599
cristy8b350f62009-11-15 23:12:43 +00003600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003601$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003602if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003603 $as_echo_n "(cached) " >&6
3604else
3605 if test "x$target_alias" = x; then
3606 ac_cv_target=$ac_cv_host
3607else
3608 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003609 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003610fi
3611
3612fi
cristy8b350f62009-11-15 23:12:43 +00003613{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003614$as_echo "$ac_cv_target" >&6; }
3615case $ac_cv_target in
3616*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003617*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003618esac
3619target=$ac_cv_target
3620ac_save_IFS=$IFS; IFS='-'
3621set x $ac_cv_target
3622shift
3623target_cpu=$1
3624target_vendor=$2
3625shift; shift
3626# Remember, the first character of IFS is used to create $*,
3627# except with old shells:
3628target_os=$*
3629IFS=$ac_save_IFS
3630case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3631
3632
3633# The aliases save the names the user supplied, while $host etc.
3634# will get canonicalized.
3635test -n "$target_alias" &&
3636 test "$program_prefix$program_suffix$program_transform_name" = \
3637 NONENONEs,x,x, &&
3638 program_prefix=${target_alias}-
3639
cristy837d6dc2010-02-27 01:16:57 +00003640
3641
3642
cristy8be34142012-06-17 14:07:18 +00003643
cristy19615b82011-04-13 20:02:01 +00003644MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003645
3646
cristy27d53d62012-07-29 23:30:07 +00003647cat >>confdefs.h <<_ACEOF
3648#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3649_ACEOF
3650
3651
cristy19615b82011-04-13 20:02:01 +00003652MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003653
3654
cristy27d53d62012-07-29 23:30:07 +00003655cat >>confdefs.h <<_ACEOF
3656#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3657_ACEOF
3658
3659
cristy19615b82011-04-13 20:02:01 +00003660MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003661
3662
cristy27d53d62012-07-29 23:30:07 +00003663cat >>confdefs.h <<_ACEOF
3664#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3665_ACEOF
3666
3667
cristy3ed852e2009-09-05 21:47:34 +00003668# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003669MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3670
3671MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3672
cristy73e9fd72012-10-12 00:56:53 +00003673MAGICK_SVN_REVISION=9592M
cristyd694ca32011-03-27 21:42:54 +00003674
cristy3ed852e2009-09-05 21:47:34 +00003675
3676
3677# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3679$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003680# Reject unsafe characters in $srcdir or the absolute working directory
3681# name. Accept space and tab only in the latter.
3682am_lf='
3683'
3684case `pwd` in
3685 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003686 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003687esac
3688case $srcdir in
3689 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003690 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003691esac
cristy3ed852e2009-09-05 21:47:34 +00003692
cristyc0890a62012-07-19 00:18:20 +00003693# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003694# arguments. Must try -L first in case configure is actually a
3695# symlink; some systems play weird games with the mod time of symlinks
3696# (eg FreeBSD returns the mod time of the symlink's containing
3697# directory).
3698if (
cristyc0890a62012-07-19 00:18:20 +00003699 am_has_slept=no
3700 for am_try in 1 2; do
3701 echo "timestamp, slept: $am_has_slept" > conftest.file
3702 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3703 if test "$*" = "X"; then
3704 # -L didn't work.
3705 set X `ls -t "$srcdir/configure" conftest.file`
3706 fi
3707 if test "$*" != "X $srcdir/configure conftest.file" \
3708 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003709
cristyc0890a62012-07-19 00:18:20 +00003710 # If neither matched, then we have a broken ls. This can happen
3711 # if, for instance, CONFIG_SHELL is bash and it inherits a
3712 # broken ls alias from the environment. This has actually
3713 # happened. Such a system could not be considered "sane".
3714 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3715 alias in your environment" "$LINENO" 5
3716 fi
3717 if test "$2" = conftest.file || test $am_try -eq 2; then
3718 break
3719 fi
3720 # Just in case.
3721 sleep 1
3722 am_has_slept=yes
3723 done
cristy73bd4a52010-10-05 11:24:23 +00003724 test "$2" = conftest.file
3725 )
3726then
3727 # Ok.
3728 :
3729else
cristy98dddb52010-11-04 00:30:15 +00003730 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003731Check your system clock" "$LINENO" 5
3732fi
3733{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3734$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003735# If we didn't sleep, we still need to ensure time stamps of config.status and
3736# generated files are strictly newer.
3737am_sleep_pid=
3738if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3739 ( sleep 1 ) &
3740 am_sleep_pid=$!
3741fi
cristy73bd4a52010-10-05 11:24:23 +00003742
cristyc0890a62012-07-19 00:18:20 +00003743rm -f conftest.file
3744
3745
3746am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003747
3748# Find a good install program. We prefer a C program (faster),
3749# so one script is as good as another. But avoid the broken or
3750# incompatible versions:
3751# SysV /etc/install, /usr/sbin/install
3752# SunOS /usr/etc/install
3753# IRIX /sbin/install
3754# AIX /bin/install
3755# AmigaOS /C/install, which installs bootblocks on floppy discs
3756# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3757# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3758# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3759# OS/2's system install, which has a completely different semantic
3760# ./install, which can be erroneously created by make from ./install.sh.
3761# Reject install programs that cannot install multiple files.
3762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3763$as_echo_n "checking for a BSD-compatible install... " >&6; }
3764if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003765if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003766 $as_echo_n "(cached) " >&6
3767else
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3769for as_dir in $PATH
3770do
3771 IFS=$as_save_IFS
3772 test -z "$as_dir" && as_dir=.
3773 # Account for people who put trailing slashes in PATH elements.
3774case $as_dir/ in #((
3775 ./ | .// | /[cC]/* | \
3776 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3777 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3778 /usr/ucb/* ) ;;
3779 *)
3780 # OSF1 and SCO ODT 3.0 have their own names for install.
3781 # Don't use installbsd from OSF since it installs stuff as root
3782 # by default.
3783 for ac_prog in ginstall scoinst install; do
3784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003785 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003786 if test $ac_prog = install &&
3787 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3788 # AIX install. It has an incompatible calling convention.
3789 :
3790 elif test $ac_prog = install &&
3791 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3792 # program-specific install script used by HP pwplus--don't use.
3793 :
3794 else
3795 rm -rf conftest.one conftest.two conftest.dir
3796 echo one > conftest.one
3797 echo two > conftest.two
3798 mkdir conftest.dir
3799 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3800 test -s conftest.one && test -s conftest.two &&
3801 test -s conftest.dir/conftest.one &&
3802 test -s conftest.dir/conftest.two
3803 then
3804 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3805 break 3
3806 fi
3807 fi
3808 fi
3809 done
3810 done
3811 ;;
3812esac
3813
3814 done
3815IFS=$as_save_IFS
3816
3817rm -rf conftest.one conftest.two conftest.dir
3818
3819fi
3820 if test "${ac_cv_path_install+set}" = set; then
3821 INSTALL=$ac_cv_path_install
3822 else
3823 # As a last resort, use the slow shell script. Don't cache a
3824 # value for INSTALL within a source directory, because that will
3825 # break other packages using the cache if that directory is
3826 # removed, or if the value is a relative name.
3827 INSTALL=$ac_install_sh
3828 fi
3829fi
3830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3831$as_echo "$INSTALL" >&6; }
3832
3833# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3834# It thinks the first close brace ends the variable substitution.
3835test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3836
3837test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3838
3839test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3840
3841test "$program_prefix" != NONE &&
3842 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3843# Use a double $ so make ignores it.
3844test "$program_suffix" != NONE &&
3845 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3846# Double any \ or $.
3847# By default was `s,x,x', remove it if useless.
3848ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3849program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3850
3851# expand $ac_aux_dir to an absolute path
3852am_aux_dir=`cd $ac_aux_dir && pwd`
3853
3854if test x"${MISSING+set}" != xset; then
3855 case $am_aux_dir in
3856 *\ * | *\ *)
3857 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3858 *)
3859 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3860 esac
3861fi
3862# Use eval to expand $SHELL
3863if eval "$MISSING --run true"; then
3864 am_missing_run="$MISSING --run "
3865else
3866 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3868$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003869fi
3870
3871if test x"${install_sh}" != xset; then
3872 case $am_aux_dir in
3873 *\ * | *\ *)
3874 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3875 *)
3876 install_sh="\${SHELL} $am_aux_dir/install-sh"
3877 esac
3878fi
3879
cristyc0890a62012-07-19 00:18:20 +00003880# Installed binaries are usually stripped using 'strip' when the user
3881# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003882# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003883# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003884if test "$cross_compiling" != no; then
3885 if test -n "$ac_tool_prefix"; then
3886 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3887set dummy ${ac_tool_prefix}strip; ac_word=$2
3888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3889$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003890if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003891 $as_echo_n "(cached) " >&6
3892else
3893 if test -n "$STRIP"; then
3894 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3895else
3896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3897for as_dir in $PATH
3898do
3899 IFS=$as_save_IFS
3900 test -z "$as_dir" && as_dir=.
3901 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003902 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003903 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3905 break 2
3906 fi
3907done
3908 done
3909IFS=$as_save_IFS
3910
3911fi
3912fi
3913STRIP=$ac_cv_prog_STRIP
3914if test -n "$STRIP"; then
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3916$as_echo "$STRIP" >&6; }
3917else
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3919$as_echo "no" >&6; }
3920fi
3921
3922
3923fi
3924if test -z "$ac_cv_prog_STRIP"; then
3925 ac_ct_STRIP=$STRIP
3926 # Extract the first word of "strip", so it can be a program name with args.
3927set dummy strip; ac_word=$2
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003930if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003931 $as_echo_n "(cached) " >&6
3932else
3933 if test -n "$ac_ct_STRIP"; then
3934 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3935else
3936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3937for as_dir in $PATH
3938do
3939 IFS=$as_save_IFS
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003943 ac_cv_prog_ac_ct_STRIP="strip"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3945 break 2
3946 fi
3947done
3948 done
3949IFS=$as_save_IFS
3950
3951fi
3952fi
3953ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3954if test -n "$ac_ct_STRIP"; then
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3956$as_echo "$ac_ct_STRIP" >&6; }
3957else
3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3959$as_echo "no" >&6; }
3960fi
3961
3962 if test "x$ac_ct_STRIP" = x; then
3963 STRIP=":"
3964 else
3965 case $cross_compiling:$ac_tool_warned in
3966yes:)
3967{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3968$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3969ac_tool_warned=yes ;;
3970esac
3971 STRIP=$ac_ct_STRIP
3972 fi
3973else
3974 STRIP="$ac_cv_prog_STRIP"
3975fi
3976
3977fi
3978INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3979
3980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3981$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3982if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003983 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003984 $as_echo_n "(cached) " >&6
3985else
3986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3987for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3988do
3989 IFS=$as_save_IFS
3990 test -z "$as_dir" && as_dir=.
3991 for ac_prog in mkdir gmkdir; do
3992 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003993 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003994 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3995 'mkdir (GNU coreutils) '* | \
3996 'mkdir (coreutils) '* | \
3997 'mkdir (fileutils) '4.1*)
3998 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3999 break 3;;
4000 esac
4001 done
4002 done
4003 done
4004IFS=$as_save_IFS
4005
4006fi
4007
4008 test -d ./--version && rmdir ./--version
4009 if test "${ac_cv_path_mkdir+set}" = set; then
4010 MKDIR_P="$ac_cv_path_mkdir -p"
4011 else
4012 # As a last resort, use the slow shell script. Don't cache a
4013 # value for MKDIR_P within a source directory, because that will
4014 # break other packages using the cache if that directory is
4015 # removed, or if the value is a relative name.
4016 MKDIR_P="$ac_install_sh -d"
4017 fi
4018fi
4019{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4020$as_echo "$MKDIR_P" >&6; }
4021
cristy73bd4a52010-10-05 11:24:23 +00004022for ac_prog in gawk mawk nawk awk
4023do
4024 # Extract the first word of "$ac_prog", so it can be a program name with args.
4025set dummy $ac_prog; ac_word=$2
4026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4027$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004028if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004029 $as_echo_n "(cached) " >&6
4030else
4031 if test -n "$AWK"; then
4032 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4033else
4034as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4035for as_dir in $PATH
4036do
4037 IFS=$as_save_IFS
4038 test -z "$as_dir" && as_dir=.
4039 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004040 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004041 ac_cv_prog_AWK="$ac_prog"
4042 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4043 break 2
4044 fi
4045done
4046 done
4047IFS=$as_save_IFS
4048
4049fi
4050fi
4051AWK=$ac_cv_prog_AWK
4052if test -n "$AWK"; then
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4054$as_echo "$AWK" >&6; }
4055else
4056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4057$as_echo "no" >&6; }
4058fi
4059
4060
4061 test -n "$AWK" && break
4062done
4063
4064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4065$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4066set x ${MAKE-make}
4067ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004068if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004069 $as_echo_n "(cached) " >&6
4070else
4071 cat >conftest.make <<\_ACEOF
4072SHELL = /bin/sh
4073all:
4074 @echo '@@@%%%=$(MAKE)=@@@%%%'
4075_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004076# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004077case `${MAKE-make} -f conftest.make 2>/dev/null` in
4078 *@@@%%%=?*=@@@%%%*)
4079 eval ac_cv_prog_make_${ac_make}_set=yes;;
4080 *)
4081 eval ac_cv_prog_make_${ac_make}_set=no;;
4082esac
4083rm -f conftest.make
4084fi
4085if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4087$as_echo "yes" >&6; }
4088 SET_MAKE=
4089else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4091$as_echo "no" >&6; }
4092 SET_MAKE="MAKE=${MAKE-make}"
4093fi
4094
4095rm -rf .tst 2>/dev/null
4096mkdir .tst 2>/dev/null
4097if test -d .tst; then
4098 am__leading_dot=.
4099else
4100 am__leading_dot=_
4101fi
4102rmdir .tst 2>/dev/null
4103
cristya448bd22011-10-14 12:38:13 +00004104# Check whether --enable-silent-rules was given.
4105if test "${enable_silent_rules+set}" = set; then :
4106 enableval=$enable_silent_rules;
4107fi
4108
cristyc0890a62012-07-19 00:18:20 +00004109case $enable_silent_rules in # (((
4110 yes) AM_DEFAULT_VERBOSITY=0;;
4111 no) AM_DEFAULT_VERBOSITY=1;;
4112 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004113esac
cristyc3fb77b2012-02-06 01:49:41 +00004114am_make=${MAKE-make}
4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4116$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4117if ${am_cv_make_support_nested_variables+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119else
4120 if $as_echo 'TRUE=$(BAR$(V))
4121BAR0=false
4122BAR1=true
4123V=1
4124am__doit:
4125 @$(TRUE)
4126.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4127 am_cv_make_support_nested_variables=yes
4128else
4129 am_cv_make_support_nested_variables=no
4130fi
4131fi
4132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4133$as_echo "$am_cv_make_support_nested_variables" >&6; }
4134if test $am_cv_make_support_nested_variables = yes; then
4135 AM_V='$(V)'
4136 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4137else
4138 AM_V=$AM_DEFAULT_VERBOSITY
4139 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4140fi
cristya448bd22011-10-14 12:38:13 +00004141AM_BACKSLASH='\'
4142
cristy73bd4a52010-10-05 11:24:23 +00004143if test "`cd $srcdir && pwd`" != "`pwd`"; then
4144 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4145 # is not polluted with repeated "-I."
4146 am__isrc=' -I$(srcdir)'
4147 # test to see if srcdir already configured
4148 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004149 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004150 fi
4151fi
4152
4153# test whether we have cygpath
4154if test -z "$CYGPATH_W"; then
4155 if (cygpath --version) >/dev/null 2>/dev/null; then
4156 CYGPATH_W='cygpath -w'
4157 else
4158 CYGPATH_W=echo
4159 fi
4160fi
4161
4162
4163# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004164 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004165 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004166
4167
cristya448bd22011-10-14 12:38:13 +00004168cat >>confdefs.h <<_ACEOF
4169#define PACKAGE "$PACKAGE"
4170_ACEOF
4171
4172
4173cat >>confdefs.h <<_ACEOF
4174#define VERSION "$VERSION"
4175_ACEOF
4176
cristy73bd4a52010-10-05 11:24:23 +00004177# Some tools Automake needs.
4178
4179ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4180
4181
4182AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4183
4184
4185AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4186
4187
4188AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4189
4190
4191MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4192
cristyc0890a62012-07-19 00:18:20 +00004193# For better backward compatibility. To be removed once Automake 1.9.x
4194# dies out for good. For more background, see:
4195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4196# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4197mkdir_p='$(MKDIR_P)'
4198
cristy73bd4a52010-10-05 11:24:23 +00004199# We need awk for the "check" target. The system "awk" is bad on
4200# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004201# Always define AMTAR for backward compatibility. Yes, it's still used
4202# in the wild :-( We should find a proper way to deprecate it ...
4203AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004204
cristyc3fb77b2012-02-06 01:49:41 +00004205am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004206
4207
4208
4209
4210
cristy3ed852e2009-09-05 21:47:34 +00004211
4212# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004213# Check whether --enable-silent-rules was given.
4214if test "${enable_silent_rules+set}" = set; then :
4215 enableval=$enable_silent_rules;
4216fi
4217
cristyc0890a62012-07-19 00:18:20 +00004218case $enable_silent_rules in # (((
4219 yes) AM_DEFAULT_VERBOSITY=0;;
4220 no) AM_DEFAULT_VERBOSITY=1;;
4221 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004222esac
cristyc3fb77b2012-02-06 01:49:41 +00004223am_make=${MAKE-make}
4224{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4225$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4226if ${am_cv_make_support_nested_variables+:} false; then :
4227 $as_echo_n "(cached) " >&6
4228else
4229 if $as_echo 'TRUE=$(BAR$(V))
4230BAR0=false
4231BAR1=true
4232V=1
4233am__doit:
4234 @$(TRUE)
4235.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4236 am_cv_make_support_nested_variables=yes
4237else
4238 am_cv_make_support_nested_variables=no
4239fi
4240fi
4241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4242$as_echo "$am_cv_make_support_nested_variables" >&6; }
4243if test $am_cv_make_support_nested_variables = yes; then
4244 AM_V='$(V)'
4245 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4246else
4247 AM_V=$AM_DEFAULT_VERBOSITY
4248 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4249fi
cristy73bd4a52010-10-05 11:24:23 +00004250AM_BACKSLASH='\'
4251
cristy3ed852e2009-09-05 21:47:34 +00004252
4253MAGICK_LIB_VERSION="0x"
4254if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4255 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4256fi
4257MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4258if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4259 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4260fi
4261MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4262if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4263 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4264fi
4265MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4266
4267
4268# Definition used to define MagickLibVersionText in version.h
4269MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4270
4271
4272# Definition used to define MagickLibVersionNumber in version.h
4273MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4274
4275
4276# Regenerate config.status if ChangeLog or version.sh is updated.
4277CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4278
4279
4280PERLMAINCC=$CC
4281
4282MAGICK_CFLAGS=''
4283MAGICK_CPPFLAGS=$CPPFLAGS_USER
4284MAGICK_PCFLAGS=$CPPFLAGS_USER
4285MAGICK_LDFLAGS=''
4286MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004287MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004288
4289#
4290# Evaluate shell variable equivalents to Makefile directory variables
4291#
4292if test "x$prefix" = xNONE; then
4293 prefix=$ac_default_prefix
4294fi
4295# Let make expand exec_prefix.
4296if test "x$exec_prefix" = xNONE; then
4297 exec_prefix='${prefix}'
4298fi
4299
4300#
4301eval "eval PREFIX_DIR=${prefix}"
4302
4303eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4304
4305eval "eval BIN_DIR=$bindir"
4306
4307eval "eval SBIN_DIR=$sbindir"
4308
4309eval "eval LIBEXEC_DIR=$libexecdir"
4310
4311eval "eval DATA_DIR=$datadir"
4312
cristy4e65ec22012-04-08 01:33:27 +00004313eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004314
cristy3ed852e2009-09-05 21:47:34 +00004315eval "eval SYSCONF_DIR=$sysconfdir"
4316
4317eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4318
4319eval "eval LOCALSTATE_DIR=$localstatedir"
4320
4321eval "eval LIB_DIR=$libdir"
4322
4323eval "eval INCLUDE_DIR=$includedir"
4324
4325eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4326
4327eval "eval INFO_DIR=$infodir"
4328
4329eval "eval MAN_DIR=$mandir"
4330
4331
4332# Get full paths to source and build directories
4333srcdirfull="`cd $srcdir && pwd`"
4334builddir="`pwd`"
4335
4336#
4337# Compute variables useful for running uninstalled software.
4338#
4339MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4340MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4341MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4342MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4343DIRSEP=':'
4344case "${build_os}" in
4345 mingw* )
4346 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4347 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4348 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4349 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4350 DIRSEP=';'
4351 ;;
4352esac
4353case "${host_os}" in
4354 mingw* )
4355 DIRSEP=';'
4356 ;;
4357esac
4358
4359
4360
4361
4362
4363
cristya0b81c32010-01-22 02:54:33 +00004364
4365#
4366# Enable OS features.
4367#
cristy73bd4a52010-10-05 11:24:23 +00004368DEPDIR="${am__leading_dot}deps"
4369
4370ac_config_commands="$ac_config_commands depfiles"
4371
4372
4373am_make=${MAKE-make}
4374cat > confinc << 'END'
4375am__doit:
4376 @echo this is the am__doit target
4377.PHONY: am__doit
4378END
4379# If we don't find an include directive, just comment out the code.
4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4381$as_echo_n "checking for style of include used by $am_make... " >&6; }
4382am__include="#"
4383am__quote=
4384_am_result=none
4385# First try GNU make style include.
4386echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004387# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004388case `$am_make -s -f confmf 2> /dev/null` in #(
4389*the\ am__doit\ target*)
4390 am__include=include
4391 am__quote=
4392 _am_result=GNU
4393 ;;
4394esac
4395# Now try BSD make style include.
4396if test "$am__include" = "#"; then
4397 echo '.include "confinc"' > confmf
4398 case `$am_make -s -f confmf 2> /dev/null` in #(
4399 *the\ am__doit\ target*)
4400 am__include=.include
4401 am__quote="\""
4402 _am_result=BSD
4403 ;;
4404 esac
4405fi
4406
4407
4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4409$as_echo "$_am_result" >&6; }
4410rm -f confinc confmf
4411
4412# Check whether --enable-dependency-tracking was given.
4413if test "${enable_dependency_tracking+set}" = set; then :
4414 enableval=$enable_dependency_tracking;
4415fi
4416
4417if test "x$enable_dependency_tracking" != xno; then
4418 am_depcomp="$ac_aux_dir/depcomp"
4419 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004420 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004421fi
4422 if test "x$enable_dependency_tracking" != xno; then
4423 AMDEP_TRUE=
4424 AMDEP_FALSE='#'
4425else
4426 AMDEP_TRUE='#'
4427 AMDEP_FALSE=
4428fi
4429
4430
cristy3ed852e2009-09-05 21:47:34 +00004431ac_ext=c
4432ac_cpp='$CPP $CPPFLAGS'
4433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4435ac_compiler_gnu=$ac_cv_c_compiler_gnu
4436if test -n "$ac_tool_prefix"; then
4437 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4438set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004441if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004442 $as_echo_n "(cached) " >&6
4443else
4444 if test -n "$CC"; then
4445 ac_cv_prog_CC="$CC" # Let the user override the test.
4446else
4447as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4448for as_dir in $PATH
4449do
4450 IFS=$as_save_IFS
4451 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004452 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004453 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004454 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004455 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004456 break 2
4457 fi
4458done
cristy8b350f62009-11-15 23:12:43 +00004459 done
cristy3ed852e2009-09-05 21:47:34 +00004460IFS=$as_save_IFS
4461
4462fi
4463fi
4464CC=$ac_cv_prog_CC
4465if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004467$as_echo "$CC" >&6; }
4468else
cristy8b350f62009-11-15 23:12:43 +00004469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004470$as_echo "no" >&6; }
4471fi
4472
4473
4474fi
4475if test -z "$ac_cv_prog_CC"; then
4476 ac_ct_CC=$CC
4477 # Extract the first word of "gcc", so it can be a program name with args.
4478set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004481if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004482 $as_echo_n "(cached) " >&6
4483else
4484 if test -n "$ac_ct_CC"; then
4485 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4486else
4487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4488for as_dir in $PATH
4489do
4490 IFS=$as_save_IFS
4491 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004494 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004496 break 2
4497 fi
4498done
cristy8b350f62009-11-15 23:12:43 +00004499 done
cristy3ed852e2009-09-05 21:47:34 +00004500IFS=$as_save_IFS
4501
4502fi
4503fi
4504ac_ct_CC=$ac_cv_prog_ac_ct_CC
4505if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004507$as_echo "$ac_ct_CC" >&6; }
4508else
cristy8b350f62009-11-15 23:12:43 +00004509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004510$as_echo "no" >&6; }
4511fi
4512
4513 if test "x$ac_ct_CC" = x; then
4514 CC=""
4515 else
4516 case $cross_compiling:$ac_tool_warned in
4517yes:)
cristy8b350f62009-11-15 23:12:43 +00004518{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004519$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4520ac_tool_warned=yes ;;
4521esac
4522 CC=$ac_ct_CC
4523 fi
4524else
4525 CC="$ac_cv_prog_CC"
4526fi
4527
4528if test -z "$CC"; then
4529 if test -n "$ac_tool_prefix"; then
4530 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4531set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004533$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004534if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004535 $as_echo_n "(cached) " >&6
4536else
4537 if test -n "$CC"; then
4538 ac_cv_prog_CC="$CC" # Let the user override the test.
4539else
4540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4541for as_dir in $PATH
4542do
4543 IFS=$as_save_IFS
4544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004547 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004549 break 2
4550 fi
4551done
cristy8b350f62009-11-15 23:12:43 +00004552 done
cristy3ed852e2009-09-05 21:47:34 +00004553IFS=$as_save_IFS
4554
4555fi
4556fi
4557CC=$ac_cv_prog_CC
4558if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004560$as_echo "$CC" >&6; }
4561else
cristy8b350f62009-11-15 23:12:43 +00004562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563$as_echo "no" >&6; }
4564fi
4565
4566
4567 fi
4568fi
4569if test -z "$CC"; then
4570 # Extract the first word of "cc", so it can be a program name with args.
4571set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004574if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004575 $as_echo_n "(cached) " >&6
4576else
4577 if test -n "$CC"; then
4578 ac_cv_prog_CC="$CC" # Let the user override the test.
4579else
4580 ac_prog_rejected=no
4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4582for as_dir in $PATH
4583do
4584 IFS=$as_save_IFS
4585 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004588 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4589 ac_prog_rejected=yes
4590 continue
4591 fi
4592 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004593 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004594 break 2
4595 fi
4596done
cristy8b350f62009-11-15 23:12:43 +00004597 done
cristy3ed852e2009-09-05 21:47:34 +00004598IFS=$as_save_IFS
4599
4600if test $ac_prog_rejected = yes; then
4601 # We found a bogon in the path, so make sure we never use it.
4602 set dummy $ac_cv_prog_CC
4603 shift
4604 if test $# != 0; then
4605 # We chose a different compiler from the bogus one.
4606 # However, it has the same basename, so the bogon will be chosen
4607 # first if we set CC to just the basename; use the full file name.
4608 shift
4609 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4610 fi
4611fi
4612fi
4613fi
4614CC=$ac_cv_prog_CC
4615if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617$as_echo "$CC" >&6; }
4618else
cristy8b350f62009-11-15 23:12:43 +00004619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004620$as_echo "no" >&6; }
4621fi
4622
4623
4624fi
4625if test -z "$CC"; then
4626 if test -n "$ac_tool_prefix"; then
4627 for ac_prog in cl.exe
4628 do
4629 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4630set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004632$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004633if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004634 $as_echo_n "(cached) " >&6
4635else
4636 if test -n "$CC"; then
4637 ac_cv_prog_CC="$CC" # Let the user override the test.
4638else
4639as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4640for as_dir in $PATH
4641do
4642 IFS=$as_save_IFS
4643 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004644 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004646 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004648 break 2
4649 fi
4650done
cristy8b350f62009-11-15 23:12:43 +00004651 done
cristy3ed852e2009-09-05 21:47:34 +00004652IFS=$as_save_IFS
4653
4654fi
4655fi
4656CC=$ac_cv_prog_CC
4657if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004659$as_echo "$CC" >&6; }
4660else
cristy8b350f62009-11-15 23:12:43 +00004661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004662$as_echo "no" >&6; }
4663fi
4664
4665
4666 test -n "$CC" && break
4667 done
4668fi
4669if test -z "$CC"; then
4670 ac_ct_CC=$CC
4671 for ac_prog in cl.exe
4672do
4673 # Extract the first word of "$ac_prog", so it can be a program name with args.
4674set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004675{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004676$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004677if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004678 $as_echo_n "(cached) " >&6
4679else
4680 if test -n "$ac_ct_CC"; then
4681 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4682else
4683as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4684for as_dir in $PATH
4685do
4686 IFS=$as_save_IFS
4687 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004688 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004689 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004690 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004691 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004692 break 2
4693 fi
4694done
cristy8b350f62009-11-15 23:12:43 +00004695 done
cristy3ed852e2009-09-05 21:47:34 +00004696IFS=$as_save_IFS
4697
4698fi
4699fi
4700ac_ct_CC=$ac_cv_prog_ac_ct_CC
4701if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004703$as_echo "$ac_ct_CC" >&6; }
4704else
cristy8b350f62009-11-15 23:12:43 +00004705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004706$as_echo "no" >&6; }
4707fi
4708
4709
4710 test -n "$ac_ct_CC" && break
4711done
4712
4713 if test "x$ac_ct_CC" = x; then
4714 CC=""
4715 else
4716 case $cross_compiling:$ac_tool_warned in
4717yes:)
cristy8b350f62009-11-15 23:12:43 +00004718{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004719$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4720ac_tool_warned=yes ;;
4721esac
4722 CC=$ac_ct_CC
4723 fi
4724fi
4725
4726fi
4727
4728
cristy8b350f62009-11-15 23:12:43 +00004729test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004730$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004731as_fn_error $? "no acceptable C compiler found in \$PATH
4732See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004733
4734# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004736set X $ac_compile
4737ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004738for ac_option in --version -v -V -qversion; do
4739 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004740case "(($ac_try" in
4741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742 *) ac_try_echo=$ac_try;;
4743esac
cristy8b350f62009-11-15 23:12:43 +00004744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745$as_echo "$ac_try_echo"; } >&5
4746 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004747 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004748 if test -s conftest.err; then
4749 sed '10a\
4750... rest of stderr output deleted ...
4751 10q' conftest.err >conftest.er1
4752 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004753 fi
cristycd4c5312009-11-22 01:19:08 +00004754 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004755 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756 test $ac_status = 0; }
4757done
cristy3ed852e2009-09-05 21:47:34 +00004758
cristy8b350f62009-11-15 23:12:43 +00004759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004760/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004761
cristy3ed852e2009-09-05 21:47:34 +00004762int
4763main ()
4764{
4765
4766 ;
4767 return 0;
4768}
4769_ACEOF
4770ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004771ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004772# Try to create an executable without -o first, disregard a.out.
4773# It will help us diagnose broken compilers, and finding out an intuition
4774# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4776$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004777ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4778
4779# The possible output files:
4780ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4781
4782ac_rmfiles=
4783for ac_file in $ac_files
4784do
4785 case $ac_file in
4786 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4787 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4788 esac
4789done
4790rm -f $ac_rmfiles
4791
cristy8b350f62009-11-15 23:12:43 +00004792if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004793case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796esac
cristy8b350f62009-11-15 23:12:43 +00004797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4798$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004799 (eval "$ac_link_default") 2>&5
4800 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4802 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004803 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4804# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4805# in a Makefile. We should not override ac_cv_exeext if it was cached,
4806# so that the user can short-circuit this test for compilers unknown to
4807# Autoconf.
4808for ac_file in $ac_files ''
4809do
4810 test -f "$ac_file" || continue
4811 case $ac_file in
4812 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4813 ;;
4814 [ab].out )
4815 # We found the default executable, but exeext='' is most
4816 # certainly right.
4817 break;;
4818 *.* )
cristy8b350f62009-11-15 23:12:43 +00004819 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004820 then :; else
4821 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4822 fi
4823 # We set ac_cv_exeext here because the later test for it is not
4824 # safe: cross compilers may not add the suffix if given an `-o'
4825 # argument, so we may need to know it at that point already.
4826 # Even if this section looks crufty: it has the advantage of
4827 # actually working.
4828 break;;
4829 * )
4830 break;;
4831 esac
4832done
4833test "$ac_cv_exeext" = no && ac_cv_exeext=
4834
4835else
4836 ac_file=''
4837fi
cristy8b350f62009-11-15 23:12:43 +00004838if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4840$as_echo "no" >&6; }
4841$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004842sed 's/^/| /' conftest.$ac_ext >&5
4843
cristy8b350f62009-11-15 23:12:43 +00004844{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004845$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004846as_fn_error 77 "C compiler cannot create executables
4847See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004848else
4849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4850$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004851fi
cristycd4c5312009-11-22 01:19:08 +00004852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4853$as_echo_n "checking for C compiler default output file name... " >&6; }
4854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4855$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004856ac_exeext=$ac_cv_exeext
4857
cristycd4c5312009-11-22 01:19:08 +00004858rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004859ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004861$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004862if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004863case "(($ac_try" in
4864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4865 *) ac_try_echo=$ac_try;;
4866esac
cristy8b350f62009-11-15 23:12:43 +00004867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4868$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004869 (eval "$ac_link") 2>&5
4870 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4872 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004873 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4874# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4875# work properly (i.e., refer to `conftest.exe'), while it won't with
4876# `rm'.
4877for ac_file in conftest.exe conftest conftest.*; do
4878 test -f "$ac_file" || continue
4879 case $ac_file in
4880 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4881 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4882 break;;
4883 * ) break;;
4884 esac
4885done
4886else
cristy8b350f62009-11-15 23:12:43 +00004887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004889as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4890See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004891fi
cristycd4c5312009-11-22 01:19:08 +00004892rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004894$as_echo "$ac_cv_exeext" >&6; }
4895
4896rm -f conftest.$ac_ext
4897EXEEXT=$ac_cv_exeext
4898ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004899cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900/* end confdefs.h. */
4901#include <stdio.h>
4902int
4903main ()
4904{
4905FILE *f = fopen ("conftest.out", "w");
4906 return ferror (f) || fclose (f) != 0;
4907
4908 ;
4909 return 0;
4910}
4911_ACEOF
4912ac_clean_files="$ac_clean_files conftest.out"
4913# Check that the compiler produces executables we can run. If not, either
4914# the compiler is broken, or we cross compile.
4915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4916$as_echo_n "checking whether we are cross compiling... " >&6; }
4917if test "$cross_compiling" != yes; then
4918 { { ac_try="$ac_link"
4919case "(($ac_try" in
4920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4921 *) ac_try_echo=$ac_try;;
4922esac
4923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4924$as_echo "$ac_try_echo"; } >&5
4925 (eval "$ac_link") 2>&5
4926 ac_status=$?
4927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4928 test $ac_status = 0; }
4929 if { ac_try='./conftest$ac_cv_exeext'
4930 { { case "(($ac_try" in
4931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4932 *) ac_try_echo=$ac_try;;
4933esac
4934eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4935$as_echo "$ac_try_echo"; } >&5
4936 (eval "$ac_try") 2>&5
4937 ac_status=$?
4938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4939 test $ac_status = 0; }; }; then
4940 cross_compiling=no
4941 else
4942 if test "$cross_compiling" = maybe; then
4943 cross_compiling=yes
4944 else
4945 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4946$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004947as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004948If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004949See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004950 fi
4951 fi
4952fi
4953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4954$as_echo "$cross_compiling" >&6; }
4955
4956rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4957ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004959$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004960if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004961 $as_echo_n "(cached) " >&6
4962else
cristy8b350f62009-11-15 23:12:43 +00004963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004964/* end confdefs.h. */
4965
4966int
4967main ()
4968{
4969
4970 ;
4971 return 0;
4972}
4973_ACEOF
4974rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004975if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004976case "(($ac_try" in
4977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4978 *) ac_try_echo=$ac_try;;
4979esac
cristy8b350f62009-11-15 23:12:43 +00004980eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4981$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004982 (eval "$ac_compile") 2>&5
4983 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4985 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004986 for ac_file in conftest.o conftest.obj conftest.*; do
4987 test -f "$ac_file" || continue;
4988 case $ac_file in
4989 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4990 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4991 break;;
4992 esac
4993done
4994else
4995 $as_echo "$as_me: failed program was:" >&5
4996sed 's/^/| /' conftest.$ac_ext >&5
4997
cristy8b350f62009-11-15 23:12:43 +00004998{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004999$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005000as_fn_error $? "cannot compute suffix of object files: cannot compile
5001See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005002fi
cristy3ed852e2009-09-05 21:47:34 +00005003rm -f conftest.$ac_cv_objext conftest.$ac_ext
5004fi
cristy8b350f62009-11-15 23:12:43 +00005005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005006$as_echo "$ac_cv_objext" >&6; }
5007OBJEXT=$ac_cv_objext
5008ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005010$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005011if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005012 $as_echo_n "(cached) " >&6
5013else
cristy8b350f62009-11-15 23:12:43 +00005014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005015/* end confdefs.h. */
5016
5017int
5018main ()
5019{
5020#ifndef __GNUC__
5021 choke me
5022#endif
5023
5024 ;
5025 return 0;
5026}
5027_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005028if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005029 ac_compiler_gnu=yes
5030else
cristy8b350f62009-11-15 23:12:43 +00005031 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005032fi
cristy3ed852e2009-09-05 21:47:34 +00005033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5034ac_cv_c_compiler_gnu=$ac_compiler_gnu
5035
5036fi
cristy8b350f62009-11-15 23:12:43 +00005037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005038$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5039if test $ac_compiler_gnu = yes; then
5040 GCC=yes
5041else
5042 GCC=
5043fi
5044ac_test_CFLAGS=${CFLAGS+set}
5045ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005047$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005048if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005049 $as_echo_n "(cached) " >&6
5050else
5051 ac_save_c_werror_flag=$ac_c_werror_flag
5052 ac_c_werror_flag=yes
5053 ac_cv_prog_cc_g=no
5054 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005056/* end confdefs.h. */
5057
5058int
5059main ()
5060{
5061
5062 ;
5063 return 0;
5064}
5065_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005066if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005067 ac_cv_prog_cc_g=yes
5068else
cristy8b350f62009-11-15 23:12:43 +00005069 CFLAGS=""
5070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005071/* end confdefs.h. */
5072
5073int
5074main ()
5075{
5076
5077 ;
5078 return 0;
5079}
5080_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005081if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005082
cristy8b350f62009-11-15 23:12:43 +00005083else
5084 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005085 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005087/* end confdefs.h. */
5088
5089int
5090main ()
5091{
5092
5093 ;
5094 return 0;
5095}
5096_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005097if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005098 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005099fi
cristy3ed852e2009-09-05 21:47:34 +00005100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5101fi
cristy3ed852e2009-09-05 21:47:34 +00005102rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5103fi
cristy3ed852e2009-09-05 21:47:34 +00005104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5105 ac_c_werror_flag=$ac_save_c_werror_flag
5106fi
cristy8b350f62009-11-15 23:12:43 +00005107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005108$as_echo "$ac_cv_prog_cc_g" >&6; }
5109if test "$ac_test_CFLAGS" = set; then
5110 CFLAGS=$ac_save_CFLAGS
5111elif test $ac_cv_prog_cc_g = yes; then
5112 if test "$GCC" = yes; then
5113 CFLAGS="-g -O2"
5114 else
5115 CFLAGS="-g"
5116 fi
5117else
5118 if test "$GCC" = yes; then
5119 CFLAGS="-O2"
5120 else
5121 CFLAGS=
5122 fi
5123fi
cristy8b350f62009-11-15 23:12:43 +00005124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005125$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005126if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005127 $as_echo_n "(cached) " >&6
5128else
5129 ac_cv_prog_cc_c89=no
5130ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005131cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005132/* end confdefs.h. */
5133#include <stdarg.h>
5134#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005135struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005136/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5137struct buf { int x; };
5138FILE * (*rcsopen) (struct buf *, struct stat *, int);
5139static char *e (p, i)
5140 char **p;
5141 int i;
5142{
5143 return p[i];
5144}
5145static char *f (char * (*g) (char **, int), char **p, ...)
5146{
5147 char *s;
5148 va_list v;
5149 va_start (v,p);
5150 s = g (p, va_arg (v,int));
5151 va_end (v);
5152 return s;
5153}
5154
5155/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5156 function prototypes and stuff, but not '\xHH' hex character constants.
5157 These don't provoke an error unfortunately, instead are silently treated
5158 as 'x'. The following induces an error, until -std is added to get
5159 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5160 array size at least. It's necessary to write '\x00'==0 to get something
5161 that's true only with -std. */
5162int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5163
5164/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5165 inside strings and character constants. */
5166#define FOO(x) 'x'
5167int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5168
5169int test (int i, double x);
5170struct s1 {int (*f) (int a);};
5171struct s2 {int (*f) (double a);};
5172int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5173int argc;
5174char **argv;
5175int
5176main ()
5177{
5178return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5179 ;
5180 return 0;
5181}
5182_ACEOF
5183for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5184 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5185do
5186 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005187 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005188 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005189fi
cristy3ed852e2009-09-05 21:47:34 +00005190rm -f core conftest.err conftest.$ac_objext
5191 test "x$ac_cv_prog_cc_c89" != "xno" && break
5192done
5193rm -f conftest.$ac_ext
5194CC=$ac_save_CC
5195
5196fi
5197# AC_CACHE_VAL
5198case "x$ac_cv_prog_cc_c89" in
5199 x)
cristy8b350f62009-11-15 23:12:43 +00005200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005201$as_echo "none needed" >&6; } ;;
5202 xno)
cristy8b350f62009-11-15 23:12:43 +00005203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005204$as_echo "unsupported" >&6; } ;;
5205 *)
5206 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005208$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5209esac
cristy8b350f62009-11-15 23:12:43 +00005210if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005211
cristy8b350f62009-11-15 23:12:43 +00005212fi
cristy3ed852e2009-09-05 21:47:34 +00005213
5214ac_ext=c
5215ac_cpp='$CPP $CPPFLAGS'
5216ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5217ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5218ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005219
cristy73bd4a52010-10-05 11:24:23 +00005220depcc="$CC" am_compiler_list=
5221
5222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5223$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005224if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005225 $as_echo_n "(cached) " >&6
5226else
5227 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5228 # We make a subdir and do the tests there. Otherwise we can end up
5229 # making bogus files that we don't know about and never remove. For
5230 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005231 # making a dummy file named 'D' -- because '-MD' means "put the output
5232 # in D".
cristy7247bba2012-02-05 16:37:27 +00005233 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005234 mkdir conftest.dir
5235 # Copy depcomp to subdir because otherwise we won't find it if we're
5236 # using a relative directory.
5237 cp "$am_depcomp" conftest.dir
5238 cd conftest.dir
5239 # We will build objects and dependencies in a subdirectory because
5240 # it helps to detect inapplicable dependency modes. For instance
5241 # both Tru64's cc and ICC support -MD to output dependencies as a
5242 # side effect of compilation, but ICC will put the dependencies in
5243 # the current directory while Tru64 will put them in the object
5244 # directory.
5245 mkdir sub
5246
5247 am_cv_CC_dependencies_compiler_type=none
5248 if test "$am_compiler_list" = ""; then
5249 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5250 fi
5251 am__universal=false
5252 case " $depcc " in #(
5253 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5254 esac
5255
5256 for depmode in $am_compiler_list; do
5257 # Setup a source with many dependencies, because some compilers
5258 # like to wrap large dependency lists on column 80 (with \), and
5259 # we should not choose a depcomp mode which is confused by this.
5260 #
5261 # We need to recreate these files for each test, as the compiler may
5262 # overwrite some of them when testing with obscure command lines.
5263 # This happens at least with the AIX C compiler.
5264 : > sub/conftest.c
5265 for i in 1 2 3 4 5 6; do
5266 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005267 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5268 # Solaris 10 /bin/sh.
5269 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005270 done
5271 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5272
cristyc0890a62012-07-19 00:18:20 +00005273 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005274 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005275 # handle '-M -o', and we need to detect this. Also, some Intel
5276 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005277 am__obj=sub/conftest.${OBJEXT-o}
5278 am__minus_obj="-o $am__obj"
5279 case $depmode in
5280 gcc)
5281 # This depmode causes a compiler race in universal mode.
5282 test "$am__universal" = false || continue
5283 ;;
5284 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005285 # After this tag, mechanisms are not by side-effect, so they'll
5286 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005287 if test "x$enable_dependency_tracking" = xyes; then
5288 continue
5289 else
5290 break
5291 fi
5292 ;;
cristy7247bba2012-02-05 16:37:27 +00005293 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005294 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005295 # not run yet. These depmodes are late enough in the game, and
5296 # so weak that their functioning should not be impacted.
5297 am__obj=conftest.${OBJEXT-o}
5298 am__minus_obj=
5299 ;;
5300 none) break ;;
5301 esac
5302 if depmode=$depmode \
5303 source=sub/conftest.c object=$am__obj \
5304 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5305 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5306 >/dev/null 2>conftest.err &&
5307 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5308 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5309 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5310 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5311 # icc doesn't choke on unknown options, it will just issue warnings
5312 # or remarks (even with -Werror). So we grep stderr for any message
5313 # that says an option was ignored or not supported.
5314 # When given -MP, icc 7.0 and 7.1 complain thusly:
5315 # icc: Command line warning: ignoring option '-M'; no argument required
5316 # The diagnosis changed in icc 8.0:
5317 # icc: Command line remark: option '-MP' not supported
5318 if (grep 'ignoring option' conftest.err ||
5319 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5320 am_cv_CC_dependencies_compiler_type=$depmode
5321 break
5322 fi
5323 fi
5324 done
5325
5326 cd ..
5327 rm -rf conftest.dir
5328else
5329 am_cv_CC_dependencies_compiler_type=none
5330fi
5331
5332fi
5333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5334$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5335CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5336
5337 if
5338 test "x$enable_dependency_tracking" != xno \
5339 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5340 am__fastdepCC_TRUE=
5341 am__fastdepCC_FALSE='#'
5342else
5343 am__fastdepCC_TRUE='#'
5344 am__fastdepCC_FALSE=
5345fi
5346
5347
cristy3ed852e2009-09-05 21:47:34 +00005348
cristya0b81c32010-01-22 02:54:33 +00005349ac_ext=c
5350ac_cpp='$CPP $CPPFLAGS'
5351ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5352ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5353ac_compiler_gnu=$ac_cv_c_compiler_gnu
5354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5355$as_echo_n "checking how to run the C preprocessor... " >&6; }
5356# On Suns, sometimes $CPP names a directory.
5357if test -n "$CPP" && test -d "$CPP"; then
5358 CPP=
5359fi
5360if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005361 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005362 $as_echo_n "(cached) " >&6
5363else
5364 # Double quotes because CPP needs to be expanded
5365 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5366 do
5367 ac_preproc_ok=false
5368for ac_c_preproc_warn_flag in '' yes
5369do
5370 # Use a header file that comes with gcc, so configuring glibc
5371 # with a fresh cross-compiler works.
5372 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5373 # <limits.h> exists even on freestanding compilers.
5374 # On the NeXT, cc -E runs the code through the compiler's parser,
5375 # not just through cpp. "Syntax error" is here to catch this case.
5376 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5377/* end confdefs.h. */
5378#ifdef __STDC__
5379# include <limits.h>
5380#else
5381# include <assert.h>
5382#endif
5383 Syntax error
5384_ACEOF
5385if ac_fn_c_try_cpp "$LINENO"; then :
5386
5387else
5388 # Broken: fails on valid input.
5389continue
5390fi
cristyda16f162011-02-19 23:52:17 +00005391rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005392
5393 # OK, works on sane cases. Now check whether nonexistent headers
5394 # can be detected and how.
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h. */
5397#include <ac_nonexistent.h>
5398_ACEOF
5399if ac_fn_c_try_cpp "$LINENO"; then :
5400 # Broken: success on invalid input.
5401continue
5402else
5403 # Passes both tests.
5404ac_preproc_ok=:
5405break
5406fi
cristyda16f162011-02-19 23:52:17 +00005407rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005408
5409done
5410# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005411rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005412if $ac_preproc_ok; then :
5413 break
5414fi
5415
5416 done
5417 ac_cv_prog_CPP=$CPP
5418
5419fi
5420 CPP=$ac_cv_prog_CPP
5421else
5422 ac_cv_prog_CPP=$CPP
5423fi
5424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5425$as_echo "$CPP" >&6; }
5426ac_preproc_ok=false
5427for ac_c_preproc_warn_flag in '' yes
5428do
5429 # Use a header file that comes with gcc, so configuring glibc
5430 # with a fresh cross-compiler works.
5431 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5432 # <limits.h> exists even on freestanding compilers.
5433 # On the NeXT, cc -E runs the code through the compiler's parser,
5434 # not just through cpp. "Syntax error" is here to catch this case.
5435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5436/* end confdefs.h. */
5437#ifdef __STDC__
5438# include <limits.h>
5439#else
5440# include <assert.h>
5441#endif
5442 Syntax error
5443_ACEOF
5444if ac_fn_c_try_cpp "$LINENO"; then :
5445
5446else
5447 # Broken: fails on valid input.
5448continue
5449fi
cristyda16f162011-02-19 23:52:17 +00005450rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005451
5452 # OK, works on sane cases. Now check whether nonexistent headers
5453 # can be detected and how.
5454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5455/* end confdefs.h. */
5456#include <ac_nonexistent.h>
5457_ACEOF
5458if ac_fn_c_try_cpp "$LINENO"; then :
5459 # Broken: success on invalid input.
5460continue
5461else
5462 # Passes both tests.
5463ac_preproc_ok=:
5464break
5465fi
cristyda16f162011-02-19 23:52:17 +00005466rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005467
5468done
5469# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005470rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005471if $ac_preproc_ok; then :
5472
5473else
5474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005476as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5477See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005478fi
5479
5480ac_ext=c
5481ac_cpp='$CPP $CPPFLAGS'
5482ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5483ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5484ac_compiler_gnu=$ac_cv_c_compiler_gnu
5485
5486
5487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5488$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005489if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005490 $as_echo_n "(cached) " >&6
5491else
5492 if test -z "$GREP"; then
5493 ac_path_GREP_found=false
5494 # Loop through the user's path and test for each of PROGNAME-LIST
5495 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5496for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5497do
5498 IFS=$as_save_IFS
5499 test -z "$as_dir" && as_dir=.
5500 for ac_prog in grep ggrep; do
5501 for ac_exec_ext in '' $ac_executable_extensions; do
5502 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005503 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005504# Check for GNU ac_path_GREP and select it if it is found.
5505 # Check for GNU $ac_path_GREP
5506case `"$ac_path_GREP" --version 2>&1` in
5507*GNU*)
5508 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5509*)
5510 ac_count=0
5511 $as_echo_n 0123456789 >"conftest.in"
5512 while :
5513 do
5514 cat "conftest.in" "conftest.in" >"conftest.tmp"
5515 mv "conftest.tmp" "conftest.in"
5516 cp "conftest.in" "conftest.nl"
5517 $as_echo 'GREP' >> "conftest.nl"
5518 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5519 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5520 as_fn_arith $ac_count + 1 && ac_count=$as_val
5521 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5522 # Best one so far, save it but keep looking for a better one
5523 ac_cv_path_GREP="$ac_path_GREP"
5524 ac_path_GREP_max=$ac_count
5525 fi
5526 # 10*(2^10) chars as input seems more than enough
5527 test $ac_count -gt 10 && break
5528 done
5529 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5530esac
5531
5532 $ac_path_GREP_found && break 3
5533 done
5534 done
5535 done
5536IFS=$as_save_IFS
5537 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005538 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005539 fi
5540else
5541 ac_cv_path_GREP=$GREP
5542fi
5543
5544fi
5545{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5546$as_echo "$ac_cv_path_GREP" >&6; }
5547 GREP="$ac_cv_path_GREP"
5548
5549
5550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5551$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005552if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005553 $as_echo_n "(cached) " >&6
5554else
5555 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5556 then ac_cv_path_EGREP="$GREP -E"
5557 else
5558 if test -z "$EGREP"; then
5559 ac_path_EGREP_found=false
5560 # Loop through the user's path and test for each of PROGNAME-LIST
5561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5562for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5563do
5564 IFS=$as_save_IFS
5565 test -z "$as_dir" && as_dir=.
5566 for ac_prog in egrep; do
5567 for ac_exec_ext in '' $ac_executable_extensions; do
5568 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005569 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005570# Check for GNU ac_path_EGREP and select it if it is found.
5571 # Check for GNU $ac_path_EGREP
5572case `"$ac_path_EGREP" --version 2>&1` in
5573*GNU*)
5574 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5575*)
5576 ac_count=0
5577 $as_echo_n 0123456789 >"conftest.in"
5578 while :
5579 do
5580 cat "conftest.in" "conftest.in" >"conftest.tmp"
5581 mv "conftest.tmp" "conftest.in"
5582 cp "conftest.in" "conftest.nl"
5583 $as_echo 'EGREP' >> "conftest.nl"
5584 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5585 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5586 as_fn_arith $ac_count + 1 && ac_count=$as_val
5587 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5588 # Best one so far, save it but keep looking for a better one
5589 ac_cv_path_EGREP="$ac_path_EGREP"
5590 ac_path_EGREP_max=$ac_count
5591 fi
5592 # 10*(2^10) chars as input seems more than enough
5593 test $ac_count -gt 10 && break
5594 done
5595 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5596esac
5597
5598 $ac_path_EGREP_found && break 3
5599 done
5600 done
5601 done
5602IFS=$as_save_IFS
5603 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005604 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005605 fi
5606else
5607 ac_cv_path_EGREP=$EGREP
5608fi
5609
5610 fi
5611fi
5612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5613$as_echo "$ac_cv_path_EGREP" >&6; }
5614 EGREP="$ac_cv_path_EGREP"
5615
5616
5617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5618$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005619if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005620 $as_echo_n "(cached) " >&6
5621else
5622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5623/* end confdefs.h. */
5624#include <stdlib.h>
5625#include <stdarg.h>
5626#include <string.h>
5627#include <float.h>
5628
5629int
5630main ()
5631{
5632
5633 ;
5634 return 0;
5635}
5636_ACEOF
5637if ac_fn_c_try_compile "$LINENO"; then :
5638 ac_cv_header_stdc=yes
5639else
5640 ac_cv_header_stdc=no
5641fi
5642rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5643
5644if test $ac_cv_header_stdc = yes; then
5645 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5647/* end confdefs.h. */
5648#include <string.h>
5649
5650_ACEOF
5651if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5652 $EGREP "memchr" >/dev/null 2>&1; then :
5653
5654else
5655 ac_cv_header_stdc=no
5656fi
5657rm -f conftest*
5658
5659fi
5660
5661if test $ac_cv_header_stdc = yes; then
5662 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5664/* end confdefs.h. */
5665#include <stdlib.h>
5666
5667_ACEOF
5668if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5669 $EGREP "free" >/dev/null 2>&1; then :
5670
5671else
5672 ac_cv_header_stdc=no
5673fi
5674rm -f conftest*
5675
5676fi
5677
5678if test $ac_cv_header_stdc = yes; then
5679 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5680 if test "$cross_compiling" = yes; then :
5681 :
5682else
5683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5684/* end confdefs.h. */
5685#include <ctype.h>
5686#include <stdlib.h>
5687#if ((' ' & 0x0FF) == 0x020)
5688# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5689# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5690#else
5691# define ISLOWER(c) \
5692 (('a' <= (c) && (c) <= 'i') \
5693 || ('j' <= (c) && (c) <= 'r') \
5694 || ('s' <= (c) && (c) <= 'z'))
5695# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5696#endif
5697
5698#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5699int
5700main ()
5701{
5702 int i;
5703 for (i = 0; i < 256; i++)
5704 if (XOR (islower (i), ISLOWER (i))
5705 || toupper (i) != TOUPPER (i))
5706 return 2;
5707 return 0;
5708}
5709_ACEOF
5710if ac_fn_c_try_run "$LINENO"; then :
5711
5712else
5713 ac_cv_header_stdc=no
5714fi
5715rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5716 conftest.$ac_objext conftest.beam conftest.$ac_ext
5717fi
5718
5719fi
5720fi
5721{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5722$as_echo "$ac_cv_header_stdc" >&6; }
5723if test $ac_cv_header_stdc = yes; then
5724
5725$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5726
5727fi
5728
5729# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5730for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5731 inttypes.h stdint.h unistd.h
5732do :
5733 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5734ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5735"
cristy98dddb52010-11-04 00:30:15 +00005736if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005737 cat >>confdefs.h <<_ACEOF
5738#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5739_ACEOF
5740
5741fi
5742
5743done
5744
5745
5746
5747 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00005748if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005749 MINIX=yes
5750else
5751 MINIX=
5752fi
5753
5754
5755 if test "$MINIX" = yes; then
5756
5757$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5758
5759
5760$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5761
5762
5763$as_echo "#define _MINIX 1" >>confdefs.h
5764
5765 fi
5766
5767
5768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5769$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005770if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005771 $as_echo_n "(cached) " >&6
5772else
5773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5774/* end confdefs.h. */
5775
cristy14fefe52012-05-21 00:59:18 +00005776# define __EXTENSIONS__ 1
5777 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005778int
5779main ()
5780{
5781
5782 ;
5783 return 0;
5784}
5785_ACEOF
5786if ac_fn_c_try_compile "$LINENO"; then :
5787 ac_cv_safe_to_define___extensions__=yes
5788else
5789 ac_cv_safe_to_define___extensions__=no
5790fi
5791rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792fi
5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5794$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5795 test $ac_cv_safe_to_define___extensions__ = yes &&
5796 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5797
5798 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5799
5800 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5801
5802 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5803
5804 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5805
5806
5807
5808# Check for programs
5809ac_ext=c
5810ac_cpp='$CPP $CPPFLAGS'
5811ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5812ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5813ac_compiler_gnu=$ac_cv_c_compiler_gnu
5814if test -n "$ac_tool_prefix"; then
5815 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5816set dummy ${ac_tool_prefix}gcc; ac_word=$2
5817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5818$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005819if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005820 $as_echo_n "(cached) " >&6
5821else
5822 if test -n "$CC"; then
5823 ac_cv_prog_CC="$CC" # Let the user override the test.
5824else
5825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5826for as_dir in $PATH
5827do
5828 IFS=$as_save_IFS
5829 test -z "$as_dir" && as_dir=.
5830 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005831 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005832 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5833 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5834 break 2
5835 fi
5836done
5837 done
5838IFS=$as_save_IFS
5839
5840fi
5841fi
5842CC=$ac_cv_prog_CC
5843if test -n "$CC"; then
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5845$as_echo "$CC" >&6; }
5846else
5847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5848$as_echo "no" >&6; }
5849fi
5850
5851
5852fi
5853if test -z "$ac_cv_prog_CC"; then
5854 ac_ct_CC=$CC
5855 # Extract the first word of "gcc", so it can be a program name with args.
5856set dummy gcc; ac_word=$2
5857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005859if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005860 $as_echo_n "(cached) " >&6
5861else
5862 if test -n "$ac_ct_CC"; then
5863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5864else
5865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5866for as_dir in $PATH
5867do
5868 IFS=$as_save_IFS
5869 test -z "$as_dir" && as_dir=.
5870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005872 ac_cv_prog_ac_ct_CC="gcc"
5873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5874 break 2
5875 fi
5876done
5877 done
5878IFS=$as_save_IFS
5879
5880fi
5881fi
5882ac_ct_CC=$ac_cv_prog_ac_ct_CC
5883if test -n "$ac_ct_CC"; then
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5885$as_echo "$ac_ct_CC" >&6; }
5886else
5887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5888$as_echo "no" >&6; }
5889fi
5890
5891 if test "x$ac_ct_CC" = x; then
5892 CC=""
5893 else
5894 case $cross_compiling:$ac_tool_warned in
5895yes:)
5896{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5897$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5898ac_tool_warned=yes ;;
5899esac
5900 CC=$ac_ct_CC
5901 fi
5902else
5903 CC="$ac_cv_prog_CC"
5904fi
5905
5906if test -z "$CC"; then
5907 if test -n "$ac_tool_prefix"; then
5908 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5909set dummy ${ac_tool_prefix}cc; ac_word=$2
5910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005912if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005913 $as_echo_n "(cached) " >&6
5914else
5915 if test -n "$CC"; then
5916 ac_cv_prog_CC="$CC" # Let the user override the test.
5917else
5918as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5919for as_dir in $PATH
5920do
5921 IFS=$as_save_IFS
5922 test -z "$as_dir" && as_dir=.
5923 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005925 ac_cv_prog_CC="${ac_tool_prefix}cc"
5926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5927 break 2
5928 fi
5929done
5930 done
5931IFS=$as_save_IFS
5932
5933fi
5934fi
5935CC=$ac_cv_prog_CC
5936if test -n "$CC"; then
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5938$as_echo "$CC" >&6; }
5939else
5940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5941$as_echo "no" >&6; }
5942fi
5943
5944
5945 fi
5946fi
5947if test -z "$CC"; then
5948 # Extract the first word of "cc", so it can be a program name with args.
5949set dummy cc; ac_word=$2
5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5951$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005952if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005953 $as_echo_n "(cached) " >&6
5954else
5955 if test -n "$CC"; then
5956 ac_cv_prog_CC="$CC" # Let the user override the test.
5957else
5958 ac_prog_rejected=no
5959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960for as_dir in $PATH
5961do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005966 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5967 ac_prog_rejected=yes
5968 continue
5969 fi
5970 ac_cv_prog_CC="cc"
5971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5972 break 2
5973 fi
5974done
5975 done
5976IFS=$as_save_IFS
5977
5978if test $ac_prog_rejected = yes; then
5979 # We found a bogon in the path, so make sure we never use it.
5980 set dummy $ac_cv_prog_CC
5981 shift
5982 if test $# != 0; then
5983 # We chose a different compiler from the bogus one.
5984 # However, it has the same basename, so the bogon will be chosen
5985 # first if we set CC to just the basename; use the full file name.
5986 shift
5987 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5988 fi
5989fi
5990fi
5991fi
5992CC=$ac_cv_prog_CC
5993if test -n "$CC"; then
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5995$as_echo "$CC" >&6; }
5996else
5997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5998$as_echo "no" >&6; }
5999fi
6000
6001
6002fi
6003if test -z "$CC"; then
6004 if test -n "$ac_tool_prefix"; then
6005 for ac_prog in cl.exe
6006 do
6007 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6008set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6010$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006011if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006012 $as_echo_n "(cached) " >&6
6013else
6014 if test -n "$CC"; then
6015 ac_cv_prog_CC="$CC" # Let the user override the test.
6016else
6017as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6018for as_dir in $PATH
6019do
6020 IFS=$as_save_IFS
6021 test -z "$as_dir" && as_dir=.
6022 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006023 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006024 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6025 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6026 break 2
6027 fi
6028done
6029 done
6030IFS=$as_save_IFS
6031
6032fi
6033fi
6034CC=$ac_cv_prog_CC
6035if test -n "$CC"; then
6036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6037$as_echo "$CC" >&6; }
6038else
6039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6040$as_echo "no" >&6; }
6041fi
6042
6043
6044 test -n "$CC" && break
6045 done
6046fi
6047if test -z "$CC"; then
6048 ac_ct_CC=$CC
6049 for ac_prog in cl.exe
6050do
6051 # Extract the first word of "$ac_prog", so it can be a program name with args.
6052set dummy $ac_prog; ac_word=$2
6053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6054$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006055if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006056 $as_echo_n "(cached) " >&6
6057else
6058 if test -n "$ac_ct_CC"; then
6059 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6060else
6061as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6062for as_dir in $PATH
6063do
6064 IFS=$as_save_IFS
6065 test -z "$as_dir" && as_dir=.
6066 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006067 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006068 ac_cv_prog_ac_ct_CC="$ac_prog"
6069 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6070 break 2
6071 fi
6072done
6073 done
6074IFS=$as_save_IFS
6075
6076fi
6077fi
6078ac_ct_CC=$ac_cv_prog_ac_ct_CC
6079if test -n "$ac_ct_CC"; then
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6081$as_echo "$ac_ct_CC" >&6; }
6082else
6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6084$as_echo "no" >&6; }
6085fi
6086
6087
6088 test -n "$ac_ct_CC" && break
6089done
6090
6091 if test "x$ac_ct_CC" = x; then
6092 CC=""
6093 else
6094 case $cross_compiling:$ac_tool_warned in
6095yes:)
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6097$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6098ac_tool_warned=yes ;;
6099esac
6100 CC=$ac_ct_CC
6101 fi
6102fi
6103
6104fi
6105
6106
6107test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6108$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006109as_fn_error $? "no acceptable C compiler found in \$PATH
6110See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006111
6112# Provide some information about the compiler.
6113$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6114set X $ac_compile
6115ac_compiler=$2
6116for ac_option in --version -v -V -qversion; do
6117 { { ac_try="$ac_compiler $ac_option >&5"
6118case "(($ac_try" in
6119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6120 *) ac_try_echo=$ac_try;;
6121esac
6122eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6123$as_echo "$ac_try_echo"; } >&5
6124 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6125 ac_status=$?
6126 if test -s conftest.err; then
6127 sed '10a\
6128... rest of stderr output deleted ...
6129 10q' conftest.err >conftest.er1
6130 cat conftest.er1 >&5
6131 fi
6132 rm -f conftest.er1 conftest.err
6133 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6134 test $ac_status = 0; }
6135done
6136
6137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6138$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006139if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006140 $as_echo_n "(cached) " >&6
6141else
6142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6143/* end confdefs.h. */
6144
6145int
6146main ()
6147{
6148#ifndef __GNUC__
6149 choke me
6150#endif
6151
6152 ;
6153 return 0;
6154}
6155_ACEOF
6156if ac_fn_c_try_compile "$LINENO"; then :
6157 ac_compiler_gnu=yes
6158else
6159 ac_compiler_gnu=no
6160fi
6161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6162ac_cv_c_compiler_gnu=$ac_compiler_gnu
6163
6164fi
6165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6166$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6167if test $ac_compiler_gnu = yes; then
6168 GCC=yes
6169else
6170 GCC=
6171fi
6172ac_test_CFLAGS=${CFLAGS+set}
6173ac_save_CFLAGS=$CFLAGS
6174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6175$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006176if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006177 $as_echo_n "(cached) " >&6
6178else
6179 ac_save_c_werror_flag=$ac_c_werror_flag
6180 ac_c_werror_flag=yes
6181 ac_cv_prog_cc_g=no
6182 CFLAGS="-g"
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185
6186int
6187main ()
6188{
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195 ac_cv_prog_cc_g=yes
6196else
6197 CFLAGS=""
6198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6199/* end confdefs.h. */
6200
6201int
6202main ()
6203{
6204
6205 ;
6206 return 0;
6207}
6208_ACEOF
6209if ac_fn_c_try_compile "$LINENO"; then :
6210
6211else
6212 ac_c_werror_flag=$ac_save_c_werror_flag
6213 CFLAGS="-g"
6214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6215/* end confdefs.h. */
6216
6217int
6218main ()
6219{
6220
6221 ;
6222 return 0;
6223}
6224_ACEOF
6225if ac_fn_c_try_compile "$LINENO"; then :
6226 ac_cv_prog_cc_g=yes
6227fi
6228rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6229fi
6230rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6231fi
6232rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6233 ac_c_werror_flag=$ac_save_c_werror_flag
6234fi
6235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6236$as_echo "$ac_cv_prog_cc_g" >&6; }
6237if test "$ac_test_CFLAGS" = set; then
6238 CFLAGS=$ac_save_CFLAGS
6239elif test $ac_cv_prog_cc_g = yes; then
6240 if test "$GCC" = yes; then
6241 CFLAGS="-g -O2"
6242 else
6243 CFLAGS="-g"
6244 fi
6245else
6246 if test "$GCC" = yes; then
6247 CFLAGS="-O2"
6248 else
6249 CFLAGS=
6250 fi
6251fi
6252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6253$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006254if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006255 $as_echo_n "(cached) " >&6
6256else
6257 ac_cv_prog_cc_c89=no
6258ac_save_CC=$CC
6259cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260/* end confdefs.h. */
6261#include <stdarg.h>
6262#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006263struct stat;
cristya0b81c32010-01-22 02:54:33 +00006264/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6265struct buf { int x; };
6266FILE * (*rcsopen) (struct buf *, struct stat *, int);
6267static char *e (p, i)
6268 char **p;
6269 int i;
6270{
6271 return p[i];
6272}
6273static char *f (char * (*g) (char **, int), char **p, ...)
6274{
6275 char *s;
6276 va_list v;
6277 va_start (v,p);
6278 s = g (p, va_arg (v,int));
6279 va_end (v);
6280 return s;
6281}
6282
6283/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6284 function prototypes and stuff, but not '\xHH' hex character constants.
6285 These don't provoke an error unfortunately, instead are silently treated
6286 as 'x'. The following induces an error, until -std is added to get
6287 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6288 array size at least. It's necessary to write '\x00'==0 to get something
6289 that's true only with -std. */
6290int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6291
6292/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6293 inside strings and character constants. */
6294#define FOO(x) 'x'
6295int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6296
6297int test (int i, double x);
6298struct s1 {int (*f) (int a);};
6299struct s2 {int (*f) (double a);};
6300int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6301int argc;
6302char **argv;
6303int
6304main ()
6305{
6306return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6307 ;
6308 return 0;
6309}
6310_ACEOF
6311for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6312 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6313do
6314 CC="$ac_save_CC $ac_arg"
6315 if ac_fn_c_try_compile "$LINENO"; then :
6316 ac_cv_prog_cc_c89=$ac_arg
6317fi
6318rm -f core conftest.err conftest.$ac_objext
6319 test "x$ac_cv_prog_cc_c89" != "xno" && break
6320done
6321rm -f conftest.$ac_ext
6322CC=$ac_save_CC
6323
6324fi
6325# AC_CACHE_VAL
6326case "x$ac_cv_prog_cc_c89" in
6327 x)
6328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6329$as_echo "none needed" >&6; } ;;
6330 xno)
6331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6332$as_echo "unsupported" >&6; } ;;
6333 *)
6334 CC="$CC $ac_cv_prog_cc_c89"
6335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6336$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6337esac
6338if test "x$ac_cv_prog_cc_c89" != xno; then :
6339
6340fi
6341
6342ac_ext=c
6343ac_cpp='$CPP $CPPFLAGS'
6344ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6345ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6346ac_compiler_gnu=$ac_cv_c_compiler_gnu
6347
cristy73bd4a52010-10-05 11:24:23 +00006348depcc="$CC" am_compiler_list=
6349
6350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6351$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006352if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006353 $as_echo_n "(cached) " >&6
6354else
6355 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6356 # We make a subdir and do the tests there. Otherwise we can end up
6357 # making bogus files that we don't know about and never remove. For
6358 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006359 # making a dummy file named 'D' -- because '-MD' means "put the output
6360 # in D".
cristy7247bba2012-02-05 16:37:27 +00006361 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006362 mkdir conftest.dir
6363 # Copy depcomp to subdir because otherwise we won't find it if we're
6364 # using a relative directory.
6365 cp "$am_depcomp" conftest.dir
6366 cd conftest.dir
6367 # We will build objects and dependencies in a subdirectory because
6368 # it helps to detect inapplicable dependency modes. For instance
6369 # both Tru64's cc and ICC support -MD to output dependencies as a
6370 # side effect of compilation, but ICC will put the dependencies in
6371 # the current directory while Tru64 will put them in the object
6372 # directory.
6373 mkdir sub
6374
6375 am_cv_CC_dependencies_compiler_type=none
6376 if test "$am_compiler_list" = ""; then
6377 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6378 fi
6379 am__universal=false
6380 case " $depcc " in #(
6381 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6382 esac
6383
6384 for depmode in $am_compiler_list; do
6385 # Setup a source with many dependencies, because some compilers
6386 # like to wrap large dependency lists on column 80 (with \), and
6387 # we should not choose a depcomp mode which is confused by this.
6388 #
6389 # We need to recreate these files for each test, as the compiler may
6390 # overwrite some of them when testing with obscure command lines.
6391 # This happens at least with the AIX C compiler.
6392 : > sub/conftest.c
6393 for i in 1 2 3 4 5 6; do
6394 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006395 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6396 # Solaris 10 /bin/sh.
6397 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006398 done
6399 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6400
cristyc0890a62012-07-19 00:18:20 +00006401 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006402 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006403 # handle '-M -o', and we need to detect this. Also, some Intel
6404 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006405 am__obj=sub/conftest.${OBJEXT-o}
6406 am__minus_obj="-o $am__obj"
6407 case $depmode in
6408 gcc)
6409 # This depmode causes a compiler race in universal mode.
6410 test "$am__universal" = false || continue
6411 ;;
6412 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006413 # After this tag, mechanisms are not by side-effect, so they'll
6414 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006415 if test "x$enable_dependency_tracking" = xyes; then
6416 continue
6417 else
6418 break
6419 fi
6420 ;;
cristy7247bba2012-02-05 16:37:27 +00006421 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006422 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006423 # not run yet. These depmodes are late enough in the game, and
6424 # so weak that their functioning should not be impacted.
6425 am__obj=conftest.${OBJEXT-o}
6426 am__minus_obj=
6427 ;;
6428 none) break ;;
6429 esac
6430 if depmode=$depmode \
6431 source=sub/conftest.c object=$am__obj \
6432 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6433 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6434 >/dev/null 2>conftest.err &&
6435 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6436 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6437 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6438 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6439 # icc doesn't choke on unknown options, it will just issue warnings
6440 # or remarks (even with -Werror). So we grep stderr for any message
6441 # that says an option was ignored or not supported.
6442 # When given -MP, icc 7.0 and 7.1 complain thusly:
6443 # icc: Command line warning: ignoring option '-M'; no argument required
6444 # The diagnosis changed in icc 8.0:
6445 # icc: Command line remark: option '-MP' not supported
6446 if (grep 'ignoring option' conftest.err ||
6447 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6448 am_cv_CC_dependencies_compiler_type=$depmode
6449 break
6450 fi
6451 fi
6452 done
6453
6454 cd ..
6455 rm -rf conftest.dir
6456else
6457 am_cv_CC_dependencies_compiler_type=none
6458fi
6459
6460fi
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6462$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6463CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6464
6465 if
6466 test "x$enable_dependency_tracking" != xno \
6467 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6468 am__fastdepCC_TRUE=
6469 am__fastdepCC_FALSE='#'
6470else
6471 am__fastdepCC_TRUE='#'
6472 am__fastdepCC_FALSE=
6473fi
6474
6475
cristy95646052009-11-28 23:05:30 +00006476ac_ext=cpp
6477ac_cpp='$CXXCPP $CPPFLAGS'
6478ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6479ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6480ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6481if test -z "$CXX"; then
6482 if test -n "$CCC"; then
6483 CXX=$CCC
6484 else
6485 if test -n "$ac_tool_prefix"; then
6486 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6487 do
6488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6489set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006492if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006493 $as_echo_n "(cached) " >&6
6494else
6495 if test -n "$CXX"; then
6496 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6497else
6498as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499for as_dir in $PATH
6500do
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006505 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6508 fi
6509done
6510 done
6511IFS=$as_save_IFS
6512
6513fi
6514fi
6515CXX=$ac_cv_prog_CXX
6516if test -n "$CXX"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6518$as_echo "$CXX" >&6; }
6519else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521$as_echo "no" >&6; }
6522fi
6523
6524
6525 test -n "$CXX" && break
6526 done
6527fi
6528if test -z "$CXX"; then
6529 ac_ct_CXX=$CXX
6530 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6531do
6532 # Extract the first word of "$ac_prog", so it can be a program name with args.
6533set dummy $ac_prog; ac_word=$2
6534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6535$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006536if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006537 $as_echo_n "(cached) " >&6
6538else
6539 if test -n "$ac_ct_CXX"; then
6540 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6541else
6542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6543for as_dir in $PATH
6544do
6545 IFS=$as_save_IFS
6546 test -z "$as_dir" && as_dir=.
6547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006549 ac_cv_prog_ac_ct_CXX="$ac_prog"
6550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6551 break 2
6552 fi
6553done
6554 done
6555IFS=$as_save_IFS
6556
6557fi
6558fi
6559ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6560if test -n "$ac_ct_CXX"; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6562$as_echo "$ac_ct_CXX" >&6; }
6563else
6564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6565$as_echo "no" >&6; }
6566fi
6567
6568
6569 test -n "$ac_ct_CXX" && break
6570done
6571
6572 if test "x$ac_ct_CXX" = x; then
6573 CXX="g++"
6574 else
6575 case $cross_compiling:$ac_tool_warned in
6576yes:)
6577{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6578$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6579ac_tool_warned=yes ;;
6580esac
6581 CXX=$ac_ct_CXX
6582 fi
6583fi
6584
6585 fi
6586fi
6587# Provide some information about the compiler.
6588$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6589set X $ac_compile
6590ac_compiler=$2
6591for ac_option in --version -v -V -qversion; do
6592 { { ac_try="$ac_compiler $ac_option >&5"
6593case "(($ac_try" in
6594 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6595 *) ac_try_echo=$ac_try;;
6596esac
6597eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6598$as_echo "$ac_try_echo"; } >&5
6599 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6600 ac_status=$?
6601 if test -s conftest.err; then
6602 sed '10a\
6603... rest of stderr output deleted ...
6604 10q' conftest.err >conftest.er1
6605 cat conftest.er1 >&5
6606 fi
6607 rm -f conftest.er1 conftest.err
6608 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6609 test $ac_status = 0; }
6610done
6611
6612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6613$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006614if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006615 $as_echo_n "(cached) " >&6
6616else
6617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6618/* end confdefs.h. */
6619
6620int
6621main ()
6622{
6623#ifndef __GNUC__
6624 choke me
6625#endif
6626
6627 ;
6628 return 0;
6629}
6630_ACEOF
6631if ac_fn_cxx_try_compile "$LINENO"; then :
6632 ac_compiler_gnu=yes
6633else
6634 ac_compiler_gnu=no
6635fi
6636rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6637ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6638
6639fi
6640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6641$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6642if test $ac_compiler_gnu = yes; then
6643 GXX=yes
6644else
6645 GXX=
6646fi
6647ac_test_CXXFLAGS=${CXXFLAGS+set}
6648ac_save_CXXFLAGS=$CXXFLAGS
6649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6650$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006651if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006652 $as_echo_n "(cached) " >&6
6653else
6654 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6655 ac_cxx_werror_flag=yes
6656 ac_cv_prog_cxx_g=no
6657 CXXFLAGS="-g"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h. */
6660
6661int
6662main ()
6663{
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669if ac_fn_cxx_try_compile "$LINENO"; then :
6670 ac_cv_prog_cxx_g=yes
6671else
6672 CXXFLAGS=""
6673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6674/* end confdefs.h. */
6675
6676int
6677main ()
6678{
6679
6680 ;
6681 return 0;
6682}
6683_ACEOF
6684if ac_fn_cxx_try_compile "$LINENO"; then :
6685
6686else
6687 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6688 CXXFLAGS="-g"
6689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6690/* end confdefs.h. */
6691
6692int
6693main ()
6694{
6695
6696 ;
6697 return 0;
6698}
6699_ACEOF
6700if ac_fn_cxx_try_compile "$LINENO"; then :
6701 ac_cv_prog_cxx_g=yes
6702fi
6703rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6704fi
6705rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6706fi
6707rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6708 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6709fi
6710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6711$as_echo "$ac_cv_prog_cxx_g" >&6; }
6712if test "$ac_test_CXXFLAGS" = set; then
6713 CXXFLAGS=$ac_save_CXXFLAGS
6714elif test $ac_cv_prog_cxx_g = yes; then
6715 if test "$GXX" = yes; then
6716 CXXFLAGS="-g -O2"
6717 else
6718 CXXFLAGS="-g"
6719 fi
6720else
6721 if test "$GXX" = yes; then
6722 CXXFLAGS="-O2"
6723 else
6724 CXXFLAGS=
6725 fi
6726fi
6727ac_ext=c
6728ac_cpp='$CPP $CPPFLAGS'
6729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6731ac_compiler_gnu=$ac_cv_c_compiler_gnu
6732
cristy73bd4a52010-10-05 11:24:23 +00006733depcc="$CXX" am_compiler_list=
6734
6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6736$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006737if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006738 $as_echo_n "(cached) " >&6
6739else
6740 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6741 # We make a subdir and do the tests there. Otherwise we can end up
6742 # making bogus files that we don't know about and never remove. For
6743 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006744 # making a dummy file named 'D' -- because '-MD' means "put the output
6745 # in D".
cristy7247bba2012-02-05 16:37:27 +00006746 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006747 mkdir conftest.dir
6748 # Copy depcomp to subdir because otherwise we won't find it if we're
6749 # using a relative directory.
6750 cp "$am_depcomp" conftest.dir
6751 cd conftest.dir
6752 # We will build objects and dependencies in a subdirectory because
6753 # it helps to detect inapplicable dependency modes. For instance
6754 # both Tru64's cc and ICC support -MD to output dependencies as a
6755 # side effect of compilation, but ICC will put the dependencies in
6756 # the current directory while Tru64 will put them in the object
6757 # directory.
6758 mkdir sub
6759
6760 am_cv_CXX_dependencies_compiler_type=none
6761 if test "$am_compiler_list" = ""; then
6762 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6763 fi
6764 am__universal=false
6765 case " $depcc " in #(
6766 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6767 esac
6768
6769 for depmode in $am_compiler_list; do
6770 # Setup a source with many dependencies, because some compilers
6771 # like to wrap large dependency lists on column 80 (with \), and
6772 # we should not choose a depcomp mode which is confused by this.
6773 #
6774 # We need to recreate these files for each test, as the compiler may
6775 # overwrite some of them when testing with obscure command lines.
6776 # This happens at least with the AIX C compiler.
6777 : > sub/conftest.c
6778 for i in 1 2 3 4 5 6; do
6779 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006780 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6781 # Solaris 10 /bin/sh.
6782 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006783 done
6784 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6785
cristyc0890a62012-07-19 00:18:20 +00006786 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006787 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006788 # handle '-M -o', and we need to detect this. Also, some Intel
6789 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006790 am__obj=sub/conftest.${OBJEXT-o}
6791 am__minus_obj="-o $am__obj"
6792 case $depmode in
6793 gcc)
6794 # This depmode causes a compiler race in universal mode.
6795 test "$am__universal" = false || continue
6796 ;;
6797 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006798 # After this tag, mechanisms are not by side-effect, so they'll
6799 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006800 if test "x$enable_dependency_tracking" = xyes; then
6801 continue
6802 else
6803 break
6804 fi
6805 ;;
cristy7247bba2012-02-05 16:37:27 +00006806 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006807 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006808 # not run yet. These depmodes are late enough in the game, and
6809 # so weak that their functioning should not be impacted.
6810 am__obj=conftest.${OBJEXT-o}
6811 am__minus_obj=
6812 ;;
6813 none) break ;;
6814 esac
6815 if depmode=$depmode \
6816 source=sub/conftest.c object=$am__obj \
6817 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6818 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6819 >/dev/null 2>conftest.err &&
6820 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6821 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6822 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6823 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6824 # icc doesn't choke on unknown options, it will just issue warnings
6825 # or remarks (even with -Werror). So we grep stderr for any message
6826 # that says an option was ignored or not supported.
6827 # When given -MP, icc 7.0 and 7.1 complain thusly:
6828 # icc: Command line warning: ignoring option '-M'; no argument required
6829 # The diagnosis changed in icc 8.0:
6830 # icc: Command line remark: option '-MP' not supported
6831 if (grep 'ignoring option' conftest.err ||
6832 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6833 am_cv_CXX_dependencies_compiler_type=$depmode
6834 break
6835 fi
6836 fi
6837 done
6838
6839 cd ..
6840 rm -rf conftest.dir
6841else
6842 am_cv_CXX_dependencies_compiler_type=none
6843fi
6844
6845fi
6846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6847$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6848CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6849
6850 if
6851 test "x$enable_dependency_tracking" != xno \
6852 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6853 am__fastdepCXX_TRUE=
6854 am__fastdepCXX_FALSE='#'
6855else
6856 am__fastdepCXX_TRUE='#'
6857 am__fastdepCXX_FALSE=
6858fi
6859
6860
cristy8b350f62009-11-15 23:12:43 +00006861 case $ac_cv_prog_cc_stdc in #(
6862 no) :
6863 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6864 *) :
6865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006866$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006867if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006868 $as_echo_n "(cached) " >&6
6869else
6870 ac_cv_prog_cc_c99=no
6871ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006872cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006873/* end confdefs.h. */
6874#include <stdarg.h>
6875#include <stdbool.h>
6876#include <stdlib.h>
6877#include <wchar.h>
6878#include <stdio.h>
6879
6880// Check varargs macros. These examples are taken from C99 6.10.3.5.
6881#define debug(...) fprintf (stderr, __VA_ARGS__)
6882#define showlist(...) puts (#__VA_ARGS__)
6883#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6884static void
6885test_varargs_macros (void)
6886{
6887 int x = 1234;
6888 int y = 5678;
6889 debug ("Flag");
6890 debug ("X = %d\n", x);
6891 showlist (The first, second, and third items.);
6892 report (x>y, "x is %d but y is %d", x, y);
6893}
6894
6895// Check long long types.
6896#define BIG64 18446744073709551615ull
6897#define BIG32 4294967295ul
6898#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6899#if !BIG_OK
6900 your preprocessor is broken;
6901#endif
6902#if BIG_OK
6903#else
6904 your preprocessor is broken;
6905#endif
6906static long long int bignum = -9223372036854775807LL;
6907static unsigned long long int ubignum = BIG64;
6908
6909struct incomplete_array
6910{
6911 int datasize;
6912 double data[];
6913};
6914
6915struct named_init {
6916 int number;
6917 const wchar_t *name;
6918 double average;
6919};
6920
6921typedef const char *ccp;
6922
6923static inline int
6924test_restrict (ccp restrict text)
6925{
6926 // See if C++-style comments work.
6927 // Iterate through items via the restricted pointer.
6928 // Also check for declarations in for loops.
6929 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6930 continue;
6931 return 0;
6932}
6933
6934// Check varargs and va_copy.
6935static void
6936test_varargs (const char *format, ...)
6937{
6938 va_list args;
6939 va_start (args, format);
6940 va_list args_copy;
6941 va_copy (args_copy, args);
6942
6943 const char *str;
6944 int number;
6945 float fnumber;
6946
6947 while (*format)
6948 {
6949 switch (*format++)
6950 {
6951 case 's': // string
6952 str = va_arg (args_copy, const char *);
6953 break;
6954 case 'd': // int
6955 number = va_arg (args_copy, int);
6956 break;
6957 case 'f': // float
6958 fnumber = va_arg (args_copy, double);
6959 break;
6960 default:
6961 break;
6962 }
6963 }
6964 va_end (args_copy);
6965 va_end (args);
6966}
6967
6968int
6969main ()
6970{
6971
6972 // Check bool.
6973 _Bool success = false;
6974
6975 // Check restrict.
6976 if (test_restrict ("String literal") == 0)
6977 success = true;
6978 char *restrict newvar = "Another string";
6979
6980 // Check varargs.
6981 test_varargs ("s, d' f .", "string", 65, 34.234);
6982 test_varargs_macros ();
6983
6984 // Check flexible array members.
6985 struct incomplete_array *ia =
6986 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6987 ia->datasize = 10;
6988 for (int i = 0; i < ia->datasize; ++i)
6989 ia->data[i] = i * 1.234;
6990
6991 // Check named initializers.
6992 struct named_init ni = {
6993 .number = 34,
6994 .name = L"Test wide string",
6995 .average = 543.34343,
6996 };
6997
6998 ni.number = 58;
6999
7000 int dynamic_array[ni.number];
7001 dynamic_array[ni.number - 1] = 543;
7002
7003 // work around unused variable warnings
7004 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7005 || dynamic_array[ni.number - 1] != 543);
7006
7007 ;
7008 return 0;
7009}
7010_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007011for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007012do
7013 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007014 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007015 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007016fi
cristy3ed852e2009-09-05 21:47:34 +00007017rm -f core conftest.err conftest.$ac_objext
7018 test "x$ac_cv_prog_cc_c99" != "xno" && break
7019done
7020rm -f conftest.$ac_ext
7021CC=$ac_save_CC
7022
7023fi
7024# AC_CACHE_VAL
7025case "x$ac_cv_prog_cc_c99" in
7026 x)
cristy8b350f62009-11-15 23:12:43 +00007027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007028$as_echo "none needed" >&6; } ;;
7029 xno)
cristy8b350f62009-11-15 23:12:43 +00007030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007031$as_echo "unsupported" >&6; } ;;
7032 *)
7033 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007035$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7036esac
cristy8b350f62009-11-15 23:12:43 +00007037if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007038 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7039else
cristy8b350f62009-11-15 23:12:43 +00007040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007041$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007042if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007043 $as_echo_n "(cached) " >&6
7044else
7045 ac_cv_prog_cc_c89=no
7046ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007047cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007048/* end confdefs.h. */
7049#include <stdarg.h>
7050#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007051struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007052/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7053struct buf { int x; };
7054FILE * (*rcsopen) (struct buf *, struct stat *, int);
7055static char *e (p, i)
7056 char **p;
7057 int i;
7058{
7059 return p[i];
7060}
7061static char *f (char * (*g) (char **, int), char **p, ...)
7062{
7063 char *s;
7064 va_list v;
7065 va_start (v,p);
7066 s = g (p, va_arg (v,int));
7067 va_end (v);
7068 return s;
7069}
7070
7071/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7072 function prototypes and stuff, but not '\xHH' hex character constants.
7073 These don't provoke an error unfortunately, instead are silently treated
7074 as 'x'. The following induces an error, until -std is added to get
7075 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7076 array size at least. It's necessary to write '\x00'==0 to get something
7077 that's true only with -std. */
7078int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7079
7080/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7081 inside strings and character constants. */
7082#define FOO(x) 'x'
7083int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7084
7085int test (int i, double x);
7086struct s1 {int (*f) (int a);};
7087struct s2 {int (*f) (double a);};
7088int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7089int argc;
7090char **argv;
7091int
7092main ()
7093{
7094return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7095 ;
7096 return 0;
7097}
7098_ACEOF
7099for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7100 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7101do
7102 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007103 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007104 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007105fi
cristy3ed852e2009-09-05 21:47:34 +00007106rm -f core conftest.err conftest.$ac_objext
7107 test "x$ac_cv_prog_cc_c89" != "xno" && break
7108done
7109rm -f conftest.$ac_ext
7110CC=$ac_save_CC
7111
7112fi
7113# AC_CACHE_VAL
7114case "x$ac_cv_prog_cc_c89" in
7115 x)
cristy8b350f62009-11-15 23:12:43 +00007116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007117$as_echo "none needed" >&6; } ;;
7118 xno)
cristy8b350f62009-11-15 23:12:43 +00007119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007120$as_echo "unsupported" >&6; } ;;
7121 *)
7122 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007124$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7125esac
cristy8b350f62009-11-15 23:12:43 +00007126if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007127 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7128else
7129 ac_cv_prog_cc_stdc=no
7130fi
7131
cristy3ed852e2009-09-05 21:47:34 +00007132fi
cristy3ed852e2009-09-05 21:47:34 +00007133 ;;
7134esac
cristy8b350f62009-11-15 23:12:43 +00007135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007136$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007137 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007138 $as_echo_n "(cached) " >&6
7139fi
7140
cristy8b350f62009-11-15 23:12:43 +00007141 case $ac_cv_prog_cc_stdc in #(
7142 no) :
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7144$as_echo "unsupported" >&6; } ;; #(
7145 '') :
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7147$as_echo "none needed" >&6; } ;; #(
7148 *) :
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007150$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7151esac
7152
cristy3ed852e2009-09-05 21:47:34 +00007153ac_ext=c
7154ac_cpp='$CPP $CPPFLAGS'
7155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7157ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007159$as_echo_n "checking how to run the C preprocessor... " >&6; }
7160# On Suns, sometimes $CPP names a directory.
7161if test -n "$CPP" && test -d "$CPP"; then
7162 CPP=
7163fi
7164if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007165 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007166 $as_echo_n "(cached) " >&6
7167else
7168 # Double quotes because CPP needs to be expanded
7169 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7170 do
7171 ac_preproc_ok=false
7172for ac_c_preproc_warn_flag in '' yes
7173do
7174 # Use a header file that comes with gcc, so configuring glibc
7175 # with a fresh cross-compiler works.
7176 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7177 # <limits.h> exists even on freestanding compilers.
7178 # On the NeXT, cc -E runs the code through the compiler's parser,
7179 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007181/* end confdefs.h. */
7182#ifdef __STDC__
7183# include <limits.h>
7184#else
7185# include <assert.h>
7186#endif
7187 Syntax error
7188_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007189if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007190
cristy8b350f62009-11-15 23:12:43 +00007191else
cristy3ed852e2009-09-05 21:47:34 +00007192 # Broken: fails on valid input.
7193continue
7194fi
cristyda16f162011-02-19 23:52:17 +00007195rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007196
7197 # OK, works on sane cases. Now check whether nonexistent headers
7198 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007200/* end confdefs.h. */
7201#include <ac_nonexistent.h>
7202_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007203if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007204 # Broken: success on invalid input.
7205continue
7206else
cristy3ed852e2009-09-05 21:47:34 +00007207 # Passes both tests.
7208ac_preproc_ok=:
7209break
7210fi
cristyda16f162011-02-19 23:52:17 +00007211rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007212
7213done
7214# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007215rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007216if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007217 break
7218fi
7219
7220 done
7221 ac_cv_prog_CPP=$CPP
7222
7223fi
7224 CPP=$ac_cv_prog_CPP
7225else
7226 ac_cv_prog_CPP=$CPP
7227fi
cristy8b350f62009-11-15 23:12:43 +00007228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007229$as_echo "$CPP" >&6; }
7230ac_preproc_ok=false
7231for ac_c_preproc_warn_flag in '' yes
7232do
7233 # Use a header file that comes with gcc, so configuring glibc
7234 # with a fresh cross-compiler works.
7235 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7236 # <limits.h> exists even on freestanding compilers.
7237 # On the NeXT, cc -E runs the code through the compiler's parser,
7238 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007240/* end confdefs.h. */
7241#ifdef __STDC__
7242# include <limits.h>
7243#else
7244# include <assert.h>
7245#endif
7246 Syntax error
7247_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007248if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007249
cristy8b350f62009-11-15 23:12:43 +00007250else
cristy3ed852e2009-09-05 21:47:34 +00007251 # Broken: fails on valid input.
7252continue
7253fi
cristyda16f162011-02-19 23:52:17 +00007254rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007255
7256 # OK, works on sane cases. Now check whether nonexistent headers
7257 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007259/* end confdefs.h. */
7260#include <ac_nonexistent.h>
7261_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007262if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007263 # Broken: success on invalid input.
7264continue
7265else
cristy3ed852e2009-09-05 21:47:34 +00007266 # Passes both tests.
7267ac_preproc_ok=:
7268break
7269fi
cristyda16f162011-02-19 23:52:17 +00007270rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007271
7272done
7273# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007274rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007275if $ac_preproc_ok; then :
7276
cristy3ed852e2009-09-05 21:47:34 +00007277else
cristy8b350f62009-11-15 23:12:43 +00007278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007280as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7281See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007282fi
7283
7284ac_ext=c
7285ac_cpp='$CPP $CPPFLAGS'
7286ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7287ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7288ac_compiler_gnu=$ac_cv_c_compiler_gnu
7289
cristy73bd4a52010-10-05 11:24:23 +00007290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7291$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007292if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007293 $as_echo_n "(cached) " >&6
7294else
7295 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7296 for ac_i in 1 2 3 4 5 6 7; do
7297 ac_script="$ac_script$as_nl$ac_script"
7298 done
7299 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7300 { ac_script=; unset ac_script;}
7301 if test -z "$SED"; then
7302 ac_path_SED_found=false
7303 # Loop through the user's path and test for each of PROGNAME-LIST
7304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7305for as_dir in $PATH
7306do
7307 IFS=$as_save_IFS
7308 test -z "$as_dir" && as_dir=.
7309 for ac_prog in sed gsed; do
7310 for ac_exec_ext in '' $ac_executable_extensions; do
7311 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007312 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007313# Check for GNU ac_path_SED and select it if it is found.
7314 # Check for GNU $ac_path_SED
7315case `"$ac_path_SED" --version 2>&1` in
7316*GNU*)
7317 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7318*)
7319 ac_count=0
7320 $as_echo_n 0123456789 >"conftest.in"
7321 while :
7322 do
7323 cat "conftest.in" "conftest.in" >"conftest.tmp"
7324 mv "conftest.tmp" "conftest.in"
7325 cp "conftest.in" "conftest.nl"
7326 $as_echo '' >> "conftest.nl"
7327 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7328 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7329 as_fn_arith $ac_count + 1 && ac_count=$as_val
7330 if test $ac_count -gt ${ac_path_SED_max-0}; then
7331 # Best one so far, save it but keep looking for a better one
7332 ac_cv_path_SED="$ac_path_SED"
7333 ac_path_SED_max=$ac_count
7334 fi
7335 # 10*(2^10) chars as input seems more than enough
7336 test $ac_count -gt 10 && break
7337 done
7338 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7339esac
7340
7341 $ac_path_SED_found && break 3
7342 done
7343 done
7344 done
7345IFS=$as_save_IFS
7346 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007347 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007348 fi
7349else
7350 ac_cv_path_SED=$SED
7351fi
7352
7353fi
7354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7355$as_echo "$ac_cv_path_SED" >&6; }
7356 SED="$ac_cv_path_SED"
7357 rm -f conftest.sed
7358
7359test -z "$SED" && SED=sed
7360Xsed="$SED -e 1s/^X//"
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371
7372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7373$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007374if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007375 $as_echo_n "(cached) " >&6
7376else
7377 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7378 then ac_cv_path_FGREP="$GREP -F"
7379 else
7380 if test -z "$FGREP"; then
7381 ac_path_FGREP_found=false
7382 # Loop through the user's path and test for each of PROGNAME-LIST
7383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7384for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7385do
7386 IFS=$as_save_IFS
7387 test -z "$as_dir" && as_dir=.
7388 for ac_prog in fgrep; do
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007391 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007392# Check for GNU ac_path_FGREP and select it if it is found.
7393 # Check for GNU $ac_path_FGREP
7394case `"$ac_path_FGREP" --version 2>&1` in
7395*GNU*)
7396 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7397*)
7398 ac_count=0
7399 $as_echo_n 0123456789 >"conftest.in"
7400 while :
7401 do
7402 cat "conftest.in" "conftest.in" >"conftest.tmp"
7403 mv "conftest.tmp" "conftest.in"
7404 cp "conftest.in" "conftest.nl"
7405 $as_echo 'FGREP' >> "conftest.nl"
7406 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7407 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7408 as_fn_arith $ac_count + 1 && ac_count=$as_val
7409 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7410 # Best one so far, save it but keep looking for a better one
7411 ac_cv_path_FGREP="$ac_path_FGREP"
7412 ac_path_FGREP_max=$ac_count
7413 fi
7414 # 10*(2^10) chars as input seems more than enough
7415 test $ac_count -gt 10 && break
7416 done
7417 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7418esac
7419
7420 $ac_path_FGREP_found && break 3
7421 done
7422 done
7423 done
7424IFS=$as_save_IFS
7425 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007426 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007427 fi
7428else
7429 ac_cv_path_FGREP=$FGREP
7430fi
7431
7432 fi
7433fi
7434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7435$as_echo "$ac_cv_path_FGREP" >&6; }
7436 FGREP="$ac_cv_path_FGREP"
7437
7438
7439test -z "$GREP" && GREP=grep
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
7456
cristy0c60a692010-11-04 01:09:47 +00007457ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7459ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7460
7461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7462$as_echo_n "checking how to print strings... " >&6; }
7463# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007464if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007465 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7466 ECHO='print -r --'
7467elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7468 ECHO='printf %s\n'
7469else
7470 # Use this function as a fallback that always works.
7471 func_fallback_echo ()
7472 {
7473 eval 'cat <<_LTECHO_EOF
7474$1
7475_LTECHO_EOF'
7476 }
7477 ECHO='func_fallback_echo'
7478fi
7479
7480# func_echo_all arg...
7481# Invoke $ECHO with all args, space-separated.
7482func_echo_all ()
7483{
7484 $ECHO ""
7485}
7486
7487case "$ECHO" in
7488 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7489$as_echo "printf" >&6; } ;;
7490 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7491$as_echo "print -r" >&6; } ;;
7492 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7493$as_echo "cat" >&6; } ;;
7494esac
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
cristy73bd4a52010-10-05 11:24:23 +00007509
7510
7511# Check whether --with-gnu-ld was given.
7512if test "${with_gnu_ld+set}" = set; then :
7513 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7514else
7515 with_gnu_ld=no
7516fi
7517
7518ac_prog=ld
7519if test "$GCC" = yes; then
7520 # Check if gcc -print-prog-name=ld gives a path.
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7522$as_echo_n "checking for ld used by $CC... " >&6; }
7523 case $host in
7524 *-*-mingw*)
7525 # gcc leaves a trailing carriage return which upsets mingw
7526 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7527 *)
7528 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7529 esac
7530 case $ac_prog in
7531 # Accept absolute paths.
7532 [\\/]* | ?:[\\/]*)
7533 re_direlt='/[^/][^/]*/\.\./'
7534 # Canonicalize the pathname of ld
7535 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7536 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7537 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7538 done
7539 test -z "$LD" && LD="$ac_prog"
7540 ;;
7541 "")
7542 # If it fails, then pretend we aren't using GCC.
7543 ac_prog=ld
7544 ;;
7545 *)
7546 # If it is relative, then search for the first ld in PATH.
7547 with_gnu_ld=unknown
7548 ;;
7549 esac
7550elif test "$with_gnu_ld" = yes; then
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7552$as_echo_n "checking for GNU ld... " >&6; }
7553else
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7555$as_echo_n "checking for non-GNU ld... " >&6; }
7556fi
cristyda16f162011-02-19 23:52:17 +00007557if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007558 $as_echo_n "(cached) " >&6
7559else
7560 if test -z "$LD"; then
7561 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7562 for ac_dir in $PATH; do
7563 IFS="$lt_save_ifs"
7564 test -z "$ac_dir" && ac_dir=.
7565 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7566 lt_cv_path_LD="$ac_dir/$ac_prog"
7567 # Check to see if the program is GNU ld. I'd rather use --version,
7568 # but apparently some variants of GNU ld only accept -v.
7569 # Break only if it was the GNU/non-GNU ld that we prefer.
7570 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7571 *GNU* | *'with BFD'*)
7572 test "$with_gnu_ld" != no && break
7573 ;;
7574 *)
7575 test "$with_gnu_ld" != yes && break
7576 ;;
7577 esac
7578 fi
7579 done
7580 IFS="$lt_save_ifs"
7581else
7582 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7583fi
7584fi
7585
7586LD="$lt_cv_path_LD"
7587if test -n "$LD"; then
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7589$as_echo "$LD" >&6; }
7590else
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7592$as_echo "no" >&6; }
7593fi
cristy98dddb52010-11-04 00:30:15 +00007594test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7596$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007597if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007598 $as_echo_n "(cached) " >&6
7599else
7600 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7601case `$LD -v 2>&1 </dev/null` in
7602*GNU* | *'with BFD'*)
7603 lt_cv_prog_gnu_ld=yes
7604 ;;
7605*)
7606 lt_cv_prog_gnu_ld=no
7607 ;;
7608esac
7609fi
7610{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7611$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7612with_gnu_ld=$lt_cv_prog_gnu_ld
7613
7614
7615
7616
7617
7618
7619
7620
7621
cristy3ed852e2009-09-05 21:47:34 +00007622
cristy837d6dc2010-02-27 01:16:57 +00007623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7624$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007625if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007626 $as_echo_n "(cached) " >&6
7627else
7628 ac_cv_prog_cc_c99=no
7629ac_save_CC=$CC
7630cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7631/* end confdefs.h. */
7632#include <stdarg.h>
7633#include <stdbool.h>
7634#include <stdlib.h>
7635#include <wchar.h>
7636#include <stdio.h>
7637
7638// Check varargs macros. These examples are taken from C99 6.10.3.5.
7639#define debug(...) fprintf (stderr, __VA_ARGS__)
7640#define showlist(...) puts (#__VA_ARGS__)
7641#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7642static void
7643test_varargs_macros (void)
7644{
7645 int x = 1234;
7646 int y = 5678;
7647 debug ("Flag");
7648 debug ("X = %d\n", x);
7649 showlist (The first, second, and third items.);
7650 report (x>y, "x is %d but y is %d", x, y);
7651}
7652
7653// Check long long types.
7654#define BIG64 18446744073709551615ull
7655#define BIG32 4294967295ul
7656#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7657#if !BIG_OK
7658 your preprocessor is broken;
7659#endif
7660#if BIG_OK
7661#else
7662 your preprocessor is broken;
7663#endif
7664static long long int bignum = -9223372036854775807LL;
7665static unsigned long long int ubignum = BIG64;
7666
7667struct incomplete_array
7668{
7669 int datasize;
7670 double data[];
7671};
7672
7673struct named_init {
7674 int number;
7675 const wchar_t *name;
7676 double average;
7677};
7678
7679typedef const char *ccp;
7680
7681static inline int
7682test_restrict (ccp restrict text)
7683{
7684 // See if C++-style comments work.
7685 // Iterate through items via the restricted pointer.
7686 // Also check for declarations in for loops.
7687 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7688 continue;
7689 return 0;
7690}
7691
7692// Check varargs and va_copy.
7693static void
7694test_varargs (const char *format, ...)
7695{
7696 va_list args;
7697 va_start (args, format);
7698 va_list args_copy;
7699 va_copy (args_copy, args);
7700
7701 const char *str;
7702 int number;
7703 float fnumber;
7704
7705 while (*format)
7706 {
7707 switch (*format++)
7708 {
7709 case 's': // string
7710 str = va_arg (args_copy, const char *);
7711 break;
7712 case 'd': // int
7713 number = va_arg (args_copy, int);
7714 break;
7715 case 'f': // float
7716 fnumber = va_arg (args_copy, double);
7717 break;
7718 default:
7719 break;
7720 }
7721 }
7722 va_end (args_copy);
7723 va_end (args);
7724}
7725
7726int
7727main ()
7728{
7729
7730 // Check bool.
7731 _Bool success = false;
7732
7733 // Check restrict.
7734 if (test_restrict ("String literal") == 0)
7735 success = true;
7736 char *restrict newvar = "Another string";
7737
7738 // Check varargs.
7739 test_varargs ("s, d' f .", "string", 65, 34.234);
7740 test_varargs_macros ();
7741
7742 // Check flexible array members.
7743 struct incomplete_array *ia =
7744 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7745 ia->datasize = 10;
7746 for (int i = 0; i < ia->datasize; ++i)
7747 ia->data[i] = i * 1.234;
7748
7749 // Check named initializers.
7750 struct named_init ni = {
7751 .number = 34,
7752 .name = L"Test wide string",
7753 .average = 543.34343,
7754 };
7755
7756 ni.number = 58;
7757
7758 int dynamic_array[ni.number];
7759 dynamic_array[ni.number - 1] = 543;
7760
7761 // work around unused variable warnings
7762 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7763 || dynamic_array[ni.number - 1] != 543);
7764
7765 ;
7766 return 0;
7767}
7768_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007769for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007770do
7771 CC="$ac_save_CC $ac_arg"
7772 if ac_fn_c_try_compile "$LINENO"; then :
7773 ac_cv_prog_cc_c99=$ac_arg
7774fi
7775rm -f core conftest.err conftest.$ac_objext
7776 test "x$ac_cv_prog_cc_c99" != "xno" && break
7777done
7778rm -f conftest.$ac_ext
7779CC=$ac_save_CC
7780
7781fi
7782# AC_CACHE_VAL
7783case "x$ac_cv_prog_cc_c99" in
7784 x)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7786$as_echo "none needed" >&6; } ;;
7787 xno)
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7789$as_echo "unsupported" >&6; } ;;
7790 *)
7791 CC="$CC $ac_cv_prog_cc_c99"
7792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7793$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7794esac
7795if test "x$ac_cv_prog_cc_c99" != xno; then :
7796
7797fi
7798
7799
cristy73bd4a52010-10-05 11:24:23 +00007800if test "x$CC" != xcc; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7802$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7803else
7804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7805$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7806fi
7807set dummy $CC; ac_cc=`$as_echo "$2" |
7808 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007809if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007810 $as_echo_n "(cached) " >&6
7811else
cristy73bd4a52010-10-05 11:24:23 +00007812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7813/* end confdefs.h. */
7814
7815int
7816main ()
7817{
7818
7819 ;
7820 return 0;
7821}
7822_ACEOF
7823# Make sure it works both with $CC and with simple cc.
7824# We do the test twice because some compilers refuse to overwrite an
7825# existing .o file with -o, though they will create one.
7826ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7827rm -f conftest2.*
7828if { { case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831esac
7832eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7833$as_echo "$ac_try_echo"; } >&5
7834 (eval "$ac_try") 2>&5
7835 ac_status=$?
7836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7837 test $ac_status = 0; } &&
7838 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841esac
7842eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7843$as_echo "$ac_try_echo"; } >&5
7844 (eval "$ac_try") 2>&5
7845 ac_status=$?
7846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7847 test $ac_status = 0; };
7848then
7849 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7850 if test "x$CC" != xcc; then
7851 # Test first that cc exists at all.
7852 if { ac_try='cc -c conftest.$ac_ext >&5'
7853 { { case "(($ac_try" in
7854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7855 *) ac_try_echo=$ac_try;;
7856esac
7857eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7858$as_echo "$ac_try_echo"; } >&5
7859 (eval "$ac_try") 2>&5
7860 ac_status=$?
7861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7862 test $ac_status = 0; }; }; then
7863 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7864 rm -f conftest2.*
7865 if { { case "(($ac_try" in
7866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7867 *) ac_try_echo=$ac_try;;
7868esac
7869eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7870$as_echo "$ac_try_echo"; } >&5
7871 (eval "$ac_try") 2>&5
7872 ac_status=$?
7873 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7874 test $ac_status = 0; } &&
7875 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878esac
7879eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7880$as_echo "$ac_try_echo"; } >&5
7881 (eval "$ac_try") 2>&5
7882 ac_status=$?
7883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7884 test $ac_status = 0; };
7885 then
7886 # cc works too.
7887 :
7888 else
7889 # cc exists but doesn't like -o.
7890 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7891 fi
7892 fi
7893 fi
7894else
7895 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7896fi
7897rm -f core conftest*
7898
7899fi
7900if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7902$as_echo "yes" >&6; }
7903else
7904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7905$as_echo "no" >&6; }
7906
7907$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7908
7909fi
7910
7911# FIXME: we rely on the cache variable name because
7912# there is no other way.
7913set dummy $CC
7914am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7915eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7916if test "$am_t" != yes; then
7917 # Losing compiler, so override with the script.
7918 # FIXME: It is wrong to rewrite CC.
7919 # But if we don't then we get into trouble of one sort or another.
7920 # A longer-term fix would be to have automake use am__CC in this case,
7921 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7922 CC="$am_aux_dir/compile $CC"
7923fi
7924
7925
7926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7927$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007928if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007929 $as_echo_n "(cached) " >&6
7930else
7931 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007932 ac_ext=c
7933ac_cpp='$CPP $CPPFLAGS'
7934ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7935ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7936ac_compiler_gnu=$ac_cv_c_compiler_gnu
7937
7938 ac_save_CFLAGS="$CFLAGS"
7939for 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" #
7940do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7942/* end confdefs.h. */
7943
7944int
7945main ()
7946{
cristy24fc1fe2010-10-23 21:13:01 +00007947
cristy73bd4a52010-10-05 11:24:23 +00007948 ;
7949 return 0;
7950}
7951_ACEOF
7952if ac_fn_c_try_compile "$LINENO"; then :
7953 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7954fi
7955rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956done
7957 CFLAGS="$ac_save_CFLAGS"
7958 ac_ext=c
7959ac_cpp='$CPP $CPPFLAGS'
7960ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7961ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7962ac_compiler_gnu=$ac_cv_c_compiler_gnu
7963
7964
7965fi
7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7967$as_echo "$ac_cv_cflags_warn_all" >&6; }
7968case ".$ac_cv_cflags_warn_all" in
7969 .ok|.ok,*) ;;
7970 .|.no|.no,*)
7971 ;;
7972 *)
7973 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7974 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7975 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7976 ac_status=$?
7977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7978 test $ac_status = 0; }
7979 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7980 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7981 ac_status=$?
7982 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7983 test $ac_status = 0; }
7984 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7985 fi
7986 ;;
nicolas6237c462010-10-05 06:11:49 +00007987esac
cristy3ed852e2009-09-05 21:47:34 +00007988
cristy568c2d42012-07-27 01:41:20 +00007989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7990$as_echo_n "checking for C compiler vendor... " >&6; }
7991if ${ax_cv_c_compiler_vendor+:} false; then :
7992 $as_echo_n "(cached) " >&6
7993else
7994 # note: don't check for gcc first since some other compilers define __GNUC__
7995 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7996 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7997 pathscale: __PATHCC__,__PATHSCALE__
7998 clang: __clang__
7999 gnu: __GNUC__
8000 sun: __SUNPRO_C,__SUNPRO_CC
8001 hp: __HP_cc,__HP_aCC
8002 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8003 borland: __BORLANDC__,__TURBOC__
8004 comeau: __COMO__
8005 cray: _CRAYC
8006 kai: __KCC
8007 lcc: __LCC__
8008 sgi: __sgi,sgi
8009 microsoft: _MSC_VER
8010 metrowerks: __MWERKS__
8011 watcom: __WATCOMC__
8012 portland: __PGI
8013 unknown: UNKNOWN"
8014 for ventest in $vendors; do
8015 case $ventest in
8016 *:) vendor=$ventest; continue ;;
8017 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8018 esac
8019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8020/* end confdefs.h. */
8021
8022int
8023main ()
8024{
8025
8026 #if !($vencpp)
8027 thisisanerror;
8028 #endif
8029
8030 ;
8031 return 0;
8032}
8033_ACEOF
8034if ac_fn_c_try_compile "$LINENO"; then :
8035 break
8036fi
8037rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 done
8039 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8040
8041fi
8042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8043$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8044
cristya0b81c32010-01-22 02:54:33 +00008045
8046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8047$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8048set x ${MAKE-make}
8049ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008050if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008051 $as_echo_n "(cached) " >&6
8052else
8053 cat >conftest.make <<\_ACEOF
8054SHELL = /bin/sh
8055all:
8056 @echo '@@@%%%=$(MAKE)=@@@%%%'
8057_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008058# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008059case `${MAKE-make} -f conftest.make 2>/dev/null` in
8060 *@@@%%%=?*=@@@%%%*)
8061 eval ac_cv_prog_make_${ac_make}_set=yes;;
8062 *)
8063 eval ac_cv_prog_make_${ac_make}_set=no;;
8064esac
8065rm -f conftest.make
8066fi
8067if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8069$as_echo "yes" >&6; }
8070 SET_MAKE=
8071else
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8073$as_echo "no" >&6; }
8074 SET_MAKE="MAKE=${MAKE-make}"
8075fi
8076
cristy8b350f62009-11-15 23:12:43 +00008077{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008078$as_echo_n "checking whether ln -s works... " >&6; }
8079LN_S=$as_ln_s
8080if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008082$as_echo "yes" >&6; }
8083else
cristy8b350f62009-11-15 23:12:43 +00008084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008085$as_echo "no, using $LN_S" >&6; }
8086fi
8087
cristybc556452012-08-17 19:44:03 +00008088for ac_prog in gawk mawk nawk awk
8089do
8090 # Extract the first word of "$ac_prog", so it can be a program name with args.
8091set dummy $ac_prog; ac_word=$2
8092{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8093$as_echo_n "checking for $ac_word... " >&6; }
8094if ${ac_cv_prog_AWK+:} false; then :
8095 $as_echo_n "(cached) " >&6
8096else
8097 if test -n "$AWK"; then
8098 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8099else
8100as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8101for as_dir in $PATH
8102do
8103 IFS=$as_save_IFS
8104 test -z "$as_dir" && as_dir=.
8105 for ac_exec_ext in '' $ac_executable_extensions; do
8106 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8107 ac_cv_prog_AWK="$ac_prog"
8108 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8109 break 2
8110 fi
8111done
8112 done
8113IFS=$as_save_IFS
8114
8115fi
8116fi
8117AWK=$ac_cv_prog_AWK
8118if test -n "$AWK"; then
8119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8120$as_echo "$AWK" >&6; }
8121else
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8123$as_echo "no" >&6; }
8124fi
8125
8126
8127 test -n "$AWK" && break
8128done
8129
cristy73bd4a52010-10-05 11:24:23 +00008130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8131$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8132
8133# Check whether --with-dmalloc was given.
8134if test "${with_dmalloc+set}" = set; then :
8135 withval=$with_dmalloc; if test "$withval" = yes; then
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8137$as_echo "yes" >&6; }
8138
8139$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8140
8141 LIBS="$LIBS -ldmalloc"
8142 LDFLAGS="$LDFLAGS -g"
8143else
8144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8145$as_echo "no" >&6; }
8146fi
8147else
8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8149$as_echo "no" >&6; }
8150fi
8151
8152
8153
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8155$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008156if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008157 $as_echo_n "(cached) " >&6
8158else
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160/* end confdefs.h. */
8161#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008162 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008163 static void
8164 foo(void) {
8165 exit(1);
8166 }
8167
8168int
8169main ()
8170{
8171
8172 ;
8173 return 0;
8174}
8175_ACEOF
8176if ac_fn_c_try_compile "$LINENO"; then :
8177 ax_cv___attribute__=yes
8178else
8179 ax_cv___attribute__=no
8180
8181fi
8182rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8183
8184fi
8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8186$as_echo "$ax_cv___attribute__" >&6; }
8187 if test "$ax_cv___attribute__" = "yes"; then
8188
8189$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8190
8191 fi
8192
8193
8194
cristy37110d62012-03-01 18:38:20 +00008195
8196
8197# Check whether --with-gcc-arch was given.
8198if test "${with_gcc_arch+set}" = set; then :
8199 withval=$with_gcc_arch; ax_gcc_arch=$withval
8200else
cristya32d1812012-03-02 19:24:21 +00008201 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008202fi
8203
8204
8205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8206$as_echo_n "checking for gcc architecture flag... " >&6; }
8207{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8208$as_echo "" >&6; }
8209if ${ax_cv_gcc_archflag+:} false; then :
8210 $as_echo_n "(cached) " >&6
8211else
8212
8213ax_cv_gcc_archflag="unknown"
8214
8215if test "$GCC" = yes; then
8216
8217if test "x$ax_gcc_arch" = xyes; then
8218ax_gcc_arch=""
8219if test "$cross_compiling" = no; then
8220case $host_cpu in
8221 i[3456]86*|x86_64*) # use cpuid codes
8222
8223ac_ext=c
8224ac_cpp='$CPP $CPPFLAGS'
8225ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8226ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8227ac_compiler_gnu=$ac_cv_c_compiler_gnu
8228
8229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8230$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8231if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8232 $as_echo_n "(cached) " >&6
8233else
8234 if test "$cross_compiling" = yes; then :
8235 ax_cv_gcc_x86_cpuid_0=unknown
8236else
8237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8238/* end confdefs.h. */
8239#include <stdio.h>
8240int
8241main ()
8242{
8243
8244 int op = 0, eax, ebx, ecx, edx;
8245 FILE *f;
8246 __asm__("cpuid"
8247 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8248 : "a" (op));
8249 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8250 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8251 fclose(f);
8252 return 0;
8253
8254 ;
8255 return 0;
8256}
8257_ACEOF
8258if ac_fn_c_try_run "$LINENO"; then :
8259 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8260else
8261 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8262fi
8263rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8264 conftest.$ac_objext conftest.beam conftest.$ac_ext
8265fi
8266
8267fi
8268{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8269$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8270ac_ext=c
8271ac_cpp='$CPP $CPPFLAGS'
8272ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8273ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8274ac_compiler_gnu=$ac_cv_c_compiler_gnu
8275
8276
8277
8278ac_ext=c
8279ac_cpp='$CPP $CPPFLAGS'
8280ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8281ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8282ac_compiler_gnu=$ac_cv_c_compiler_gnu
8283
8284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8285$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8286if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8287 $as_echo_n "(cached) " >&6
8288else
8289 if test "$cross_compiling" = yes; then :
8290 ax_cv_gcc_x86_cpuid_1=unknown
8291else
8292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8293/* end confdefs.h. */
8294#include <stdio.h>
8295int
8296main ()
8297{
8298
8299 int op = 1, eax, ebx, ecx, edx;
8300 FILE *f;
8301 __asm__("cpuid"
8302 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8303 : "a" (op));
8304 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8305 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8306 fclose(f);
8307 return 0;
8308
8309 ;
8310 return 0;
8311}
8312_ACEOF
8313if ac_fn_c_try_run "$LINENO"; then :
8314 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8315else
8316 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8317fi
8318rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8319 conftest.$ac_objext conftest.beam conftest.$ac_ext
8320fi
8321
8322fi
8323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8324$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8325ac_ext=c
8326ac_cpp='$CPP $CPPFLAGS'
8327ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8328ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8329ac_compiler_gnu=$ac_cv_c_compiler_gnu
8330
8331
8332 case $ax_cv_gcc_x86_cpuid_0 in
8333 *:756e6547:*:*) # Intel
8334 case $ax_cv_gcc_x86_cpuid_1 in
8335 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8336 *5??:*:*:*) ax_gcc_arch=pentium ;;
8337 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8338 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8339 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8340 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8341 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8342 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8343 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8344 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8345 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8346 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8347 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8348 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8349 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8350 case $host_cpu in
8351 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8352 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8353 esac ;;
8354 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8355 esac ;;
8356 *:68747541:*:*) # AMD
8357 case $ax_cv_gcc_x86_cpuid_1 in
8358 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8359 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8360 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8361 *60?:*:*:*) ax_gcc_arch=k7 ;;
8362 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8363 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8364 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8365 *6[68a]?:*:*:*)
8366
8367ac_ext=c
8368ac_cpp='$CPP $CPPFLAGS'
8369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8371ac_compiler_gnu=$ac_cv_c_compiler_gnu
8372
8373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8374$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8375if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8376 $as_echo_n "(cached) " >&6
8377else
8378 if test "$cross_compiling" = yes; then :
8379 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8380else
8381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8382/* end confdefs.h. */
8383#include <stdio.h>
8384int
8385main ()
8386{
8387
8388 int op = 0x80000006, eax, ebx, ecx, edx;
8389 FILE *f;
8390 __asm__("cpuid"
8391 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8392 : "a" (op));
8393 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8394 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8395 fclose(f);
8396 return 0;
8397
8398 ;
8399 return 0;
8400}
8401_ACEOF
8402if ac_fn_c_try_run "$LINENO"; then :
8403 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8404else
8405 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8406fi
8407rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8408 conftest.$ac_objext conftest.beam conftest.$ac_ext
8409fi
8410
8411fi
8412{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8413$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8414ac_ext=c
8415ac_cpp='$CPP $CPPFLAGS'
8416ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8417ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8418ac_compiler_gnu=$ac_cv_c_compiler_gnu
8419
8420 # L2 cache size
8421 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8422 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8423 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8424 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8425 esac ;;
8426 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8427 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8428 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8429 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8430 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8431 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8432 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8433 esac ;;
8434 *:746e6543:*:*) # IDT
8435 case $ax_cv_gcc_x86_cpuid_1 in
8436 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8437 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8438 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8439 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8440 esac ;;
8441 esac
8442 if test x"$ax_gcc_arch" = x; then # fallback
8443 case $host_cpu in
8444 i586*) ax_gcc_arch=pentium ;;
8445 i686*) ax_gcc_arch=pentiumpro ;;
8446 esac
8447 fi
8448 ;;
8449
8450 sparc*)
8451 # Extract the first word of "prtdiag", so it can be a program name with args.
8452set dummy prtdiag; ac_word=$2
8453{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8454$as_echo_n "checking for $ac_word... " >&6; }
8455if ${ac_cv_path_PRTDIAG+:} false; then :
8456 $as_echo_n "(cached) " >&6
8457else
8458 case $PRTDIAG in
8459 [\\/]* | ?:[\\/]*)
8460 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8461 ;;
8462 *)
8463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8464as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8465for as_dir in $as_dummy
8466do
8467 IFS=$as_save_IFS
8468 test -z "$as_dir" && as_dir=.
8469 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008470 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008471 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8472 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8473 break 2
8474 fi
8475done
8476 done
8477IFS=$as_save_IFS
8478
8479 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8480 ;;
8481esac
8482fi
8483PRTDIAG=$ac_cv_path_PRTDIAG
8484if test -n "$PRTDIAG"; then
8485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8486$as_echo "$PRTDIAG" >&6; }
8487else
8488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8489$as_echo "no" >&6; }
8490fi
8491
8492
8493 cputype=`(((grep cpu /proc/cpuinfo | cut -d: -f2) ; ($PRTDIAG -v |grep -i sparc) ; grep -i cpu /var/run/dmesg.boot ) | head -n 1) 2> /dev/null`
8494 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8495 case $cputype in
8496 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8497 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8498 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8499 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8500 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8501 *cypress*) ax_gcc_arch=cypress ;;
8502 esac ;;
8503
8504 alphaev5) ax_gcc_arch=ev5 ;;
8505 alphaev56) ax_gcc_arch=ev56 ;;
8506 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8507 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8508 alphaev6) ax_gcc_arch=ev6 ;;
8509 alphaev67) ax_gcc_arch=ev67 ;;
8510 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8511 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8512 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8513 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8514
8515 powerpc*)
8516 cputype=`((grep cpu /proc/cpuinfo | head -n 1 | cut -d: -f2 | cut -d, -f1 | sed 's/ //g') ; /usr/bin/machine ; /bin/machine; grep CPU /var/run/dmesg.boot | head -n 1 | cut -d" " -f2) 2> /dev/null`
8517 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8518 case $cputype in
8519 *750*) ax_gcc_arch="750 G3" ;;
8520 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8521 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8522 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8523 *970*) ax_gcc_arch="970 G5 power4";;
8524 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8525 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8526 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8527 *) ax_gcc_arch=$cputype ;;
8528 esac
8529 ax_gcc_arch="$ax_gcc_arch powerpc"
8530 ;;
8531esac
8532fi # not cross-compiling
8533fi # guess arch
8534
8535if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8536for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008537 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008538 flags="-mtune=$arch"
8539 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8540 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8541 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8542 else
8543 flags="-march=$arch -mcpu=$arch -m$arch"
8544 fi
8545 for flag in $flags; do
8546 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8548$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8549if eval \${$as_CACHEVAR+:} false; then :
8550 $as_echo_n "(cached) " >&6
8551else
8552
8553 ax_check_save_flags=$CFLAGS
8554 CFLAGS="$CFLAGS $flag"
8555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8556/* end confdefs.h. */
8557
8558int
8559main ()
8560{
8561
8562 ;
8563 return 0;
8564}
8565_ACEOF
8566if ac_fn_c_try_compile "$LINENO"; then :
8567 eval "$as_CACHEVAR=yes"
8568else
8569 eval "$as_CACHEVAR=no"
8570fi
8571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8572 CFLAGS=$ax_check_save_flags
8573fi
8574eval ac_res=\$$as_CACHEVAR
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8576$as_echo "$ac_res" >&6; }
8577if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8578 ax_cv_gcc_archflag=$flag; break
8579else
8580 :
8581fi
8582
8583 done
8584 test "x$ax_cv_gcc_archflag" = xunknown || break
8585done
8586fi
8587
8588fi # $GCC=yes
8589
8590fi
8591
8592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8593$as_echo_n "checking for gcc architecture flag... " >&6; }
8594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8595$as_echo "$ax_cv_gcc_archflag" >&6; }
8596if test "x$ax_cv_gcc_archflag" = xunknown; then
8597 :
8598else
8599 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8600fi
8601
8602
8603
cristy73bd4a52010-10-05 11:24:23 +00008604if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8605 if test -n "$ac_tool_prefix"; then
8606 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8607set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8609$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008610if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008611 $as_echo_n "(cached) " >&6
8612else
8613 case $PKG_CONFIG in
8614 [\\/]* | ?:[\\/]*)
8615 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8616 ;;
8617 *)
8618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8619for as_dir in $PATH
8620do
8621 IFS=$as_save_IFS
8622 test -z "$as_dir" && as_dir=.
8623 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008625 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8627 break 2
8628 fi
8629done
8630 done
8631IFS=$as_save_IFS
8632
8633 ;;
8634esac
8635fi
8636PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8637if test -n "$PKG_CONFIG"; then
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8639$as_echo "$PKG_CONFIG" >&6; }
8640else
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8642$as_echo "no" >&6; }
8643fi
8644
8645
8646fi
8647if test -z "$ac_cv_path_PKG_CONFIG"; then
8648 ac_pt_PKG_CONFIG=$PKG_CONFIG
8649 # Extract the first word of "pkg-config", so it can be a program name with args.
8650set dummy pkg-config; ac_word=$2
8651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8652$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008653if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008654 $as_echo_n "(cached) " >&6
8655else
8656 case $ac_pt_PKG_CONFIG in
8657 [\\/]* | ?:[\\/]*)
8658 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8659 ;;
8660 *)
8661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8662for as_dir in $PATH
8663do
8664 IFS=$as_save_IFS
8665 test -z "$as_dir" && as_dir=.
8666 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008667 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008668 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8669 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 break 2
8671 fi
8672done
8673 done
8674IFS=$as_save_IFS
8675
8676 ;;
8677esac
8678fi
8679ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8680if test -n "$ac_pt_PKG_CONFIG"; then
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8682$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8683else
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8685$as_echo "no" >&6; }
8686fi
8687
8688 if test "x$ac_pt_PKG_CONFIG" = x; then
8689 PKG_CONFIG=""
8690 else
8691 case $cross_compiling:$ac_tool_warned in
8692yes:)
8693{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8694$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8695ac_tool_warned=yes ;;
8696esac
8697 PKG_CONFIG=$ac_pt_PKG_CONFIG
8698 fi
8699else
8700 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8701fi
8702
8703fi
8704if test -n "$PKG_CONFIG"; then
8705 _pkg_min_version=0.9.0
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8707$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8708 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8710$as_echo "yes" >&6; }
8711 else
8712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8713$as_echo "no" >&6; }
8714 PKG_CONFIG=""
8715 fi
8716
8717fi
cristy3ed852e2009-09-05 21:47:34 +00008718
8719#
cristy3ed852e2009-09-05 21:47:34 +00008720# Enable run-time checking.
8721#
8722# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008723if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008724 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8725else
8726 enable_bounds_checking='no'
8727fi
8728
8729
8730if test "$enable_bounds_checking" = yes; then
8731
cristy8b350f62009-11-15 23:12:43 +00008732$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008733
8734fi
8735
8736#
8737# Tests for Windows
8738#
8739
8740
8741
8742GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008743native_win32_build='no'
8744cygwin_build='no'
8745case "${host_os}" in
8746 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008747 cygwin_build='yes'
8748 GDI32_LIBS='-lgdi32'
8749 ;;
8750 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008751 native_win32_build='yes'
8752 GDI32_LIBS='-lgdi32'
8753 ;;
8754esac
8755if test "${GDI32_LIBS}x" != 'x'; then
8756
cristy8b350f62009-11-15 23:12:43 +00008757$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008758
8759fi
8760
cristy73bd4a52010-10-05 11:24:23 +00008761 if test "${GDI32_LIBS}x" != 'x' ; then
8762 WINGDI32_DELEGATE_TRUE=
8763 WINGDI32_DELEGATE_FALSE='#'
8764else
8765 WINGDI32_DELEGATE_TRUE='#'
8766 WINGDI32_DELEGATE_FALSE=
8767fi
8768
8769 if test "${native_win32_build}" = 'yes' ; then
8770 WIN32_NATIVE_BUILD_TRUE=
8771 WIN32_NATIVE_BUILD_FALSE='#'
8772else
8773 WIN32_NATIVE_BUILD_TRUE='#'
8774 WIN32_NATIVE_BUILD_FALSE=
8775fi
8776
8777 if test "${cygwin_build}" = 'yes' ; then
8778 CYGWIN_BUILD_TRUE=
8779 CYGWIN_BUILD_FALSE='#'
8780else
8781 CYGWIN_BUILD_TRUE='#'
8782 CYGWIN_BUILD_FALSE=
8783fi
8784
8785 if test "x${CC}" = 'xcl.exe' ; then
8786 USING_CL_TRUE=
8787 USING_CL_FALSE='#'
8788else
8789 USING_CL_TRUE='#'
8790 USING_CL_FALSE=
8791fi
8792
cristy3ed852e2009-09-05 21:47:34 +00008793
8794WinPathScript="${srcdirfull}/winpath.sh"
8795
8796
8797#
8798# Compiler flags tweaks
8799#
8800if test "${GCC}" != "yes"; then
8801 case "${host}" in
8802 *-*-hpux* )
8803 # aCC: HP ANSI C++ B3910B A.03.34
8804 CFLAGS="${CFLAGS} -Wp,-H30000"
8805 if test -n "${CXXFLAGS}"; then
8806 CXXFLAGS='-AA'
8807 else
8808 CXXFLAGS="${CXXFLAGS} -AA"
8809 fi
8810 ;;
8811 *-dec-osf5.* )
8812 # Compaq alphaev68-dec-osf5.1 compiler
8813 if test -n "${CXXFLAGS}"; then
8814 CXXFLAGS='-std strict_ansi -noimplicit_include'
8815 else
8816 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8817 fi
8818 esac
8819fi
8820
8821# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008823$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008824if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008825 $as_echo_n "(cached) " >&6
8826else
8827
8828im_cv_ld_lazyload='none'
8829case "${host}" in
8830 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8831 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8832 im_cv_ld_lazyload='-Wl,-zlazyload'
8833 fi
8834 ;;
8835esac
8836
8837fi
cristy8b350f62009-11-15 23:12:43 +00008838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008839$as_echo "$im_cv_ld_lazyload" >&6; }
8840if test "${im_cv_ld_lazyload}" != 'none' ; then
8841 if test -z "${LDFLAGS}" ; then
8842 LDFLAGS="${im_cv_ld_lazyload}"
8843 else
8844 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8845 fi
8846fi
8847
8848case "$host" in
8849*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008850 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008851if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008852 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8853else
8854 build_osxuniversal=no
8855fi
8856
8857
8858 if test "${build_osxuniversal}" != no ; then
8859 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008860 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008861Please re-run configure with these options:
8862 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008863 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008864 fi
8865 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8866 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8867 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8868 fi
8869 ;;
8870esac
8871
cristy0151ae12011-10-28 16:32:29 +00008872#
8873# ARCH specific include directory
8874#
8875
cristy670aa3c2011-11-03 00:54:00 +00008876# Check whether --with-includearch-dir was given.
8877if test "${with_includearch_dir+set}" = set; then :
8878 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008879else
cristy670aa3c2011-11-03 00:54:00 +00008880 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008881fi
8882
8883
cristy670aa3c2011-11-03 00:54:00 +00008884eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008885
cristy0151ae12011-10-28 16:32:29 +00008886
8887#
8888# ARCH specific configuration directory
8889#
8890
cristy670aa3c2011-11-03 00:54:00 +00008891# Check whether --with-sharearch-dir was given.
8892if test "${with_sharearch_dir+set}" = set; then :
8893 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008894else
cristy408ebcd2011-11-14 01:36:57 +00008895 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008896fi
8897
8898
cristy670aa3c2011-11-03 00:54:00 +00008899eval "eval SHAREARCH_DIR=$sharearch_dir"
8900SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008901
cristy0151ae12011-10-28 16:32:29 +00008902
8903#
cristy3ed852e2009-09-05 21:47:34 +00008904# Enable support for threads
8905
8906# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008907if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008908 withval=$with_threads; with_threads=$withval
8909else
8910 with_threads='yes'
8911fi
8912
8913
8914have_threads=no
8915if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008916
8917
cristy73bd4a52010-10-05 11:24:23 +00008918ac_ext=c
8919ac_cpp='$CPP $CPPFLAGS'
8920ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8921ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8922ac_compiler_gnu=$ac_cv_c_compiler_gnu
8923
8924ax_pthread_ok=no
8925
8926# We used to check for pthread.h first, but this fails if pthread.h
8927# requires special compiler flags (e.g. on True64 or Sequent).
8928# It gets checked for in the link test anyway.
8929
8930# First of all, check if the user has set any of the PTHREAD_LIBS,
8931# etcetera environment variables, and if threads linking works using
8932# them:
8933if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8934 save_CFLAGS="$CFLAGS"
8935 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8936 save_LIBS="$LIBS"
8937 LIBS="$PTHREAD_LIBS $LIBS"
8938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8939$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8941/* end confdefs.h. */
8942
8943/* Override any GCC internal prototype to avoid an error.
8944 Use char because int might match the return type of a GCC
8945 builtin and then its argument prototype would still apply. */
8946#ifdef __cplusplus
8947extern "C"
8948#endif
8949char pthread_join ();
8950int
8951main ()
8952{
8953return pthread_join ();
8954 ;
8955 return 0;
8956}
8957_ACEOF
8958if ac_fn_c_try_link "$LINENO"; then :
8959 ax_pthread_ok=yes
8960fi
8961rm -f core conftest.err conftest.$ac_objext \
8962 conftest$ac_exeext conftest.$ac_ext
8963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8964$as_echo "$ax_pthread_ok" >&6; }
8965 if test x"$ax_pthread_ok" = xno; then
8966 PTHREAD_LIBS=""
8967 PTHREAD_CFLAGS=""
8968 fi
8969 LIBS="$save_LIBS"
8970 CFLAGS="$save_CFLAGS"
8971fi
8972
8973# We must check for the threads library under a number of different
8974# names; the ordering is very important because some systems
8975# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8976# libraries is broken (non-POSIX).
8977
8978# Create a list of thread flags to try. Items starting with a "-" are
8979# C compiler flags, and other items are library names, except for "none"
8980# which indicates that we try without any flags at all, and "pthread-config"
8981# which is a program returning the flags for the Pth emulation library.
8982
cristy18307f12011-12-30 01:20:16 +00008983ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008984
8985# The ordering *is* (sometimes) important. Some notes on the
8986# individual items follow:
8987
8988# pthreads: AIX (must check this before -lpthread)
8989# none: in case threads are in libc; should be tried before -Kthread and
8990# other compiler flags to prevent continual compiler warnings
8991# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8992# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8993# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8994# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8995# -pthreads: Solaris/gcc
8996# -mthreads: Mingw32/gcc, Lynx/gcc
8997# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8998# doesn't hurt to check since this sometimes defines pthreads too;
8999# also defines -D_REENTRANT)
9000# ... -mt is also the pthreads flag for HP/aCC
9001# pthread: Linux, etcetera
9002# --thread-safe: KAI C++
9003# pthread-config: use pthread-config program (for GNU Pth library)
9004
9005case "${host_cpu}-${host_os}" in
9006 *solaris*)
9007
9008 # On Solaris (at least, for some versions), libc contains stubbed
9009 # (non-functional) versions of the pthreads routines, so link-based
9010 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9011 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9012 # a function called by this macro, so we could check for that, but
9013 # who knows whether they'll stub that too in a future libc.) So,
9014 # we'll just look for -pthreads and -lpthread first:
9015
9016 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9017 ;;
9018
cristya316db12011-10-24 00:49:45 +00009019 *-darwin*)
9020 ax_pthread_flags="-pthread $ax_pthread_flags"
9021 ;;
cristy73bd4a52010-10-05 11:24:23 +00009022esac
9023
9024if test x"$ax_pthread_ok" = xno; then
9025for flag in $ax_pthread_flags; do
9026
9027 case $flag in
9028 none)
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9030$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9031 ;;
9032
9033 -*)
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9035$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9036 PTHREAD_CFLAGS="$flag"
9037 ;;
9038
cristya316db12011-10-24 00:49:45 +00009039 pthread-config)
9040 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009041set dummy pthread-config; ac_word=$2
9042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9043$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009044if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009045 $as_echo_n "(cached) " >&6
9046else
9047 if test -n "$ax_pthread_config"; then
9048 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9049else
9050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9051for as_dir in $PATH
9052do
9053 IFS=$as_save_IFS
9054 test -z "$as_dir" && as_dir=.
9055 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009056 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009057 ac_cv_prog_ax_pthread_config="yes"
9058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059 break 2
9060 fi
9061done
9062 done
9063IFS=$as_save_IFS
9064
9065 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9066fi
9067fi
9068ax_pthread_config=$ac_cv_prog_ax_pthread_config
9069if test -n "$ax_pthread_config"; then
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9071$as_echo "$ax_pthread_config" >&6; }
9072else
9073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9074$as_echo "no" >&6; }
9075fi
9076
9077
cristya316db12011-10-24 00:49:45 +00009078 if test x"$ax_pthread_config" = xno; then continue; fi
9079 PTHREAD_CFLAGS="`pthread-config --cflags`"
9080 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9081 ;;
cristy73bd4a52010-10-05 11:24:23 +00009082
9083 *)
9084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9085$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9086 PTHREAD_LIBS="-l$flag"
9087 ;;
9088 esac
9089
9090 save_LIBS="$LIBS"
9091 save_CFLAGS="$CFLAGS"
9092 LIBS="$PTHREAD_LIBS $LIBS"
9093 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9094
9095 # Check for various functions. We must include pthread.h,
9096 # since some functions may be macros. (On the Sequent, we
9097 # need a special flag -Kthread to make this header compile.)
9098 # We check for pthread_join because it is in -lpthread on IRIX
9099 # while pthread_create is in libc. We check for pthread_attr_init
9100 # due to DEC craziness with -lpthreads. We check for
9101 # pthread_cleanup_push because it is one of the few pthread
9102 # functions on Solaris that doesn't have a non-functional libc stub.
9103 # We try pthread_create on general principles.
9104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9105/* end confdefs.h. */
9106#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009107 static void routine(void *a) { a = 0; }
9108 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009109int
9110main ()
9111{
9112pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009113 pthread_create(&th, 0, start_routine, 0);
9114 pthread_join(th, 0);
9115 pthread_attr_init(&attr);
9116 pthread_cleanup_push(routine, 0);
9117 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009118 ;
9119 return 0;
9120}
9121_ACEOF
9122if ac_fn_c_try_link "$LINENO"; then :
9123 ax_pthread_ok=yes
9124fi
9125rm -f core conftest.err conftest.$ac_objext \
9126 conftest$ac_exeext conftest.$ac_ext
9127
9128 LIBS="$save_LIBS"
9129 CFLAGS="$save_CFLAGS"
9130
9131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9132$as_echo "$ax_pthread_ok" >&6; }
9133 if test "x$ax_pthread_ok" = xyes; then
9134 break;
9135 fi
9136
9137 PTHREAD_LIBS=""
9138 PTHREAD_CFLAGS=""
9139done
9140fi
9141
9142# Various other checks:
9143if test "x$ax_pthread_ok" = xyes; then
9144 save_LIBS="$LIBS"
9145 LIBS="$PTHREAD_LIBS $LIBS"
9146 save_CFLAGS="$CFLAGS"
9147 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9148
9149 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009151$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009152 attr_name=unknown
9153 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009155/* end confdefs.h. */
9156#include <pthread.h>
9157int
9158main ()
9159{
cristya316db12011-10-24 00:49:45 +00009160int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009161 ;
9162 return 0;
9163}
9164_ACEOF
9165if ac_fn_c_try_link "$LINENO"; then :
9166 attr_name=$attr; break
9167fi
9168rm -f core conftest.err conftest.$ac_objext \
9169 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009170 done
cristy73bd4a52010-10-05 11:24:23 +00009171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9172$as_echo "$attr_name" >&6; }
9173 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9174
9175cat >>confdefs.h <<_ACEOF
9176#define PTHREAD_CREATE_JOINABLE $attr_name
9177_ACEOF
9178
9179 fi
9180
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9182$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9183 flag=no
9184 case "${host_cpu}-${host_os}" in
9185 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9186 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9187 esac
9188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9189$as_echo "${flag}" >&6; }
9190 if test "x$flag" != xno; then
9191 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9192 fi
9193
cristya316db12011-10-24 00:49:45 +00009194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9195$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9196if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9197 $as_echo_n "(cached) " >&6
9198else
9199
9200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9201/* end confdefs.h. */
9202
9203 #include <pthread.h>
9204int
9205main ()
9206{
9207int i = PTHREAD_PRIO_INHERIT;
9208 ;
9209 return 0;
9210}
9211_ACEOF
9212if ac_fn_c_try_link "$LINENO"; then :
9213 ax_cv_PTHREAD_PRIO_INHERIT=yes
9214else
9215 ax_cv_PTHREAD_PRIO_INHERIT=no
9216fi
9217rm -f core conftest.err conftest.$ac_objext \
9218 conftest$ac_exeext conftest.$ac_ext
9219
9220fi
9221{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9222$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9223 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9224
9225$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9226
9227fi
9228
cristy73bd4a52010-10-05 11:24:23 +00009229 LIBS="$save_LIBS"
9230 CFLAGS="$save_CFLAGS"
9231
9232 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009233 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009234 for ac_prog in xlc_r cc_r
9235do
9236 # Extract the first word of "$ac_prog", so it can be a program name with args.
9237set dummy $ac_prog; ac_word=$2
9238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009240if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009241 $as_echo_n "(cached) " >&6
9242else
9243 if test -n "$PTHREAD_CC"; then
9244 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9245else
9246as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9247for as_dir in $PATH
9248do
9249 IFS=$as_save_IFS
9250 test -z "$as_dir" && as_dir=.
9251 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009253 ac_cv_prog_PTHREAD_CC="$ac_prog"
9254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9255 break 2
9256 fi
9257done
9258 done
9259IFS=$as_save_IFS
9260
9261fi
9262fi
9263PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9264if test -n "$PTHREAD_CC"; then
9265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9266$as_echo "$PTHREAD_CC" >&6; }
9267else
9268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9269$as_echo "no" >&6; }
9270fi
9271
9272
9273 test -n "$PTHREAD_CC" && break
9274done
9275test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9276
9277 else
9278 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009279 fi
cristy73bd4a52010-10-05 11:24:23 +00009280else
9281 PTHREAD_CC="$CC"
9282fi
9283
9284
9285
9286
9287
9288# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9289if test x"$ax_pthread_ok" = xyes; then
9290
9291$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9292
9293 :
9294else
9295 ax_pthread_ok=no
9296
9297fi
9298ac_ext=c
9299ac_cpp='$CPP $CPPFLAGS'
9300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9302ac_compiler_gnu=$ac_cv_c_compiler_gnu
9303
9304
cristy7acf8fb2010-09-23 19:58:53 +00009305 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009306 have_threads=yes
9307 DEF_THREAD="$PTHREAD_CFLAGS"
9308 CFLAGS="$CFLAGS $DEF_THREAD"
9309 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9310 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009311 { $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 +00009312$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9313 CC="$PTHREAD_CC"
9314 fi
cristy55bf91c2010-09-24 00:29:41 +00009315
9316$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9317
cristy3ed852e2009-09-05 21:47:34 +00009318 fi
9319fi
9320
9321# Enable support for OpenMP
9322if test "$have_threads" != 'yes'; then
9323 ac_cv_prog_c_openmp=unsupported
9324fi
9325
9326 OPENMP_CFLAGS=
9327 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009328if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009329 enableval=$enable_openmp;
9330fi
9331
9332 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009334$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009335if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009336 $as_echo_n "(cached) " >&6
9337else
cristy8b350f62009-11-15 23:12:43 +00009338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9339/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009340
9341#ifndef _OPENMP
9342 choke me
9343#endif
9344#include <omp.h>
9345int main () { return omp_get_num_threads (); }
9346
9347_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009348if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009349 ac_cv_prog_c_openmp='none needed'
9350else
cristy8b350f62009-11-15 23:12:43 +00009351 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009352 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9353 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009354 ac_save_CFLAGS=$CFLAGS
9355 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9357/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009358
9359#ifndef _OPENMP
9360 choke me
9361#endif
9362#include <omp.h>
9363int main () { return omp_get_num_threads (); }
9364
9365_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009366if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009367 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009368fi
cristy8b350f62009-11-15 23:12:43 +00009369rm -f core conftest.err conftest.$ac_objext \
9370 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009371 CFLAGS=$ac_save_CFLAGS
9372 if test "$ac_cv_prog_c_openmp" != unsupported; then
9373 break
9374 fi
9375 done
9376fi
cristy8b350f62009-11-15 23:12:43 +00009377rm -f core conftest.err conftest.$ac_objext \
9378 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009379fi
cristy8b350f62009-11-15 23:12:43 +00009380{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009381$as_echo "$ac_cv_prog_c_openmp" >&6; }
9382 case $ac_cv_prog_c_openmp in #(
9383 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009384 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009385 *)
cristy8b350f62009-11-15 23:12:43 +00009386 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009387 esac
9388 fi
9389
9390
9391CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9392MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9393
cristy391f1ce2010-09-09 17:23:28 +00009394if test "$enable_openmp" != no; then
9395 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9396 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9397 fi
9398fi
cristy3ed852e2009-09-05 21:47:34 +00009399
cristy736173a2009-09-20 21:18:22 +00009400# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009401
9402
cristy73bd4a52010-10-05 11:24:23 +00009403ac_ext=c
9404ac_cpp='$CPP $CPPFLAGS'
9405ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9406ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9407ac_compiler_gnu=$ac_cv_c_compiler_gnu
9408
9409ax_pthread_ok=no
9410
9411# We used to check for pthread.h first, but this fails if pthread.h
9412# requires special compiler flags (e.g. on True64 or Sequent).
9413# It gets checked for in the link test anyway.
9414
9415# First of all, check if the user has set any of the PTHREAD_LIBS,
9416# etcetera environment variables, and if threads linking works using
9417# them:
9418if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9419 save_CFLAGS="$CFLAGS"
9420 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9421 save_LIBS="$LIBS"
9422 LIBS="$PTHREAD_LIBS $LIBS"
9423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9424$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9426/* end confdefs.h. */
9427
9428/* Override any GCC internal prototype to avoid an error.
9429 Use char because int might match the return type of a GCC
9430 builtin and then its argument prototype would still apply. */
9431#ifdef __cplusplus
9432extern "C"
9433#endif
9434char pthread_join ();
9435int
9436main ()
9437{
9438return pthread_join ();
9439 ;
9440 return 0;
9441}
9442_ACEOF
9443if ac_fn_c_try_link "$LINENO"; then :
9444 ax_pthread_ok=yes
9445fi
9446rm -f core conftest.err conftest.$ac_objext \
9447 conftest$ac_exeext conftest.$ac_ext
9448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9449$as_echo "$ax_pthread_ok" >&6; }
9450 if test x"$ax_pthread_ok" = xno; then
9451 PTHREAD_LIBS=""
9452 PTHREAD_CFLAGS=""
9453 fi
9454 LIBS="$save_LIBS"
9455 CFLAGS="$save_CFLAGS"
9456fi
9457
9458# We must check for the threads library under a number of different
9459# names; the ordering is very important because some systems
9460# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9461# libraries is broken (non-POSIX).
9462
9463# Create a list of thread flags to try. Items starting with a "-" are
9464# C compiler flags, and other items are library names, except for "none"
9465# which indicates that we try without any flags at all, and "pthread-config"
9466# which is a program returning the flags for the Pth emulation library.
9467
cristy18307f12011-12-30 01:20:16 +00009468ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009469
9470# The ordering *is* (sometimes) important. Some notes on the
9471# individual items follow:
9472
9473# pthreads: AIX (must check this before -lpthread)
9474# none: in case threads are in libc; should be tried before -Kthread and
9475# other compiler flags to prevent continual compiler warnings
9476# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9477# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9478# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9479# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9480# -pthreads: Solaris/gcc
9481# -mthreads: Mingw32/gcc, Lynx/gcc
9482# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9483# doesn't hurt to check since this sometimes defines pthreads too;
9484# also defines -D_REENTRANT)
9485# ... -mt is also the pthreads flag for HP/aCC
9486# pthread: Linux, etcetera
9487# --thread-safe: KAI C++
9488# pthread-config: use pthread-config program (for GNU Pth library)
9489
9490case "${host_cpu}-${host_os}" in
9491 *solaris*)
9492
9493 # On Solaris (at least, for some versions), libc contains stubbed
9494 # (non-functional) versions of the pthreads routines, so link-based
9495 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9496 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9497 # a function called by this macro, so we could check for that, but
9498 # who knows whether they'll stub that too in a future libc.) So,
9499 # we'll just look for -pthreads and -lpthread first:
9500
9501 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9502 ;;
9503
cristya316db12011-10-24 00:49:45 +00009504 *-darwin*)
9505 ax_pthread_flags="-pthread $ax_pthread_flags"
9506 ;;
cristy73bd4a52010-10-05 11:24:23 +00009507esac
9508
9509if test x"$ax_pthread_ok" = xno; then
9510for flag in $ax_pthread_flags; do
9511
9512 case $flag in
9513 none)
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9515$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9516 ;;
9517
9518 -*)
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9520$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9521 PTHREAD_CFLAGS="$flag"
9522 ;;
9523
cristya316db12011-10-24 00:49:45 +00009524 pthread-config)
9525 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009526set dummy pthread-config; ac_word=$2
9527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9528$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009529if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009530 $as_echo_n "(cached) " >&6
9531else
9532 if test -n "$ax_pthread_config"; then
9533 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9534else
9535as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9536for as_dir in $PATH
9537do
9538 IFS=$as_save_IFS
9539 test -z "$as_dir" && as_dir=.
9540 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009541 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009542 ac_cv_prog_ax_pthread_config="yes"
9543 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9544 break 2
9545 fi
9546done
9547 done
9548IFS=$as_save_IFS
9549
9550 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9551fi
9552fi
9553ax_pthread_config=$ac_cv_prog_ax_pthread_config
9554if test -n "$ax_pthread_config"; then
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9556$as_echo "$ax_pthread_config" >&6; }
9557else
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9559$as_echo "no" >&6; }
9560fi
9561
9562
cristya316db12011-10-24 00:49:45 +00009563 if test x"$ax_pthread_config" = xno; then continue; fi
9564 PTHREAD_CFLAGS="`pthread-config --cflags`"
9565 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9566 ;;
cristy73bd4a52010-10-05 11:24:23 +00009567
9568 *)
9569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9570$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9571 PTHREAD_LIBS="-l$flag"
9572 ;;
9573 esac
9574
9575 save_LIBS="$LIBS"
9576 save_CFLAGS="$CFLAGS"
9577 LIBS="$PTHREAD_LIBS $LIBS"
9578 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9579
9580 # Check for various functions. We must include pthread.h,
9581 # since some functions may be macros. (On the Sequent, we
9582 # need a special flag -Kthread to make this header compile.)
9583 # We check for pthread_join because it is in -lpthread on IRIX
9584 # while pthread_create is in libc. We check for pthread_attr_init
9585 # due to DEC craziness with -lpthreads. We check for
9586 # pthread_cleanup_push because it is one of the few pthread
9587 # functions on Solaris that doesn't have a non-functional libc stub.
9588 # We try pthread_create on general principles.
9589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9590/* end confdefs.h. */
9591#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009592 static void routine(void *a) { a = 0; }
9593 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009594int
9595main ()
9596{
9597pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009598 pthread_create(&th, 0, start_routine, 0);
9599 pthread_join(th, 0);
9600 pthread_attr_init(&attr);
9601 pthread_cleanup_push(routine, 0);
9602 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009603 ;
9604 return 0;
9605}
9606_ACEOF
9607if ac_fn_c_try_link "$LINENO"; then :
9608 ax_pthread_ok=yes
9609fi
9610rm -f core conftest.err conftest.$ac_objext \
9611 conftest$ac_exeext conftest.$ac_ext
9612
9613 LIBS="$save_LIBS"
9614 CFLAGS="$save_CFLAGS"
9615
9616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9617$as_echo "$ax_pthread_ok" >&6; }
9618 if test "x$ax_pthread_ok" = xyes; then
9619 break;
9620 fi
9621
9622 PTHREAD_LIBS=""
9623 PTHREAD_CFLAGS=""
9624done
9625fi
9626
9627# Various other checks:
9628if test "x$ax_pthread_ok" = xyes; then
9629 save_LIBS="$LIBS"
9630 LIBS="$PTHREAD_LIBS $LIBS"
9631 save_CFLAGS="$CFLAGS"
9632 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9633
9634 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009636$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009637 attr_name=unknown
9638 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009640/* end confdefs.h. */
9641#include <pthread.h>
9642int
9643main ()
9644{
cristya316db12011-10-24 00:49:45 +00009645int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009646 ;
9647 return 0;
9648}
9649_ACEOF
9650if ac_fn_c_try_link "$LINENO"; then :
9651 attr_name=$attr; break
9652fi
9653rm -f core conftest.err conftest.$ac_objext \
9654 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009655 done
cristy73bd4a52010-10-05 11:24:23 +00009656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9657$as_echo "$attr_name" >&6; }
9658 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9659
9660cat >>confdefs.h <<_ACEOF
9661#define PTHREAD_CREATE_JOINABLE $attr_name
9662_ACEOF
9663
9664 fi
9665
9666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9667$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9668 flag=no
9669 case "${host_cpu}-${host_os}" in
9670 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9671 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9672 esac
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9674$as_echo "${flag}" >&6; }
9675 if test "x$flag" != xno; then
9676 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9677 fi
9678
cristya316db12011-10-24 00:49:45 +00009679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9680$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9681if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9682 $as_echo_n "(cached) " >&6
9683else
9684
9685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9686/* end confdefs.h. */
9687
9688 #include <pthread.h>
9689int
9690main ()
9691{
9692int i = PTHREAD_PRIO_INHERIT;
9693 ;
9694 return 0;
9695}
9696_ACEOF
9697if ac_fn_c_try_link "$LINENO"; then :
9698 ax_cv_PTHREAD_PRIO_INHERIT=yes
9699else
9700 ax_cv_PTHREAD_PRIO_INHERIT=no
9701fi
9702rm -f core conftest.err conftest.$ac_objext \
9703 conftest$ac_exeext conftest.$ac_ext
9704
9705fi
9706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9707$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9708 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9709
9710$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9711
9712fi
9713
cristy73bd4a52010-10-05 11:24:23 +00009714 LIBS="$save_LIBS"
9715 CFLAGS="$save_CFLAGS"
9716
9717 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009718 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009719 for ac_prog in xlc_r cc_r
9720do
9721 # Extract the first word of "$ac_prog", so it can be a program name with args.
9722set dummy $ac_prog; ac_word=$2
9723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9724$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009725if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009726 $as_echo_n "(cached) " >&6
9727else
9728 if test -n "$PTHREAD_CC"; then
9729 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9730else
9731as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9732for as_dir in $PATH
9733do
9734 IFS=$as_save_IFS
9735 test -z "$as_dir" && as_dir=.
9736 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009738 ac_cv_prog_PTHREAD_CC="$ac_prog"
9739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9740 break 2
9741 fi
9742done
9743 done
9744IFS=$as_save_IFS
9745
9746fi
9747fi
9748PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9749if test -n "$PTHREAD_CC"; then
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9751$as_echo "$PTHREAD_CC" >&6; }
9752else
9753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9754$as_echo "no" >&6; }
9755fi
9756
9757
9758 test -n "$PTHREAD_CC" && break
9759done
9760test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9761
9762 else
9763 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009764 fi
cristy73bd4a52010-10-05 11:24:23 +00009765else
9766 PTHREAD_CC="$CC"
9767fi
9768
9769
9770
9771
9772
9773# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9774if test x"$ax_pthread_ok" = xyes; then
9775
9776$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9777
9778 :
9779else
9780 ax_pthread_ok=no
9781
9782fi
9783ac_ext=c
9784ac_cpp='$CPP $CPPFLAGS'
9785ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9786ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9787ac_compiler_gnu=$ac_cv_c_compiler_gnu
9788
9789
9790
9791# Check whether --enable-opencl was given.
9792if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009793 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009794else
cristy48794642012-09-02 15:19:08 +00009795 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009796fi
9797
9798
cristy48794642012-09-02 15:19:08 +00009799if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009800 ac_ext=c
9801ac_cpp='$CPP $CPPFLAGS'
9802ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9803ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9804ac_compiler_gnu=$ac_cv_c_compiler_gnu
9805
cristy75314cc2012-09-15 23:08:29 +00009806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9807$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9808if ${ax_cv_c_compiler_ms+:} false; then :
9809 $as_echo_n "(cached) " >&6
9810else
9811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9812/* end confdefs.h. */
9813
9814int
9815main ()
9816{
9817#ifndef _MSC_VER
9818 choke me
9819#endif
9820
9821 ;
9822 return 0;
9823}
9824_ACEOF
9825if ac_fn_c_try_compile "$LINENO"; then :
9826 ax_compiler_ms=yes
9827else
9828 ax_compiler_ms=no
9829fi
9830rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9831ax_cv_c_compiler_ms=$ax_compiler_ms
9832
9833fi
9834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9835$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009836 if test X$ax_compiler_ms = Xno; then :
9837 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9838fi
9839
9840 ax_save_CPPFLAGS=$CPPFLAGS
9841 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9842 for ac_header in CL/cl.h OpenCL/cl.h
9843do :
9844 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9845ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009846if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009847 cat >>confdefs.h <<_ACEOF
9848#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9849_ACEOF
9850
9851fi
9852
9853done
9854
9855 CPPFLAGS=$ax_save_CPPFLAGS
9856
9857 for ac_header in windows.h
9858do :
9859 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009860if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009861 cat >>confdefs.h <<_ACEOF
9862#define HAVE_WINDOWS_H 1
9863_ACEOF
9864
9865fi
9866
9867done
9868
9869
9870
9871
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9873$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009874if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009875 $as_echo_n "(cached) " >&6
9876else
9877 ax_cv_check_cl_libcl=no
9878 case $host_cpu in
9879 x86_64) ax_check_cl_libdir=lib64 ;;
9880 *) ax_check_cl_libdir=lib ;;
9881 esac
9882 ax_save_CPPFLAGS=$CPPFLAGS
9883 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9884 ax_save_LIBS=$LIBS
9885 LIBS=""
9886 ax_check_libs="-lOpenCL -lCL -lclparser"
9887 for ax_lib in $ax_check_libs; do
9888 if test X$ax_compiler_ms = Xyes; then :
9889 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9890else
9891 ax_try_lib=$ax_lib
9892fi
9893 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9894 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9895/* end confdefs.h. */
9896
9897 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9898 # include <windows.h>
9899 # endif
9900 # ifdef HAVE_CL_CL_H
9901 # include <CL/cl.h>
9902 # elif defined(HAVE_OPENCL_CL_H)
9903 # include <OpenCL/cl.h>
9904 # else
9905 # error no CL.h
9906 # endif
9907int
9908main ()
9909{
9910clCreateContextFromType(0,0,0,0,0)
9911 ;
9912 return 0;
9913}
9914_ACEOF
9915if ac_fn_c_try_link "$LINENO"; then :
9916 ax_cv_check_cl_libcl=$ax_try_lib; break
9917else
9918 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"
9919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9920/* end confdefs.h. */
9921
9922 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9923 # include <windows.h>
9924 # endif
9925 # ifdef HAVE_CL_CL_H
9926 # include <CL/cl.h>
9927 # elif defined(HAVE_OPENCL_CL_H)
9928 # include <OpenCL/cl.h>
9929 # else
9930 # error no CL.h
9931 # endif
9932int
9933main ()
9934{
9935clCreateContextFromType(0,0,0,0,0)
9936 ;
9937 return 0;
9938}
9939_ACEOF
9940if ac_fn_c_try_link "$LINENO"; then :
9941 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9942else
cristy78c5a0c2010-12-04 20:00:59 +00009943 ax_check_cl_dylib_flag='-Wl,-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"
cristy73bd4a52010-10-05 11:24:23 +00009944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9945/* end confdefs.h. */
9946
9947 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9948 # include <windows.h>
9949 # endif
9950 # ifdef HAVE_CL_CL_H
9951 # include <CL/cl.h>
9952 # elif defined(HAVE_OPENCL_CL_H)
9953 # include <OpenCL/cl.h>
9954 # else
9955 # error no CL.h
9956 # endif
9957int
9958main ()
9959{
9960clCreateContextFromType(0,0,0,0,0)
9961 ;
9962 return 0;
9963}
9964_ACEOF
9965if ac_fn_c_try_link "$LINENO"; then :
9966 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9967fi
9968rm -f core conftest.err conftest.$ac_objext \
9969 conftest$ac_exeext conftest.$ac_ext
9970fi
9971rm -f core conftest.err conftest.$ac_objext \
9972 conftest$ac_exeext conftest.$ac_ext
9973fi
9974rm -f core conftest.err conftest.$ac_objext \
9975 conftest$ac_exeext conftest.$ac_ext
9976 done
9977
cristyc3f8b8e2011-12-22 14:55:16 +00009978 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009979 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9981/* end confdefs.h. */
9982
9983 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9984 # include <windows.h>
9985 # endif
9986 # ifdef HAVE_CL_CL_H
9987 # include <CL/cl.h>
9988 # elif defined(HAVE_OPENCL_CL_H)
9989 # include <OpenCL/cl.h>
9990 # else
9991 # error no CL.h
9992 # endif
9993int
9994main ()
9995{
9996clCreateContextFromType(0,0,0,0,0)
9997 ;
9998 return 0;
9999}
10000_ACEOF
10001if ac_fn_c_try_link "$LINENO"; then :
10002 ax_cv_check_cl_libcl=$LIBS
10003fi
10004rm -f core conftest.err conftest.$ac_objext \
10005 conftest$ac_exeext conftest.$ac_ext
10006fi
10007
10008 LIBS=$ax_save_LIBS
10009 CPPFLAGS=$ax_save_CPPFLAGS
10010fi
10011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10012$as_echo "$ax_cv_check_cl_libcl" >&6; }
10013
10014 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10015 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10016else
10017 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10018$as_echo "#define _OPENCL 1" >>confdefs.h
10019
10020fi
10021 ac_ext=c
10022ac_cpp='$CPP $CPPFLAGS'
10023ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10024ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10025ac_compiler_gnu=$ac_cv_c_compiler_gnu
10026
10027fi
10028
10029
10030
10031
cristyc7083c12009-10-14 03:16:55 +000010032CFLAGS="$CL_CFLAGS $CFLAGS"
10033LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010034
cristy391f1ce2010-09-09 17:23:28 +000010035if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010036 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010037 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10038 fi
cristyfd9dcd42010-08-08 18:07:02 +000010039fi
cristy2e8b51d2009-10-17 18:26:15 +000010040
cristy3ed852e2009-09-05 21:47:34 +000010041########
10042#
10043# Check for large file support
10044#
10045########
10046# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010047if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010048 enableval=$enable_largefile;
10049fi
10050
10051if test "$enable_largefile" != no; then
10052
cristy8b350f62009-11-15 23:12:43 +000010053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010054$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010055if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010056 $as_echo_n "(cached) " >&6
10057else
10058 ac_cv_sys_largefile_CC=no
10059 if test "$GCC" != yes; then
10060 ac_save_CC=$CC
10061 while :; do
10062 # IRIX 6.2 and later do not support large files by default,
10063 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010065/* end confdefs.h. */
10066#include <sys/types.h>
10067 /* Check that off_t can represent 2**63 - 1 correctly.
10068 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10069 since some C++ compilers masquerading as C compilers
10070 incorrectly reject 9223372036854775807. */
10071#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10072 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10073 && LARGE_OFF_T % 2147483647 == 1)
10074 ? 1 : -1];
10075int
10076main ()
10077{
10078
10079 ;
10080 return 0;
10081}
10082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010083 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010084 break
cristy3ed852e2009-09-05 21:47:34 +000010085fi
cristy3ed852e2009-09-05 21:47:34 +000010086rm -f core conftest.err conftest.$ac_objext
10087 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010088 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010089 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010090fi
cristy3ed852e2009-09-05 21:47:34 +000010091rm -f core conftest.err conftest.$ac_objext
10092 break
10093 done
10094 CC=$ac_save_CC
10095 rm -f conftest.$ac_ext
10096 fi
10097fi
cristy8b350f62009-11-15 23:12:43 +000010098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010099$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10100 if test "$ac_cv_sys_largefile_CC" != no; then
10101 CC=$CC$ac_cv_sys_largefile_CC
10102 fi
10103
cristy8b350f62009-11-15 23:12:43 +000010104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010105$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010106if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010107 $as_echo_n "(cached) " >&6
10108else
10109 while :; do
cristy8b350f62009-11-15 23:12:43 +000010110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010111/* end confdefs.h. */
10112#include <sys/types.h>
10113 /* Check that off_t can represent 2**63 - 1 correctly.
10114 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10115 since some C++ compilers masquerading as C compilers
10116 incorrectly reject 9223372036854775807. */
10117#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10118 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10119 && LARGE_OFF_T % 2147483647 == 1)
10120 ? 1 : -1];
10121int
10122main ()
10123{
10124
10125 ;
10126 return 0;
10127}
10128_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010129if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010130 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010131fi
cristy3ed852e2009-09-05 21:47:34 +000010132rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010134/* end confdefs.h. */
10135#define _FILE_OFFSET_BITS 64
10136#include <sys/types.h>
10137 /* Check that off_t can represent 2**63 - 1 correctly.
10138 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10139 since some C++ compilers masquerading as C compilers
10140 incorrectly reject 9223372036854775807. */
10141#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10142 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10143 && LARGE_OFF_T % 2147483647 == 1)
10144 ? 1 : -1];
10145int
10146main ()
10147{
10148
10149 ;
10150 return 0;
10151}
10152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010153if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010154 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010155fi
cristy3ed852e2009-09-05 21:47:34 +000010156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10157 ac_cv_sys_file_offset_bits=unknown
10158 break
10159done
10160fi
cristy8b350f62009-11-15 23:12:43 +000010161{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010162$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10163case $ac_cv_sys_file_offset_bits in #(
10164 no | unknown) ;;
10165 *)
10166cat >>confdefs.h <<_ACEOF
10167#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10168_ACEOF
10169;;
10170esac
10171rm -rf conftest*
10172 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010174$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010175if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010176 $as_echo_n "(cached) " >&6
10177else
10178 while :; do
cristy8b350f62009-11-15 23:12:43 +000010179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010180/* end confdefs.h. */
10181#include <sys/types.h>
10182 /* Check that off_t can represent 2**63 - 1 correctly.
10183 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10184 since some C++ compilers masquerading as C compilers
10185 incorrectly reject 9223372036854775807. */
10186#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10187 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10188 && LARGE_OFF_T % 2147483647 == 1)
10189 ? 1 : -1];
10190int
10191main ()
10192{
10193
10194 ;
10195 return 0;
10196}
10197_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010198if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010199 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010200fi
cristy3ed852e2009-09-05 21:47:34 +000010201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010203/* end confdefs.h. */
10204#define _LARGE_FILES 1
10205#include <sys/types.h>
10206 /* Check that off_t can represent 2**63 - 1 correctly.
10207 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10208 since some C++ compilers masquerading as C compilers
10209 incorrectly reject 9223372036854775807. */
10210#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10211 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10212 && LARGE_OFF_T % 2147483647 == 1)
10213 ? 1 : -1];
10214int
10215main ()
10216{
10217
10218 ;
10219 return 0;
10220}
10221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010222if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010223 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010224fi
cristy3ed852e2009-09-05 21:47:34 +000010225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10226 ac_cv_sys_large_files=unknown
10227 break
10228done
10229fi
cristy8b350f62009-11-15 23:12:43 +000010230{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010231$as_echo "$ac_cv_sys_large_files" >&6; }
10232case $ac_cv_sys_large_files in #(
10233 no | unknown) ;;
10234 *)
10235cat >>confdefs.h <<_ACEOF
10236#define _LARGE_FILES $ac_cv_sys_large_files
10237_ACEOF
10238;;
10239esac
10240rm -rf conftest*
10241 fi
cristy14fefe52012-05-21 00:59:18 +000010242
10243
cristy3ed852e2009-09-05 21:47:34 +000010244fi
10245
cristy8b350f62009-11-15 23:12:43 +000010246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010247$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010248if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010249 $as_echo_n "(cached) " >&6
10250else
10251 while :; do
cristy8b350f62009-11-15 23:12:43 +000010252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010253/* end confdefs.h. */
10254#include <sys/types.h> /* for off_t */
10255 #include <stdio.h>
10256int
10257main ()
10258{
10259int (*fp) (FILE *, off_t, int) = fseeko;
10260 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10261 ;
10262 return 0;
10263}
10264_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010265if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010266 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010267fi
cristy8b350f62009-11-15 23:12:43 +000010268rm -f core conftest.err conftest.$ac_objext \
10269 conftest$ac_exeext conftest.$ac_ext
10270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010271/* end confdefs.h. */
10272#define _LARGEFILE_SOURCE 1
10273#include <sys/types.h> /* for off_t */
10274 #include <stdio.h>
10275int
10276main ()
10277{
10278int (*fp) (FILE *, off_t, int) = fseeko;
10279 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10280 ;
10281 return 0;
10282}
10283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010285 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010286fi
cristy8b350f62009-11-15 23:12:43 +000010287rm -f core conftest.err conftest.$ac_objext \
10288 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010289 ac_cv_sys_largefile_source=unknown
10290 break
10291done
10292fi
cristy8b350f62009-11-15 23:12:43 +000010293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010294$as_echo "$ac_cv_sys_largefile_source" >&6; }
10295case $ac_cv_sys_largefile_source in #(
10296 no | unknown) ;;
10297 *)
10298cat >>confdefs.h <<_ACEOF
10299#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10300_ACEOF
10301;;
10302esac
10303rm -rf conftest*
10304
10305# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10306# in glibc 2.1.3, but that breaks too many other things.
10307# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10308if test $ac_cv_sys_largefile_source != unknown; then
10309
cristy8b350f62009-11-15 23:12:43 +000010310$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010311
10312fi
10313
10314LFS_CPPFLAGS=''
10315if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010316 case $ac_cv_sys_file_offset_bits in
10317 no)
10318 # nothing to do here as the host supports LFS fine
10319 ;;
10320 unknown)
cristy8b350f62009-11-15 23:12:43 +000010321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010322$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010323 if test "$cross_compiling" = yes; then :
10324 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010325$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010326as_fn_error $? "cannot run test program while cross compiling
10327See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010328else
cristy8b350f62009-11-15 23:12:43 +000010329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10330/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010331#include <unistd.h>
10332 main () {
10333 exit(!(sizeof(off_t) == 8));
10334 }
cristyda16f162011-02-19 23:52:17 +000010335int
10336main ()
10337{
10338
10339 ;
10340 return 0;
10341}
cristy3ed852e2009-09-05 21:47:34 +000010342_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010343if ac_fn_c_try_run "$LINENO"; then :
10344 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010345
cristy09b53e12011-10-14 12:47:22 +000010346 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10347$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010348else
cristy09b53e12011-10-14 12:47:22 +000010349 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10350$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010351fi
cristy8b350f62009-11-15 23:12:43 +000010352rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10353 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010354fi
10355
cristyc1e0cc12011-09-21 16:41:16 +000010356 ;;
10357 *)
10358 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10359 ;;
10360 esac
cristy3ed852e2009-09-05 21:47:34 +000010361 if test "$ac_cv_sys_large_files" != 'no'; then
10362 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10363 fi
10364 if test "$ac_cv_sys_largefile_source" != 'no'; then
10365 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10366 fi
10367fi
10368
10369
cristy3ed852e2009-09-05 21:47:34 +000010370# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010371enable_dlopen=yes
10372
10373
10374
10375case `pwd` in
10376 *\ * | *\ *)
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10378$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10379esac
10380
10381
10382
cristy99bd5232011-12-07 14:38:20 +000010383macro_version='2.4.2'
10384macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397
10398ltmain="$ac_aux_dir/ltmain.sh"
10399
cristy0c60a692010-11-04 01:09:47 +000010400# Backslashify metacharacters that are still active within
10401# double-quoted strings.
10402sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10403
10404# Same as above, but do not quote variable references.
10405double_quote_subst='s/\(["`\\]\)/\\\1/g'
10406
10407# Sed substitution to delay expansion of an escaped shell variable in a
10408# double_quote_subst'ed string.
10409delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10410
10411# Sed substitution to delay expansion of an escaped single quote.
10412delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10413
10414# Sed substitution to avoid accidental globbing in evaled expressions
10415no_glob_subst='s/\*/\\\*/g'
10416
cristy73bd4a52010-10-05 11:24:23 +000010417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10418$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010419if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010420 $as_echo_n "(cached) " >&6
10421else
10422 if test -n "$NM"; then
10423 # Let the user override the test.
10424 lt_cv_path_NM="$NM"
10425else
10426 lt_nm_to_check="${ac_tool_prefix}nm"
10427 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10428 lt_nm_to_check="$lt_nm_to_check nm"
10429 fi
10430 for lt_tmp_nm in $lt_nm_to_check; do
10431 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10432 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10433 IFS="$lt_save_ifs"
10434 test -z "$ac_dir" && ac_dir=.
10435 tmp_nm="$ac_dir/$lt_tmp_nm"
10436 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10437 # Check to see if the nm accepts a BSD-compat flag.
10438 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10439 # nm: unknown option "B" ignored
10440 # Tru64's nm complains that /dev/null is an invalid object file
10441 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10442 */dev/null* | *'Invalid file or object type'*)
10443 lt_cv_path_NM="$tmp_nm -B"
10444 break
10445 ;;
10446 *)
10447 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10448 */dev/null*)
10449 lt_cv_path_NM="$tmp_nm -p"
10450 break
10451 ;;
10452 *)
10453 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10454 continue # so that we can try to find one that supports BSD flags
10455 ;;
10456 esac
10457 ;;
10458 esac
10459 fi
10460 done
10461 IFS="$lt_save_ifs"
10462 done
10463 : ${lt_cv_path_NM=no}
10464fi
10465fi
10466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10467$as_echo "$lt_cv_path_NM" >&6; }
10468if test "$lt_cv_path_NM" != "no"; then
10469 NM="$lt_cv_path_NM"
10470else
10471 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010472 if test -n "$DUMPBIN"; then :
10473 # Let the user override the test.
10474 else
10475 if test -n "$ac_tool_prefix"; then
10476 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010477 do
10478 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10479set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10481$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010482if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010483 $as_echo_n "(cached) " >&6
10484else
10485 if test -n "$DUMPBIN"; then
10486 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10487else
10488as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489for as_dir in $PATH
10490do
10491 IFS=$as_save_IFS
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010495 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10497 break 2
10498 fi
10499done
10500 done
10501IFS=$as_save_IFS
10502
10503fi
10504fi
10505DUMPBIN=$ac_cv_prog_DUMPBIN
10506if test -n "$DUMPBIN"; then
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10508$as_echo "$DUMPBIN" >&6; }
10509else
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10511$as_echo "no" >&6; }
10512fi
10513
10514
10515 test -n "$DUMPBIN" && break
10516 done
10517fi
10518if test -z "$DUMPBIN"; then
10519 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010520 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010521do
10522 # Extract the first word of "$ac_prog", so it can be a program name with args.
10523set dummy $ac_prog; ac_word=$2
10524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10525$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010526if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010527 $as_echo_n "(cached) " >&6
10528else
10529 if test -n "$ac_ct_DUMPBIN"; then
10530 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10531else
10532as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10533for as_dir in $PATH
10534do
10535 IFS=$as_save_IFS
10536 test -z "$as_dir" && as_dir=.
10537 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010538 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010539 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10540 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10541 break 2
10542 fi
10543done
10544 done
10545IFS=$as_save_IFS
10546
10547fi
10548fi
10549ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10550if test -n "$ac_ct_DUMPBIN"; then
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10552$as_echo "$ac_ct_DUMPBIN" >&6; }
10553else
10554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10555$as_echo "no" >&6; }
10556fi
10557
10558
10559 test -n "$ac_ct_DUMPBIN" && break
10560done
10561
10562 if test "x$ac_ct_DUMPBIN" = x; then
10563 DUMPBIN=":"
10564 else
10565 case $cross_compiling:$ac_tool_warned in
10566yes:)
10567{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10568$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10569ac_tool_warned=yes ;;
10570esac
10571 DUMPBIN=$ac_ct_DUMPBIN
10572 fi
10573fi
10574
cristy0c60a692010-11-04 01:09:47 +000010575 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10576 *COFF*)
10577 DUMPBIN="$DUMPBIN -symbols"
10578 ;;
10579 *)
10580 DUMPBIN=:
10581 ;;
10582 esac
10583 fi
cristy73bd4a52010-10-05 11:24:23 +000010584
10585 if test "$DUMPBIN" != ":"; then
10586 NM="$DUMPBIN"
10587 fi
10588fi
10589test -z "$NM" && NM=nm
10590
10591
10592
10593
10594
10595
10596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10597$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010598if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010599 $as_echo_n "(cached) " >&6
10600else
10601 lt_cv_nm_interface="BSD nm"
10602 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010603 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010604 (eval "$ac_compile" 2>conftest.err)
10605 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010606 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010607 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10608 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010609 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010610 cat conftest.out >&5
10611 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10612 lt_cv_nm_interface="MS dumpbin"
10613 fi
10614 rm -f conftest*
10615fi
10616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10617$as_echo "$lt_cv_nm_interface" >&6; }
10618
10619# find the maximum length of command line arguments
10620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10621$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010622if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010623 $as_echo_n "(cached) " >&6
10624else
10625 i=0
10626 teststring="ABCD"
10627
10628 case $build_os in
10629 msdosdjgpp*)
10630 # On DJGPP, this test can blow up pretty badly due to problems in libc
10631 # (any single argument exceeding 2000 bytes causes a buffer overrun
10632 # during glob expansion). Even if it were fixed, the result of this
10633 # check would be larger than it should be.
10634 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10635 ;;
10636
10637 gnu*)
10638 # Under GNU Hurd, this test is not required because there is
10639 # no limit to the length of command line arguments.
10640 # Libtool will interpret -1 as no limit whatsoever
10641 lt_cv_sys_max_cmd_len=-1;
10642 ;;
10643
10644 cygwin* | mingw* | cegcc*)
10645 # On Win9x/ME, this test blows up -- it succeeds, but takes
10646 # about 5 minutes as the teststring grows exponentially.
10647 # Worse, since 9x/ME are not pre-emptively multitasking,
10648 # you end up with a "frozen" computer, even though with patience
10649 # the test eventually succeeds (with a max line length of 256k).
10650 # Instead, let's just punt: use the minimum linelength reported by
10651 # all of the supported platforms: 8192 (on NT/2K/XP).
10652 lt_cv_sys_max_cmd_len=8192;
10653 ;;
10654
cristy0c60a692010-11-04 01:09:47 +000010655 mint*)
10656 # On MiNT this can take a long time and run out of memory.
10657 lt_cv_sys_max_cmd_len=8192;
10658 ;;
10659
cristy73bd4a52010-10-05 11:24:23 +000010660 amigaos*)
10661 # On AmigaOS with pdksh, this test takes hours, literally.
10662 # So we just punt and use a minimum line length of 8192.
10663 lt_cv_sys_max_cmd_len=8192;
10664 ;;
10665
10666 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10667 # This has been around since 386BSD, at least. Likely further.
10668 if test -x /sbin/sysctl; then
10669 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10670 elif test -x /usr/sbin/sysctl; then
10671 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10672 else
10673 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10674 fi
10675 # And add a safety zone
10676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10677 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10678 ;;
10679
10680 interix*)
10681 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10682 lt_cv_sys_max_cmd_len=196608
10683 ;;
10684
cristy99bd5232011-12-07 14:38:20 +000010685 os2*)
10686 # The test takes a long time on OS/2.
10687 lt_cv_sys_max_cmd_len=8192
10688 ;;
10689
cristy73bd4a52010-10-05 11:24:23 +000010690 osf*)
10691 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10692 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10693 # nice to cause kernel panics so lets avoid the loop below.
10694 # First set a reasonable default.
10695 lt_cv_sys_max_cmd_len=16384
10696 #
10697 if test -x /sbin/sysconfig; then
10698 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10699 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10700 esac
10701 fi
10702 ;;
10703 sco3.2v5*)
10704 lt_cv_sys_max_cmd_len=102400
10705 ;;
10706 sysv5* | sco5v6* | sysv4.2uw2*)
10707 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10708 if test -n "$kargmax"; then
10709 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10710 else
10711 lt_cv_sys_max_cmd_len=32768
10712 fi
10713 ;;
10714 *)
10715 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10716 if test -n "$lt_cv_sys_max_cmd_len"; then
10717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10718 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10719 else
10720 # Make teststring a little bigger before we do anything with it.
10721 # a 1K string should be a reasonable start.
10722 for i in 1 2 3 4 5 6 7 8 ; do
10723 teststring=$teststring$teststring
10724 done
10725 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10726 # If test is not a shell built-in, we'll probably end up computing a
10727 # maximum length that is only half of the actual maximum length, but
10728 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010729 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010730 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010731 test $i != 17 # 1/2 MB should be enough
10732 do
10733 i=`expr $i + 1`
10734 teststring=$teststring$teststring
10735 done
10736 # Only check the string length outside the loop.
10737 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10738 teststring=
10739 # Add a significant safety factor because C++ compilers can tack on
10740 # massive amounts of additional arguments before passing them to the
10741 # linker. It appears as though 1/2 is a usable value.
10742 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10743 fi
10744 ;;
10745 esac
10746
10747fi
10748
10749if test -n $lt_cv_sys_max_cmd_len ; then
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10751$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10752else
10753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10754$as_echo "none" >&6; }
10755fi
10756max_cmd_len=$lt_cv_sys_max_cmd_len
10757
10758
10759
10760
10761
10762
10763: ${CP="cp -f"}
10764: ${MV="mv -f"}
10765: ${RM="rm -f"}
10766
10767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10768$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10769# Try some XSI features
10770xsi_shell=no
10771( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010772 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10773 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010774 && eval 'test $(( 1 + 1 )) -eq 2 \
10775 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10776 && xsi_shell=yes
10777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10778$as_echo "$xsi_shell" >&6; }
10779
10780
10781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10782$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10783lt_shell_append=no
10784( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10785 >/dev/null 2>&1 \
10786 && lt_shell_append=yes
10787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10788$as_echo "$lt_shell_append" >&6; }
10789
10790
10791if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10792 lt_unset=unset
10793else
10794 lt_unset=false
10795fi
10796
10797
10798
10799
10800
10801# test EBCDIC or ASCII
10802case `echo X|tr X '\101'` in
10803 A) # ASCII based system
10804 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10805 lt_SP2NL='tr \040 \012'
10806 lt_NL2SP='tr \015\012 \040\040'
10807 ;;
10808 *) # EBCDIC based system
10809 lt_SP2NL='tr \100 \n'
10810 lt_NL2SP='tr \r\n \100\100'
10811 ;;
10812esac
10813
10814
10815
10816
10817
10818
10819
10820
10821
cristyda16f162011-02-19 23:52:17 +000010822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10823$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10824if ${lt_cv_to_host_file_cmd+:} false; then :
10825 $as_echo_n "(cached) " >&6
10826else
10827 case $host in
10828 *-*-mingw* )
10829 case $build in
10830 *-*-mingw* ) # actually msys
10831 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10832 ;;
10833 *-*-cygwin* )
10834 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10835 ;;
10836 * ) # otherwise, assume *nix
10837 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10838 ;;
10839 esac
10840 ;;
10841 *-*-cygwin* )
10842 case $build in
10843 *-*-mingw* ) # actually msys
10844 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10845 ;;
10846 *-*-cygwin* )
10847 lt_cv_to_host_file_cmd=func_convert_file_noop
10848 ;;
10849 * ) # otherwise, assume *nix
10850 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10851 ;;
10852 esac
10853 ;;
10854 * ) # unhandled hosts (and "normal" native builds)
10855 lt_cv_to_host_file_cmd=func_convert_file_noop
10856 ;;
10857esac
10858
10859fi
10860
10861to_host_file_cmd=$lt_cv_to_host_file_cmd
10862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10863$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10864
10865
10866
10867
10868
10869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10870$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10871if ${lt_cv_to_tool_file_cmd+:} false; then :
10872 $as_echo_n "(cached) " >&6
10873else
10874 #assume ordinary cross tools, or native build.
10875lt_cv_to_tool_file_cmd=func_convert_file_noop
10876case $host in
10877 *-*-mingw* )
10878 case $build in
10879 *-*-mingw* ) # actually msys
10880 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10881 ;;
10882 esac
10883 ;;
10884esac
10885
10886fi
10887
10888to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10890$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10891
10892
10893
10894
10895
cristy73bd4a52010-10-05 11:24:23 +000010896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10897$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010898if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010899 $as_echo_n "(cached) " >&6
10900else
10901 lt_cv_ld_reload_flag='-r'
10902fi
10903{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10904$as_echo "$lt_cv_ld_reload_flag" >&6; }
10905reload_flag=$lt_cv_ld_reload_flag
10906case $reload_flag in
10907"" | " "*) ;;
10908*) reload_flag=" $reload_flag" ;;
10909esac
10910reload_cmds='$LD$reload_flag -o $output$reload_objs'
10911case $host_os in
cristyda16f162011-02-19 23:52:17 +000010912 cygwin* | mingw* | pw32* | cegcc*)
10913 if test "$GCC" != yes; then
10914 reload_cmds=false
10915 fi
10916 ;;
cristy73bd4a52010-10-05 11:24:23 +000010917 darwin*)
10918 if test "$GCC" = yes; then
10919 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10920 else
10921 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10922 fi
10923 ;;
10924esac
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934if test -n "$ac_tool_prefix"; then
10935 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10936set dummy ${ac_tool_prefix}objdump; ac_word=$2
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10938$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010939if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010940 $as_echo_n "(cached) " >&6
10941else
10942 if test -n "$OBJDUMP"; then
10943 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10944else
10945as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10946for as_dir in $PATH
10947do
10948 IFS=$as_save_IFS
10949 test -z "$as_dir" && as_dir=.
10950 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010951 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010952 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10953 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10954 break 2
10955 fi
10956done
10957 done
10958IFS=$as_save_IFS
10959
10960fi
10961fi
10962OBJDUMP=$ac_cv_prog_OBJDUMP
10963if test -n "$OBJDUMP"; then
10964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10965$as_echo "$OBJDUMP" >&6; }
10966else
10967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10968$as_echo "no" >&6; }
10969fi
10970
10971
10972fi
10973if test -z "$ac_cv_prog_OBJDUMP"; then
10974 ac_ct_OBJDUMP=$OBJDUMP
10975 # Extract the first word of "objdump", so it can be a program name with args.
10976set dummy objdump; ac_word=$2
10977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10978$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010979if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010980 $as_echo_n "(cached) " >&6
10981else
10982 if test -n "$ac_ct_OBJDUMP"; then
10983 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10984else
10985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10986for as_dir in $PATH
10987do
10988 IFS=$as_save_IFS
10989 test -z "$as_dir" && as_dir=.
10990 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010991 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010992 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10994 break 2
10995 fi
10996done
10997 done
10998IFS=$as_save_IFS
10999
11000fi
11001fi
11002ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11003if test -n "$ac_ct_OBJDUMP"; then
11004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11005$as_echo "$ac_ct_OBJDUMP" >&6; }
11006else
11007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11008$as_echo "no" >&6; }
11009fi
11010
11011 if test "x$ac_ct_OBJDUMP" = x; then
11012 OBJDUMP="false"
11013 else
11014 case $cross_compiling:$ac_tool_warned in
11015yes:)
11016{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11017$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11018ac_tool_warned=yes ;;
11019esac
11020 OBJDUMP=$ac_ct_OBJDUMP
11021 fi
11022else
11023 OBJDUMP="$ac_cv_prog_OBJDUMP"
11024fi
11025
11026test -z "$OBJDUMP" && OBJDUMP=objdump
11027
11028
11029
11030
11031
11032
11033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11034$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011035if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011036 $as_echo_n "(cached) " >&6
11037else
11038 lt_cv_file_magic_cmd='$MAGIC_CMD'
11039lt_cv_file_magic_test_file=
11040lt_cv_deplibs_check_method='unknown'
11041# Need to set the preceding variable on all platforms that support
11042# interlibrary dependencies.
11043# 'none' -- dependencies not supported.
11044# `unknown' -- same as none, but documents that we really don't know.
11045# 'pass_all' -- all dependencies passed with no checks.
11046# 'test_compile' -- check by making test program.
11047# 'file_magic [[regex]]' -- check by looking for files in library path
11048# which responds to the $file_magic_cmd with a given extended regex.
11049# If you have `file' or equivalent on your system and you're not sure
11050# whether `pass_all' will *always* work, you probably want this one.
11051
11052case $host_os in
11053aix[4-9]*)
11054 lt_cv_deplibs_check_method=pass_all
11055 ;;
11056
11057beos*)
11058 lt_cv_deplibs_check_method=pass_all
11059 ;;
11060
11061bsdi[45]*)
11062 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11063 lt_cv_file_magic_cmd='/usr/bin/file -L'
11064 lt_cv_file_magic_test_file=/shlib/libc.so
11065 ;;
11066
11067cygwin*)
11068 # func_win32_libid is a shell function defined in ltmain.sh
11069 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11070 lt_cv_file_magic_cmd='func_win32_libid'
11071 ;;
11072
11073mingw* | pw32*)
11074 # Base MSYS/MinGW do not provide the 'file' command needed by
11075 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11076 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011077 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11078 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011079 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11080 lt_cv_file_magic_cmd='func_win32_libid'
11081 else
cristy0c60a692010-11-04 01:09:47 +000011082 # Keep this pattern in sync with the one in func_win32_libid.
11083 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
cristy73bd4a52010-10-05 11:24:23 +000011084 lt_cv_file_magic_cmd='$OBJDUMP -f'
11085 fi
11086 ;;
11087
cristy0c60a692010-11-04 01:09:47 +000011088cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011089 # use the weaker test based on 'objdump'. See mingw*.
11090 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11091 lt_cv_file_magic_cmd='$OBJDUMP -f'
11092 ;;
11093
11094darwin* | rhapsody*)
11095 lt_cv_deplibs_check_method=pass_all
11096 ;;
11097
11098freebsd* | dragonfly*)
11099 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11100 case $host_cpu in
11101 i*86 )
11102 # Not sure whether the presence of OpenBSD here was a mistake.
11103 # Let's accept both of them until this is cleared up.
11104 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11105 lt_cv_file_magic_cmd=/usr/bin/file
11106 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11107 ;;
11108 esac
11109 else
11110 lt_cv_deplibs_check_method=pass_all
11111 fi
11112 ;;
11113
11114gnu*)
11115 lt_cv_deplibs_check_method=pass_all
11116 ;;
11117
cristy0c60a692010-11-04 01:09:47 +000011118haiku*)
11119 lt_cv_deplibs_check_method=pass_all
11120 ;;
11121
cristy73bd4a52010-10-05 11:24:23 +000011122hpux10.20* | hpux11*)
11123 lt_cv_file_magic_cmd=/usr/bin/file
11124 case $host_cpu in
11125 ia64*)
11126 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11127 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11128 ;;
11129 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011130 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
cristy73bd4a52010-10-05 11:24:23 +000011131 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11132 ;;
11133 *)
cristy0c60a692010-11-04 01:09:47 +000011134 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
cristy73bd4a52010-10-05 11:24:23 +000011135 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11136 ;;
11137 esac
11138 ;;
11139
11140interix[3-9]*)
11141 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11142 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11143 ;;
11144
11145irix5* | irix6* | nonstopux*)
11146 case $LD in
11147 *-32|*"-32 ") libmagic=32-bit;;
11148 *-n32|*"-n32 ") libmagic=N32;;
11149 *-64|*"-64 ") libmagic=64-bit;;
11150 *) libmagic=never-match;;
11151 esac
11152 lt_cv_deplibs_check_method=pass_all
11153 ;;
11154
cristy99bd5232011-12-07 14:38:20 +000011155# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011156linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011157 lt_cv_deplibs_check_method=pass_all
11158 ;;
11159
11160netbsd*)
11161 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11162 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11163 else
11164 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11165 fi
11166 ;;
11167
11168newos6*)
11169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11170 lt_cv_file_magic_cmd=/usr/bin/file
11171 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11172 ;;
11173
11174*nto* | *qnx*)
11175 lt_cv_deplibs_check_method=pass_all
11176 ;;
11177
11178openbsd*)
11179 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11180 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11181 else
11182 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11183 fi
11184 ;;
11185
11186osf3* | osf4* | osf5*)
11187 lt_cv_deplibs_check_method=pass_all
11188 ;;
11189
11190rdos*)
11191 lt_cv_deplibs_check_method=pass_all
11192 ;;
11193
11194solaris*)
11195 lt_cv_deplibs_check_method=pass_all
11196 ;;
11197
11198sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11199 lt_cv_deplibs_check_method=pass_all
11200 ;;
11201
11202sysv4 | sysv4.3*)
11203 case $host_vendor in
11204 motorola)
11205 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]'
11206 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11207 ;;
11208 ncr)
11209 lt_cv_deplibs_check_method=pass_all
11210 ;;
11211 sequent)
11212 lt_cv_file_magic_cmd='/bin/file'
11213 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11214 ;;
11215 sni)
11216 lt_cv_file_magic_cmd='/bin/file'
11217 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11218 lt_cv_file_magic_test_file=/lib/libc.so
11219 ;;
11220 siemens)
11221 lt_cv_deplibs_check_method=pass_all
11222 ;;
11223 pc)
11224 lt_cv_deplibs_check_method=pass_all
11225 ;;
11226 esac
11227 ;;
11228
11229tpf*)
11230 lt_cv_deplibs_check_method=pass_all
11231 ;;
11232esac
11233
11234fi
11235{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11236$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011237
11238file_magic_glob=
11239want_nocaseglob=no
11240if test "$build" = "$host"; then
11241 case $host_os in
11242 mingw* | pw32*)
11243 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11244 want_nocaseglob=yes
11245 else
11246 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11247 fi
11248 ;;
11249 esac
11250fi
11251
cristy73bd4a52010-10-05 11:24:23 +000011252file_magic_cmd=$lt_cv_file_magic_cmd
11253deplibs_check_method=$lt_cv_deplibs_check_method
11254test -z "$deplibs_check_method" && deplibs_check_method=unknown
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
cristyda16f162011-02-19 23:52:17 +000011267
11268
11269
11270
11271
11272
11273
11274
11275
11276
cristy73bd4a52010-10-05 11:24:23 +000011277if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011278 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11279set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11281$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011282if ${ac_cv_prog_DLLTOOL+:} false; then :
11283 $as_echo_n "(cached) " >&6
11284else
11285 if test -n "$DLLTOOL"; then
11286 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11287else
11288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11289for as_dir in $PATH
11290do
11291 IFS=$as_save_IFS
11292 test -z "$as_dir" && as_dir=.
11293 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011294 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011295 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11297 break 2
11298 fi
11299done
11300 done
11301IFS=$as_save_IFS
11302
11303fi
11304fi
11305DLLTOOL=$ac_cv_prog_DLLTOOL
11306if test -n "$DLLTOOL"; then
11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11308$as_echo "$DLLTOOL" >&6; }
11309else
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11311$as_echo "no" >&6; }
11312fi
11313
11314
11315fi
11316if test -z "$ac_cv_prog_DLLTOOL"; then
11317 ac_ct_DLLTOOL=$DLLTOOL
11318 # Extract the first word of "dlltool", so it can be a program name with args.
11319set dummy dlltool; ac_word=$2
11320{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11321$as_echo_n "checking for $ac_word... " >&6; }
11322if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11323 $as_echo_n "(cached) " >&6
11324else
11325 if test -n "$ac_ct_DLLTOOL"; then
11326 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11327else
11328as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11329for as_dir in $PATH
11330do
11331 IFS=$as_save_IFS
11332 test -z "$as_dir" && as_dir=.
11333 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011334 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011335 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11336 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11337 break 2
11338 fi
11339done
11340 done
11341IFS=$as_save_IFS
11342
11343fi
11344fi
11345ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11346if test -n "$ac_ct_DLLTOOL"; then
11347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11348$as_echo "$ac_ct_DLLTOOL" >&6; }
11349else
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11351$as_echo "no" >&6; }
11352fi
11353
11354 if test "x$ac_ct_DLLTOOL" = x; then
11355 DLLTOOL="false"
11356 else
11357 case $cross_compiling:$ac_tool_warned in
11358yes:)
11359{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11360$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11361ac_tool_warned=yes ;;
11362esac
11363 DLLTOOL=$ac_ct_DLLTOOL
11364 fi
11365else
11366 DLLTOOL="$ac_cv_prog_DLLTOOL"
11367fi
11368
11369test -z "$DLLTOOL" && DLLTOOL=dlltool
11370
11371
11372
11373
11374
11375
11376
11377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11378$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11379if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11380 $as_echo_n "(cached) " >&6
11381else
11382 lt_cv_sharedlib_from_linklib_cmd='unknown'
11383
11384case $host_os in
11385cygwin* | mingw* | pw32* | cegcc*)
11386 # two different shell functions defined in ltmain.sh
11387 # decide which to use based on capabilities of $DLLTOOL
11388 case `$DLLTOOL --help 2>&1` in
11389 *--identify-strict*)
11390 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11391 ;;
11392 *)
11393 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11394 ;;
11395 esac
11396 ;;
11397*)
11398 # fallback: assume linklib IS sharedlib
11399 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11400 ;;
11401esac
11402
11403fi
11404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11405$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11406sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11407test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11408
11409
11410
11411
11412
11413
11414
11415if test -n "$ac_tool_prefix"; then
11416 for ac_prog in ar
11417 do
11418 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11419set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11420{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11421$as_echo_n "checking for $ac_word... " >&6; }
11422if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011423 $as_echo_n "(cached) " >&6
11424else
11425 if test -n "$AR"; then
11426 ac_cv_prog_AR="$AR" # Let the user override the test.
11427else
11428as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11429for as_dir in $PATH
11430do
11431 IFS=$as_save_IFS
11432 test -z "$as_dir" && as_dir=.
11433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011435 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11437 break 2
11438 fi
11439done
11440 done
11441IFS=$as_save_IFS
11442
11443fi
11444fi
11445AR=$ac_cv_prog_AR
11446if test -n "$AR"; then
11447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11448$as_echo "$AR" >&6; }
11449else
11450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11451$as_echo "no" >&6; }
11452fi
11453
11454
cristyda16f162011-02-19 23:52:17 +000011455 test -n "$AR" && break
11456 done
cristy73bd4a52010-10-05 11:24:23 +000011457fi
cristyda16f162011-02-19 23:52:17 +000011458if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011459 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011460 for ac_prog in ar
11461do
11462 # Extract the first word of "$ac_prog", so it can be a program name with args.
11463set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11465$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011466if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011467 $as_echo_n "(cached) " >&6
11468else
11469 if test -n "$ac_ct_AR"; then
11470 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11471else
11472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11473for as_dir in $PATH
11474do
11475 IFS=$as_save_IFS
11476 test -z "$as_dir" && as_dir=.
11477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011479 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11481 break 2
11482 fi
11483done
11484 done
11485IFS=$as_save_IFS
11486
11487fi
11488fi
11489ac_ct_AR=$ac_cv_prog_ac_ct_AR
11490if test -n "$ac_ct_AR"; then
11491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11492$as_echo "$ac_ct_AR" >&6; }
11493else
11494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11495$as_echo "no" >&6; }
11496fi
11497
cristyda16f162011-02-19 23:52:17 +000011498
11499 test -n "$ac_ct_AR" && break
11500done
11501
cristy73bd4a52010-10-05 11:24:23 +000011502 if test "x$ac_ct_AR" = x; then
11503 AR="false"
11504 else
11505 case $cross_compiling:$ac_tool_warned in
11506yes:)
11507{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11508$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11509ac_tool_warned=yes ;;
11510esac
11511 AR=$ac_ct_AR
11512 fi
cristy73bd4a52010-10-05 11:24:23 +000011513fi
11514
cristyda16f162011-02-19 23:52:17 +000011515: ${AR=ar}
11516: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011517
11518
11519
11520
11521
11522
11523
11524
11525
11526
11527
cristyda16f162011-02-19 23:52:17 +000011528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11529$as_echo_n "checking for archiver @FILE support... " >&6; }
11530if ${lt_cv_ar_at_file+:} false; then :
11531 $as_echo_n "(cached) " >&6
11532else
11533 lt_cv_ar_at_file=no
11534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11535/* end confdefs.h. */
11536
11537int
11538main ()
11539{
11540
11541 ;
11542 return 0;
11543}
11544_ACEOF
11545if ac_fn_c_try_compile "$LINENO"; then :
11546 echo conftest.$ac_objext > conftest.lst
11547 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11548 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11549 (eval $lt_ar_try) 2>&5
11550 ac_status=$?
11551 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11552 test $ac_status = 0; }
11553 if test "$ac_status" -eq 0; then
11554 # Ensure the archiver fails upon bogus file names.
11555 rm -f conftest.$ac_objext libconftest.a
11556 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11557 (eval $lt_ar_try) 2>&5
11558 ac_status=$?
11559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11560 test $ac_status = 0; }
11561 if test "$ac_status" -ne 0; then
11562 lt_cv_ar_at_file=@
11563 fi
11564 fi
11565 rm -f conftest.* libconftest.a
11566
11567fi
11568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11569
11570fi
11571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11572$as_echo "$lt_cv_ar_at_file" >&6; }
11573
11574if test "x$lt_cv_ar_at_file" = xno; then
11575 archiver_list_spec=
11576else
11577 archiver_list_spec=$lt_cv_ar_at_file
11578fi
11579
11580
11581
11582
11583
11584
11585
cristy73bd4a52010-10-05 11:24:23 +000011586if test -n "$ac_tool_prefix"; then
11587 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11588set dummy ${ac_tool_prefix}strip; ac_word=$2
11589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011591if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011592 $as_echo_n "(cached) " >&6
11593else
11594 if test -n "$STRIP"; then
11595 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11596else
11597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11598for as_dir in $PATH
11599do
11600 IFS=$as_save_IFS
11601 test -z "$as_dir" && as_dir=.
11602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011604 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11606 break 2
11607 fi
11608done
11609 done
11610IFS=$as_save_IFS
11611
11612fi
11613fi
11614STRIP=$ac_cv_prog_STRIP
11615if test -n "$STRIP"; then
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11617$as_echo "$STRIP" >&6; }
11618else
11619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11620$as_echo "no" >&6; }
11621fi
11622
11623
11624fi
11625if test -z "$ac_cv_prog_STRIP"; then
11626 ac_ct_STRIP=$STRIP
11627 # Extract the first word of "strip", so it can be a program name with args.
11628set dummy strip; ac_word=$2
11629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011631if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011632 $as_echo_n "(cached) " >&6
11633else
11634 if test -n "$ac_ct_STRIP"; then
11635 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11636else
11637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11638for as_dir in $PATH
11639do
11640 IFS=$as_save_IFS
11641 test -z "$as_dir" && as_dir=.
11642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011644 ac_cv_prog_ac_ct_STRIP="strip"
11645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11646 break 2
11647 fi
11648done
11649 done
11650IFS=$as_save_IFS
11651
11652fi
11653fi
11654ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11655if test -n "$ac_ct_STRIP"; then
11656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11657$as_echo "$ac_ct_STRIP" >&6; }
11658else
11659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11660$as_echo "no" >&6; }
11661fi
11662
11663 if test "x$ac_ct_STRIP" = x; then
11664 STRIP=":"
11665 else
11666 case $cross_compiling:$ac_tool_warned in
11667yes:)
11668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11670ac_tool_warned=yes ;;
11671esac
11672 STRIP=$ac_ct_STRIP
11673 fi
11674else
11675 STRIP="$ac_cv_prog_STRIP"
11676fi
11677
11678test -z "$STRIP" && STRIP=:
11679
11680
11681
11682
11683
11684
11685if test -n "$ac_tool_prefix"; then
11686 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11687set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11689$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011690if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011691 $as_echo_n "(cached) " >&6
11692else
11693 if test -n "$RANLIB"; then
11694 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11695else
11696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11697for as_dir in $PATH
11698do
11699 IFS=$as_save_IFS
11700 test -z "$as_dir" && as_dir=.
11701 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011703 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11705 break 2
11706 fi
11707done
11708 done
11709IFS=$as_save_IFS
11710
11711fi
11712fi
11713RANLIB=$ac_cv_prog_RANLIB
11714if test -n "$RANLIB"; then
11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11716$as_echo "$RANLIB" >&6; }
11717else
11718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11719$as_echo "no" >&6; }
11720fi
11721
11722
11723fi
11724if test -z "$ac_cv_prog_RANLIB"; then
11725 ac_ct_RANLIB=$RANLIB
11726 # Extract the first word of "ranlib", so it can be a program name with args.
11727set dummy ranlib; ac_word=$2
11728{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11729$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011730if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011731 $as_echo_n "(cached) " >&6
11732else
11733 if test -n "$ac_ct_RANLIB"; then
11734 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11735else
11736as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11737for as_dir in $PATH
11738do
11739 IFS=$as_save_IFS
11740 test -z "$as_dir" && as_dir=.
11741 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011743 ac_cv_prog_ac_ct_RANLIB="ranlib"
11744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11745 break 2
11746 fi
11747done
11748 done
11749IFS=$as_save_IFS
11750
11751fi
11752fi
11753ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11754if test -n "$ac_ct_RANLIB"; then
11755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11756$as_echo "$ac_ct_RANLIB" >&6; }
11757else
11758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11759$as_echo "no" >&6; }
11760fi
11761
11762 if test "x$ac_ct_RANLIB" = x; then
11763 RANLIB=":"
11764 else
11765 case $cross_compiling:$ac_tool_warned in
11766yes:)
11767{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11768$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11769ac_tool_warned=yes ;;
11770esac
11771 RANLIB=$ac_ct_RANLIB
11772 fi
11773else
11774 RANLIB="$ac_cv_prog_RANLIB"
11775fi
11776
11777test -z "$RANLIB" && RANLIB=:
11778
11779
11780
11781
11782
11783
11784# Determine commands to create old-style static archives.
11785old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11786old_postinstall_cmds='chmod 644 $oldlib'
11787old_postuninstall_cmds=
11788
11789if test -n "$RANLIB"; then
11790 case $host_os in
11791 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011792 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011793 ;;
11794 *)
cristy99bd5232011-12-07 14:38:20 +000011795 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011796 ;;
11797 esac
cristy99bd5232011-12-07 14:38:20 +000011798 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011799fi
11800
cristy0c60a692010-11-04 01:09:47 +000011801case $host_os in
11802 darwin*)
11803 lock_old_archive_extraction=yes ;;
11804 *)
11805 lock_old_archive_extraction=no ;;
11806esac
11807
11808
11809
11810
11811
11812
cristy73bd4a52010-10-05 11:24:23 +000011813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842
11843
11844
11845
11846# If no C compiler was specified, use CC.
11847LTCC=${LTCC-"$CC"}
11848
11849# If no C compiler flags were specified, use CFLAGS.
11850LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11851
11852# Allow CC to be a program name with arguments.
11853compiler=$CC
11854
11855
11856# Check for command to grab the raw symbol name followed by C symbol from nm.
11857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11858$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011859if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011860 $as_echo_n "(cached) " >&6
11861else
11862
11863# These are sane defaults that work on at least a few old systems.
11864# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11865
11866# Character class describing NM global symbol codes.
11867symcode='[BCDEGRST]'
11868
11869# Regexp to match symbols that can be accessed directly from C.
11870sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11871
11872# Define system-specific variables.
11873case $host_os in
11874aix*)
11875 symcode='[BCDT]'
11876 ;;
11877cygwin* | mingw* | pw32* | cegcc*)
11878 symcode='[ABCDGISTW]'
11879 ;;
11880hpux*)
11881 if test "$host_cpu" = ia64; then
11882 symcode='[ABCDEGRST]'
11883 fi
11884 ;;
11885irix* | nonstopux*)
11886 symcode='[BCDEGRST]'
11887 ;;
11888osf*)
11889 symcode='[BCDEGQRST]'
11890 ;;
11891solaris*)
11892 symcode='[BDRT]'
11893 ;;
11894sco3.2v5*)
11895 symcode='[DT]'
11896 ;;
11897sysv4.2uw2*)
11898 symcode='[DT]'
11899 ;;
11900sysv5* | sco5v6* | unixware* | OpenUNIX*)
11901 symcode='[ABDT]'
11902 ;;
11903sysv4)
11904 symcode='[DFNSTU]'
11905 ;;
11906esac
11907
11908# If we're using GNU nm, then use its standard symbol codes.
11909case `$NM -V 2>&1` in
11910*GNU* | *'with BFD'*)
11911 symcode='[ABCDGIRSTW]' ;;
11912esac
11913
11914# Transform an extracted symbol line into a proper C declaration.
11915# Some systems (esp. on ia64) link data and code symbols differently,
11916# so use this general approach.
11917lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11918
11919# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011920lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11921lt_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'"
cristy73bd4a52010-10-05 11:24:23 +000011922
11923# Handle CRLF in mingw tool chain
11924opt_cr=
11925case $build_os in
11926mingw*)
11927 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11928 ;;
11929esac
11930
11931# Try without a prefix underscore, then with it.
11932for ac_symprfx in "" "_"; do
11933
11934 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11935 symxfrm="\\1 $ac_symprfx\\2 \\2"
11936
11937 # Write the raw and C identifiers.
11938 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11939 # Fake it for dumpbin and say T for any non-static function
11940 # and D for any global variable.
11941 # Also find C++ and __fastcall symbols from MSVC++,
11942 # which start with @ or ?.
11943 lt_cv_sys_global_symbol_pipe="$AWK '"\
11944" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011945" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011946" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11947" \$ 0!~/External *\|/{next};"\
11948" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11949" {if(hide[section]) next};"\
11950" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11951" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11952" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11953" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11954" ' prfx=^$ac_symprfx"
11955 else
11956 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11957 fi
cristyda16f162011-02-19 23:52:17 +000011958 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011959
11960 # Check to see that the pipe works correctly.
11961 pipe_works=no
11962
11963 rm -f conftest*
11964 cat > conftest.$ac_ext <<_LT_EOF
11965#ifdef __cplusplus
11966extern "C" {
11967#endif
11968char nm_test_var;
11969void nm_test_func(void);
11970void nm_test_func(void){}
11971#ifdef __cplusplus
11972}
11973#endif
11974int main(){nm_test_var='a';nm_test_func();return(0);}
11975_LT_EOF
11976
11977 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11978 (eval $ac_compile) 2>&5
11979 ac_status=$?
11980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11981 test $ac_status = 0; }; then
11982 # Now try to grab the symbols.
11983 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011984 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11985 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011986 ac_status=$?
11987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11988 test $ac_status = 0; } && test -s "$nlist"; then
11989 # Try sorting and uniquifying the output.
11990 if sort "$nlist" | uniq > "$nlist"T; then
11991 mv -f "$nlist"T "$nlist"
11992 else
11993 rm -f "$nlist"T
11994 fi
11995
11996 # Make sure that we snagged all the symbols we need.
11997 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11998 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11999 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012000/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12001#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12002/* DATA imports from DLLs on WIN32 con't be const, because runtime
12003 relocations are performed -- see ld's documentation on pseudo-relocs. */
12004# define LT_DLSYM_CONST
12005#elif defined(__osf__)
12006/* This system does not cope well with relocations in const data. */
12007# define LT_DLSYM_CONST
12008#else
12009# define LT_DLSYM_CONST const
12010#endif
12011
cristy73bd4a52010-10-05 11:24:23 +000012012#ifdef __cplusplus
12013extern "C" {
12014#endif
12015
12016_LT_EOF
12017 # Now generate the symbol file.
12018 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12019
12020 cat <<_LT_EOF >> conftest.$ac_ext
12021
12022/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012023LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012024 const char *name;
12025 void *address;
12026}
12027lt__PROGRAM__LTX_preloaded_symbols[] =
12028{
12029 { "@PROGRAM@", (void *) 0 },
12030_LT_EOF
12031 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12032 cat <<\_LT_EOF >> conftest.$ac_ext
12033 {0, (void *) 0}
12034};
12035
12036/* This works around a problem in FreeBSD linker */
12037#ifdef FREEBSD_WORKAROUND
12038static const void *lt_preloaded_setup() {
12039 return lt__PROGRAM__LTX_preloaded_symbols;
12040}
12041#endif
12042
12043#ifdef __cplusplus
12044}
12045#endif
12046_LT_EOF
12047 # Now try linking the two files.
12048 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012049 lt_globsym_save_LIBS=$LIBS
12050 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012051 LIBS="conftstm.$ac_objext"
12052 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12054 (eval $ac_link) 2>&5
12055 ac_status=$?
12056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12057 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12058 pipe_works=yes
12059 fi
cristyda16f162011-02-19 23:52:17 +000012060 LIBS=$lt_globsym_save_LIBS
12061 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012062 else
12063 echo "cannot find nm_test_func in $nlist" >&5
12064 fi
12065 else
12066 echo "cannot find nm_test_var in $nlist" >&5
12067 fi
12068 else
12069 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12070 fi
12071 else
12072 echo "$progname: failed program was:" >&5
12073 cat conftest.$ac_ext >&5
12074 fi
12075 rm -rf conftest* conftst*
12076
12077 # Do not use the global_symbol_pipe unless it works.
12078 if test "$pipe_works" = yes; then
12079 break
12080 else
12081 lt_cv_sys_global_symbol_pipe=
12082 fi
12083done
12084
12085fi
12086
12087if test -z "$lt_cv_sys_global_symbol_pipe"; then
12088 lt_cv_sys_global_symbol_to_cdecl=
12089fi
12090if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12092$as_echo "failed" >&6; }
12093else
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12095$as_echo "ok" >&6; }
12096fi
12097
cristyda16f162011-02-19 23:52:17 +000012098# Response file support.
12099if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12100 nm_file_list_spec='@'
12101elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12102 nm_file_list_spec='@'
12103fi
cristy73bd4a52010-10-05 11:24:23 +000012104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
12124
cristyda16f162011-02-19 23:52:17 +000012125
12126
12127
12128
12129
12130
12131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12132$as_echo_n "checking for sysroot... " >&6; }
12133
12134# Check whether --with-sysroot was given.
12135if test "${with_sysroot+set}" = set; then :
12136 withval=$with_sysroot;
12137else
12138 with_sysroot=no
12139fi
12140
12141
12142lt_sysroot=
12143case ${with_sysroot} in #(
12144 yes)
12145 if test "$GCC" = yes; then
12146 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12147 fi
12148 ;; #(
12149 /*)
12150 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12151 ;; #(
12152 no|'')
12153 ;; #(
12154 *)
12155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12156$as_echo "${with_sysroot}" >&6; }
12157 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12158 ;;
12159esac
12160
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12162$as_echo "${lt_sysroot:-no}" >&6; }
12163
12164
12165
12166
12167
cristy73bd4a52010-10-05 11:24:23 +000012168# Check whether --enable-libtool-lock was given.
12169if test "${enable_libtool_lock+set}" = set; then :
12170 enableval=$enable_libtool_lock;
12171fi
12172
12173test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12174
12175# Some flags need to be propagated to the compiler or linker for good
12176# libtool support.
12177case $host in
12178ia64-*-hpux*)
12179 # Find out which ABI we are using.
12180 echo 'int i;' > conftest.$ac_ext
12181 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12182 (eval $ac_compile) 2>&5
12183 ac_status=$?
12184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12185 test $ac_status = 0; }; then
12186 case `/usr/bin/file conftest.$ac_objext` in
12187 *ELF-32*)
12188 HPUX_IA64_MODE="32"
12189 ;;
12190 *ELF-64*)
12191 HPUX_IA64_MODE="64"
12192 ;;
12193 esac
12194 fi
12195 rm -rf conftest*
12196 ;;
12197*-*-irix6*)
12198 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012199 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12201 (eval $ac_compile) 2>&5
12202 ac_status=$?
12203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12204 test $ac_status = 0; }; then
12205 if test "$lt_cv_prog_gnu_ld" = yes; then
12206 case `/usr/bin/file conftest.$ac_objext` in
12207 *32-bit*)
12208 LD="${LD-ld} -melf32bsmip"
12209 ;;
12210 *N32*)
12211 LD="${LD-ld} -melf32bmipn32"
12212 ;;
12213 *64-bit*)
12214 LD="${LD-ld} -melf64bmip"
12215 ;;
12216 esac
12217 else
12218 case `/usr/bin/file conftest.$ac_objext` in
12219 *32-bit*)
12220 LD="${LD-ld} -32"
12221 ;;
12222 *N32*)
12223 LD="${LD-ld} -n32"
12224 ;;
12225 *64-bit*)
12226 LD="${LD-ld} -64"
12227 ;;
12228 esac
12229 fi
12230 fi
12231 rm -rf conftest*
12232 ;;
12233
12234x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12235s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12236 # Find out which ABI we are using.
12237 echo 'int i;' > conftest.$ac_ext
12238 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12239 (eval $ac_compile) 2>&5
12240 ac_status=$?
12241 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12242 test $ac_status = 0; }; then
12243 case `/usr/bin/file conftest.o` in
12244 *32-bit*)
12245 case $host in
12246 x86_64-*kfreebsd*-gnu)
12247 LD="${LD-ld} -m elf_i386_fbsd"
12248 ;;
12249 x86_64-*linux*)
12250 LD="${LD-ld} -m elf_i386"
12251 ;;
12252 ppc64-*linux*|powerpc64-*linux*)
12253 LD="${LD-ld} -m elf32ppclinux"
12254 ;;
12255 s390x-*linux*)
12256 LD="${LD-ld} -m elf_s390"
12257 ;;
12258 sparc64-*linux*)
12259 LD="${LD-ld} -m elf32_sparc"
12260 ;;
12261 esac
12262 ;;
12263 *64-bit*)
12264 case $host in
12265 x86_64-*kfreebsd*-gnu)
12266 LD="${LD-ld} -m elf_x86_64_fbsd"
12267 ;;
12268 x86_64-*linux*)
12269 LD="${LD-ld} -m elf_x86_64"
12270 ;;
12271 ppc*-*linux*|powerpc*-*linux*)
12272 LD="${LD-ld} -m elf64ppc"
12273 ;;
12274 s390*-*linux*|s390*-*tpf*)
12275 LD="${LD-ld} -m elf64_s390"
12276 ;;
12277 sparc*-*linux*)
12278 LD="${LD-ld} -m elf64_sparc"
12279 ;;
12280 esac
12281 ;;
12282 esac
12283 fi
12284 rm -rf conftest*
12285 ;;
12286
12287*-*-sco3.2v5*)
12288 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12289 SAVE_CFLAGS="$CFLAGS"
12290 CFLAGS="$CFLAGS -belf"
12291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12292$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012293if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012294 $as_echo_n "(cached) " >&6
12295else
12296 ac_ext=c
12297ac_cpp='$CPP $CPPFLAGS'
12298ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12299ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12300ac_compiler_gnu=$ac_cv_c_compiler_gnu
12301
12302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12303/* end confdefs.h. */
12304
12305int
12306main ()
12307{
12308
12309 ;
12310 return 0;
12311}
12312_ACEOF
12313if ac_fn_c_try_link "$LINENO"; then :
12314 lt_cv_cc_needs_belf=yes
12315else
12316 lt_cv_cc_needs_belf=no
12317fi
12318rm -f core conftest.err conftest.$ac_objext \
12319 conftest$ac_exeext conftest.$ac_ext
12320 ac_ext=c
12321ac_cpp='$CPP $CPPFLAGS'
12322ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12323ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12324ac_compiler_gnu=$ac_cv_c_compiler_gnu
12325
12326fi
12327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12328$as_echo "$lt_cv_cc_needs_belf" >&6; }
12329 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12330 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12331 CFLAGS="$SAVE_CFLAGS"
12332 fi
12333 ;;
cristy99bd5232011-12-07 14:38:20 +000012334*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012335 # Find out which ABI we are using.
12336 echo 'int i;' > conftest.$ac_ext
12337 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12338 (eval $ac_compile) 2>&5
12339 ac_status=$?
12340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12341 test $ac_status = 0; }; then
12342 case `/usr/bin/file conftest.o` in
12343 *64-bit*)
12344 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012345 yes*)
12346 case $host in
12347 i?86-*-solaris*)
12348 LD="${LD-ld} -m elf_x86_64"
12349 ;;
12350 sparc*-*-solaris*)
12351 LD="${LD-ld} -m elf64_sparc"
12352 ;;
12353 esac
12354 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12355 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12356 LD="${LD-ld}_sol2"
12357 fi
12358 ;;
cristy73bd4a52010-10-05 11:24:23 +000012359 *)
12360 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12361 LD="${LD-ld} -64"
12362 fi
12363 ;;
12364 esac
12365 ;;
12366 esac
12367 fi
12368 rm -rf conftest*
12369 ;;
12370esac
12371
12372need_locks="$enable_libtool_lock"
12373
cristyda16f162011-02-19 23:52:17 +000012374if test -n "$ac_tool_prefix"; then
12375 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12376set dummy ${ac_tool_prefix}mt; ac_word=$2
12377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12378$as_echo_n "checking for $ac_word... " >&6; }
12379if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12380 $as_echo_n "(cached) " >&6
12381else
12382 if test -n "$MANIFEST_TOOL"; then
12383 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12384else
12385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12386for as_dir in $PATH
12387do
12388 IFS=$as_save_IFS
12389 test -z "$as_dir" && as_dir=.
12390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012392 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12394 break 2
12395 fi
12396done
12397 done
12398IFS=$as_save_IFS
12399
12400fi
12401fi
12402MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12403if test -n "$MANIFEST_TOOL"; then
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12405$as_echo "$MANIFEST_TOOL" >&6; }
12406else
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12408$as_echo "no" >&6; }
12409fi
12410
12411
12412fi
12413if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12414 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12415 # Extract the first word of "mt", so it can be a program name with args.
12416set dummy mt; ac_word=$2
12417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12418$as_echo_n "checking for $ac_word... " >&6; }
12419if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12420 $as_echo_n "(cached) " >&6
12421else
12422 if test -n "$ac_ct_MANIFEST_TOOL"; then
12423 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12424else
12425as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12426for as_dir in $PATH
12427do
12428 IFS=$as_save_IFS
12429 test -z "$as_dir" && as_dir=.
12430 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012431 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012432 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12434 break 2
12435 fi
12436done
12437 done
12438IFS=$as_save_IFS
12439
12440fi
12441fi
12442ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12443if test -n "$ac_ct_MANIFEST_TOOL"; then
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12445$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12446else
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12448$as_echo "no" >&6; }
12449fi
12450
12451 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12452 MANIFEST_TOOL=":"
12453 else
12454 case $cross_compiling:$ac_tool_warned in
12455yes:)
12456{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12457$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12458ac_tool_warned=yes ;;
12459esac
12460 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12461 fi
12462else
12463 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12464fi
12465
12466test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12468$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12469if ${lt_cv_path_mainfest_tool+:} false; then :
12470 $as_echo_n "(cached) " >&6
12471else
12472 lt_cv_path_mainfest_tool=no
12473 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12474 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12475 cat conftest.err >&5
12476 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12477 lt_cv_path_mainfest_tool=yes
12478 fi
12479 rm -f conftest*
12480fi
12481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12482$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12483if test "x$lt_cv_path_mainfest_tool" != xyes; then
12484 MANIFEST_TOOL=:
12485fi
12486
12487
12488
12489
12490
cristy73bd4a52010-10-05 11:24:23 +000012491
12492 case $host_os in
12493 rhapsody* | darwin*)
12494 if test -n "$ac_tool_prefix"; then
12495 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12496set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12498$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012499if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012500 $as_echo_n "(cached) " >&6
12501else
12502 if test -n "$DSYMUTIL"; then
12503 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12504else
12505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12506for as_dir in $PATH
12507do
12508 IFS=$as_save_IFS
12509 test -z "$as_dir" && as_dir=.
12510 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012512 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12514 break 2
12515 fi
12516done
12517 done
12518IFS=$as_save_IFS
12519
12520fi
12521fi
12522DSYMUTIL=$ac_cv_prog_DSYMUTIL
12523if test -n "$DSYMUTIL"; then
12524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12525$as_echo "$DSYMUTIL" >&6; }
12526else
12527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12528$as_echo "no" >&6; }
12529fi
12530
12531
12532fi
12533if test -z "$ac_cv_prog_DSYMUTIL"; then
12534 ac_ct_DSYMUTIL=$DSYMUTIL
12535 # Extract the first word of "dsymutil", so it can be a program name with args.
12536set dummy dsymutil; ac_word=$2
12537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12538$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012539if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012540 $as_echo_n "(cached) " >&6
12541else
12542 if test -n "$ac_ct_DSYMUTIL"; then
12543 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12544else
12545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12546for as_dir in $PATH
12547do
12548 IFS=$as_save_IFS
12549 test -z "$as_dir" && as_dir=.
12550 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012551 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012552 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12554 break 2
12555 fi
12556done
12557 done
12558IFS=$as_save_IFS
12559
12560fi
12561fi
12562ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12563if test -n "$ac_ct_DSYMUTIL"; then
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12565$as_echo "$ac_ct_DSYMUTIL" >&6; }
12566else
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12568$as_echo "no" >&6; }
12569fi
12570
12571 if test "x$ac_ct_DSYMUTIL" = x; then
12572 DSYMUTIL=":"
12573 else
12574 case $cross_compiling:$ac_tool_warned in
12575yes:)
12576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12578ac_tool_warned=yes ;;
12579esac
12580 DSYMUTIL=$ac_ct_DSYMUTIL
12581 fi
12582else
12583 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12584fi
12585
12586 if test -n "$ac_tool_prefix"; then
12587 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12588set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12590$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012591if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012592 $as_echo_n "(cached) " >&6
12593else
12594 if test -n "$NMEDIT"; then
12595 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12596else
12597as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12598for as_dir in $PATH
12599do
12600 IFS=$as_save_IFS
12601 test -z "$as_dir" && as_dir=.
12602 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012604 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12606 break 2
12607 fi
12608done
12609 done
12610IFS=$as_save_IFS
12611
12612fi
12613fi
12614NMEDIT=$ac_cv_prog_NMEDIT
12615if test -n "$NMEDIT"; then
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12617$as_echo "$NMEDIT" >&6; }
12618else
12619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12620$as_echo "no" >&6; }
12621fi
12622
12623
12624fi
12625if test -z "$ac_cv_prog_NMEDIT"; then
12626 ac_ct_NMEDIT=$NMEDIT
12627 # Extract the first word of "nmedit", so it can be a program name with args.
12628set dummy nmedit; ac_word=$2
12629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12630$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012631if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012632 $as_echo_n "(cached) " >&6
12633else
12634 if test -n "$ac_ct_NMEDIT"; then
12635 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12636else
12637as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12638for as_dir in $PATH
12639do
12640 IFS=$as_save_IFS
12641 test -z "$as_dir" && as_dir=.
12642 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012643 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012644 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12645 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12646 break 2
12647 fi
12648done
12649 done
12650IFS=$as_save_IFS
12651
12652fi
12653fi
12654ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12655if test -n "$ac_ct_NMEDIT"; then
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12657$as_echo "$ac_ct_NMEDIT" >&6; }
12658else
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12660$as_echo "no" >&6; }
12661fi
12662
12663 if test "x$ac_ct_NMEDIT" = x; then
12664 NMEDIT=":"
12665 else
12666 case $cross_compiling:$ac_tool_warned in
12667yes:)
12668{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12669$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12670ac_tool_warned=yes ;;
12671esac
12672 NMEDIT=$ac_ct_NMEDIT
12673 fi
12674else
12675 NMEDIT="$ac_cv_prog_NMEDIT"
12676fi
12677
12678 if test -n "$ac_tool_prefix"; then
12679 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12680set dummy ${ac_tool_prefix}lipo; ac_word=$2
12681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12682$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012683if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012684 $as_echo_n "(cached) " >&6
12685else
12686 if test -n "$LIPO"; then
12687 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12688else
12689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12690for as_dir in $PATH
12691do
12692 IFS=$as_save_IFS
12693 test -z "$as_dir" && as_dir=.
12694 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012695 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012696 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12697 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12698 break 2
12699 fi
12700done
12701 done
12702IFS=$as_save_IFS
12703
12704fi
12705fi
12706LIPO=$ac_cv_prog_LIPO
12707if test -n "$LIPO"; then
12708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12709$as_echo "$LIPO" >&6; }
12710else
12711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12712$as_echo "no" >&6; }
12713fi
12714
12715
12716fi
12717if test -z "$ac_cv_prog_LIPO"; then
12718 ac_ct_LIPO=$LIPO
12719 # Extract the first word of "lipo", so it can be a program name with args.
12720set dummy lipo; ac_word=$2
12721{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12722$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012723if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012724 $as_echo_n "(cached) " >&6
12725else
12726 if test -n "$ac_ct_LIPO"; then
12727 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12728else
12729as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12730for as_dir in $PATH
12731do
12732 IFS=$as_save_IFS
12733 test -z "$as_dir" && as_dir=.
12734 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012736 ac_cv_prog_ac_ct_LIPO="lipo"
12737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12738 break 2
12739 fi
12740done
12741 done
12742IFS=$as_save_IFS
12743
12744fi
12745fi
12746ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12747if test -n "$ac_ct_LIPO"; then
12748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12749$as_echo "$ac_ct_LIPO" >&6; }
12750else
12751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12752$as_echo "no" >&6; }
12753fi
12754
12755 if test "x$ac_ct_LIPO" = x; then
12756 LIPO=":"
12757 else
12758 case $cross_compiling:$ac_tool_warned in
12759yes:)
12760{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12761$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12762ac_tool_warned=yes ;;
12763esac
12764 LIPO=$ac_ct_LIPO
12765 fi
12766else
12767 LIPO="$ac_cv_prog_LIPO"
12768fi
12769
12770 if test -n "$ac_tool_prefix"; then
12771 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12772set dummy ${ac_tool_prefix}otool; ac_word=$2
12773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12774$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012775if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012776 $as_echo_n "(cached) " >&6
12777else
12778 if test -n "$OTOOL"; then
12779 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12780else
12781as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12782for as_dir in $PATH
12783do
12784 IFS=$as_save_IFS
12785 test -z "$as_dir" && as_dir=.
12786 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012788 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12789 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12790 break 2
12791 fi
12792done
12793 done
12794IFS=$as_save_IFS
12795
12796fi
12797fi
12798OTOOL=$ac_cv_prog_OTOOL
12799if test -n "$OTOOL"; then
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12801$as_echo "$OTOOL" >&6; }
12802else
12803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12804$as_echo "no" >&6; }
12805fi
12806
12807
12808fi
12809if test -z "$ac_cv_prog_OTOOL"; then
12810 ac_ct_OTOOL=$OTOOL
12811 # Extract the first word of "otool", so it can be a program name with args.
12812set dummy otool; ac_word=$2
12813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12814$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012815if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012816 $as_echo_n "(cached) " >&6
12817else
12818 if test -n "$ac_ct_OTOOL"; then
12819 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12820else
12821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12822for as_dir in $PATH
12823do
12824 IFS=$as_save_IFS
12825 test -z "$as_dir" && as_dir=.
12826 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012828 ac_cv_prog_ac_ct_OTOOL="otool"
12829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12830 break 2
12831 fi
12832done
12833 done
12834IFS=$as_save_IFS
12835
12836fi
12837fi
12838ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12839if test -n "$ac_ct_OTOOL"; then
12840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12841$as_echo "$ac_ct_OTOOL" >&6; }
12842else
12843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12844$as_echo "no" >&6; }
12845fi
12846
12847 if test "x$ac_ct_OTOOL" = x; then
12848 OTOOL=":"
12849 else
12850 case $cross_compiling:$ac_tool_warned in
12851yes:)
12852{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12853$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12854ac_tool_warned=yes ;;
12855esac
12856 OTOOL=$ac_ct_OTOOL
12857 fi
12858else
12859 OTOOL="$ac_cv_prog_OTOOL"
12860fi
12861
12862 if test -n "$ac_tool_prefix"; then
12863 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12864set dummy ${ac_tool_prefix}otool64; ac_word=$2
12865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12866$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012867if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012868 $as_echo_n "(cached) " >&6
12869else
12870 if test -n "$OTOOL64"; then
12871 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12872else
12873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12874for as_dir in $PATH
12875do
12876 IFS=$as_save_IFS
12877 test -z "$as_dir" && as_dir=.
12878 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012880 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12882 break 2
12883 fi
12884done
12885 done
12886IFS=$as_save_IFS
12887
12888fi
12889fi
12890OTOOL64=$ac_cv_prog_OTOOL64
12891if test -n "$OTOOL64"; then
12892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12893$as_echo "$OTOOL64" >&6; }
12894else
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12896$as_echo "no" >&6; }
12897fi
12898
12899
12900fi
12901if test -z "$ac_cv_prog_OTOOL64"; then
12902 ac_ct_OTOOL64=$OTOOL64
12903 # Extract the first word of "otool64", so it can be a program name with args.
12904set dummy otool64; ac_word=$2
12905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12906$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012907if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012908 $as_echo_n "(cached) " >&6
12909else
12910 if test -n "$ac_ct_OTOOL64"; then
12911 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12912else
12913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12914for as_dir in $PATH
12915do
12916 IFS=$as_save_IFS
12917 test -z "$as_dir" && as_dir=.
12918 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012920 ac_cv_prog_ac_ct_OTOOL64="otool64"
12921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12922 break 2
12923 fi
12924done
12925 done
12926IFS=$as_save_IFS
12927
12928fi
12929fi
12930ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12931if test -n "$ac_ct_OTOOL64"; then
12932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12933$as_echo "$ac_ct_OTOOL64" >&6; }
12934else
12935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12936$as_echo "no" >&6; }
12937fi
12938
12939 if test "x$ac_ct_OTOOL64" = x; then
12940 OTOOL64=":"
12941 else
12942 case $cross_compiling:$ac_tool_warned in
12943yes:)
12944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12946ac_tool_warned=yes ;;
12947esac
12948 OTOOL64=$ac_ct_OTOOL64
12949 fi
12950else
12951 OTOOL64="$ac_cv_prog_OTOOL64"
12952fi
12953
12954
12955
12956
12957
12958
12959
12960
12961
12962
12963
12964
12965
12966
12967
12968
12969
12970
12971
12972
12973
12974
12975
12976
12977
12978
12979
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12981$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012982if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012983 $as_echo_n "(cached) " >&6
12984else
12985 lt_cv_apple_cc_single_mod=no
12986 if test -z "${LT_MULTI_MODULE}"; then
12987 # By default we will add the -single_module flag. You can override
12988 # by either setting the environment variable LT_MULTI_MODULE
12989 # non-empty at configure time, or by adding -multi_module to the
12990 # link flags.
12991 rm -rf libconftest.dylib*
12992 echo "int foo(void){return 1;}" > conftest.c
12993 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12994-dynamiclib -Wl,-single_module conftest.c" >&5
12995 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12996 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12997 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012998 # If there is a non-empty error log, and "single_module"
12999 # appears in it, assume the flag caused a linker warning
13000 if test -s conftest.err && $GREP single_module conftest.err; then
13001 cat conftest.err >&5
13002 # Otherwise, if the output was created with a 0 exit code from
13003 # the compiler, it worked.
13004 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013005 lt_cv_apple_cc_single_mod=yes
13006 else
13007 cat conftest.err >&5
13008 fi
13009 rm -rf libconftest.dylib*
13010 rm -f conftest.*
13011 fi
13012fi
13013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13014$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013015
cristy73bd4a52010-10-05 11:24:23 +000013016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13017$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013018if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013019 $as_echo_n "(cached) " >&6
13020else
13021 lt_cv_ld_exported_symbols_list=no
13022 save_LDFLAGS=$LDFLAGS
13023 echo "_main" > conftest.sym
13024 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13026/* end confdefs.h. */
13027
13028int
13029main ()
13030{
13031
13032 ;
13033 return 0;
13034}
13035_ACEOF
13036if ac_fn_c_try_link "$LINENO"; then :
13037 lt_cv_ld_exported_symbols_list=yes
13038else
13039 lt_cv_ld_exported_symbols_list=no
13040fi
13041rm -f core conftest.err conftest.$ac_objext \
13042 conftest$ac_exeext conftest.$ac_ext
13043 LDFLAGS="$save_LDFLAGS"
13044
13045fi
13046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13047$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013048
cristy0c60a692010-11-04 01:09:47 +000013049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13050$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013051if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013052 $as_echo_n "(cached) " >&6
13053else
13054 lt_cv_ld_force_load=no
13055 cat > conftest.c << _LT_EOF
13056int forced_loaded() { return 2;}
13057_LT_EOF
13058 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13059 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13060 echo "$AR cru libconftest.a conftest.o" >&5
13061 $AR cru libconftest.a conftest.o 2>&5
13062 echo "$RANLIB libconftest.a" >&5
13063 $RANLIB libconftest.a 2>&5
13064 cat > conftest.c << _LT_EOF
13065int main() { return 0;}
13066_LT_EOF
13067 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13068 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13069 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013070 if test -s conftest.err && $GREP force_load conftest.err; then
13071 cat conftest.err >&5
13072 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013073 lt_cv_ld_force_load=yes
13074 else
13075 cat conftest.err >&5
13076 fi
13077 rm -f conftest.err libconftest.a conftest conftest.c
13078 rm -rf conftest.dSYM
13079
13080fi
13081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13082$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013083 case $host_os in
13084 rhapsody* | darwin1.[012])
13085 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13086 darwin1.*)
13087 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13088 darwin*) # darwin 5.x on
13089 # if running on 10.5 or later, the deployment target defaults
13090 # to the OS version, if on x86, and 10.4, the deployment
13091 # target defaults to 10.4. Don't you love it?
13092 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13093 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13094 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13095 10.[012]*)
13096 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13097 10.*)
13098 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13099 esac
13100 ;;
13101 esac
13102 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13103 _lt_dar_single_mod='$single_module'
13104 fi
13105 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13106 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13107 else
13108 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13109 fi
cristy0c60a692010-11-04 01:09:47 +000013110 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013111 _lt_dsymutil='~$DSYMUTIL $lib || :'
13112 else
13113 _lt_dsymutil=
13114 fi
13115 ;;
13116 esac
13117
13118for ac_header in dlfcn.h
13119do :
13120 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13121"
cristyda16f162011-02-19 23:52:17 +000013122if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013123 cat >>confdefs.h <<_ACEOF
13124#define HAVE_DLFCN_H 1
13125_ACEOF
13126
13127fi
13128
13129done
13130
13131
13132
cristy73bd4a52010-10-05 11:24:23 +000013133
cristyda16f162011-02-19 23:52:17 +000013134func_stripname_cnf ()
13135{
13136 case ${2} in
13137 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13138 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13139 esac
13140} # func_stripname_cnf
13141
13142
13143
cristy73bd4a52010-10-05 11:24:23 +000013144
13145
13146# Set options
13147enable_win32_dll=yes
13148
13149case $host in
cristy0c60a692010-11-04 01:09:47 +000013150*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013151 if test -n "$ac_tool_prefix"; then
13152 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13153set dummy ${ac_tool_prefix}as; ac_word=$2
13154{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13155$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013156if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013157 $as_echo_n "(cached) " >&6
13158else
13159 if test -n "$AS"; then
13160 ac_cv_prog_AS="$AS" # Let the user override the test.
13161else
13162as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13163for as_dir in $PATH
13164do
13165 IFS=$as_save_IFS
13166 test -z "$as_dir" && as_dir=.
13167 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013169 ac_cv_prog_AS="${ac_tool_prefix}as"
13170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13171 break 2
13172 fi
13173done
13174 done
13175IFS=$as_save_IFS
13176
13177fi
13178fi
13179AS=$ac_cv_prog_AS
13180if test -n "$AS"; then
13181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13182$as_echo "$AS" >&6; }
13183else
13184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13185$as_echo "no" >&6; }
13186fi
13187
13188
13189fi
13190if test -z "$ac_cv_prog_AS"; then
13191 ac_ct_AS=$AS
13192 # Extract the first word of "as", so it can be a program name with args.
13193set dummy as; ac_word=$2
13194{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13195$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013196if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013197 $as_echo_n "(cached) " >&6
13198else
13199 if test -n "$ac_ct_AS"; then
13200 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13201else
13202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13203for as_dir in $PATH
13204do
13205 IFS=$as_save_IFS
13206 test -z "$as_dir" && as_dir=.
13207 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013208 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013209 ac_cv_prog_ac_ct_AS="as"
13210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13211 break 2
13212 fi
13213done
13214 done
13215IFS=$as_save_IFS
13216
13217fi
13218fi
13219ac_ct_AS=$ac_cv_prog_ac_ct_AS
13220if test -n "$ac_ct_AS"; then
13221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13222$as_echo "$ac_ct_AS" >&6; }
13223else
13224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13225$as_echo "no" >&6; }
13226fi
13227
13228 if test "x$ac_ct_AS" = x; then
13229 AS="false"
13230 else
13231 case $cross_compiling:$ac_tool_warned in
13232yes:)
13233{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13234$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13235ac_tool_warned=yes ;;
13236esac
13237 AS=$ac_ct_AS
13238 fi
13239else
13240 AS="$ac_cv_prog_AS"
13241fi
13242
13243 if test -n "$ac_tool_prefix"; then
13244 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13245set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13247$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013248if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013249 $as_echo_n "(cached) " >&6
13250else
13251 if test -n "$DLLTOOL"; then
13252 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13253else
13254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13255for as_dir in $PATH
13256do
13257 IFS=$as_save_IFS
13258 test -z "$as_dir" && as_dir=.
13259 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013261 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13263 break 2
13264 fi
13265done
13266 done
13267IFS=$as_save_IFS
13268
13269fi
13270fi
13271DLLTOOL=$ac_cv_prog_DLLTOOL
13272if test -n "$DLLTOOL"; then
13273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13274$as_echo "$DLLTOOL" >&6; }
13275else
13276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13277$as_echo "no" >&6; }
13278fi
13279
13280
13281fi
13282if test -z "$ac_cv_prog_DLLTOOL"; then
13283 ac_ct_DLLTOOL=$DLLTOOL
13284 # Extract the first word of "dlltool", so it can be a program name with args.
13285set dummy dlltool; ac_word=$2
13286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013288if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013289 $as_echo_n "(cached) " >&6
13290else
13291 if test -n "$ac_ct_DLLTOOL"; then
13292 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13293else
13294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13295for as_dir in $PATH
13296do
13297 IFS=$as_save_IFS
13298 test -z "$as_dir" && as_dir=.
13299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013301 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13303 break 2
13304 fi
13305done
13306 done
13307IFS=$as_save_IFS
13308
13309fi
13310fi
13311ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13312if test -n "$ac_ct_DLLTOOL"; then
13313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13314$as_echo "$ac_ct_DLLTOOL" >&6; }
13315else
13316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13317$as_echo "no" >&6; }
13318fi
13319
13320 if test "x$ac_ct_DLLTOOL" = x; then
13321 DLLTOOL="false"
13322 else
13323 case $cross_compiling:$ac_tool_warned in
13324yes:)
13325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13327ac_tool_warned=yes ;;
13328esac
13329 DLLTOOL=$ac_ct_DLLTOOL
13330 fi
13331else
13332 DLLTOOL="$ac_cv_prog_DLLTOOL"
13333fi
13334
13335 if test -n "$ac_tool_prefix"; then
13336 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13337set dummy ${ac_tool_prefix}objdump; ac_word=$2
13338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13339$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013340if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013341 $as_echo_n "(cached) " >&6
13342else
13343 if test -n "$OBJDUMP"; then
13344 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13345else
13346as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13347for as_dir in $PATH
13348do
13349 IFS=$as_save_IFS
13350 test -z "$as_dir" && as_dir=.
13351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013353 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13355 break 2
13356 fi
13357done
13358 done
13359IFS=$as_save_IFS
13360
13361fi
13362fi
13363OBJDUMP=$ac_cv_prog_OBJDUMP
13364if test -n "$OBJDUMP"; then
13365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13366$as_echo "$OBJDUMP" >&6; }
13367else
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13369$as_echo "no" >&6; }
13370fi
13371
13372
13373fi
13374if test -z "$ac_cv_prog_OBJDUMP"; then
13375 ac_ct_OBJDUMP=$OBJDUMP
13376 # Extract the first word of "objdump", so it can be a program name with args.
13377set dummy objdump; ac_word=$2
13378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013380if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013381 $as_echo_n "(cached) " >&6
13382else
13383 if test -n "$ac_ct_OBJDUMP"; then
13384 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13385else
13386as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13387for as_dir in $PATH
13388do
13389 IFS=$as_save_IFS
13390 test -z "$as_dir" && as_dir=.
13391 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013393 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13395 break 2
13396 fi
13397done
13398 done
13399IFS=$as_save_IFS
13400
13401fi
13402fi
13403ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13404if test -n "$ac_ct_OBJDUMP"; then
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13406$as_echo "$ac_ct_OBJDUMP" >&6; }
13407else
13408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13409$as_echo "no" >&6; }
13410fi
13411
13412 if test "x$ac_ct_OBJDUMP" = x; then
13413 OBJDUMP="false"
13414 else
13415 case $cross_compiling:$ac_tool_warned in
13416yes:)
13417{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13418$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13419ac_tool_warned=yes ;;
13420esac
13421 OBJDUMP=$ac_ct_OBJDUMP
13422 fi
13423else
13424 OBJDUMP="$ac_cv_prog_OBJDUMP"
13425fi
13426
13427 ;;
13428esac
13429
13430test -z "$AS" && AS=as
13431
13432
13433
13434
13435
13436test -z "$DLLTOOL" && DLLTOOL=dlltool
13437
13438
13439
13440
13441
13442test -z "$OBJDUMP" && OBJDUMP=objdump
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452 # Check whether --enable-shared was given.
13453if test "${enable_shared+set}" = set; then :
13454 enableval=$enable_shared; p=${PACKAGE-default}
13455 case $enableval in
13456 yes) enable_shared=yes ;;
13457 no) enable_shared=no ;;
13458 *)
13459 enable_shared=no
13460 # Look at the argument we got. We use all the common list separators.
13461 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13462 for pkg in $enableval; do
13463 IFS="$lt_save_ifs"
13464 if test "X$pkg" = "X$p"; then
13465 enable_shared=yes
13466 fi
13467 done
13468 IFS="$lt_save_ifs"
13469 ;;
13470 esac
13471else
13472 enable_shared=yes
13473fi
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483 # Check whether --enable-static was given.
13484if test "${enable_static+set}" = set; then :
13485 enableval=$enable_static; p=${PACKAGE-default}
13486 case $enableval in
13487 yes) enable_static=yes ;;
13488 no) enable_static=no ;;
13489 *)
13490 enable_static=no
13491 # Look at the argument we got. We use all the common list separators.
13492 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13493 for pkg in $enableval; do
13494 IFS="$lt_save_ifs"
13495 if test "X$pkg" = "X$p"; then
13496 enable_static=yes
13497 fi
13498 done
13499 IFS="$lt_save_ifs"
13500 ;;
13501 esac
13502else
13503 enable_static=yes
13504fi
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514
13515# Check whether --with-pic was given.
13516if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013517 withval=$with_pic; lt_p=${PACKAGE-default}
13518 case $withval in
13519 yes|no) pic_mode=$withval ;;
13520 *)
13521 pic_mode=default
13522 # Look at the argument we got. We use all the common list separators.
13523 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13524 for lt_pkg in $withval; do
13525 IFS="$lt_save_ifs"
13526 if test "X$lt_pkg" = "X$lt_p"; then
13527 pic_mode=yes
13528 fi
13529 done
13530 IFS="$lt_save_ifs"
13531 ;;
13532 esac
cristy73bd4a52010-10-05 11:24:23 +000013533else
13534 pic_mode=default
13535fi
13536
13537
13538test -z "$pic_mode" && pic_mode=default
13539
13540
13541
13542
13543
13544
13545
13546 # Check whether --enable-fast-install was given.
13547if test "${enable_fast_install+set}" = set; then :
13548 enableval=$enable_fast_install; p=${PACKAGE-default}
13549 case $enableval in
13550 yes) enable_fast_install=yes ;;
13551 no) enable_fast_install=no ;;
13552 *)
13553 enable_fast_install=no
13554 # Look at the argument we got. We use all the common list separators.
13555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13556 for pkg in $enableval; do
13557 IFS="$lt_save_ifs"
13558 if test "X$pkg" = "X$p"; then
13559 enable_fast_install=yes
13560 fi
13561 done
13562 IFS="$lt_save_ifs"
13563 ;;
13564 esac
13565else
13566 enable_fast_install=yes
13567fi
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578
13579# This can be used to rebuild libtool when needed
13580LIBTOOL_DEPS="$ltmain"
13581
13582# Always use our own libtool.
13583LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
cristy0c60a692010-11-04 01:09:47 +000013609
cristy99bd5232011-12-07 14:38:20 +000013610
13611
13612
13613
cristy73bd4a52010-10-05 11:24:23 +000013614test -z "$LN_S" && LN_S="ln -s"
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629if test -n "${ZSH_VERSION+set}" ; then
13630 setopt NO_GLOB_SUBST
13631fi
13632
13633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13634$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013635if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013636 $as_echo_n "(cached) " >&6
13637else
13638 rm -f .libs 2>/dev/null
13639mkdir .libs 2>/dev/null
13640if test -d .libs; then
13641 lt_cv_objdir=.libs
13642else
13643 # MS-DOS does not allow filenames that begin with a dot.
13644 lt_cv_objdir=_libs
13645fi
13646rmdir .libs 2>/dev/null
13647fi
13648{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13649$as_echo "$lt_cv_objdir" >&6; }
13650objdir=$lt_cv_objdir
13651
13652
13653
13654
13655
13656cat >>confdefs.h <<_ACEOF
13657#define LT_OBJDIR "$lt_cv_objdir/"
13658_ACEOF
13659
13660
13661
13662
cristy73bd4a52010-10-05 11:24:23 +000013663case $host_os in
13664aix3*)
13665 # AIX sometimes has problems with the GCC collect2 program. For some
13666 # reason, if we set the COLLECT_NAMES environment variable, the problems
13667 # vanish in a puff of smoke.
13668 if test "X${COLLECT_NAMES+set}" != Xset; then
13669 COLLECT_NAMES=
13670 export COLLECT_NAMES
13671 fi
13672 ;;
13673esac
13674
cristy73bd4a52010-10-05 11:24:23 +000013675# Global variables:
13676ofile=libtool
13677can_build_shared=yes
13678
13679# All known linkers require a `.a' archive for static linking (except MSVC,
13680# which needs '.lib').
13681libext=a
13682
13683with_gnu_ld="$lt_cv_prog_gnu_ld"
13684
13685old_CC="$CC"
13686old_CFLAGS="$CFLAGS"
13687
13688# Set sane defaults for various variables
13689test -z "$CC" && CC=cc
13690test -z "$LTCC" && LTCC=$CC
13691test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13692test -z "$LD" && LD=ld
13693test -z "$ac_objext" && ac_objext=o
13694
13695for cc_temp in $compiler""; do
13696 case $cc_temp in
13697 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13698 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13699 \-*) ;;
13700 *) break;;
13701 esac
13702done
cristy0c60a692010-11-04 01:09:47 +000013703cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013704
13705
13706# Only perform the check for file, if the check method requires it
13707test -z "$MAGIC_CMD" && MAGIC_CMD=file
13708case $deplibs_check_method in
13709file_magic*)
13710 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13712$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013713if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013714 $as_echo_n "(cached) " >&6
13715else
13716 case $MAGIC_CMD in
13717[\\/*] | ?:[\\/]*)
13718 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13719 ;;
13720*)
13721 lt_save_MAGIC_CMD="$MAGIC_CMD"
13722 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13723 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13724 for ac_dir in $ac_dummy; do
13725 IFS="$lt_save_ifs"
13726 test -z "$ac_dir" && ac_dir=.
13727 if test -f $ac_dir/${ac_tool_prefix}file; then
13728 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13729 if test -n "$file_magic_test_file"; then
13730 case $deplibs_check_method in
13731 "file_magic "*)
13732 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13733 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13734 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13735 $EGREP "$file_magic_regex" > /dev/null; then
13736 :
13737 else
13738 cat <<_LT_EOF 1>&2
13739
13740*** Warning: the command libtool uses to detect shared libraries,
13741*** $file_magic_cmd, produces output that libtool cannot recognize.
13742*** The result is that libtool may fail to recognize shared libraries
13743*** as such. This will affect the creation of libtool libraries that
13744*** depend on shared libraries, but programs linked with such libtool
13745*** libraries will work regardless of this problem. Nevertheless, you
13746*** may want to report the problem to your system manager and/or to
13747*** bug-libtool@gnu.org
13748
13749_LT_EOF
13750 fi ;;
13751 esac
13752 fi
13753 break
13754 fi
13755 done
13756 IFS="$lt_save_ifs"
13757 MAGIC_CMD="$lt_save_MAGIC_CMD"
13758 ;;
13759esac
13760fi
13761
13762MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13763if test -n "$MAGIC_CMD"; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13765$as_echo "$MAGIC_CMD" >&6; }
13766else
13767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13768$as_echo "no" >&6; }
13769fi
13770
13771
13772
13773
13774
13775if test -z "$lt_cv_path_MAGIC_CMD"; then
13776 if test -n "$ac_tool_prefix"; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13778$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013779if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013780 $as_echo_n "(cached) " >&6
13781else
13782 case $MAGIC_CMD in
13783[\\/*] | ?:[\\/]*)
13784 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13785 ;;
13786*)
13787 lt_save_MAGIC_CMD="$MAGIC_CMD"
13788 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13789 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13790 for ac_dir in $ac_dummy; do
13791 IFS="$lt_save_ifs"
13792 test -z "$ac_dir" && ac_dir=.
13793 if test -f $ac_dir/file; then
13794 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13795 if test -n "$file_magic_test_file"; then
13796 case $deplibs_check_method in
13797 "file_magic "*)
13798 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13799 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13800 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13801 $EGREP "$file_magic_regex" > /dev/null; then
13802 :
13803 else
13804 cat <<_LT_EOF 1>&2
13805
13806*** Warning: the command libtool uses to detect shared libraries,
13807*** $file_magic_cmd, produces output that libtool cannot recognize.
13808*** The result is that libtool may fail to recognize shared libraries
13809*** as such. This will affect the creation of libtool libraries that
13810*** depend on shared libraries, but programs linked with such libtool
13811*** libraries will work regardless of this problem. Nevertheless, you
13812*** may want to report the problem to your system manager and/or to
13813*** bug-libtool@gnu.org
13814
13815_LT_EOF
13816 fi ;;
13817 esac
13818 fi
13819 break
13820 fi
13821 done
13822 IFS="$lt_save_ifs"
13823 MAGIC_CMD="$lt_save_MAGIC_CMD"
13824 ;;
13825esac
13826fi
13827
13828MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13829if test -n "$MAGIC_CMD"; then
13830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13831$as_echo "$MAGIC_CMD" >&6; }
13832else
13833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13834$as_echo "no" >&6; }
13835fi
13836
13837
13838 else
13839 MAGIC_CMD=:
13840 fi
13841fi
13842
13843 fi
13844 ;;
13845esac
13846
13847# Use C for the default configuration in the libtool script
13848
13849lt_save_CC="$CC"
13850ac_ext=c
13851ac_cpp='$CPP $CPPFLAGS'
13852ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13853ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13854ac_compiler_gnu=$ac_cv_c_compiler_gnu
13855
13856
13857# Source file extension for C test sources.
13858ac_ext=c
13859
13860# Object file extension for compiled C test sources.
13861objext=o
13862objext=$objext
13863
13864# Code to be used in simple compile tests
13865lt_simple_compile_test_code="int some_variable = 0;"
13866
13867# Code to be used in simple link tests
13868lt_simple_link_test_code='int main(){return(0);}'
13869
13870
13871
13872
13873
13874
13875
13876# If no C compiler was specified, use CC.
13877LTCC=${LTCC-"$CC"}
13878
13879# If no C compiler flags were specified, use CFLAGS.
13880LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13881
13882# Allow CC to be a program name with arguments.
13883compiler=$CC
13884
13885# Save the default compiler, since it gets overwritten when the other
13886# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13887compiler_DEFAULT=$CC
13888
13889# save warnings/boilerplate of simple test code
13890ac_outfile=conftest.$ac_objext
13891echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13892eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13893_lt_compiler_boilerplate=`cat conftest.err`
13894$RM conftest*
13895
13896ac_outfile=conftest.$ac_objext
13897echo "$lt_simple_link_test_code" >conftest.$ac_ext
13898eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13899_lt_linker_boilerplate=`cat conftest.err`
13900$RM -r conftest*
13901
13902
13903## CAVEAT EMPTOR:
13904## There is no encapsulation within the following macros, do not change
13905## the running order or otherwise move them around unless you know exactly
13906## what you are doing...
13907if test -n "$compiler"; then
13908
13909lt_prog_compiler_no_builtin_flag=
13910
13911if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013912 case $cc_basename in
13913 nvcc*)
13914 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13915 *)
13916 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13917 esac
cristy73bd4a52010-10-05 11:24:23 +000013918
13919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13920$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013921if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013922 $as_echo_n "(cached) " >&6
13923else
13924 lt_cv_prog_compiler_rtti_exceptions=no
13925 ac_outfile=conftest.$ac_objext
13926 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13927 lt_compiler_flag="-fno-rtti -fno-exceptions"
13928 # Insert the option either (1) after the last *FLAGS variable, or
13929 # (2) before a word containing "conftest.", or (3) at the end.
13930 # Note that $ac_compile itself does not contain backslashes and begins
13931 # with a dollar sign (not a hyphen), so the echo should work correctly.
13932 # The option is referenced via a variable to avoid confusing sed.
13933 lt_compile=`echo "$ac_compile" | $SED \
13934 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13935 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13936 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013937 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013938 (eval "$lt_compile" 2>conftest.err)
13939 ac_status=$?
13940 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013942 if (exit $ac_status) && test -s "$ac_outfile"; then
13943 # The compiler can only warn and ignore the option if not recognized
13944 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013945 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013946 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13947 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13948 lt_cv_prog_compiler_rtti_exceptions=yes
13949 fi
13950 fi
13951 $RM conftest*
13952
13953fi
13954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13955$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13956
13957if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13958 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13959else
13960 :
13961fi
13962
13963fi
13964
13965
13966
13967
13968
13969
13970 lt_prog_compiler_wl=
13971lt_prog_compiler_pic=
13972lt_prog_compiler_static=
13973
cristy73bd4a52010-10-05 11:24:23 +000013974
13975 if test "$GCC" = yes; then
13976 lt_prog_compiler_wl='-Wl,'
13977 lt_prog_compiler_static='-static'
13978
13979 case $host_os in
13980 aix*)
13981 # All AIX code is PIC.
13982 if test "$host_cpu" = ia64; then
13983 # AIX 5 now supports IA64 processor
13984 lt_prog_compiler_static='-Bstatic'
13985 fi
13986 ;;
13987
13988 amigaos*)
13989 case $host_cpu in
13990 powerpc)
13991 # see comment about AmigaOS4 .so support
13992 lt_prog_compiler_pic='-fPIC'
13993 ;;
13994 m68k)
13995 # FIXME: we need at least 68020 code to build shared libraries, but
13996 # adding the `-m68020' flag to GCC prevents building anything better,
13997 # like `-m68040'.
13998 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13999 ;;
14000 esac
14001 ;;
14002
14003 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14004 # PIC is the default for these OSes.
14005 ;;
14006
14007 mingw* | cygwin* | pw32* | os2* | cegcc*)
14008 # This hack is so that the source file can tell whether it is being
14009 # built for inclusion in a dll (and should export symbols for example).
14010 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14011 # (--disable-auto-import) libraries
14012 lt_prog_compiler_pic='-DDLL_EXPORT'
14013 ;;
14014
14015 darwin* | rhapsody*)
14016 # PIC is the default on this platform
14017 # Common symbols not allowed in MH_DYLIB files
14018 lt_prog_compiler_pic='-fno-common'
14019 ;;
14020
cristy0c60a692010-11-04 01:09:47 +000014021 haiku*)
14022 # PIC is the default for Haiku.
14023 # The "-static" flag exists, but is broken.
14024 lt_prog_compiler_static=
14025 ;;
14026
cristy73bd4a52010-10-05 11:24:23 +000014027 hpux*)
14028 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14029 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14030 # sets the default TLS model and affects inlining.
14031 case $host_cpu in
14032 hppa*64*)
14033 # +Z the default
14034 ;;
14035 *)
14036 lt_prog_compiler_pic='-fPIC'
14037 ;;
14038 esac
14039 ;;
14040
14041 interix[3-9]*)
14042 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14043 # Instead, we relocate shared libraries at runtime.
14044 ;;
14045
14046 msdosdjgpp*)
14047 # Just because we use GCC doesn't mean we suddenly get shared libraries
14048 # on systems that don't support them.
14049 lt_prog_compiler_can_build_shared=no
14050 enable_shared=no
14051 ;;
14052
14053 *nto* | *qnx*)
14054 # QNX uses GNU C++, but need to define -shared option too, otherwise
14055 # it will coredump.
14056 lt_prog_compiler_pic='-fPIC -shared'
14057 ;;
14058
14059 sysv4*MP*)
14060 if test -d /usr/nec; then
14061 lt_prog_compiler_pic=-Kconform_pic
14062 fi
14063 ;;
14064
14065 *)
14066 lt_prog_compiler_pic='-fPIC'
14067 ;;
14068 esac
cristy0c60a692010-11-04 01:09:47 +000014069
14070 case $cc_basename in
14071 nvcc*) # Cuda Compiler Driver 2.2
14072 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014073 if test -n "$lt_prog_compiler_pic"; then
14074 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14075 fi
cristy0c60a692010-11-04 01:09:47 +000014076 ;;
14077 esac
cristy73bd4a52010-10-05 11:24:23 +000014078 else
14079 # PORTME Check for flag to pass linker flags through the system compiler.
14080 case $host_os in
14081 aix*)
14082 lt_prog_compiler_wl='-Wl,'
14083 if test "$host_cpu" = ia64; then
14084 # AIX 5 now supports IA64 processor
14085 lt_prog_compiler_static='-Bstatic'
14086 else
14087 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14088 fi
14089 ;;
14090
14091 mingw* | cygwin* | pw32* | os2* | cegcc*)
14092 # This hack is so that the source file can tell whether it is being
14093 # built for inclusion in a dll (and should export symbols for example).
14094 lt_prog_compiler_pic='-DDLL_EXPORT'
14095 ;;
14096
14097 hpux9* | hpux10* | hpux11*)
14098 lt_prog_compiler_wl='-Wl,'
14099 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14100 # not for PA HP-UX.
14101 case $host_cpu in
14102 hppa*64*|ia64*)
14103 # +Z the default
14104 ;;
14105 *)
14106 lt_prog_compiler_pic='+Z'
14107 ;;
14108 esac
14109 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14110 lt_prog_compiler_static='${wl}-a ${wl}archive'
14111 ;;
14112
14113 irix5* | irix6* | nonstopux*)
14114 lt_prog_compiler_wl='-Wl,'
14115 # PIC (with -KPIC) is the default.
14116 lt_prog_compiler_static='-non_shared'
14117 ;;
14118
cristy0c60a692010-11-04 01:09:47 +000014119 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014120 case $cc_basename in
14121 # old Intel for x86_64 which still supported -KPIC.
14122 ecc*)
14123 lt_prog_compiler_wl='-Wl,'
14124 lt_prog_compiler_pic='-KPIC'
14125 lt_prog_compiler_static='-static'
14126 ;;
14127 # icc used to be incompatible with GCC.
14128 # ICC 10 doesn't accept -KPIC any more.
14129 icc* | ifort*)
14130 lt_prog_compiler_wl='-Wl,'
14131 lt_prog_compiler_pic='-fPIC'
14132 lt_prog_compiler_static='-static'
14133 ;;
14134 # Lahey Fortran 8.1.
14135 lf95*)
14136 lt_prog_compiler_wl='-Wl,'
14137 lt_prog_compiler_pic='--shared'
14138 lt_prog_compiler_static='--static'
14139 ;;
cristyda16f162011-02-19 23:52:17 +000014140 nagfor*)
14141 # NAG Fortran compiler
14142 lt_prog_compiler_wl='-Wl,-Wl,,'
14143 lt_prog_compiler_pic='-PIC'
14144 lt_prog_compiler_static='-Bstatic'
14145 ;;
cristy0c60a692010-11-04 01:09:47 +000014146 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014147 # Portland Group compilers (*not* the Pentium gcc compiler,
14148 # which looks to be a dead project)
14149 lt_prog_compiler_wl='-Wl,'
14150 lt_prog_compiler_pic='-fpic'
14151 lt_prog_compiler_static='-Bstatic'
14152 ;;
14153 ccc*)
14154 lt_prog_compiler_wl='-Wl,'
14155 # All Alpha code is PIC.
14156 lt_prog_compiler_static='-non_shared'
14157 ;;
cristy0c60a692010-11-04 01:09:47 +000014158 xl* | bgxl* | bgf* | mpixl*)
14159 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014160 lt_prog_compiler_wl='-Wl,'
14161 lt_prog_compiler_pic='-qpic'
14162 lt_prog_compiler_static='-qstaticlink'
14163 ;;
14164 *)
14165 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014166 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014167 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14168 lt_prog_compiler_pic='-KPIC'
14169 lt_prog_compiler_static='-Bstatic'
14170 lt_prog_compiler_wl=''
14171 ;;
cristy99bd5232011-12-07 14:38:20 +000014172 *Sun\ F* | *Sun*Fortran*)
14173 lt_prog_compiler_pic='-KPIC'
14174 lt_prog_compiler_static='-Bstatic'
14175 lt_prog_compiler_wl='-Qoption ld '
14176 ;;
cristy73bd4a52010-10-05 11:24:23 +000014177 *Sun\ C*)
14178 # Sun C 5.9
14179 lt_prog_compiler_pic='-KPIC'
14180 lt_prog_compiler_static='-Bstatic'
14181 lt_prog_compiler_wl='-Wl,'
14182 ;;
cristy99bd5232011-12-07 14:38:20 +000014183 *Intel*\ [CF]*Compiler*)
14184 lt_prog_compiler_wl='-Wl,'
14185 lt_prog_compiler_pic='-fPIC'
14186 lt_prog_compiler_static='-static'
14187 ;;
14188 *Portland\ Group*)
14189 lt_prog_compiler_wl='-Wl,'
14190 lt_prog_compiler_pic='-fpic'
14191 lt_prog_compiler_static='-Bstatic'
14192 ;;
cristy73bd4a52010-10-05 11:24:23 +000014193 esac
14194 ;;
14195 esac
14196 ;;
14197
14198 newsos6)
14199 lt_prog_compiler_pic='-KPIC'
14200 lt_prog_compiler_static='-Bstatic'
14201 ;;
14202
14203 *nto* | *qnx*)
14204 # QNX uses GNU C++, but need to define -shared option too, otherwise
14205 # it will coredump.
14206 lt_prog_compiler_pic='-fPIC -shared'
14207 ;;
14208
14209 osf3* | osf4* | osf5*)
14210 lt_prog_compiler_wl='-Wl,'
14211 # All OSF/1 code is PIC.
14212 lt_prog_compiler_static='-non_shared'
14213 ;;
14214
14215 rdos*)
14216 lt_prog_compiler_static='-non_shared'
14217 ;;
14218
14219 solaris*)
14220 lt_prog_compiler_pic='-KPIC'
14221 lt_prog_compiler_static='-Bstatic'
14222 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014223 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014224 lt_prog_compiler_wl='-Qoption ld ';;
14225 *)
14226 lt_prog_compiler_wl='-Wl,';;
14227 esac
14228 ;;
14229
14230 sunos4*)
14231 lt_prog_compiler_wl='-Qoption ld '
14232 lt_prog_compiler_pic='-PIC'
14233 lt_prog_compiler_static='-Bstatic'
14234 ;;
14235
14236 sysv4 | sysv4.2uw2* | sysv4.3*)
14237 lt_prog_compiler_wl='-Wl,'
14238 lt_prog_compiler_pic='-KPIC'
14239 lt_prog_compiler_static='-Bstatic'
14240 ;;
14241
14242 sysv4*MP*)
14243 if test -d /usr/nec ;then
14244 lt_prog_compiler_pic='-Kconform_pic'
14245 lt_prog_compiler_static='-Bstatic'
14246 fi
14247 ;;
14248
14249 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14250 lt_prog_compiler_wl='-Wl,'
14251 lt_prog_compiler_pic='-KPIC'
14252 lt_prog_compiler_static='-Bstatic'
14253 ;;
14254
14255 unicos*)
14256 lt_prog_compiler_wl='-Wl,'
14257 lt_prog_compiler_can_build_shared=no
14258 ;;
14259
14260 uts4*)
14261 lt_prog_compiler_pic='-pic'
14262 lt_prog_compiler_static='-Bstatic'
14263 ;;
14264
14265 *)
14266 lt_prog_compiler_can_build_shared=no
14267 ;;
14268 esac
14269 fi
14270
14271case $host_os in
14272 # For platforms which do not support PIC, -DPIC is meaningless:
14273 *djgpp*)
14274 lt_prog_compiler_pic=
14275 ;;
14276 *)
14277 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14278 ;;
14279esac
cristy73bd4a52010-10-05 11:24:23 +000014280
cristyda16f162011-02-19 23:52:17 +000014281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14282$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14283if ${lt_cv_prog_compiler_pic+:} false; then :
14284 $as_echo_n "(cached) " >&6
14285else
14286 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14287fi
14288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14289$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14290lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014291
14292#
14293# Check to make sure the PIC flag actually works.
14294#
14295if test -n "$lt_prog_compiler_pic"; then
14296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14297$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014298if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014299 $as_echo_n "(cached) " >&6
14300else
14301 lt_cv_prog_compiler_pic_works=no
14302 ac_outfile=conftest.$ac_objext
14303 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14304 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14305 # Insert the option either (1) after the last *FLAGS variable, or
14306 # (2) before a word containing "conftest.", or (3) at the end.
14307 # Note that $ac_compile itself does not contain backslashes and begins
14308 # with a dollar sign (not a hyphen), so the echo should work correctly.
14309 # The option is referenced via a variable to avoid confusing sed.
14310 lt_compile=`echo "$ac_compile" | $SED \
14311 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14312 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14313 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014314 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014315 (eval "$lt_compile" 2>conftest.err)
14316 ac_status=$?
14317 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014319 if (exit $ac_status) && test -s "$ac_outfile"; then
14320 # The compiler can only warn and ignore the option if not recognized
14321 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014322 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014323 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14324 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14325 lt_cv_prog_compiler_pic_works=yes
14326 fi
14327 fi
14328 $RM conftest*
14329
14330fi
14331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14332$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14333
14334if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14335 case $lt_prog_compiler_pic in
14336 "" | " "*) ;;
14337 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14338 esac
14339else
14340 lt_prog_compiler_pic=
14341 lt_prog_compiler_can_build_shared=no
14342fi
14343
14344fi
14345
14346
14347
14348
14349
14350
cristyda16f162011-02-19 23:52:17 +000014351
14352
14353
14354
14355
cristy73bd4a52010-10-05 11:24:23 +000014356#
14357# Check to make sure the static flag actually works.
14358#
14359wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14361$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014362if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014363 $as_echo_n "(cached) " >&6
14364else
14365 lt_cv_prog_compiler_static_works=no
14366 save_LDFLAGS="$LDFLAGS"
14367 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14368 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14369 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14370 # The linker can only warn and ignore the option if not recognized
14371 # So say no if there are warnings
14372 if test -s conftest.err; then
14373 # Append any errors to the config.log.
14374 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014375 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014376 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14377 if diff conftest.exp conftest.er2 >/dev/null; then
14378 lt_cv_prog_compiler_static_works=yes
14379 fi
14380 else
14381 lt_cv_prog_compiler_static_works=yes
14382 fi
14383 fi
14384 $RM -r conftest*
14385 LDFLAGS="$save_LDFLAGS"
14386
14387fi
14388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14389$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14390
14391if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14392 :
14393else
14394 lt_prog_compiler_static=
14395fi
14396
14397
14398
14399
14400
14401
14402
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14404$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014405if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014406 $as_echo_n "(cached) " >&6
14407else
14408 lt_cv_prog_compiler_c_o=no
14409 $RM -r conftest 2>/dev/null
14410 mkdir conftest
14411 cd conftest
14412 mkdir out
14413 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14414
14415 lt_compiler_flag="-o out/conftest2.$ac_objext"
14416 # Insert the option either (1) after the last *FLAGS variable, or
14417 # (2) before a word containing "conftest.", or (3) at the end.
14418 # Note that $ac_compile itself does not contain backslashes and begins
14419 # with a dollar sign (not a hyphen), so the echo should work correctly.
14420 lt_compile=`echo "$ac_compile" | $SED \
14421 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14422 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14423 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014424 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014425 (eval "$lt_compile" 2>out/conftest.err)
14426 ac_status=$?
14427 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014429 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14430 then
14431 # The compiler can only warn and ignore the option if not recognized
14432 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014433 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014434 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14435 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14436 lt_cv_prog_compiler_c_o=yes
14437 fi
14438 fi
14439 chmod u+w . 2>&5
14440 $RM conftest*
14441 # SGI C++ compiler will create directory out/ii_files/ for
14442 # template instantiation
14443 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14444 $RM out/* && rmdir out
14445 cd ..
14446 $RM -r conftest
14447 $RM conftest*
14448
14449fi
14450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14451$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14452
14453
14454
14455
14456
14457
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14459$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014460if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014461 $as_echo_n "(cached) " >&6
14462else
14463 lt_cv_prog_compiler_c_o=no
14464 $RM -r conftest 2>/dev/null
14465 mkdir conftest
14466 cd conftest
14467 mkdir out
14468 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14469
14470 lt_compiler_flag="-o out/conftest2.$ac_objext"
14471 # Insert the option either (1) after the last *FLAGS variable, or
14472 # (2) before a word containing "conftest.", or (3) at the end.
14473 # Note that $ac_compile itself does not contain backslashes and begins
14474 # with a dollar sign (not a hyphen), so the echo should work correctly.
14475 lt_compile=`echo "$ac_compile" | $SED \
14476 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14477 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14478 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014479 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014480 (eval "$lt_compile" 2>out/conftest.err)
14481 ac_status=$?
14482 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014484 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14485 then
14486 # The compiler can only warn and ignore the option if not recognized
14487 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014488 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014489 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14490 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14491 lt_cv_prog_compiler_c_o=yes
14492 fi
14493 fi
14494 chmod u+w . 2>&5
14495 $RM conftest*
14496 # SGI C++ compiler will create directory out/ii_files/ for
14497 # template instantiation
14498 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14499 $RM out/* && rmdir out
14500 cd ..
14501 $RM -r conftest
14502 $RM conftest*
14503
14504fi
14505{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14506$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14507
14508
14509
14510
14511hard_links="nottested"
14512if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14513 # do not overwrite the value of need_locks provided by the user
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14515$as_echo_n "checking if we can lock with hard links... " >&6; }
14516 hard_links=yes
14517 $RM conftest*
14518 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14519 touch conftest.a
14520 ln conftest.a conftest.b 2>&5 || hard_links=no
14521 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14523$as_echo "$hard_links" >&6; }
14524 if test "$hard_links" = no; then
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14526$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14527 need_locks=warn
14528 fi
14529else
14530 need_locks=no
14531fi
14532
14533
14534
14535
14536
14537
14538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14539$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14540
14541 runpath_var=
14542 allow_undefined_flag=
14543 always_export_symbols=no
14544 archive_cmds=
14545 archive_expsym_cmds=
14546 compiler_needs_object=no
14547 enable_shared_with_static_runtimes=no
14548 export_dynamic_flag_spec=
14549 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14550 hardcode_automatic=no
14551 hardcode_direct=no
14552 hardcode_direct_absolute=no
14553 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014554 hardcode_libdir_separator=
14555 hardcode_minus_L=no
14556 hardcode_shlibpath_var=unsupported
14557 inherit_rpath=no
14558 link_all_deplibs=unknown
14559 module_cmds=
14560 module_expsym_cmds=
14561 old_archive_from_new_cmds=
14562 old_archive_from_expsyms_cmds=
14563 thread_safe_flag_spec=
14564 whole_archive_flag_spec=
14565 # include_expsyms should be a list of space-separated symbols to be *always*
14566 # included in the symbol list
14567 include_expsyms=
14568 # exclude_expsyms can be an extended regexp of symbols to exclude
14569 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14570 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14571 # as well as any symbol that contains `d'.
14572 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14573 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14574 # platforms (ab)use it in PIC code, but their linkers get confused if
14575 # the symbol is explicitly referenced. Since portable code cannot
14576 # rely on this symbol name, it's probably fine to never include it in
14577 # preloaded symbol tables.
14578 # Exclude shared library initialization/finalization symbols.
14579 extract_expsyms_cmds=
14580
14581 case $host_os in
14582 cygwin* | mingw* | pw32* | cegcc*)
14583 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14584 # When not using gcc, we currently assume that we are using
14585 # Microsoft Visual C++.
14586 if test "$GCC" != yes; then
14587 with_gnu_ld=no
14588 fi
14589 ;;
14590 interix*)
14591 # we just hope/assume this is gcc and not c89 (= MSVC++)
14592 with_gnu_ld=yes
14593 ;;
14594 openbsd*)
14595 with_gnu_ld=no
14596 ;;
14597 esac
14598
14599 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014600
14601 # On some targets, GNU ld is compatible enough with the native linker
14602 # that we're better off using the native interface for both.
14603 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014604 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014605 case $host_os in
14606 aix*)
14607 # The AIX port of GNU ld has always aspired to compatibility
14608 # with the native linker. However, as the warning in the GNU ld
14609 # block says, versions before 2.19.5* couldn't really create working
14610 # shared libraries, regardless of the interface used.
14611 case `$LD -v 2>&1` in
14612 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14613 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14614 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14615 *)
14616 lt_use_gnu_ld_interface=yes
14617 ;;
14618 esac
14619 ;;
14620 *)
14621 lt_use_gnu_ld_interface=yes
14622 ;;
14623 esac
14624 fi
14625
14626 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014627 # If archive_cmds runs LD, not CC, wlarc should be empty
14628 wlarc='${wl}'
14629
14630 # Set some defaults for GNU ld with shared library support. These
14631 # are reset later if shared libraries are not supported. Putting them
14632 # here allows them to be overridden if necessary.
14633 runpath_var=LD_RUN_PATH
14634 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14635 export_dynamic_flag_spec='${wl}--export-dynamic'
14636 # ancient GNU ld didn't support --whole-archive et. al.
14637 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14638 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14639 else
14640 whole_archive_flag_spec=
14641 fi
14642 supports_anon_versioning=no
14643 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014644 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014645 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14646 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14647 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14648 *\ 2.11.*) ;; # other 2.11 versions
14649 *) supports_anon_versioning=yes ;;
14650 esac
14651
14652 # See if GNU ld supports shared libraries.
14653 case $host_os in
14654 aix[3-9]*)
14655 # On AIX/PPC, the GNU linker is very broken
14656 if test "$host_cpu" != ia64; then
14657 ld_shlibs=no
14658 cat <<_LT_EOF 1>&2
14659
cristy0c60a692010-11-04 01:09:47 +000014660*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014661*** to be unable to reliably create shared libraries on AIX.
14662*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014663*** really care for shared libraries, you may want to install binutils
14664*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14665*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014666
14667_LT_EOF
14668 fi
14669 ;;
14670
14671 amigaos*)
14672 case $host_cpu in
14673 powerpc)
14674 # see comment about AmigaOS4 .so support
14675 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14676 archive_expsym_cmds=''
14677 ;;
14678 m68k)
14679 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)'
14680 hardcode_libdir_flag_spec='-L$libdir'
14681 hardcode_minus_L=yes
14682 ;;
14683 esac
14684 ;;
14685
14686 beos*)
14687 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14688 allow_undefined_flag=unsupported
14689 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14690 # support --undefined. This deserves some investigation. FIXME
14691 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14692 else
14693 ld_shlibs=no
14694 fi
14695 ;;
14696
14697 cygwin* | mingw* | pw32* | cegcc*)
14698 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14699 # as there is no search path for DLLs.
14700 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014701 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014702 allow_undefined_flag=unsupported
14703 always_export_symbols=no
14704 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014705 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
14706 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
cristy73bd4a52010-10-05 11:24:23 +000014707
14708 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14710 # If the export-symbols file already is a .def file (1st line
14711 # is EXPORTS), use it as is; otherwise, prepend...
14712 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14713 cp $export_symbols $output_objdir/$soname.def;
14714 else
14715 echo EXPORTS > $output_objdir/$soname.def;
14716 cat $export_symbols >> $output_objdir/$soname.def;
14717 fi~
14718 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14719 else
14720 ld_shlibs=no
14721 fi
14722 ;;
14723
cristy0c60a692010-11-04 01:09:47 +000014724 haiku*)
14725 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14726 link_all_deplibs=yes
14727 ;;
14728
cristy73bd4a52010-10-05 11:24:23 +000014729 interix[3-9]*)
14730 hardcode_direct=no
14731 hardcode_shlibpath_var=no
14732 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14733 export_dynamic_flag_spec='${wl}-E'
14734 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14735 # Instead, shared libraries are loaded at an image base (0x10000000 by
14736 # default) and relocated if they conflict, which is a slow very memory
14737 # consuming and fragmenting process. To avoid this, we pick a random,
14738 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14739 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14740 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14741 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'
14742 ;;
14743
cristy0c60a692010-11-04 01:09:47 +000014744 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014745 tmp_diet=no
14746 if test "$host_os" = linux-dietlibc; then
14747 case $cc_basename in
14748 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14749 esac
14750 fi
14751 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14752 && test "$tmp_diet" = no
14753 then
cristyda16f162011-02-19 23:52:17 +000014754 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014755 tmp_sharedflag='-shared'
14756 case $cc_basename,$host_cpu in
14757 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014758 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014759 tmp_addflag=' $pic_flag'
14760 ;;
cristy0c60a692010-11-04 01:09:47 +000014761 pgf77* | pgf90* | pgf95* | pgfortran*)
14762 # Portland Group f77 and f90 compilers
14763 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014764 tmp_addflag=' $pic_flag -Mnomain' ;;
14765 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14766 tmp_addflag=' -i_dynamic' ;;
14767 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14768 tmp_addflag=' -i_dynamic -nofor_main' ;;
14769 ifc* | ifort*) # Intel Fortran compiler
14770 tmp_addflag=' -nofor_main' ;;
14771 lf95*) # Lahey Fortran 8.1
14772 whole_archive_flag_spec=
14773 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014774 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014775 tmp_sharedflag='-qmkshrobj'
14776 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014777 nvcc*) # Cuda Compiler Driver 2.2
14778 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14779 compiler_needs_object=yes
14780 ;;
cristy73bd4a52010-10-05 11:24:23 +000014781 esac
14782 case `$CC -V 2>&1 | sed 5q` in
14783 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014784 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000014785 compiler_needs_object=yes
14786 tmp_sharedflag='-G' ;;
14787 *Sun\ F*) # Sun Fortran 8.3
14788 tmp_sharedflag='-G' ;;
14789 esac
14790 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14791
14792 if test "x$supports_anon_versioning" = xyes; then
14793 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14794 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14795 echo "local: *; };" >> $output_objdir/$libname.ver~
14796 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14797 fi
14798
14799 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014800 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014801 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14802 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014803 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014804 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014805 if test "x$supports_anon_versioning" = xyes; then
14806 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14807 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14808 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014809 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014810 fi
14811 ;;
14812 esac
14813 else
14814 ld_shlibs=no
14815 fi
14816 ;;
14817
14818 netbsd*)
14819 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14820 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14821 wlarc=
14822 else
cristyda16f162011-02-19 23:52:17 +000014823 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14824 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014825 fi
14826 ;;
14827
14828 solaris*)
14829 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14830 ld_shlibs=no
14831 cat <<_LT_EOF 1>&2
14832
14833*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14834*** create shared libraries on Solaris systems. Therefore, libtool
14835*** is disabling shared libraries support. We urge you to upgrade GNU
14836*** binutils to release 2.9.1 or newer. Another option is to modify
14837*** your PATH or compiler configuration so that the native linker is
14838*** used, and then restart.
14839
14840_LT_EOF
14841 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014842 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14843 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014844 else
14845 ld_shlibs=no
14846 fi
14847 ;;
14848
14849 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14850 case `$LD -v 2>&1` in
14851 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14852 ld_shlibs=no
14853 cat <<_LT_EOF 1>&2
14854
14855*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14856*** reliably create shared libraries on SCO systems. Therefore, libtool
14857*** is disabling shared libraries support. We urge you to upgrade GNU
14858*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14859*** your PATH or compiler configuration so that the native linker is
14860*** used, and then restart.
14861
14862_LT_EOF
14863 ;;
14864 *)
14865 # For security reasons, it is highly recommended that you always
14866 # use absolute paths for naming shared libraries, and exclude the
14867 # DT_RUNPATH tag from executables and libraries. But doing so
14868 # requires that you compile everything twice, which is a pain.
14869 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14870 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14871 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14873 else
14874 ld_shlibs=no
14875 fi
14876 ;;
14877 esac
14878 ;;
14879
14880 sunos4*)
14881 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14882 wlarc=
14883 hardcode_direct=yes
14884 hardcode_shlibpath_var=no
14885 ;;
14886
14887 *)
14888 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014889 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14890 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014891 else
14892 ld_shlibs=no
14893 fi
14894 ;;
14895 esac
14896
14897 if test "$ld_shlibs" = no; then
14898 runpath_var=
14899 hardcode_libdir_flag_spec=
14900 export_dynamic_flag_spec=
14901 whole_archive_flag_spec=
14902 fi
14903 else
14904 # PORTME fill in a description of your system's linker (not GNU ld)
14905 case $host_os in
14906 aix3*)
14907 allow_undefined_flag=unsupported
14908 always_export_symbols=yes
14909 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'
14910 # Note: this linker hardcodes the directories in LIBPATH if there
14911 # are no directories specified by -L.
14912 hardcode_minus_L=yes
14913 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14914 # Neither direct hardcoding nor static linking is supported with a
14915 # broken collect2.
14916 hardcode_direct=unsupported
14917 fi
14918 ;;
14919
14920 aix[4-9]*)
14921 if test "$host_cpu" = ia64; then
14922 # On IA64, the linker does run time linking by default, so we don't
14923 # have to do anything special.
14924 aix_use_runtimelinking=no
14925 exp_sym_flag='-Bexport'
14926 no_entry_flag=""
14927 else
14928 # If we're using GNU nm, then we don't want the "-C" option.
14929 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014930 # Also, AIX nm treats weak defined symbols like other global
14931 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014932 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014933 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000014934 else
14935 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'
14936 fi
14937 aix_use_runtimelinking=no
14938
14939 # Test if we are trying to use run time linking or normal
14940 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14941 # need to do runtime linking.
14942 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14943 for ld_flag in $LDFLAGS; do
14944 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14945 aix_use_runtimelinking=yes
14946 break
14947 fi
14948 done
14949 ;;
14950 esac
14951
14952 exp_sym_flag='-bexport'
14953 no_entry_flag='-bnoentry'
14954 fi
14955
14956 # When large executables or shared objects are built, AIX ld can
14957 # have problems creating the table of contents. If linking a library
14958 # or program results in "error TOC overflow" add -mminimal-toc to
14959 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14960 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14961
14962 archive_cmds=''
14963 hardcode_direct=yes
14964 hardcode_direct_absolute=yes
14965 hardcode_libdir_separator=':'
14966 link_all_deplibs=yes
14967 file_list_spec='${wl}-f,'
14968
14969 if test "$GCC" = yes; then
14970 case $host_os in aix4.[012]|aix4.[012].*)
14971 # We only want to do this on AIX 4.2 and lower, the check
14972 # below for broken collect2 doesn't work under 4.3+
14973 collect2name=`${CC} -print-prog-name=collect2`
14974 if test -f "$collect2name" &&
14975 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14976 then
14977 # We have reworked collect2
14978 :
14979 else
14980 # We have old collect2
14981 hardcode_direct=unsupported
14982 # It fails to find uninstalled libraries when the uninstalled
14983 # path is not listed in the libpath. Setting hardcode_minus_L
14984 # to unsupported forces relinking
14985 hardcode_minus_L=yes
14986 hardcode_libdir_flag_spec='-L$libdir'
14987 hardcode_libdir_separator=
14988 fi
14989 ;;
14990 esac
14991 shared_flag='-shared'
14992 if test "$aix_use_runtimelinking" = yes; then
14993 shared_flag="$shared_flag "'${wl}-G'
14994 fi
14995 else
14996 # not using gcc
14997 if test "$host_cpu" = ia64; then
14998 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14999 # chokes on -Wl,-G. The following line is correct:
15000 shared_flag='-G'
15001 else
15002 if test "$aix_use_runtimelinking" = yes; then
15003 shared_flag='${wl}-G'
15004 else
15005 shared_flag='${wl}-bM:SRE'
15006 fi
15007 fi
15008 fi
15009
15010 export_dynamic_flag_spec='${wl}-bexpall'
15011 # It seems that -bexpall does not export symbols beginning with
15012 # underscore (_), so it is better to generate a list of symbols to export.
15013 always_export_symbols=yes
15014 if test "$aix_use_runtimelinking" = yes; then
15015 # Warning - without using the other runtime loading flags (-brtl),
15016 # -berok will link without error, but may produce a broken library.
15017 allow_undefined_flag='-berok'
15018 # Determine the default libpath from the value encoded in an
15019 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015020 if test "${lt_cv_aix_libpath+set}" = set; then
15021 aix_libpath=$lt_cv_aix_libpath
15022else
15023 if ${lt_cv_aix_libpath_+:} false; then :
15024 $as_echo_n "(cached) " >&6
15025else
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015027/* end confdefs.h. */
15028
15029int
15030main ()
15031{
15032
15033 ;
15034 return 0;
15035}
15036_ACEOF
15037if ac_fn_c_try_link "$LINENO"; then :
15038
cristyda16f162011-02-19 23:52:17 +000015039 lt_aix_libpath_sed='
15040 /Import File Strings/,/^$/ {
15041 /^0/ {
15042 s/^0 *\([^ ]*\) *$/\1/
15043 p
15044 }
15045 }'
15046 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15047 # Check for a 64-bit object if we didn't find anything.
15048 if test -z "$lt_cv_aix_libpath_"; then
15049 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15050 fi
cristy73bd4a52010-10-05 11:24:23 +000015051fi
15052rm -f core conftest.err conftest.$ac_objext \
15053 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015054 if test -z "$lt_cv_aix_libpath_"; then
15055 lt_cv_aix_libpath_="/usr/lib:/lib"
15056 fi
15057
15058fi
15059
15060 aix_libpath=$lt_cv_aix_libpath_
15061fi
cristy73bd4a52010-10-05 11:24:23 +000015062
15063 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015064 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000015065 else
15066 if test "$host_cpu" = ia64; then
15067 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15068 allow_undefined_flag="-z nodefs"
15069 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"
15070 else
15071 # Determine the default libpath from the value encoded in an
15072 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015073 if test "${lt_cv_aix_libpath+set}" = set; then
15074 aix_libpath=$lt_cv_aix_libpath
15075else
15076 if ${lt_cv_aix_libpath_+:} false; then :
15077 $as_echo_n "(cached) " >&6
15078else
15079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015080/* end confdefs.h. */
15081
15082int
15083main ()
15084{
15085
15086 ;
15087 return 0;
15088}
15089_ACEOF
15090if ac_fn_c_try_link "$LINENO"; then :
15091
cristyda16f162011-02-19 23:52:17 +000015092 lt_aix_libpath_sed='
15093 /Import File Strings/,/^$/ {
15094 /^0/ {
15095 s/^0 *\([^ ]*\) *$/\1/
15096 p
15097 }
15098 }'
15099 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15100 # Check for a 64-bit object if we didn't find anything.
15101 if test -z "$lt_cv_aix_libpath_"; then
15102 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15103 fi
cristy73bd4a52010-10-05 11:24:23 +000015104fi
15105rm -f core conftest.err conftest.$ac_objext \
15106 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015107 if test -z "$lt_cv_aix_libpath_"; then
15108 lt_cv_aix_libpath_="/usr/lib:/lib"
15109 fi
15110
15111fi
15112
15113 aix_libpath=$lt_cv_aix_libpath_
15114fi
cristy73bd4a52010-10-05 11:24:23 +000015115
15116 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15117 # Warning - without using the other run time loading flags,
15118 # -berok will link without error, but may produce a broken library.
15119 no_undefined_flag=' ${wl}-bernotok'
15120 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015121 if test "$with_gnu_ld" = yes; then
15122 # We only use this code for GNU lds that support --whole-archive.
15123 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15124 else
15125 # Exported symbols can be pulled into shared objects from archives
15126 whole_archive_flag_spec='$convenience'
15127 fi
cristy73bd4a52010-10-05 11:24:23 +000015128 archive_cmds_need_lc=yes
15129 # This is similar to how AIX traditionally builds its shared libraries.
15130 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'
15131 fi
15132 fi
15133 ;;
15134
15135 amigaos*)
15136 case $host_cpu in
15137 powerpc)
15138 # see comment about AmigaOS4 .so support
15139 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15140 archive_expsym_cmds=''
15141 ;;
15142 m68k)
15143 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)'
15144 hardcode_libdir_flag_spec='-L$libdir'
15145 hardcode_minus_L=yes
15146 ;;
15147 esac
15148 ;;
15149
15150 bsdi[45]*)
15151 export_dynamic_flag_spec=-rdynamic
15152 ;;
15153
15154 cygwin* | mingw* | pw32* | cegcc*)
15155 # When not using gcc, we currently assume that we are using
15156 # Microsoft Visual C++.
15157 # hardcode_libdir_flag_spec is actually meaningless, as there is
15158 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015159 case $cc_basename in
15160 cl*)
15161 # Native MSVC
15162 hardcode_libdir_flag_spec=' '
15163 allow_undefined_flag=unsupported
15164 always_export_symbols=yes
15165 file_list_spec='@'
15166 # Tell ltmain to make .lib files, not .a files.
15167 libext=lib
15168 # Tell ltmain to make .dll files, not .so files.
15169 shrext_cmds=".dll"
15170 # FIXME: Setting linknames here is a bad hack.
15171 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15172 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15173 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15174 else
15175 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15176 fi~
15177 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15178 linknames='
15179 # The linker will not automatically build a static lib if we build a DLL.
15180 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15181 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015182 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015183 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15184 # Don't use ranlib
15185 old_postinstall_cmds='chmod 644 $oldlib'
15186 postlink_cmds='lt_outputfile="@OUTPUT@"~
15187 lt_tool_outputfile="@TOOL_OUTPUT@"~
15188 case $lt_outputfile in
15189 *.exe|*.EXE) ;;
15190 *)
15191 lt_outputfile="$lt_outputfile.exe"
15192 lt_tool_outputfile="$lt_tool_outputfile.exe"
15193 ;;
15194 esac~
15195 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15196 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15197 $RM "$lt_outputfile.manifest";
15198 fi'
15199 ;;
15200 *)
15201 # Assume MSVC wrapper
15202 hardcode_libdir_flag_spec=' '
15203 allow_undefined_flag=unsupported
15204 # Tell ltmain to make .lib files, not .a files.
15205 libext=lib
15206 # Tell ltmain to make .dll files, not .so files.
15207 shrext_cmds=".dll"
15208 # FIXME: Setting linknames here is a bad hack.
15209 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15210 # The linker will automatically build a .lib file if we build a DLL.
15211 old_archive_from_new_cmds='true'
15212 # FIXME: Should let the user specify the lib program.
15213 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15214 enable_shared_with_static_runtimes=yes
15215 ;;
15216 esac
cristy73bd4a52010-10-05 11:24:23 +000015217 ;;
15218
15219 darwin* | rhapsody*)
15220
15221
15222 archive_cmds_need_lc=no
15223 hardcode_direct=no
15224 hardcode_automatic=yes
15225 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015226 if test "$lt_cv_ld_force_load" = "yes"; then
15227 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000015228
cristy0c60a692010-11-04 01:09:47 +000015229 else
15230 whole_archive_flag_spec=''
15231 fi
cristy73bd4a52010-10-05 11:24:23 +000015232 link_all_deplibs=yes
15233 allow_undefined_flag="$_lt_dar_allow_undefined"
15234 case $cc_basename in
15235 ifort*) _lt_dar_can_shared=yes ;;
15236 *) _lt_dar_can_shared=$GCC ;;
15237 esac
15238 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015239 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015240 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15241 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15242 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}"
15243 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}"
15244
15245 else
15246 ld_shlibs=no
15247 fi
15248
15249 ;;
15250
15251 dgux*)
15252 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15253 hardcode_libdir_flag_spec='-L$libdir'
15254 hardcode_shlibpath_var=no
15255 ;;
15256
cristy73bd4a52010-10-05 11:24:23 +000015257 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15258 # support. Future versions do this automatically, but an explicit c++rt0.o
15259 # does not break anything, and helps significantly (at the cost of a little
15260 # extra space).
15261 freebsd2.2*)
15262 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15263 hardcode_libdir_flag_spec='-R$libdir'
15264 hardcode_direct=yes
15265 hardcode_shlibpath_var=no
15266 ;;
15267
15268 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015269 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015270 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15271 hardcode_direct=yes
15272 hardcode_minus_L=yes
15273 hardcode_shlibpath_var=no
15274 ;;
15275
15276 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15277 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015278 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015279 hardcode_libdir_flag_spec='-R$libdir'
15280 hardcode_direct=yes
15281 hardcode_shlibpath_var=no
15282 ;;
15283
15284 hpux9*)
15285 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015286 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
cristy73bd4a52010-10-05 11:24:23 +000015287 else
15288 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'
15289 fi
15290 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15291 hardcode_libdir_separator=:
15292 hardcode_direct=yes
15293
15294 # hardcode_minus_L: Not really in the search PATH,
15295 # but as the default location of the library.
15296 hardcode_minus_L=yes
15297 export_dynamic_flag_spec='${wl}-E'
15298 ;;
15299
15300 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015301 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015302 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015303 else
15304 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15305 fi
15306 if test "$with_gnu_ld" = no; then
15307 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015308 hardcode_libdir_separator=:
15309 hardcode_direct=yes
15310 hardcode_direct_absolute=yes
15311 export_dynamic_flag_spec='${wl}-E'
15312 # hardcode_minus_L: Not really in the search PATH,
15313 # but as the default location of the library.
15314 hardcode_minus_L=yes
15315 fi
15316 ;;
15317
15318 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015319 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015320 case $host_cpu in
15321 hppa*64*)
15322 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15323 ;;
15324 ia64*)
cristyda16f162011-02-19 23:52:17 +000015325 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015326 ;;
15327 *)
cristyda16f162011-02-19 23:52:17 +000015328 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015329 ;;
15330 esac
15331 else
15332 case $host_cpu in
15333 hppa*64*)
15334 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15335 ;;
15336 ia64*)
15337 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15338 ;;
15339 *)
cristy0c60a692010-11-04 01:09:47 +000015340
15341 # Older versions of the 11.00 compiler do not understand -b yet
15342 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15344$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015345if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015346 $as_echo_n "(cached) " >&6
15347else
15348 lt_cv_prog_compiler__b=no
15349 save_LDFLAGS="$LDFLAGS"
15350 LDFLAGS="$LDFLAGS -b"
15351 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15352 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15353 # The linker can only warn and ignore the option if not recognized
15354 # So say no if there are warnings
15355 if test -s conftest.err; then
15356 # Append any errors to the config.log.
15357 cat conftest.err 1>&5
15358 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15359 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15360 if diff conftest.exp conftest.er2 >/dev/null; then
15361 lt_cv_prog_compiler__b=yes
15362 fi
15363 else
15364 lt_cv_prog_compiler__b=yes
15365 fi
15366 fi
15367 $RM -r conftest*
15368 LDFLAGS="$save_LDFLAGS"
15369
15370fi
15371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15372$as_echo "$lt_cv_prog_compiler__b" >&6; }
15373
15374if test x"$lt_cv_prog_compiler__b" = xyes; then
15375 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15376else
15377 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15378fi
15379
cristy73bd4a52010-10-05 11:24:23 +000015380 ;;
15381 esac
15382 fi
15383 if test "$with_gnu_ld" = no; then
15384 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15385 hardcode_libdir_separator=:
15386
15387 case $host_cpu in
15388 hppa*64*|ia64*)
15389 hardcode_direct=no
15390 hardcode_shlibpath_var=no
15391 ;;
15392 *)
15393 hardcode_direct=yes
15394 hardcode_direct_absolute=yes
15395 export_dynamic_flag_spec='${wl}-E'
15396
15397 # hardcode_minus_L: Not really in the search PATH,
15398 # but as the default location of the library.
15399 hardcode_minus_L=yes
15400 ;;
15401 esac
15402 fi
15403 ;;
15404
15405 irix5* | irix6* | nonstopux*)
15406 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015407 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015408 # Try to use the -exported_symbol ld option, if it does not
15409 # work, assume that -exports_file does not work either and
15410 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015411 # This should be the same for all languages, so no per-tag cache variable.
15412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15413$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15414if ${lt_cv_irix_exported_symbol+:} false; then :
15415 $as_echo_n "(cached) " >&6
15416else
15417 save_LDFLAGS="$LDFLAGS"
15418 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015420/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015421int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015422_ACEOF
15423if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015424 lt_cv_irix_exported_symbol=yes
15425else
15426 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015427fi
15428rm -f core conftest.err conftest.$ac_objext \
15429 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015430 LDFLAGS="$save_LDFLAGS"
15431fi
15432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15433$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15434 if test "$lt_cv_irix_exported_symbol" = yes; then
15435 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
15436 fi
cristy73bd4a52010-10-05 11:24:23 +000015437 else
cristy0c60a692010-11-04 01:09:47 +000015438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015440 fi
15441 archive_cmds_need_lc='no'
15442 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15443 hardcode_libdir_separator=:
15444 inherit_rpath=yes
15445 link_all_deplibs=yes
15446 ;;
15447
15448 netbsd*)
15449 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15450 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15451 else
15452 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15453 fi
15454 hardcode_libdir_flag_spec='-R$libdir'
15455 hardcode_direct=yes
15456 hardcode_shlibpath_var=no
15457 ;;
15458
15459 newsos6)
15460 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15461 hardcode_direct=yes
15462 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15463 hardcode_libdir_separator=:
15464 hardcode_shlibpath_var=no
15465 ;;
15466
15467 *nto* | *qnx*)
15468 ;;
15469
15470 openbsd*)
15471 if test -f /usr/libexec/ld.so; then
15472 hardcode_direct=yes
15473 hardcode_shlibpath_var=no
15474 hardcode_direct_absolute=yes
15475 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15476 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15477 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15478 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15479 export_dynamic_flag_spec='${wl}-E'
15480 else
15481 case $host_os in
15482 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15483 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15484 hardcode_libdir_flag_spec='-R$libdir'
15485 ;;
15486 *)
15487 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15488 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15489 ;;
15490 esac
15491 fi
15492 else
15493 ld_shlibs=no
15494 fi
15495 ;;
15496
15497 os2*)
15498 hardcode_libdir_flag_spec='-L$libdir'
15499 hardcode_minus_L=yes
15500 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015501 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'
cristy73bd4a52010-10-05 11:24:23 +000015502 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15503 ;;
15504
15505 osf3*)
15506 if test "$GCC" = yes; then
15507 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015508 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015509 else
15510 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015511 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015512 fi
15513 archive_cmds_need_lc='no'
15514 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15515 hardcode_libdir_separator=:
15516 ;;
15517
15518 osf4* | osf5*) # as osf3* with the addition of -msym flag
15519 if test "$GCC" = yes; then
15520 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015521 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015522 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15523 else
15524 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015525 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000015526 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~
cristy0c60a692010-11-04 01:09:47 +000015527 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015528
15529 # Both c and cxx compiler support -rpath directly
15530 hardcode_libdir_flag_spec='-rpath $libdir'
15531 fi
15532 archive_cmds_need_lc='no'
15533 hardcode_libdir_separator=:
15534 ;;
15535
15536 solaris*)
15537 no_undefined_flag=' -z defs'
15538 if test "$GCC" = yes; then
15539 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015540 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015541 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000015542 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000015543 else
15544 case `$CC -V 2>&1` in
15545 *"Compilers 5.0"*)
15546 wlarc=''
15547 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15548 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15549 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15550 ;;
15551 *)
15552 wlarc='${wl}'
15553 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15554 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15555 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15556 ;;
15557 esac
15558 fi
15559 hardcode_libdir_flag_spec='-R$libdir'
15560 hardcode_shlibpath_var=no
15561 case $host_os in
15562 solaris2.[0-5] | solaris2.[0-5].*) ;;
15563 *)
15564 # The compiler driver will combine and reorder linker options,
15565 # but understands `-z linker_flag'. GCC discards it without `$wl',
15566 # but is careful enough not to reorder.
15567 # Supported since Solaris 2.6 (maybe 2.5.1?)
15568 if test "$GCC" = yes; then
15569 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15570 else
15571 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15572 fi
15573 ;;
15574 esac
15575 link_all_deplibs=yes
15576 ;;
15577
15578 sunos4*)
15579 if test "x$host_vendor" = xsequent; then
15580 # Use $CC to link under sequent, because it throws in some extra .o
15581 # files that make .init and .fini sections work.
15582 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15583 else
15584 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15585 fi
15586 hardcode_libdir_flag_spec='-L$libdir'
15587 hardcode_direct=yes
15588 hardcode_minus_L=yes
15589 hardcode_shlibpath_var=no
15590 ;;
15591
15592 sysv4)
15593 case $host_vendor in
15594 sni)
15595 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596 hardcode_direct=yes # is this really true???
15597 ;;
15598 siemens)
15599 ## LD is ld it makes a PLAMLIB
15600 ## CC just makes a GrossModule.
15601 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15602 reload_cmds='$CC -r -o $output$reload_objs'
15603 hardcode_direct=no
15604 ;;
15605 motorola)
15606 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15607 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15608 ;;
15609 esac
15610 runpath_var='LD_RUN_PATH'
15611 hardcode_shlibpath_var=no
15612 ;;
15613
15614 sysv4.3*)
15615 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15616 hardcode_shlibpath_var=no
15617 export_dynamic_flag_spec='-Bexport'
15618 ;;
15619
15620 sysv4*MP*)
15621 if test -d /usr/nec; then
15622 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15623 hardcode_shlibpath_var=no
15624 runpath_var=LD_RUN_PATH
15625 hardcode_runpath_var=yes
15626 ld_shlibs=yes
15627 fi
15628 ;;
15629
15630 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15631 no_undefined_flag='${wl}-z,text'
15632 archive_cmds_need_lc=no
15633 hardcode_shlibpath_var=no
15634 runpath_var='LD_RUN_PATH'
15635
15636 if test "$GCC" = yes; then
15637 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15638 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15639 else
15640 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15642 fi
15643 ;;
15644
15645 sysv5* | sco3.2v5* | sco5v6*)
15646 # Note: We can NOT use -z defs as we might desire, because we do not
15647 # link with -lc, and that would cause any symbols used from libc to
15648 # always be unresolved, which means just about no library would
15649 # ever link correctly. If we're not using GNU ld we use -z text
15650 # though, which does catch some bad symbols but isn't as heavy-handed
15651 # as -z defs.
15652 no_undefined_flag='${wl}-z,text'
15653 allow_undefined_flag='${wl}-z,nodefs'
15654 archive_cmds_need_lc=no
15655 hardcode_shlibpath_var=no
15656 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15657 hardcode_libdir_separator=':'
15658 link_all_deplibs=yes
15659 export_dynamic_flag_spec='${wl}-Bexport'
15660 runpath_var='LD_RUN_PATH'
15661
15662 if test "$GCC" = yes; then
15663 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15665 else
15666 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15668 fi
15669 ;;
15670
15671 uts4*)
15672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15673 hardcode_libdir_flag_spec='-L$libdir'
15674 hardcode_shlibpath_var=no
15675 ;;
15676
15677 *)
15678 ld_shlibs=no
15679 ;;
15680 esac
15681
15682 if test x$host_vendor = xsni; then
15683 case $host in
15684 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15685 export_dynamic_flag_spec='${wl}-Blargedynsym'
15686 ;;
15687 esac
15688 fi
15689 fi
15690
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15692$as_echo "$ld_shlibs" >&6; }
15693test "$ld_shlibs" = no && can_build_shared=no
15694
15695with_gnu_ld=$with_gnu_ld
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710
15711#
15712# Do we need to explicitly link libc?
15713#
15714case "x$archive_cmds_need_lc" in
15715x|xyes)
15716 # Assume -lc should be added
15717 archive_cmds_need_lc=yes
15718
15719 if test "$enable_shared" = yes && test "$GCC" = yes; then
15720 case $archive_cmds in
15721 *'~'*)
15722 # FIXME: we may have to deal with multi-command sequences.
15723 ;;
15724 '$CC '*)
15725 # Test whether the compiler implicitly links with -lc since on some
15726 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15727 # to ld, don't add -lc before -lgcc.
15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15729$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015730if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015731 $as_echo_n "(cached) " >&6
15732else
15733 $RM conftest*
15734 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015735
cristy0c60a692010-11-04 01:09:47 +000015736 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015737 (eval $ac_compile) 2>&5
15738 ac_status=$?
15739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15740 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015741 soname=conftest
15742 lib=conftest
15743 libobjs=conftest.$ac_objext
15744 deplibs=
15745 wl=$lt_prog_compiler_wl
15746 pic_flag=$lt_prog_compiler_pic
15747 compiler_flags=-v
15748 linker_flags=-v
15749 verstring=
15750 output_objdir=.
15751 libname=conftest
15752 lt_save_allow_undefined_flag=$allow_undefined_flag
15753 allow_undefined_flag=
15754 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015755 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15756 ac_status=$?
15757 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15758 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015759 then
15760 lt_cv_archive_cmds_need_lc=no
15761 else
15762 lt_cv_archive_cmds_need_lc=yes
15763 fi
15764 allow_undefined_flag=$lt_save_allow_undefined_flag
15765 else
15766 cat conftest.err 1>&5
15767 fi
15768 $RM conftest*
15769
15770fi
15771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15772$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15773 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015774 ;;
15775 esac
15776 fi
15777 ;;
15778esac
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
cristy73bd4a52010-10-05 11:24:23 +000015931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15932$as_echo_n "checking dynamic linker characteristics... " >&6; }
15933
15934if test "$GCC" = yes; then
15935 case $host_os in
15936 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15937 *) lt_awk_arg="/^libraries:/" ;;
15938 esac
cristy0c60a692010-11-04 01:09:47 +000015939 case $host_os in
15940 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15941 *) lt_sed_strip_eq="s,=/,/,g" ;;
15942 esac
15943 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15944 case $lt_search_path_spec in
15945 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015946 # if the path contains ";" then we assume it to be the separator
15947 # otherwise default to the standard path separator (i.e. ":") - it is
15948 # assumed that no part of a normal pathname contains ";" but that should
15949 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015950 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15951 ;;
15952 *)
15953 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15954 ;;
15955 esac
cristy73bd4a52010-10-05 11:24:23 +000015956 # Ok, now we have the path, separated by spaces, we can step through it
15957 # and add multilib dir if necessary.
15958 lt_tmp_lt_search_path_spec=
15959 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15960 for lt_sys_path in $lt_search_path_spec; do
15961 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15962 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15963 else
15964 test -d "$lt_sys_path" && \
15965 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15966 fi
15967 done
cristy0c60a692010-11-04 01:09:47 +000015968 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015969BEGIN {RS=" "; FS="/|\n";} {
15970 lt_foo="";
15971 lt_count=0;
15972 for (lt_i = NF; lt_i > 0; lt_i--) {
15973 if ($lt_i != "" && $lt_i != ".") {
15974 if ($lt_i == "..") {
15975 lt_count++;
15976 } else {
15977 if (lt_count == 0) {
15978 lt_foo="/" $lt_i lt_foo;
15979 } else {
15980 lt_count--;
15981 }
15982 }
15983 }
15984 }
15985 if (lt_foo != "") { lt_freq[lt_foo]++; }
15986 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15987}'`
cristy0c60a692010-11-04 01:09:47 +000015988 # AWK program above erroneously prepends '/' to C:/dos/paths
15989 # for these hosts.
15990 case $host_os in
15991 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15992 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15993 esac
15994 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015995else
15996 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15997fi
15998library_names_spec=
15999libname_spec='lib$name'
16000soname_spec=
16001shrext_cmds=".so"
16002postinstall_cmds=
16003postuninstall_cmds=
16004finish_cmds=
16005finish_eval=
16006shlibpath_var=
16007shlibpath_overrides_runpath=unknown
16008version_type=none
16009dynamic_linker="$host_os ld.so"
16010sys_lib_dlsearch_path_spec="/lib /usr/lib"
16011need_lib_prefix=unknown
16012hardcode_into_libs=no
16013
16014# when you set need_version to no, make sure it does not cause -set_version
16015# flags to be left without arguments
16016need_version=unknown
16017
16018case $host_os in
16019aix3*)
cristy99bd5232011-12-07 14:38:20 +000016020 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16022 shlibpath_var=LIBPATH
16023
16024 # AIX 3 has no versioning support, so we append a major version to the name.
16025 soname_spec='${libname}${release}${shared_ext}$major'
16026 ;;
16027
16028aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016029 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016030 need_lib_prefix=no
16031 need_version=no
16032 hardcode_into_libs=yes
16033 if test "$host_cpu" = ia64; then
16034 # AIX 5 supports IA64
16035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16036 shlibpath_var=LD_LIBRARY_PATH
16037 else
16038 # With GCC up to 2.95.x, collect2 would create an import file
16039 # for dependence libraries. The import file would start with
16040 # the line `#! .'. This would cause the generated library to
16041 # depend on `.', always an invalid library. This was fixed in
16042 # development snapshots of GCC prior to 3.0.
16043 case $host_os in
16044 aix4 | aix4.[01] | aix4.[01].*)
16045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16046 echo ' yes '
16047 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16048 :
16049 else
16050 can_build_shared=no
16051 fi
16052 ;;
16053 esac
16054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16055 # soname into executable. Probably we can add versioning support to
16056 # collect2, so additional links can be useful in future.
16057 if test "$aix_use_runtimelinking" = yes; then
16058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16059 # instead of lib<name>.a to let people know that these are not
16060 # typical AIX shared libraries.
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 else
16063 # We preserve .a as extension for shared libraries through AIX4.2
16064 # and later when we are not doing run time linking.
16065 library_names_spec='${libname}${release}.a $libname.a'
16066 soname_spec='${libname}${release}${shared_ext}$major'
16067 fi
16068 shlibpath_var=LIBPATH
16069 fi
16070 ;;
16071
16072amigaos*)
16073 case $host_cpu in
16074 powerpc)
16075 # Since July 2007 AmigaOS4 officially supports .so libraries.
16076 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16078 ;;
16079 m68k)
16080 library_names_spec='$libname.ixlibrary $libname.a'
16081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016082 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
cristy73bd4a52010-10-05 11:24:23 +000016083 ;;
16084 esac
16085 ;;
16086
16087beos*)
16088 library_names_spec='${libname}${shared_ext}'
16089 dynamic_linker="$host_os ld.so"
16090 shlibpath_var=LIBRARY_PATH
16091 ;;
16092
16093bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016094 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016095 need_version=no
16096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16097 soname_spec='${libname}${release}${shared_ext}$major'
16098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16099 shlibpath_var=LD_LIBRARY_PATH
16100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16102 # the default ld.so.conf also contains /usr/contrib/lib and
16103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16104 # libtool to hard-code these into programs
16105 ;;
16106
16107cygwin* | mingw* | pw32* | cegcc*)
16108 version_type=windows
16109 shrext_cmds=".dll"
16110 need_version=no
16111 need_lib_prefix=no
16112
cristyda16f162011-02-19 23:52:17 +000016113 case $GCC,$cc_basename in
16114 yes,*)
16115 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016116 library_names_spec='$libname.dll.a'
16117 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16118 postinstall_cmds='base_file=`basename \${file}`~
16119 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16120 dldir=$destdir/`dirname \$dlpath`~
16121 test -d \$dldir || mkdir -p \$dldir~
16122 $install_prog $dir/$dlname \$dldir/$dlname~
16123 chmod a+x \$dldir/$dlname~
16124 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16125 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16126 fi'
16127 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16128 dlpath=$dir/\$dldll~
16129 $RM \$dlpath'
16130 shlibpath_overrides_runpath=yes
16131
16132 case $host_os in
16133 cygwin*)
16134 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16135 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016136
16137 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016138 ;;
16139 mingw* | cegcc*)
16140 # MinGW DLLs use traditional 'lib' prefix
16141 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016142 ;;
16143 pw32*)
16144 # pw32 DLLs use 'pw' prefix rather than 'lib'
16145 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16146 ;;
16147 esac
cristyda16f162011-02-19 23:52:17 +000016148 dynamic_linker='Win32 ld.exe'
16149 ;;
16150
16151 *,cl*)
16152 # Native MSVC
16153 libname_spec='$name'
16154 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16155 library_names_spec='${libname}.dll.lib'
16156
16157 case $build_os in
16158 mingw*)
16159 sys_lib_search_path_spec=
16160 lt_save_ifs=$IFS
16161 IFS=';'
16162 for lt_path in $LIB
16163 do
16164 IFS=$lt_save_ifs
16165 # Let DOS variable expansion print the short 8.3 style file name.
16166 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16167 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16168 done
16169 IFS=$lt_save_ifs
16170 # Convert to MSYS style.
16171 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16172 ;;
16173 cygwin*)
16174 # Convert to unix form, then to dos form, then back to unix form
16175 # but this time dos style (no spaces!) so that the unix form looks
16176 # like /cygdrive/c/PROGRA~1:/cygdr...
16177 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16178 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16179 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16180 ;;
16181 *)
16182 sys_lib_search_path_spec="$LIB"
16183 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16184 # It is most probably a Windows format PATH.
16185 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16186 else
16187 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16188 fi
16189 # FIXME: find the short name or the path components, as spaces are
16190 # common. (e.g. "Program Files" -> "PROGRA~1")
16191 ;;
16192 esac
16193
16194 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16195 postinstall_cmds='base_file=`basename \${file}`~
16196 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16197 dldir=$destdir/`dirname \$dlpath`~
16198 test -d \$dldir || mkdir -p \$dldir~
16199 $install_prog $dir/$dlname \$dldir/$dlname'
16200 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16201 dlpath=$dir/\$dldll~
16202 $RM \$dlpath'
16203 shlibpath_overrides_runpath=yes
16204 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016205 ;;
16206
16207 *)
cristyda16f162011-02-19 23:52:17 +000016208 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016209 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016210 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016211 ;;
16212 esac
cristy73bd4a52010-10-05 11:24:23 +000016213 # FIXME: first we should search . and the directory the executable is in
16214 shlibpath_var=PATH
16215 ;;
16216
16217darwin* | rhapsody*)
16218 dynamic_linker="$host_os dyld"
16219 version_type=darwin
16220 need_lib_prefix=no
16221 need_version=no
16222 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16223 soname_spec='${libname}${release}${major}$shared_ext'
16224 shlibpath_overrides_runpath=yes
16225 shlibpath_var=DYLD_LIBRARY_PATH
16226 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16227
16228 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16229 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16230 ;;
16231
16232dgux*)
cristy99bd5232011-12-07 14:38:20 +000016233 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016234 need_lib_prefix=no
16235 need_version=no
16236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16237 soname_spec='${libname}${release}${shared_ext}$major'
16238 shlibpath_var=LD_LIBRARY_PATH
16239 ;;
16240
cristy73bd4a52010-10-05 11:24:23 +000016241freebsd* | dragonfly*)
16242 # DragonFly does not have aout. When/if they implement a new
16243 # versioning mechanism, adjust this.
16244 if test -x /usr/bin/objformat; then
16245 objformat=`/usr/bin/objformat`
16246 else
16247 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016248 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016249 *) objformat=elf ;;
16250 esac
16251 fi
16252 version_type=freebsd-$objformat
16253 case $version_type in
16254 freebsd-elf*)
16255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16256 need_version=no
16257 need_lib_prefix=no
16258 ;;
16259 freebsd-*)
16260 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16261 need_version=yes
16262 ;;
16263 esac
16264 shlibpath_var=LD_LIBRARY_PATH
16265 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016266 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016267 shlibpath_overrides_runpath=yes
16268 ;;
16269 freebsd3.[01]* | freebsdelf3.[01]*)
16270 shlibpath_overrides_runpath=yes
16271 hardcode_into_libs=yes
16272 ;;
16273 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16274 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16275 shlibpath_overrides_runpath=no
16276 hardcode_into_libs=yes
16277 ;;
16278 *) # from 4.6 on, and DragonFly
16279 shlibpath_overrides_runpath=yes
16280 hardcode_into_libs=yes
16281 ;;
16282 esac
16283 ;;
16284
16285gnu*)
cristy99bd5232011-12-07 14:38:20 +000016286 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016287 need_lib_prefix=no
16288 need_version=no
16289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16290 soname_spec='${libname}${release}${shared_ext}$major'
16291 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016292 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016293 hardcode_into_libs=yes
16294 ;;
16295
cristy0c60a692010-11-04 01:09:47 +000016296haiku*)
cristy99bd5232011-12-07 14:38:20 +000016297 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016298 need_lib_prefix=no
16299 need_version=no
16300 dynamic_linker="$host_os runtime_loader"
16301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16302 soname_spec='${libname}${release}${shared_ext}$major'
16303 shlibpath_var=LIBRARY_PATH
16304 shlibpath_overrides_runpath=yes
16305 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16306 hardcode_into_libs=yes
16307 ;;
16308
cristy73bd4a52010-10-05 11:24:23 +000016309hpux9* | hpux10* | hpux11*)
16310 # Give a soname corresponding to the major version so that dld.sl refuses to
16311 # link against other versions.
16312 version_type=sunos
16313 need_lib_prefix=no
16314 need_version=no
16315 case $host_cpu in
16316 ia64*)
16317 shrext_cmds='.so'
16318 hardcode_into_libs=yes
16319 dynamic_linker="$host_os dld.so"
16320 shlibpath_var=LD_LIBRARY_PATH
16321 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16323 soname_spec='${libname}${release}${shared_ext}$major'
16324 if test "X$HPUX_IA64_MODE" = X32; then
16325 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16326 else
16327 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16328 fi
16329 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16330 ;;
16331 hppa*64*)
16332 shrext_cmds='.sl'
16333 hardcode_into_libs=yes
16334 dynamic_linker="$host_os dld.sl"
16335 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16336 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16341 ;;
16342 *)
16343 shrext_cmds='.sl'
16344 dynamic_linker="$host_os dld.sl"
16345 shlibpath_var=SHLIB_PATH
16346 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16348 soname_spec='${libname}${release}${shared_ext}$major'
16349 ;;
16350 esac
cristy0c60a692010-11-04 01:09:47 +000016351 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016352 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016353 # or fails outright, so override atomically:
16354 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016355 ;;
16356
16357interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016358 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016359 need_lib_prefix=no
16360 need_version=no
16361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16362 soname_spec='${libname}${release}${shared_ext}$major'
16363 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16364 shlibpath_var=LD_LIBRARY_PATH
16365 shlibpath_overrides_runpath=no
16366 hardcode_into_libs=yes
16367 ;;
16368
16369irix5* | irix6* | nonstopux*)
16370 case $host_os in
16371 nonstopux*) version_type=nonstopux ;;
16372 *)
16373 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016374 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016375 else
16376 version_type=irix
16377 fi ;;
16378 esac
16379 need_lib_prefix=no
16380 need_version=no
16381 soname_spec='${libname}${release}${shared_ext}$major'
16382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16383 case $host_os in
16384 irix5* | nonstopux*)
16385 libsuff= shlibsuff=
16386 ;;
16387 *)
16388 case $LD in # libtool.m4 will add one of these switches to LD
16389 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16390 libsuff= shlibsuff= libmagic=32-bit;;
16391 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16392 libsuff=32 shlibsuff=N32 libmagic=N32;;
16393 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16394 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16395 *) libsuff= shlibsuff= libmagic=never-match;;
16396 esac
16397 ;;
16398 esac
16399 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16400 shlibpath_overrides_runpath=no
16401 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16402 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16403 hardcode_into_libs=yes
16404 ;;
16405
16406# No shared lib support for Linux oldld, aout, or coff.
16407linux*oldld* | linux*aout* | linux*coff*)
16408 dynamic_linker=no
16409 ;;
16410
cristy99bd5232011-12-07 14:38:20 +000016411# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016412linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016413 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016414 need_lib_prefix=no
16415 need_version=no
16416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16417 soname_spec='${libname}${release}${shared_ext}$major'
16418 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16419 shlibpath_var=LD_LIBRARY_PATH
16420 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016421
cristy73bd4a52010-10-05 11:24:23 +000016422 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016423 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016424 $as_echo_n "(cached) " >&6
16425else
16426 lt_cv_shlibpath_overrides_runpath=no
16427 save_LDFLAGS=$LDFLAGS
16428 save_libdir=$libdir
16429 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16430 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016432/* end confdefs.h. */
16433
16434int
16435main ()
16436{
16437
16438 ;
16439 return 0;
16440}
16441_ACEOF
16442if ac_fn_c_try_link "$LINENO"; then :
16443 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016444 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016445fi
16446fi
16447rm -f core conftest.err conftest.$ac_objext \
16448 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016449 LDFLAGS=$save_LDFLAGS
16450 libdir=$save_libdir
16451
16452fi
16453
16454 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016455
16456 # This implies no fast_install, which is unacceptable.
16457 # Some rework will be needed to allow for fast_install
16458 # before this can be enabled.
16459 hardcode_into_libs=yes
16460
16461 # Add ABI-specific directories to the system library path.
16462 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16463
16464 # Append ld.so.conf contents to the search path
16465 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016466 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;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000016467 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016468
cristy73bd4a52010-10-05 11:24:23 +000016469 fi
16470
16471 # We used to test for /lib/ld.so.1 and disable shared libraries on
16472 # powerpc, because MkLinux only supported shared libraries with the
16473 # GNU dynamic linker. Since this was broken with cross compilers,
16474 # most powerpc-linux boxes support dynamic linking these days and
16475 # people can always --disable-shared, the test was removed, and we
16476 # assume the GNU/Linux dynamic linker is in use.
16477 dynamic_linker='GNU/Linux ld.so'
16478 ;;
16479
16480netbsd*)
16481 version_type=sunos
16482 need_lib_prefix=no
16483 need_version=no
16484 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16487 dynamic_linker='NetBSD (a.out) ld.so'
16488 else
16489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16490 soname_spec='${libname}${release}${shared_ext}$major'
16491 dynamic_linker='NetBSD ld.elf_so'
16492 fi
16493 shlibpath_var=LD_LIBRARY_PATH
16494 shlibpath_overrides_runpath=yes
16495 hardcode_into_libs=yes
16496 ;;
16497
16498newsos6)
cristy99bd5232011-12-07 14:38:20 +000016499 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16501 shlibpath_var=LD_LIBRARY_PATH
16502 shlibpath_overrides_runpath=yes
16503 ;;
16504
16505*nto* | *qnx*)
16506 version_type=qnx
16507 need_lib_prefix=no
16508 need_version=no
16509 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16510 soname_spec='${libname}${release}${shared_ext}$major'
16511 shlibpath_var=LD_LIBRARY_PATH
16512 shlibpath_overrides_runpath=no
16513 hardcode_into_libs=yes
16514 dynamic_linker='ldqnx.so'
16515 ;;
16516
16517openbsd*)
16518 version_type=sunos
16519 sys_lib_dlsearch_path_spec="/usr/lib"
16520 need_lib_prefix=no
16521 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16522 case $host_os in
16523 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16524 *) need_version=no ;;
16525 esac
16526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16527 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16528 shlibpath_var=LD_LIBRARY_PATH
16529 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16530 case $host_os in
16531 openbsd2.[89] | openbsd2.[89].*)
16532 shlibpath_overrides_runpath=no
16533 ;;
16534 *)
16535 shlibpath_overrides_runpath=yes
16536 ;;
16537 esac
16538 else
16539 shlibpath_overrides_runpath=yes
16540 fi
16541 ;;
16542
16543os2*)
16544 libname_spec='$name'
16545 shrext_cmds=".dll"
16546 need_lib_prefix=no
16547 library_names_spec='$libname${shared_ext} $libname.a'
16548 dynamic_linker='OS/2 ld.exe'
16549 shlibpath_var=LIBPATH
16550 ;;
16551
16552osf3* | osf4* | osf5*)
16553 version_type=osf
16554 need_lib_prefix=no
16555 need_version=no
16556 soname_spec='${libname}${release}${shared_ext}$major'
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 shlibpath_var=LD_LIBRARY_PATH
16559 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16560 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16561 ;;
16562
16563rdos*)
16564 dynamic_linker=no
16565 ;;
16566
16567solaris*)
cristy99bd5232011-12-07 14:38:20 +000016568 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016569 need_lib_prefix=no
16570 need_version=no
16571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16572 soname_spec='${libname}${release}${shared_ext}$major'
16573 shlibpath_var=LD_LIBRARY_PATH
16574 shlibpath_overrides_runpath=yes
16575 hardcode_into_libs=yes
16576 # ldd complains unless libraries are executable
16577 postinstall_cmds='chmod +x $lib'
16578 ;;
16579
16580sunos4*)
16581 version_type=sunos
16582 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16583 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16584 shlibpath_var=LD_LIBRARY_PATH
16585 shlibpath_overrides_runpath=yes
16586 if test "$with_gnu_ld" = yes; then
16587 need_lib_prefix=no
16588 fi
16589 need_version=yes
16590 ;;
16591
16592sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016593 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16595 soname_spec='${libname}${release}${shared_ext}$major'
16596 shlibpath_var=LD_LIBRARY_PATH
16597 case $host_vendor in
16598 sni)
16599 shlibpath_overrides_runpath=no
16600 need_lib_prefix=no
16601 runpath_var=LD_RUN_PATH
16602 ;;
16603 siemens)
16604 need_lib_prefix=no
16605 ;;
16606 motorola)
16607 need_lib_prefix=no
16608 need_version=no
16609 shlibpath_overrides_runpath=no
16610 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16611 ;;
16612 esac
16613 ;;
16614
16615sysv4*MP*)
16616 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016617 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016618 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16619 soname_spec='$libname${shared_ext}.$major'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 fi
16622 ;;
16623
16624sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16625 version_type=freebsd-elf
16626 need_lib_prefix=no
16627 need_version=no
16628 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16629 soname_spec='${libname}${release}${shared_ext}$major'
16630 shlibpath_var=LD_LIBRARY_PATH
16631 shlibpath_overrides_runpath=yes
16632 hardcode_into_libs=yes
16633 if test "$with_gnu_ld" = yes; then
16634 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16635 else
16636 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16637 case $host_os in
16638 sco3.2v5*)
16639 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16640 ;;
16641 esac
16642 fi
16643 sys_lib_dlsearch_path_spec='/usr/lib'
16644 ;;
16645
16646tpf*)
16647 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016648 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016649 need_lib_prefix=no
16650 need_version=no
16651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16652 shlibpath_var=LD_LIBRARY_PATH
16653 shlibpath_overrides_runpath=no
16654 hardcode_into_libs=yes
16655 ;;
16656
16657uts4*)
cristy99bd5232011-12-07 14:38:20 +000016658 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16660 soname_spec='${libname}${release}${shared_ext}$major'
16661 shlibpath_var=LD_LIBRARY_PATH
16662 ;;
16663
16664*)
16665 dynamic_linker=no
16666 ;;
16667esac
16668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16669$as_echo "$dynamic_linker" >&6; }
16670test "$dynamic_linker" = no && can_build_shared=no
16671
16672variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16673if test "$GCC" = yes; then
16674 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16675fi
16676
16677if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16678 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16679fi
16680if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16681 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16682fi
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
cristy0c60a692010-11-04 01:09:47 +000016770
16771
16772
16773
16774
cristy73bd4a52010-10-05 11:24:23 +000016775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16776$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16777hardcode_action=
16778if test -n "$hardcode_libdir_flag_spec" ||
16779 test -n "$runpath_var" ||
16780 test "X$hardcode_automatic" = "Xyes" ; then
16781
16782 # We can hardcode non-existent directories.
16783 if test "$hardcode_direct" != no &&
16784 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16785 # have to relink, otherwise we might link with an installed library
16786 # when we should be linking with a yet-to-be-installed one
16787 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16788 test "$hardcode_minus_L" != no; then
16789 # Linking always hardcodes the temporary library directory.
16790 hardcode_action=relink
16791 else
16792 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16793 hardcode_action=immediate
16794 fi
16795else
16796 # We cannot hardcode anything, or else we can only hardcode existing
16797 # directories.
16798 hardcode_action=unsupported
16799fi
16800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16801$as_echo "$hardcode_action" >&6; }
16802
16803if test "$hardcode_action" = relink ||
16804 test "$inherit_rpath" = yes; then
16805 # Fast installation is not supported
16806 enable_fast_install=no
16807elif test "$shlibpath_overrides_runpath" = yes ||
16808 test "$enable_shared" = no; then
16809 # Fast installation is not necessary
16810 enable_fast_install=needless
16811fi
16812
16813
16814
16815
16816
16817
16818 if test "x$enable_dlopen" != xyes; then
16819 enable_dlopen=unknown
16820 enable_dlopen_self=unknown
16821 enable_dlopen_self_static=unknown
16822else
16823 lt_cv_dlopen=no
16824 lt_cv_dlopen_libs=
16825
16826 case $host_os in
16827 beos*)
16828 lt_cv_dlopen="load_add_on"
16829 lt_cv_dlopen_libs=
16830 lt_cv_dlopen_self=yes
16831 ;;
16832
16833 mingw* | pw32* | cegcc*)
16834 lt_cv_dlopen="LoadLibrary"
16835 lt_cv_dlopen_libs=
16836 ;;
16837
16838 cygwin*)
16839 lt_cv_dlopen="dlopen"
16840 lt_cv_dlopen_libs=
16841 ;;
16842
16843 darwin*)
16844 # if libdl is installed we need to link against it
16845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16846$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016847if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016848 $as_echo_n "(cached) " >&6
16849else
16850 ac_check_lib_save_LIBS=$LIBS
16851LIBS="-ldl $LIBS"
16852cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16853/* end confdefs.h. */
16854
16855/* Override any GCC internal prototype to avoid an error.
16856 Use char because int might match the return type of a GCC
16857 builtin and then its argument prototype would still apply. */
16858#ifdef __cplusplus
16859extern "C"
16860#endif
16861char dlopen ();
16862int
16863main ()
16864{
16865return dlopen ();
16866 ;
16867 return 0;
16868}
16869_ACEOF
16870if ac_fn_c_try_link "$LINENO"; then :
16871 ac_cv_lib_dl_dlopen=yes
16872else
16873 ac_cv_lib_dl_dlopen=no
16874fi
16875rm -f core conftest.err conftest.$ac_objext \
16876 conftest$ac_exeext conftest.$ac_ext
16877LIBS=$ac_check_lib_save_LIBS
16878fi
16879{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16880$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016881if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016882 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16883else
16884
16885 lt_cv_dlopen="dyld"
16886 lt_cv_dlopen_libs=
16887 lt_cv_dlopen_self=yes
16888
16889fi
16890
16891 ;;
16892
16893 *)
16894 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016895if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016896 lt_cv_dlopen="shl_load"
16897else
16898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16899$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016900if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016901 $as_echo_n "(cached) " >&6
16902else
16903 ac_check_lib_save_LIBS=$LIBS
16904LIBS="-ldld $LIBS"
16905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16906/* end confdefs.h. */
16907
16908/* Override any GCC internal prototype to avoid an error.
16909 Use char because int might match the return type of a GCC
16910 builtin and then its argument prototype would still apply. */
16911#ifdef __cplusplus
16912extern "C"
16913#endif
16914char shl_load ();
16915int
16916main ()
16917{
16918return shl_load ();
16919 ;
16920 return 0;
16921}
16922_ACEOF
16923if ac_fn_c_try_link "$LINENO"; then :
16924 ac_cv_lib_dld_shl_load=yes
16925else
16926 ac_cv_lib_dld_shl_load=no
16927fi
16928rm -f core conftest.err conftest.$ac_objext \
16929 conftest$ac_exeext conftest.$ac_ext
16930LIBS=$ac_check_lib_save_LIBS
16931fi
16932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16933$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016934if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016935 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16936else
16937 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016938if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016939 lt_cv_dlopen="dlopen"
16940else
16941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16942$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016943if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016944 $as_echo_n "(cached) " >&6
16945else
16946 ac_check_lib_save_LIBS=$LIBS
16947LIBS="-ldl $LIBS"
16948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16949/* end confdefs.h. */
16950
16951/* Override any GCC internal prototype to avoid an error.
16952 Use char because int might match the return type of a GCC
16953 builtin and then its argument prototype would still apply. */
16954#ifdef __cplusplus
16955extern "C"
16956#endif
16957char dlopen ();
16958int
16959main ()
16960{
16961return dlopen ();
16962 ;
16963 return 0;
16964}
16965_ACEOF
16966if ac_fn_c_try_link "$LINENO"; then :
16967 ac_cv_lib_dl_dlopen=yes
16968else
16969 ac_cv_lib_dl_dlopen=no
16970fi
16971rm -f core conftest.err conftest.$ac_objext \
16972 conftest$ac_exeext conftest.$ac_ext
16973LIBS=$ac_check_lib_save_LIBS
16974fi
16975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16976$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016977if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016978 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16979else
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16981$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016982if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016983 $as_echo_n "(cached) " >&6
16984else
16985 ac_check_lib_save_LIBS=$LIBS
16986LIBS="-lsvld $LIBS"
16987cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16988/* end confdefs.h. */
16989
16990/* Override any GCC internal prototype to avoid an error.
16991 Use char because int might match the return type of a GCC
16992 builtin and then its argument prototype would still apply. */
16993#ifdef __cplusplus
16994extern "C"
16995#endif
16996char dlopen ();
16997int
16998main ()
16999{
17000return dlopen ();
17001 ;
17002 return 0;
17003}
17004_ACEOF
17005if ac_fn_c_try_link "$LINENO"; then :
17006 ac_cv_lib_svld_dlopen=yes
17007else
17008 ac_cv_lib_svld_dlopen=no
17009fi
17010rm -f core conftest.err conftest.$ac_objext \
17011 conftest$ac_exeext conftest.$ac_ext
17012LIBS=$ac_check_lib_save_LIBS
17013fi
17014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17015$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017016if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017017 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17018else
17019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17020$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017021if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017022 $as_echo_n "(cached) " >&6
17023else
17024 ac_check_lib_save_LIBS=$LIBS
17025LIBS="-ldld $LIBS"
17026cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027/* end confdefs.h. */
17028
17029/* Override any GCC internal prototype to avoid an error.
17030 Use char because int might match the return type of a GCC
17031 builtin and then its argument prototype would still apply. */
17032#ifdef __cplusplus
17033extern "C"
17034#endif
17035char dld_link ();
17036int
17037main ()
17038{
17039return dld_link ();
17040 ;
17041 return 0;
17042}
17043_ACEOF
17044if ac_fn_c_try_link "$LINENO"; then :
17045 ac_cv_lib_dld_dld_link=yes
17046else
17047 ac_cv_lib_dld_dld_link=no
17048fi
17049rm -f core conftest.err conftest.$ac_objext \
17050 conftest$ac_exeext conftest.$ac_ext
17051LIBS=$ac_check_lib_save_LIBS
17052fi
17053{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17054$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017055if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017056 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17057fi
17058
17059
17060fi
17061
17062
17063fi
17064
17065
17066fi
17067
17068
17069fi
17070
17071
17072fi
17073
17074 ;;
17075 esac
17076
17077 if test "x$lt_cv_dlopen" != xno; then
17078 enable_dlopen=yes
17079 else
17080 enable_dlopen=no
17081 fi
17082
17083 case $lt_cv_dlopen in
17084 dlopen)
17085 save_CPPFLAGS="$CPPFLAGS"
17086 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17087
17088 save_LDFLAGS="$LDFLAGS"
17089 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17090
17091 save_LIBS="$LIBS"
17092 LIBS="$lt_cv_dlopen_libs $LIBS"
17093
17094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17095$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017096if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017097 $as_echo_n "(cached) " >&6
17098else
17099 if test "$cross_compiling" = yes; then :
17100 lt_cv_dlopen_self=cross
17101else
17102 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17103 lt_status=$lt_dlunknown
17104 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017105#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017106#include "confdefs.h"
17107
17108#if HAVE_DLFCN_H
17109#include <dlfcn.h>
17110#endif
17111
17112#include <stdio.h>
17113
17114#ifdef RTLD_GLOBAL
17115# define LT_DLGLOBAL RTLD_GLOBAL
17116#else
17117# ifdef DL_GLOBAL
17118# define LT_DLGLOBAL DL_GLOBAL
17119# else
17120# define LT_DLGLOBAL 0
17121# endif
17122#endif
17123
17124/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17125 find out it does not work in some platform. */
17126#ifndef LT_DLLAZY_OR_NOW
17127# ifdef RTLD_LAZY
17128# define LT_DLLAZY_OR_NOW RTLD_LAZY
17129# else
17130# ifdef DL_LAZY
17131# define LT_DLLAZY_OR_NOW DL_LAZY
17132# else
17133# ifdef RTLD_NOW
17134# define LT_DLLAZY_OR_NOW RTLD_NOW
17135# else
17136# ifdef DL_NOW
17137# define LT_DLLAZY_OR_NOW DL_NOW
17138# else
17139# define LT_DLLAZY_OR_NOW 0
17140# endif
17141# endif
17142# endif
17143# endif
17144#endif
17145
cristy0c60a692010-11-04 01:09:47 +000017146/* When -fvisbility=hidden is used, assume the code has been annotated
17147 correspondingly for the symbols needed. */
17148#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017149int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017150#endif
17151
cristyda16f162011-02-19 23:52:17 +000017152int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017153int main ()
17154{
17155 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17156 int status = $lt_dlunknown;
17157
17158 if (self)
17159 {
17160 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017161 else
17162 {
17163 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17164 else puts (dlerror ());
17165 }
cristy73bd4a52010-10-05 11:24:23 +000017166 /* dlclose (self); */
17167 }
17168 else
17169 puts (dlerror ());
17170
17171 return status;
17172}
17173_LT_EOF
17174 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17175 (eval $ac_link) 2>&5
17176 ac_status=$?
17177 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17178 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17179 (./conftest; exit; ) >&5 2>/dev/null
17180 lt_status=$?
17181 case x$lt_status in
17182 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17183 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17184 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17185 esac
17186 else :
17187 # compilation failed
17188 lt_cv_dlopen_self=no
17189 fi
17190fi
17191rm -fr conftest*
17192
17193
17194fi
17195{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17196$as_echo "$lt_cv_dlopen_self" >&6; }
17197
17198 if test "x$lt_cv_dlopen_self" = xyes; then
17199 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17201$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017202if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017203 $as_echo_n "(cached) " >&6
17204else
17205 if test "$cross_compiling" = yes; then :
17206 lt_cv_dlopen_self_static=cross
17207else
17208 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17209 lt_status=$lt_dlunknown
17210 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017211#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017212#include "confdefs.h"
17213
17214#if HAVE_DLFCN_H
17215#include <dlfcn.h>
17216#endif
17217
17218#include <stdio.h>
17219
17220#ifdef RTLD_GLOBAL
17221# define LT_DLGLOBAL RTLD_GLOBAL
17222#else
17223# ifdef DL_GLOBAL
17224# define LT_DLGLOBAL DL_GLOBAL
17225# else
17226# define LT_DLGLOBAL 0
17227# endif
17228#endif
17229
17230/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17231 find out it does not work in some platform. */
17232#ifndef LT_DLLAZY_OR_NOW
17233# ifdef RTLD_LAZY
17234# define LT_DLLAZY_OR_NOW RTLD_LAZY
17235# else
17236# ifdef DL_LAZY
17237# define LT_DLLAZY_OR_NOW DL_LAZY
17238# else
17239# ifdef RTLD_NOW
17240# define LT_DLLAZY_OR_NOW RTLD_NOW
17241# else
17242# ifdef DL_NOW
17243# define LT_DLLAZY_OR_NOW DL_NOW
17244# else
17245# define LT_DLLAZY_OR_NOW 0
17246# endif
17247# endif
17248# endif
17249# endif
17250#endif
17251
cristy0c60a692010-11-04 01:09:47 +000017252/* When -fvisbility=hidden is used, assume the code has been annotated
17253 correspondingly for the symbols needed. */
17254#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017255int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017256#endif
17257
cristyda16f162011-02-19 23:52:17 +000017258int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017259int main ()
17260{
17261 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17262 int status = $lt_dlunknown;
17263
17264 if (self)
17265 {
17266 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017267 else
17268 {
17269 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17270 else puts (dlerror ());
17271 }
cristy73bd4a52010-10-05 11:24:23 +000017272 /* dlclose (self); */
17273 }
17274 else
17275 puts (dlerror ());
17276
17277 return status;
17278}
17279_LT_EOF
17280 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17281 (eval $ac_link) 2>&5
17282 ac_status=$?
17283 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17284 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17285 (./conftest; exit; ) >&5 2>/dev/null
17286 lt_status=$?
17287 case x$lt_status in
17288 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17289 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17290 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17291 esac
17292 else :
17293 # compilation failed
17294 lt_cv_dlopen_self_static=no
17295 fi
17296fi
17297rm -fr conftest*
17298
17299
17300fi
17301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17302$as_echo "$lt_cv_dlopen_self_static" >&6; }
17303 fi
17304
17305 CPPFLAGS="$save_CPPFLAGS"
17306 LDFLAGS="$save_LDFLAGS"
17307 LIBS="$save_LIBS"
17308 ;;
17309 esac
17310
17311 case $lt_cv_dlopen_self in
17312 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17313 *) enable_dlopen_self=unknown ;;
17314 esac
17315
17316 case $lt_cv_dlopen_self_static in
17317 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17318 *) enable_dlopen_self_static=unknown ;;
17319 esac
17320fi
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337
17338striplib=
17339old_striplib=
17340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17341$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17342if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17343 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17344 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17346$as_echo "yes" >&6; }
17347else
17348# FIXME - insert some real tests, host_os isn't really good enough
17349 case $host_os in
17350 darwin*)
17351 if test -n "$STRIP" ; then
17352 striplib="$STRIP -x"
17353 old_striplib="$STRIP -S"
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17355$as_echo "yes" >&6; }
17356 else
17357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17358$as_echo "no" >&6; }
17359 fi
17360 ;;
17361 *)
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17363$as_echo "no" >&6; }
17364 ;;
17365 esac
17366fi
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379 # Report which library types will actually be built
17380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17381$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17383$as_echo "$can_build_shared" >&6; }
17384
17385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17386$as_echo_n "checking whether to build shared libraries... " >&6; }
17387 test "$can_build_shared" = "no" && enable_shared=no
17388
17389 # On AIX, shared libraries and static libraries use the same namespace, and
17390 # are all built from PIC.
17391 case $host_os in
17392 aix3*)
17393 test "$enable_shared" = yes && enable_static=no
17394 if test -n "$RANLIB"; then
17395 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17396 postinstall_cmds='$RANLIB $lib'
17397 fi
17398 ;;
17399
17400 aix[4-9]*)
17401 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17402 test "$enable_shared" = yes && enable_static=no
17403 fi
17404 ;;
17405 esac
17406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17407$as_echo "$enable_shared" >&6; }
17408
17409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17410$as_echo_n "checking whether to build static libraries... " >&6; }
17411 # Make sure either enable_shared or enable_static is yes.
17412 test "$enable_shared" = yes || enable_static=yes
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17414$as_echo "$enable_static" >&6; }
17415
17416
17417
17418
17419fi
17420ac_ext=c
17421ac_cpp='$CPP $CPPFLAGS'
17422ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17423ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17424ac_compiler_gnu=$ac_cv_c_compiler_gnu
17425
17426CC="$lt_save_CC"
17427
cristy0c60a692010-11-04 01:09:47 +000017428 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17429 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17430 (test "X$CXX" != "Xg++"))) ; then
17431 ac_ext=cpp
17432ac_cpp='$CXXCPP $CPPFLAGS'
17433ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17434ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17435ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17437$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17438if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017439 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017440 $as_echo_n "(cached) " >&6
17441else
17442 # Double quotes because CXXCPP needs to be expanded
17443 for CXXCPP in "$CXX -E" "/lib/cpp"
17444 do
17445 ac_preproc_ok=false
17446for ac_cxx_preproc_warn_flag in '' yes
17447do
17448 # Use a header file that comes with gcc, so configuring glibc
17449 # with a fresh cross-compiler works.
17450 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17451 # <limits.h> exists even on freestanding compilers.
17452 # On the NeXT, cc -E runs the code through the compiler's parser,
17453 # not just through cpp. "Syntax error" is here to catch this case.
17454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17455/* end confdefs.h. */
17456#ifdef __STDC__
17457# include <limits.h>
17458#else
17459# include <assert.h>
17460#endif
17461 Syntax error
17462_ACEOF
17463if ac_fn_cxx_try_cpp "$LINENO"; then :
17464
17465else
17466 # Broken: fails on valid input.
17467continue
17468fi
cristyda16f162011-02-19 23:52:17 +000017469rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017470
17471 # OK, works on sane cases. Now check whether nonexistent headers
17472 # can be detected and how.
17473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17474/* end confdefs.h. */
17475#include <ac_nonexistent.h>
17476_ACEOF
17477if ac_fn_cxx_try_cpp "$LINENO"; then :
17478 # Broken: success on invalid input.
17479continue
17480else
17481 # Passes both tests.
17482ac_preproc_ok=:
17483break
17484fi
cristyda16f162011-02-19 23:52:17 +000017485rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017486
17487done
17488# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017489rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017490if $ac_preproc_ok; then :
17491 break
17492fi
17493
17494 done
17495 ac_cv_prog_CXXCPP=$CXXCPP
17496
17497fi
17498 CXXCPP=$ac_cv_prog_CXXCPP
17499else
17500 ac_cv_prog_CXXCPP=$CXXCPP
17501fi
17502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17503$as_echo "$CXXCPP" >&6; }
17504ac_preproc_ok=false
17505for ac_cxx_preproc_warn_flag in '' yes
17506do
17507 # Use a header file that comes with gcc, so configuring glibc
17508 # with a fresh cross-compiler works.
17509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17510 # <limits.h> exists even on freestanding compilers.
17511 # On the NeXT, cc -E runs the code through the compiler's parser,
17512 # not just through cpp. "Syntax error" is here to catch this case.
17513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17514/* end confdefs.h. */
17515#ifdef __STDC__
17516# include <limits.h>
17517#else
17518# include <assert.h>
17519#endif
17520 Syntax error
17521_ACEOF
17522if ac_fn_cxx_try_cpp "$LINENO"; then :
17523
17524else
17525 # Broken: fails on valid input.
17526continue
17527fi
cristyda16f162011-02-19 23:52:17 +000017528rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017529
17530 # OK, works on sane cases. Now check whether nonexistent headers
17531 # can be detected and how.
17532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17533/* end confdefs.h. */
17534#include <ac_nonexistent.h>
17535_ACEOF
17536if ac_fn_cxx_try_cpp "$LINENO"; then :
17537 # Broken: success on invalid input.
17538continue
17539else
17540 # Passes both tests.
17541ac_preproc_ok=:
17542break
17543fi
cristyda16f162011-02-19 23:52:17 +000017544rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017545
17546done
17547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017548rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017549if $ac_preproc_ok; then :
17550
17551else
17552 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17553$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17554as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17555See \`config.log' for more details" "$LINENO" 5; }
17556fi
17557
17558ac_ext=c
17559ac_cpp='$CPP $CPPFLAGS'
17560ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17561ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17562ac_compiler_gnu=$ac_cv_c_compiler_gnu
17563
17564else
17565 _lt_caught_CXX_error=yes
17566fi
cristy73bd4a52010-10-05 11:24:23 +000017567
17568ac_ext=cpp
17569ac_cpp='$CXXCPP $CPPFLAGS'
17570ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17571ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17572ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17573
17574archive_cmds_need_lc_CXX=no
17575allow_undefined_flag_CXX=
17576always_export_symbols_CXX=no
17577archive_expsym_cmds_CXX=
17578compiler_needs_object_CXX=no
17579export_dynamic_flag_spec_CXX=
17580hardcode_direct_CXX=no
17581hardcode_direct_absolute_CXX=no
17582hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017583hardcode_libdir_separator_CXX=
17584hardcode_minus_L_CXX=no
17585hardcode_shlibpath_var_CXX=unsupported
17586hardcode_automatic_CXX=no
17587inherit_rpath_CXX=no
17588module_cmds_CXX=
17589module_expsym_cmds_CXX=
17590link_all_deplibs_CXX=unknown
17591old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017592reload_flag_CXX=$reload_flag
17593reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017594no_undefined_flag_CXX=
17595whole_archive_flag_spec_CXX=
17596enable_shared_with_static_runtimes_CXX=no
17597
17598# Source file extension for C++ test sources.
17599ac_ext=cpp
17600
17601# Object file extension for compiled C++ test sources.
17602objext=o
17603objext_CXX=$objext
17604
17605# No sense in running all these tests if we already determined that
17606# the CXX compiler isn't working. Some variables (like enable_shared)
17607# are currently assumed to apply to all compilers on this platform,
17608# and will be corrupted by setting them based on a non-working compiler.
17609if test "$_lt_caught_CXX_error" != yes; then
17610 # Code to be used in simple compile tests
17611 lt_simple_compile_test_code="int some_variable = 0;"
17612
17613 # Code to be used in simple link tests
17614 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17615
17616 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17617
17618
17619
17620
17621
17622
17623# If no C compiler was specified, use CC.
17624LTCC=${LTCC-"$CC"}
17625
17626# If no C compiler flags were specified, use CFLAGS.
17627LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17628
17629# Allow CC to be a program name with arguments.
17630compiler=$CC
17631
17632
17633 # save warnings/boilerplate of simple test code
17634 ac_outfile=conftest.$ac_objext
17635echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17636eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17637_lt_compiler_boilerplate=`cat conftest.err`
17638$RM conftest*
17639
17640 ac_outfile=conftest.$ac_objext
17641echo "$lt_simple_link_test_code" >conftest.$ac_ext
17642eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17643_lt_linker_boilerplate=`cat conftest.err`
17644$RM -r conftest*
17645
17646
17647 # Allow CC to be a program name with arguments.
17648 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017649 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017650 lt_save_LD=$LD
17651 lt_save_GCC=$GCC
17652 GCC=$GXX
17653 lt_save_with_gnu_ld=$with_gnu_ld
17654 lt_save_path_LD=$lt_cv_path_LD
17655 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17656 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17657 else
17658 $as_unset lt_cv_prog_gnu_ld
17659 fi
17660 if test -n "${lt_cv_path_LDCXX+set}"; then
17661 lt_cv_path_LD=$lt_cv_path_LDCXX
17662 else
17663 $as_unset lt_cv_path_LD
17664 fi
17665 test -z "${LDCXX+set}" || LD=$LDCXX
17666 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017667 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017668 compiler=$CC
17669 compiler_CXX=$CC
17670 for cc_temp in $compiler""; do
17671 case $cc_temp in
17672 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17673 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17674 \-*) ;;
17675 *) break;;
17676 esac
17677done
cristy0c60a692010-11-04 01:09:47 +000017678cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017679
17680
17681 if test -n "$compiler"; then
17682 # We don't want -fno-exception when compiling C++ code, so set the
17683 # no_builtin_flag separately
17684 if test "$GXX" = yes; then
17685 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17686 else
17687 lt_prog_compiler_no_builtin_flag_CXX=
17688 fi
17689
17690 if test "$GXX" = yes; then
17691 # Set up default GNU C++ configuration
17692
17693
17694
17695# Check whether --with-gnu-ld was given.
17696if test "${with_gnu_ld+set}" = set; then :
17697 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17698else
17699 with_gnu_ld=no
17700fi
17701
17702ac_prog=ld
17703if test "$GCC" = yes; then
17704 # Check if gcc -print-prog-name=ld gives a path.
17705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17706$as_echo_n "checking for ld used by $CC... " >&6; }
17707 case $host in
17708 *-*-mingw*)
17709 # gcc leaves a trailing carriage return which upsets mingw
17710 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17711 *)
17712 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17713 esac
17714 case $ac_prog in
17715 # Accept absolute paths.
17716 [\\/]* | ?:[\\/]*)
17717 re_direlt='/[^/][^/]*/\.\./'
17718 # Canonicalize the pathname of ld
17719 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17720 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17721 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17722 done
17723 test -z "$LD" && LD="$ac_prog"
17724 ;;
17725 "")
17726 # If it fails, then pretend we aren't using GCC.
17727 ac_prog=ld
17728 ;;
17729 *)
17730 # If it is relative, then search for the first ld in PATH.
17731 with_gnu_ld=unknown
17732 ;;
17733 esac
17734elif test "$with_gnu_ld" = yes; then
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17736$as_echo_n "checking for GNU ld... " >&6; }
17737else
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17739$as_echo_n "checking for non-GNU ld... " >&6; }
17740fi
cristyda16f162011-02-19 23:52:17 +000017741if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017742 $as_echo_n "(cached) " >&6
17743else
17744 if test -z "$LD"; then
17745 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17746 for ac_dir in $PATH; do
17747 IFS="$lt_save_ifs"
17748 test -z "$ac_dir" && ac_dir=.
17749 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17750 lt_cv_path_LD="$ac_dir/$ac_prog"
17751 # Check to see if the program is GNU ld. I'd rather use --version,
17752 # but apparently some variants of GNU ld only accept -v.
17753 # Break only if it was the GNU/non-GNU ld that we prefer.
17754 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17755 *GNU* | *'with BFD'*)
17756 test "$with_gnu_ld" != no && break
17757 ;;
17758 *)
17759 test "$with_gnu_ld" != yes && break
17760 ;;
17761 esac
17762 fi
17763 done
17764 IFS="$lt_save_ifs"
17765else
17766 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17767fi
17768fi
17769
17770LD="$lt_cv_path_LD"
17771if test -n "$LD"; then
17772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17773$as_echo "$LD" >&6; }
17774else
17775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17776$as_echo "no" >&6; }
17777fi
cristy98dddb52010-11-04 00:30:15 +000017778test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17780$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017781if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017782 $as_echo_n "(cached) " >&6
17783else
17784 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17785case `$LD -v 2>&1 </dev/null` in
17786*GNU* | *'with BFD'*)
17787 lt_cv_prog_gnu_ld=yes
17788 ;;
17789*)
17790 lt_cv_prog_gnu_ld=no
17791 ;;
17792esac
17793fi
17794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17795$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17796with_gnu_ld=$lt_cv_prog_gnu_ld
17797
17798
17799
17800
17801
17802
17803
17804 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17805 # archiving commands below assume that GNU ld is being used.
17806 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017807 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17808 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000017809
17810 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17811 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17812
17813 # If archive_cmds runs LD, not CC, wlarc should be empty
17814 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17815 # investigate it a little bit more. (MM)
17816 wlarc='${wl}'
17817
17818 # ancient GNU ld didn't support --whole-archive et. al.
17819 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17820 $GREP 'no-whole-archive' > /dev/null; then
17821 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17822 else
17823 whole_archive_flag_spec_CXX=
17824 fi
17825 else
17826 with_gnu_ld=no
17827 wlarc=
17828
17829 # A generic and very simple default shared library creation
17830 # command for GNU C++ for the case where it uses the native
17831 # linker, instead of GNU ld. If possible, this setting should
17832 # overridden to take advantage of the native linker features on
17833 # the platform it is being used on.
17834 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17835 fi
17836
17837 # Commands to make compiler produce verbose output that lists
17838 # what "hidden" libraries, object files and flags are used when
17839 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017840 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017841
17842 else
17843 GXX=no
17844 with_gnu_ld=no
17845 wlarc=
17846 fi
17847
17848 # PORTME: fill in a description of your system's C++ link characteristics
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17850$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17851 ld_shlibs_CXX=yes
17852 case $host_os in
17853 aix3*)
17854 # FIXME: insert proper C++ library support
17855 ld_shlibs_CXX=no
17856 ;;
17857 aix[4-9]*)
17858 if test "$host_cpu" = ia64; then
17859 # On IA64, the linker does run time linking by default, so we don't
17860 # have to do anything special.
17861 aix_use_runtimelinking=no
17862 exp_sym_flag='-Bexport'
17863 no_entry_flag=""
17864 else
17865 aix_use_runtimelinking=no
17866
17867 # Test if we are trying to use run time linking or normal
17868 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17869 # need to do runtime linking.
17870 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17871 for ld_flag in $LDFLAGS; do
17872 case $ld_flag in
17873 *-brtl*)
17874 aix_use_runtimelinking=yes
17875 break
17876 ;;
17877 esac
17878 done
17879 ;;
17880 esac
17881
17882 exp_sym_flag='-bexport'
17883 no_entry_flag='-bnoentry'
17884 fi
17885
17886 # When large executables or shared objects are built, AIX ld can
17887 # have problems creating the table of contents. If linking a library
17888 # or program results in "error TOC overflow" add -mminimal-toc to
17889 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17890 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17891
17892 archive_cmds_CXX=''
17893 hardcode_direct_CXX=yes
17894 hardcode_direct_absolute_CXX=yes
17895 hardcode_libdir_separator_CXX=':'
17896 link_all_deplibs_CXX=yes
17897 file_list_spec_CXX='${wl}-f,'
17898
17899 if test "$GXX" = yes; then
17900 case $host_os in aix4.[012]|aix4.[012].*)
17901 # We only want to do this on AIX 4.2 and lower, the check
17902 # below for broken collect2 doesn't work under 4.3+
17903 collect2name=`${CC} -print-prog-name=collect2`
17904 if test -f "$collect2name" &&
17905 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17906 then
17907 # We have reworked collect2
17908 :
17909 else
17910 # We have old collect2
17911 hardcode_direct_CXX=unsupported
17912 # It fails to find uninstalled libraries when the uninstalled
17913 # path is not listed in the libpath. Setting hardcode_minus_L
17914 # to unsupported forces relinking
17915 hardcode_minus_L_CXX=yes
17916 hardcode_libdir_flag_spec_CXX='-L$libdir'
17917 hardcode_libdir_separator_CXX=
17918 fi
17919 esac
17920 shared_flag='-shared'
17921 if test "$aix_use_runtimelinking" = yes; then
17922 shared_flag="$shared_flag "'${wl}-G'
17923 fi
17924 else
17925 # not using gcc
17926 if test "$host_cpu" = ia64; then
17927 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17928 # chokes on -Wl,-G. The following line is correct:
17929 shared_flag='-G'
17930 else
17931 if test "$aix_use_runtimelinking" = yes; then
17932 shared_flag='${wl}-G'
17933 else
17934 shared_flag='${wl}-bM:SRE'
17935 fi
17936 fi
17937 fi
17938
17939 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17940 # It seems that -bexpall does not export symbols beginning with
17941 # underscore (_), so it is better to generate a list of symbols to
17942 # export.
17943 always_export_symbols_CXX=yes
17944 if test "$aix_use_runtimelinking" = yes; then
17945 # Warning - without using the other runtime loading flags (-brtl),
17946 # -berok will link without error, but may produce a broken library.
17947 allow_undefined_flag_CXX='-berok'
17948 # Determine the default libpath from the value encoded in an empty
17949 # executable.
cristyda16f162011-02-19 23:52:17 +000017950 if test "${lt_cv_aix_libpath+set}" = set; then
17951 aix_libpath=$lt_cv_aix_libpath
17952else
17953 if ${lt_cv_aix_libpath__CXX+:} false; then :
17954 $as_echo_n "(cached) " >&6
17955else
17956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017957/* end confdefs.h. */
17958
17959int
17960main ()
17961{
17962
17963 ;
17964 return 0;
17965}
17966_ACEOF
17967if ac_fn_cxx_try_link "$LINENO"; then :
17968
cristyda16f162011-02-19 23:52:17 +000017969 lt_aix_libpath_sed='
17970 /Import File Strings/,/^$/ {
17971 /^0/ {
17972 s/^0 *\([^ ]*\) *$/\1/
17973 p
17974 }
17975 }'
17976 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17977 # Check for a 64-bit object if we didn't find anything.
17978 if test -z "$lt_cv_aix_libpath__CXX"; then
17979 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17980 fi
cristy73bd4a52010-10-05 11:24:23 +000017981fi
17982rm -f core conftest.err conftest.$ac_objext \
17983 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017984 if test -z "$lt_cv_aix_libpath__CXX"; then
17985 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17986 fi
17987
17988fi
17989
17990 aix_libpath=$lt_cv_aix_libpath__CXX
17991fi
cristy73bd4a52010-10-05 11:24:23 +000017992
17993 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17994
cristy0c60a692010-11-04 01:09:47 +000017995 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 func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
cristy73bd4a52010-10-05 11:24:23 +000017996 else
17997 if test "$host_cpu" = ia64; then
17998 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17999 allow_undefined_flag_CXX="-z nodefs"
18000 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"
18001 else
18002 # Determine the default libpath from the value encoded in an
18003 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018004 if test "${lt_cv_aix_libpath+set}" = set; then
18005 aix_libpath=$lt_cv_aix_libpath
18006else
18007 if ${lt_cv_aix_libpath__CXX+:} false; then :
18008 $as_echo_n "(cached) " >&6
18009else
18010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018011/* end confdefs.h. */
18012
18013int
18014main ()
18015{
18016
18017 ;
18018 return 0;
18019}
18020_ACEOF
18021if ac_fn_cxx_try_link "$LINENO"; then :
18022
cristyda16f162011-02-19 23:52:17 +000018023 lt_aix_libpath_sed='
18024 /Import File Strings/,/^$/ {
18025 /^0/ {
18026 s/^0 *\([^ ]*\) *$/\1/
18027 p
18028 }
18029 }'
18030 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18031 # Check for a 64-bit object if we didn't find anything.
18032 if test -z "$lt_cv_aix_libpath__CXX"; then
18033 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18034 fi
cristy73bd4a52010-10-05 11:24:23 +000018035fi
18036rm -f core conftest.err conftest.$ac_objext \
18037 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018038 if test -z "$lt_cv_aix_libpath__CXX"; then
18039 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18040 fi
18041
18042fi
18043
18044 aix_libpath=$lt_cv_aix_libpath__CXX
18045fi
cristy73bd4a52010-10-05 11:24:23 +000018046
18047 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18048 # Warning - without using the other run time loading flags,
18049 # -berok will link without error, but may produce a broken library.
18050 no_undefined_flag_CXX=' ${wl}-bernotok'
18051 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018052 if test "$with_gnu_ld" = yes; then
18053 # We only use this code for GNU lds that support --whole-archive.
18054 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18055 else
18056 # Exported symbols can be pulled into shared objects from archives
18057 whole_archive_flag_spec_CXX='$convenience'
18058 fi
cristy73bd4a52010-10-05 11:24:23 +000018059 archive_cmds_need_lc_CXX=yes
18060 # This is similar to how AIX traditionally builds its shared
18061 # libraries.
18062 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'
18063 fi
18064 fi
18065 ;;
18066
18067 beos*)
18068 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18069 allow_undefined_flag_CXX=unsupported
18070 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18071 # support --undefined. This deserves some investigation. FIXME
18072 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18073 else
18074 ld_shlibs_CXX=no
18075 fi
18076 ;;
18077
18078 chorus*)
18079 case $cc_basename in
18080 *)
18081 # FIXME: insert proper C++ library support
18082 ld_shlibs_CXX=no
18083 ;;
18084 esac
18085 ;;
18086
18087 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018088 case $GXX,$cc_basename in
18089 ,cl* | no,cl*)
18090 # Native MSVC
18091 # hardcode_libdir_flag_spec is actually meaningless, as there is
18092 # no search path for DLLs.
18093 hardcode_libdir_flag_spec_CXX=' '
18094 allow_undefined_flag_CXX=unsupported
18095 always_export_symbols_CXX=yes
18096 file_list_spec_CXX='@'
18097 # Tell ltmain to make .lib files, not .a files.
18098 libext=lib
18099 # Tell ltmain to make .dll files, not .so files.
18100 shrext_cmds=".dll"
18101 # FIXME: Setting linknames here is a bad hack.
18102 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18103 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18104 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18105 else
18106 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18107 fi~
18108 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18109 linknames='
18110 # The linker will not automatically build a static lib if we build a DLL.
18111 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18112 enable_shared_with_static_runtimes_CXX=yes
18113 # Don't use ranlib
18114 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18115 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18116 lt_tool_outputfile="@TOOL_OUTPUT@"~
18117 case $lt_outputfile in
18118 *.exe|*.EXE) ;;
18119 *)
18120 lt_outputfile="$lt_outputfile.exe"
18121 lt_tool_outputfile="$lt_tool_outputfile.exe"
18122 ;;
18123 esac~
18124 func_to_tool_file "$lt_outputfile"~
18125 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18126 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18127 $RM "$lt_outputfile.manifest";
18128 fi'
18129 ;;
18130 *)
18131 # g++
18132 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18133 # as there is no search path for DLLs.
18134 hardcode_libdir_flag_spec_CXX='-L$libdir'
18135 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18136 allow_undefined_flag_CXX=unsupported
18137 always_export_symbols_CXX=no
18138 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018139
cristyda16f162011-02-19 23:52:17 +000018140 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18141 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'
18142 # If the export-symbols file already is a .def file (1st line
18143 # is EXPORTS), use it as is; otherwise, prepend...
18144 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18145 cp $export_symbols $output_objdir/$soname.def;
18146 else
18147 echo EXPORTS > $output_objdir/$soname.def;
18148 cat $export_symbols >> $output_objdir/$soname.def;
18149 fi~
18150 $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'
18151 else
18152 ld_shlibs_CXX=no
18153 fi
18154 ;;
18155 esac
18156 ;;
cristy73bd4a52010-10-05 11:24:23 +000018157 darwin* | rhapsody*)
18158
18159
18160 archive_cmds_need_lc_CXX=no
18161 hardcode_direct_CXX=no
18162 hardcode_automatic_CXX=yes
18163 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018164 if test "$lt_cv_ld_force_load" = "yes"; then
18165 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
cristy99bd5232011-12-07 14:38:20 +000018166
cristy0c60a692010-11-04 01:09:47 +000018167 else
18168 whole_archive_flag_spec_CXX=''
18169 fi
cristy73bd4a52010-10-05 11:24:23 +000018170 link_all_deplibs_CXX=yes
18171 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18172 case $cc_basename in
18173 ifort*) _lt_dar_can_shared=yes ;;
18174 *) _lt_dar_can_shared=$GCC ;;
18175 esac
18176 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018177 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018178 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}"
18179 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18180 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}"
18181 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}"
18182 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18183 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}"
18184 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}"
18185 fi
18186
18187 else
18188 ld_shlibs_CXX=no
18189 fi
18190
18191 ;;
18192
18193 dgux*)
18194 case $cc_basename in
18195 ec++*)
18196 # FIXME: insert proper C++ library support
18197 ld_shlibs_CXX=no
18198 ;;
18199 ghcx*)
18200 # Green Hills C++ Compiler
18201 # FIXME: insert proper C++ library support
18202 ld_shlibs_CXX=no
18203 ;;
18204 *)
18205 # FIXME: insert proper C++ library support
18206 ld_shlibs_CXX=no
18207 ;;
18208 esac
18209 ;;
18210
cristy99bd5232011-12-07 14:38:20 +000018211 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018212 # C++ shared libraries reported to be fairly broken before
18213 # switch to ELF
18214 ld_shlibs_CXX=no
18215 ;;
18216
18217 freebsd-elf*)
18218 archive_cmds_need_lc_CXX=no
18219 ;;
18220
18221 freebsd* | dragonfly*)
18222 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18223 # conventions
18224 ld_shlibs_CXX=yes
18225 ;;
18226
18227 gnu*)
18228 ;;
18229
cristy0c60a692010-11-04 01:09:47 +000018230 haiku*)
18231 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18232 link_all_deplibs_CXX=yes
18233 ;;
18234
cristy73bd4a52010-10-05 11:24:23 +000018235 hpux9*)
18236 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18237 hardcode_libdir_separator_CXX=:
18238 export_dynamic_flag_spec_CXX='${wl}-E'
18239 hardcode_direct_CXX=yes
18240 hardcode_minus_L_CXX=yes # Not in the search PATH,
18241 # but as the default
18242 # location of the library.
18243
18244 case $cc_basename in
18245 CC*)
18246 # FIXME: insert proper C++ library support
18247 ld_shlibs_CXX=no
18248 ;;
18249 aCC*)
18250 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'
18251 # Commands to make compiler produce verbose output that lists
18252 # what "hidden" libraries, object files and flags are used when
18253 # linking a shared library.
18254 #
18255 # There doesn't appear to be a way to prevent this compiler from
18256 # explicitly linking system object files so we need to strip them
18257 # from the output so that they don't get included in the library
18258 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018259 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; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018260 ;;
18261 *)
18262 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018263 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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'
cristy73bd4a52010-10-05 11:24:23 +000018264 else
18265 # FIXME: insert proper C++ library support
18266 ld_shlibs_CXX=no
18267 fi
18268 ;;
18269 esac
18270 ;;
18271
18272 hpux10*|hpux11*)
18273 if test $with_gnu_ld = no; then
18274 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18275 hardcode_libdir_separator_CXX=:
18276
18277 case $host_cpu in
18278 hppa*64*|ia64*)
18279 ;;
18280 *)
18281 export_dynamic_flag_spec_CXX='${wl}-E'
18282 ;;
18283 esac
18284 fi
18285 case $host_cpu in
18286 hppa*64*|ia64*)
18287 hardcode_direct_CXX=no
18288 hardcode_shlibpath_var_CXX=no
18289 ;;
18290 *)
18291 hardcode_direct_CXX=yes
18292 hardcode_direct_absolute_CXX=yes
18293 hardcode_minus_L_CXX=yes # Not in the search PATH,
18294 # but as the default
18295 # location of the library.
18296 ;;
18297 esac
18298
18299 case $cc_basename in
18300 CC*)
18301 # FIXME: insert proper C++ library support
18302 ld_shlibs_CXX=no
18303 ;;
18304 aCC*)
18305 case $host_cpu in
18306 hppa*64*)
18307 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18308 ;;
18309 ia64*)
18310 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18311 ;;
18312 *)
18313 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18314 ;;
18315 esac
18316 # Commands to make compiler produce verbose output that lists
18317 # what "hidden" libraries, object files and flags are used when
18318 # linking a shared library.
18319 #
18320 # There doesn't appear to be a way to prevent this compiler from
18321 # explicitly linking system object files so we need to strip them
18322 # from the output so that they don't get included in the library
18323 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018324 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; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018325 ;;
18326 *)
18327 if test "$GXX" = yes; then
18328 if test $with_gnu_ld = no; then
18329 case $host_cpu in
18330 hppa*64*)
18331 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18332 ;;
18333 ia64*)
cristyda16f162011-02-19 23:52:17 +000018334 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018335 ;;
18336 *)
cristyda16f162011-02-19 23:52:17 +000018337 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000018338 ;;
18339 esac
18340 fi
18341 else
18342 # FIXME: insert proper C++ library support
18343 ld_shlibs_CXX=no
18344 fi
18345 ;;
18346 esac
18347 ;;
18348
18349 interix[3-9]*)
18350 hardcode_direct_CXX=no
18351 hardcode_shlibpath_var_CXX=no
18352 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18353 export_dynamic_flag_spec_CXX='${wl}-E'
18354 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18355 # Instead, shared libraries are loaded at an image base (0x10000000 by
18356 # default) and relocated if they conflict, which is a slow very memory
18357 # consuming and fragmenting process. To avoid this, we pick a random,
18358 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18359 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18360 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'
18361 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'
18362 ;;
18363 irix5* | irix6*)
18364 case $cc_basename in
18365 CC*)
18366 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018367 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018368
18369 # Archives containing C++ object files must be created using
18370 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18371 # necessary to make sure instantiated templates are included
18372 # in the archive.
18373 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18374 ;;
18375 *)
18376 if test "$GXX" = yes; then
18377 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018378 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018379 else
cristyda16f162011-02-19 23:52:17 +000018380 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018381 fi
18382 fi
18383 link_all_deplibs_CXX=yes
18384 ;;
18385 esac
18386 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18387 hardcode_libdir_separator_CXX=:
18388 inherit_rpath_CXX=yes
18389 ;;
18390
cristy0c60a692010-11-04 01:09:47 +000018391 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018392 case $cc_basename in
18393 KCC*)
18394 # Kuck and Associates, Inc. (KAI) C++ Compiler
18395
18396 # KCC will only create a shared library if the output file
18397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18398 # to its proper name (with version) after linking.
18399 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'
18400 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'
18401 # Commands to make compiler produce verbose output that lists
18402 # what "hidden" libraries, object files and flags are used when
18403 # linking a shared library.
18404 #
18405 # There doesn't appear to be a way to prevent this compiler from
18406 # explicitly linking system object files so we need to strip them
18407 # from the output so that they don't get included in the library
18408 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018409 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; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018410
18411 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18412 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18413
18414 # Archives containing C++ object files must be created using
18415 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18416 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18417 ;;
18418 icpc* | ecpc* )
18419 # Intel C++
18420 with_gnu_ld=yes
18421 # version 8.0 and above of icpc choke on multiply defined symbols
18422 # if we add $predep_objects and $postdep_objects, however 7.1 and
18423 # earlier do not add the objects themselves.
18424 case `$CC -V 2>&1` in
18425 *"Version 7."*)
18426 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18427 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'
18428 ;;
18429 *) # Version 8.0 or newer
18430 tmp_idyn=
18431 case $host_cpu in
18432 ia64*) tmp_idyn=' -i_dynamic';;
18433 esac
18434 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18435 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'
18436 ;;
18437 esac
18438 archive_cmds_need_lc_CXX=no
18439 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18440 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18441 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18442 ;;
18443 pgCC* | pgcpp*)
18444 # Portland Group C++ compiler
18445 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018446 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018447 prelink_cmds_CXX='tpldir=Template.dir~
18448 rm -rf $tpldir~
18449 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018450 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018451 old_archive_cmds_CXX='tpldir=Template.dir~
18452 rm -rf $tpldir~
18453 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018454 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018455 $RANLIB $oldlib'
18456 archive_cmds_CXX='tpldir=Template.dir~
18457 rm -rf $tpldir~
18458 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018459 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018460 archive_expsym_cmds_CXX='tpldir=Template.dir~
18461 rm -rf $tpldir~
18462 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018463 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018464 ;;
cristy0c60a692010-11-04 01:09:47 +000018465 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018466 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18467 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'
18468 ;;
18469 esac
18470
18471 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18472 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018473 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018474 ;;
18475 cxx*)
18476 # Compaq C++
18477 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18478 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'
18479
18480 runpath_var=LD_RUN_PATH
18481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18482 hardcode_libdir_separator_CXX=:
18483
18484 # Commands to make compiler produce verbose output that lists
18485 # what "hidden" libraries, object files and flags are used when
18486 # linking a shared library.
18487 #
18488 # There doesn't appear to be a way to prevent this compiler from
18489 # explicitly linking system object files so we need to strip them
18490 # from the output so that they don't get included in the library
18491 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018492 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
cristy73bd4a52010-10-05 11:24:23 +000018493 ;;
cristy0c60a692010-11-04 01:09:47 +000018494 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018495 # IBM XL 8.0 on PPC, with GNU ld
18496 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18497 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18498 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18499 if test "x$supports_anon_versioning" = xyes; then
18500 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18501 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18502 echo "local: *; };" >> $output_objdir/$libname.ver~
18503 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18504 fi
18505 ;;
18506 *)
18507 case `$CC -V 2>&1 | sed 5q` in
18508 *Sun\ C*)
18509 # Sun C++ 5.9
18510 no_undefined_flag_CXX=' -zdefs'
18511 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18512 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'
18513 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018514 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
cristy73bd4a52010-10-05 11:24:23 +000018515 compiler_needs_object_CXX=yes
18516
18517 # Not sure whether something based on
18518 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18519 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018520 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018521
18522 # Archives containing C++ object files must be created using
18523 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18524 # necessary to make sure instantiated templates are included
18525 # in the archive.
18526 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18527 ;;
18528 esac
18529 ;;
18530 esac
18531 ;;
18532
18533 lynxos*)
18534 # FIXME: insert proper C++ library support
18535 ld_shlibs_CXX=no
18536 ;;
18537
18538 m88k*)
18539 # FIXME: insert proper C++ library support
18540 ld_shlibs_CXX=no
18541 ;;
18542
18543 mvs*)
18544 case $cc_basename in
18545 cxx*)
18546 # FIXME: insert proper C++ library support
18547 ld_shlibs_CXX=no
18548 ;;
18549 *)
18550 # FIXME: insert proper C++ library support
18551 ld_shlibs_CXX=no
18552 ;;
18553 esac
18554 ;;
18555
18556 netbsd*)
18557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18558 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18559 wlarc=
18560 hardcode_libdir_flag_spec_CXX='-R$libdir'
18561 hardcode_direct_CXX=yes
18562 hardcode_shlibpath_var_CXX=no
18563 fi
18564 # Workaround some broken pre-1.5 toolchains
18565 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18566 ;;
18567
18568 *nto* | *qnx*)
18569 ld_shlibs_CXX=yes
18570 ;;
18571
18572 openbsd2*)
18573 # C++ shared libraries are fairly broken
18574 ld_shlibs_CXX=no
18575 ;;
18576
18577 openbsd*)
18578 if test -f /usr/libexec/ld.so; then
18579 hardcode_direct_CXX=yes
18580 hardcode_shlibpath_var_CXX=no
18581 hardcode_direct_absolute_CXX=yes
18582 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18583 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18584 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18585 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18586 export_dynamic_flag_spec_CXX='${wl}-E'
18587 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18588 fi
cristy0c60a692010-11-04 01:09:47 +000018589 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018590 else
18591 ld_shlibs_CXX=no
18592 fi
18593 ;;
18594
18595 osf3* | osf4* | osf5*)
18596 case $cc_basename in
18597 KCC*)
18598 # Kuck and Associates, Inc. (KAI) C++ Compiler
18599
18600 # KCC will only create a shared library if the output file
18601 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18602 # to its proper name (with version) after linking.
18603 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'
18604
18605 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18606 hardcode_libdir_separator_CXX=:
18607
18608 # Archives containing C++ object files must be created using
18609 # the KAI C++ compiler.
18610 case $host in
18611 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18612 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18613 esac
18614 ;;
18615 RCC*)
18616 # Rational C++ 2.4.1
18617 # FIXME: insert proper C++ library support
18618 ld_shlibs_CXX=no
18619 ;;
18620 cxx*)
18621 case $host in
18622 osf3*)
18623 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018624 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018625 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18626 ;;
18627 *)
18628 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018629 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018630 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18631 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018632 $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 "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
cristy73bd4a52010-10-05 11:24:23 +000018633 $RM $lib.exp'
18634 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18635 ;;
18636 esac
18637
18638 hardcode_libdir_separator_CXX=:
18639
18640 # Commands to make compiler produce verbose output that lists
18641 # what "hidden" libraries, object files and flags are used when
18642 # linking a shared library.
18643 #
18644 # There doesn't appear to be a way to prevent this compiler from
18645 # explicitly linking system object files so we need to strip them
18646 # from the output so that they don't get included in the library
18647 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018648 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
cristy73bd4a52010-10-05 11:24:23 +000018649 ;;
18650 *)
18651 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18652 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18653 case $host in
18654 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018655 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018656 ;;
18657 *)
cristyda16f162011-02-19 23:52:17 +000018658 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018659 ;;
18660 esac
18661
18662 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18663 hardcode_libdir_separator_CXX=:
18664
18665 # Commands to make compiler produce verbose output that lists
18666 # what "hidden" libraries, object files and flags are used when
18667 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018669
18670 else
18671 # FIXME: insert proper C++ library support
18672 ld_shlibs_CXX=no
18673 fi
18674 ;;
18675 esac
18676 ;;
18677
18678 psos*)
18679 # FIXME: insert proper C++ library support
18680 ld_shlibs_CXX=no
18681 ;;
18682
18683 sunos4*)
18684 case $cc_basename in
18685 CC*)
18686 # Sun C++ 4.x
18687 # FIXME: insert proper C++ library support
18688 ld_shlibs_CXX=no
18689 ;;
18690 lcc*)
18691 # Lucid
18692 # FIXME: insert proper C++ library support
18693 ld_shlibs_CXX=no
18694 ;;
18695 *)
18696 # FIXME: insert proper C++ library support
18697 ld_shlibs_CXX=no
18698 ;;
18699 esac
18700 ;;
18701
18702 solaris*)
18703 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018704 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018705 # Sun C++ 4.2, 5.x and Centerline C++
18706 archive_cmds_need_lc_CXX=yes
18707 no_undefined_flag_CXX=' -zdefs'
18708 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18709 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18710 $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'
18711
18712 hardcode_libdir_flag_spec_CXX='-R$libdir'
18713 hardcode_shlibpath_var_CXX=no
18714 case $host_os in
18715 solaris2.[0-5] | solaris2.[0-5].*) ;;
18716 *)
18717 # The compiler driver will combine and reorder linker options,
18718 # but understands `-z linker_flag'.
18719 # Supported since Solaris 2.6 (maybe 2.5.1?)
18720 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18721 ;;
18722 esac
18723 link_all_deplibs_CXX=yes
18724
cristy0c60a692010-11-04 01:09:47 +000018725 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018726
18727 # Archives containing C++ object files must be created using
18728 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18729 # necessary to make sure instantiated templates are included
18730 # in the archive.
18731 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18732 ;;
18733 gcx*)
18734 # Green Hills C++ Compiler
18735 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18736
18737 # The C++ compiler must be used to create the archive.
18738 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18739 ;;
18740 *)
18741 # GNU C++ compiler with Solaris linker
18742 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18743 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18744 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018745 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000018746 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
cristyda16f162011-02-19 23:52:17 +000018747 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
cristy73bd4a52010-10-05 11:24:23 +000018748
18749 # Commands to make compiler produce verbose output that lists
18750 # what "hidden" libraries, object files and flags are used when
18751 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018752 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018753 else
18754 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18755 # platform.
18756 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18757 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18758 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18759
18760 # Commands to make compiler produce verbose output that lists
18761 # what "hidden" libraries, object files and flags are used when
18762 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018763 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018764 fi
18765
18766 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18767 case $host_os in
18768 solaris2.[0-5] | solaris2.[0-5].*) ;;
18769 *)
18770 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18771 ;;
18772 esac
18773 fi
18774 ;;
18775 esac
18776 ;;
18777
18778 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18779 no_undefined_flag_CXX='${wl}-z,text'
18780 archive_cmds_need_lc_CXX=no
18781 hardcode_shlibpath_var_CXX=no
18782 runpath_var='LD_RUN_PATH'
18783
18784 case $cc_basename in
18785 CC*)
18786 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18788 ;;
18789 *)
18790 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18792 ;;
18793 esac
18794 ;;
18795
18796 sysv5* | sco3.2v5* | sco5v6*)
18797 # Note: We can NOT use -z defs as we might desire, because we do not
18798 # link with -lc, and that would cause any symbols used from libc to
18799 # always be unresolved, which means just about no library would
18800 # ever link correctly. If we're not using GNU ld we use -z text
18801 # though, which does catch some bad symbols but isn't as heavy-handed
18802 # as -z defs.
18803 no_undefined_flag_CXX='${wl}-z,text'
18804 allow_undefined_flag_CXX='${wl}-z,nodefs'
18805 archive_cmds_need_lc_CXX=no
18806 hardcode_shlibpath_var_CXX=no
18807 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18808 hardcode_libdir_separator_CXX=':'
18809 link_all_deplibs_CXX=yes
18810 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18811 runpath_var='LD_RUN_PATH'
18812
18813 case $cc_basename in
18814 CC*)
18815 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18816 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
cristy0c60a692010-11-04 01:09:47 +000018817 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18818 '"$old_archive_cmds_CXX"
18819 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18820 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018821 ;;
18822 *)
18823 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18824 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18825 ;;
18826 esac
18827 ;;
18828
18829 tandem*)
18830 case $cc_basename in
18831 NCC*)
18832 # NonStop-UX NCC 3.20
18833 # FIXME: insert proper C++ library support
18834 ld_shlibs_CXX=no
18835 ;;
18836 *)
18837 # FIXME: insert proper C++ library support
18838 ld_shlibs_CXX=no
18839 ;;
18840 esac
18841 ;;
18842
18843 vxworks*)
18844 # FIXME: insert proper C++ library support
18845 ld_shlibs_CXX=no
18846 ;;
18847
18848 *)
18849 # FIXME: insert proper C++ library support
18850 ld_shlibs_CXX=no
18851 ;;
18852 esac
18853
18854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18855$as_echo "$ld_shlibs_CXX" >&6; }
18856 test "$ld_shlibs_CXX" = no && can_build_shared=no
18857
18858 GCC_CXX="$GXX"
18859 LD_CXX="$LD"
18860
18861 ## CAVEAT EMPTOR:
18862 ## There is no encapsulation within the following macros, do not change
18863 ## the running order or otherwise move them around unless you know exactly
18864 ## what you are doing...
18865 # Dependencies to place before and after the object being linked:
18866predep_objects_CXX=
18867postdep_objects_CXX=
18868predeps_CXX=
18869postdeps_CXX=
18870compiler_lib_search_path_CXX=
18871
18872cat > conftest.$ac_ext <<_LT_EOF
18873class Foo
18874{
18875public:
18876 Foo (void) { a = 0; }
18877private:
18878 int a;
18879};
18880_LT_EOF
18881
cristyda16f162011-02-19 23:52:17 +000018882
18883_lt_libdeps_save_CFLAGS=$CFLAGS
18884case "$CC $CFLAGS " in #(
18885*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18886*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018887*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018888esac
18889
cristy73bd4a52010-10-05 11:24:23 +000018890if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18891 (eval $ac_compile) 2>&5
18892 ac_status=$?
18893 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18894 test $ac_status = 0; }; then
18895 # Parse the compiler output and extract the necessary
18896 # objects, libraries and library flags.
18897
18898 # Sentinel used to keep track of whether or not we are before
18899 # the conftest object file.
18900 pre_test_object_deps_done=no
18901
18902 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018903 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018904
18905 -L* | -R* | -l*)
18906 # Some compilers place space between "-{L,R}" and the path.
18907 # Remove the space.
18908 if test $p = "-L" ||
18909 test $p = "-R"; then
18910 prev=$p
18911 continue
cristy73bd4a52010-10-05 11:24:23 +000018912 fi
18913
cristyda16f162011-02-19 23:52:17 +000018914 # Expand the sysroot to ease extracting the directories later.
18915 if test -z "$prev"; then
18916 case $p in
18917 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18918 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18919 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18920 esac
18921 fi
18922 case $p in
18923 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18924 esac
cristy73bd4a52010-10-05 11:24:23 +000018925 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018926 case ${prev} in
18927 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018928 # Internal compiler library paths should come after those
18929 # provided the user. The postdeps already come after the
18930 # user supplied libs so there is no need to process them.
18931 if test -z "$compiler_lib_search_path_CXX"; then
18932 compiler_lib_search_path_CXX="${prev}${p}"
18933 else
18934 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18935 fi
18936 ;;
18937 # The "-l" case would never come before the object being
18938 # linked, so don't bother handling this case.
18939 esac
18940 else
18941 if test -z "$postdeps_CXX"; then
18942 postdeps_CXX="${prev}${p}"
18943 else
18944 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18945 fi
18946 fi
cristyda16f162011-02-19 23:52:17 +000018947 prev=
cristy73bd4a52010-10-05 11:24:23 +000018948 ;;
18949
cristyda16f162011-02-19 23:52:17 +000018950 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018951 *.$objext)
18952 # This assumes that the test object file only shows up
18953 # once in the compiler output.
18954 if test "$p" = "conftest.$objext"; then
18955 pre_test_object_deps_done=yes
18956 continue
18957 fi
18958
18959 if test "$pre_test_object_deps_done" = no; then
18960 if test -z "$predep_objects_CXX"; then
18961 predep_objects_CXX="$p"
18962 else
18963 predep_objects_CXX="$predep_objects_CXX $p"
18964 fi
18965 else
18966 if test -z "$postdep_objects_CXX"; then
18967 postdep_objects_CXX="$p"
18968 else
18969 postdep_objects_CXX="$postdep_objects_CXX $p"
18970 fi
18971 fi
18972 ;;
18973
18974 *) ;; # Ignore the rest.
18975
18976 esac
18977 done
18978
18979 # Clean up.
18980 rm -f a.out a.exe
18981else
18982 echo "libtool.m4: error: problem compiling CXX test program"
18983fi
18984
18985$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018986CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018987
18988# PORTME: override above test on systems where it is broken
18989case $host_os in
18990interix[3-9]*)
18991 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18992 # hack all around it, let's just trust "g++" to DTRT.
18993 predep_objects_CXX=
18994 postdep_objects_CXX=
18995 postdeps_CXX=
18996 ;;
18997
18998linux*)
18999 case `$CC -V 2>&1 | sed 5q` in
19000 *Sun\ C*)
19001 # Sun C++ 5.9
19002
19003 # The more standards-conforming stlport4 library is
19004 # incompatible with the Cstd library. Avoid specifying
19005 # it if it's in CXXFLAGS. Ignore libCrun as
19006 # -library=stlport4 depends on it.
19007 case " $CXX $CXXFLAGS " in
19008 *" -library=stlport4 "*)
19009 solaris_use_stlport4=yes
19010 ;;
19011 esac
19012
19013 if test "$solaris_use_stlport4" != yes; then
19014 postdeps_CXX='-library=Cstd -library=Crun'
19015 fi
19016 ;;
19017 esac
19018 ;;
19019
19020solaris*)
19021 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019022 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019023 # The more standards-conforming stlport4 library is
19024 # incompatible with the Cstd library. Avoid specifying
19025 # it if it's in CXXFLAGS. Ignore libCrun as
19026 # -library=stlport4 depends on it.
19027 case " $CXX $CXXFLAGS " in
19028 *" -library=stlport4 "*)
19029 solaris_use_stlport4=yes
19030 ;;
19031 esac
19032
19033 # Adding this requires a known-good setup of shared libraries for
19034 # Sun compiler versions before 5.6, else PIC objects from an old
19035 # archive will be linked into the output, leading to subtle bugs.
19036 if test "$solaris_use_stlport4" != yes; then
19037 postdeps_CXX='-library=Cstd -library=Crun'
19038 fi
19039 ;;
19040 esac
19041 ;;
19042esac
19043
19044
19045case " $postdeps_CXX " in
19046*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19047esac
19048 compiler_lib_search_dirs_CXX=
19049if test -n "${compiler_lib_search_path_CXX}"; then
19050 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19051fi
19052
19053
19054
19055
19056
19057
19058
19059
19060
19061
19062
19063
19064
19065
19066
19067
19068
19069
19070
19071
19072
19073
19074
19075
19076
19077
19078
19079
19080
19081
19082
19083 lt_prog_compiler_wl_CXX=
19084lt_prog_compiler_pic_CXX=
19085lt_prog_compiler_static_CXX=
19086
cristy73bd4a52010-10-05 11:24:23 +000019087
19088 # C++ specific cases for pic, static, wl, etc.
19089 if test "$GXX" = yes; then
19090 lt_prog_compiler_wl_CXX='-Wl,'
19091 lt_prog_compiler_static_CXX='-static'
19092
19093 case $host_os in
19094 aix*)
19095 # All AIX code is PIC.
19096 if test "$host_cpu" = ia64; then
19097 # AIX 5 now supports IA64 processor
19098 lt_prog_compiler_static_CXX='-Bstatic'
19099 fi
19100 ;;
19101
19102 amigaos*)
19103 case $host_cpu in
19104 powerpc)
19105 # see comment about AmigaOS4 .so support
19106 lt_prog_compiler_pic_CXX='-fPIC'
19107 ;;
19108 m68k)
19109 # FIXME: we need at least 68020 code to build shared libraries, but
19110 # adding the `-m68020' flag to GCC prevents building anything better,
19111 # like `-m68040'.
19112 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19113 ;;
19114 esac
19115 ;;
19116
19117 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19118 # PIC is the default for these OSes.
19119 ;;
19120 mingw* | cygwin* | os2* | pw32* | cegcc*)
19121 # This hack is so that the source file can tell whether it is being
19122 # built for inclusion in a dll (and should export symbols for example).
19123 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19124 # (--disable-auto-import) libraries
19125 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19126 ;;
19127 darwin* | rhapsody*)
19128 # PIC is the default on this platform
19129 # Common symbols not allowed in MH_DYLIB files
19130 lt_prog_compiler_pic_CXX='-fno-common'
19131 ;;
19132 *djgpp*)
19133 # DJGPP does not support shared libraries at all
19134 lt_prog_compiler_pic_CXX=
19135 ;;
cristy0c60a692010-11-04 01:09:47 +000019136 haiku*)
19137 # PIC is the default for Haiku.
19138 # The "-static" flag exists, but is broken.
19139 lt_prog_compiler_static_CXX=
19140 ;;
cristy73bd4a52010-10-05 11:24:23 +000019141 interix[3-9]*)
19142 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19143 # Instead, we relocate shared libraries at runtime.
19144 ;;
19145 sysv4*MP*)
19146 if test -d /usr/nec; then
19147 lt_prog_compiler_pic_CXX=-Kconform_pic
19148 fi
19149 ;;
19150 hpux*)
19151 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19152 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19153 # sets the default TLS model and affects inlining.
19154 case $host_cpu in
19155 hppa*64*)
19156 ;;
19157 *)
19158 lt_prog_compiler_pic_CXX='-fPIC'
19159 ;;
19160 esac
19161 ;;
19162 *qnx* | *nto*)
19163 # QNX uses GNU C++, but need to define -shared option too, otherwise
19164 # it will coredump.
19165 lt_prog_compiler_pic_CXX='-fPIC -shared'
19166 ;;
19167 *)
19168 lt_prog_compiler_pic_CXX='-fPIC'
19169 ;;
19170 esac
19171 else
19172 case $host_os in
19173 aix[4-9]*)
19174 # All AIX code is PIC.
19175 if test "$host_cpu" = ia64; then
19176 # AIX 5 now supports IA64 processor
19177 lt_prog_compiler_static_CXX='-Bstatic'
19178 else
19179 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19180 fi
19181 ;;
19182 chorus*)
19183 case $cc_basename in
19184 cxch68*)
19185 # Green Hills C++ Compiler
19186 # _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"
19187 ;;
19188 esac
19189 ;;
cristyda16f162011-02-19 23:52:17 +000019190 mingw* | cygwin* | os2* | pw32* | cegcc*)
19191 # This hack is so that the source file can tell whether it is being
19192 # built for inclusion in a dll (and should export symbols for example).
19193 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19194 ;;
cristy73bd4a52010-10-05 11:24:23 +000019195 dgux*)
19196 case $cc_basename in
19197 ec++*)
19198 lt_prog_compiler_pic_CXX='-KPIC'
19199 ;;
19200 ghcx*)
19201 # Green Hills C++ Compiler
19202 lt_prog_compiler_pic_CXX='-pic'
19203 ;;
19204 *)
19205 ;;
19206 esac
19207 ;;
19208 freebsd* | dragonfly*)
19209 # FreeBSD uses GNU C++
19210 ;;
19211 hpux9* | hpux10* | hpux11*)
19212 case $cc_basename in
19213 CC*)
19214 lt_prog_compiler_wl_CXX='-Wl,'
19215 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19216 if test "$host_cpu" != ia64; then
19217 lt_prog_compiler_pic_CXX='+Z'
19218 fi
19219 ;;
19220 aCC*)
19221 lt_prog_compiler_wl_CXX='-Wl,'
19222 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19223 case $host_cpu in
19224 hppa*64*|ia64*)
19225 # +Z the default
19226 ;;
19227 *)
19228 lt_prog_compiler_pic_CXX='+Z'
19229 ;;
19230 esac
19231 ;;
19232 *)
19233 ;;
19234 esac
19235 ;;
19236 interix*)
19237 # This is c89, which is MS Visual C++ (no shared libs)
19238 # Anyone wants to do a port?
19239 ;;
19240 irix5* | irix6* | nonstopux*)
19241 case $cc_basename in
19242 CC*)
19243 lt_prog_compiler_wl_CXX='-Wl,'
19244 lt_prog_compiler_static_CXX='-non_shared'
19245 # CC pic flag -KPIC is the default.
19246 ;;
19247 *)
19248 ;;
19249 esac
19250 ;;
cristy0c60a692010-11-04 01:09:47 +000019251 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019252 case $cc_basename in
19253 KCC*)
19254 # KAI C++ Compiler
19255 lt_prog_compiler_wl_CXX='--backend -Wl,'
19256 lt_prog_compiler_pic_CXX='-fPIC'
19257 ;;
19258 ecpc* )
19259 # old Intel C++ for x86_64 which still supported -KPIC.
19260 lt_prog_compiler_wl_CXX='-Wl,'
19261 lt_prog_compiler_pic_CXX='-KPIC'
19262 lt_prog_compiler_static_CXX='-static'
19263 ;;
19264 icpc* )
19265 # Intel C++, used to be incompatible with GCC.
19266 # ICC 10 doesn't accept -KPIC any more.
19267 lt_prog_compiler_wl_CXX='-Wl,'
19268 lt_prog_compiler_pic_CXX='-fPIC'
19269 lt_prog_compiler_static_CXX='-static'
19270 ;;
19271 pgCC* | pgcpp*)
19272 # Portland Group C++ compiler
19273 lt_prog_compiler_wl_CXX='-Wl,'
19274 lt_prog_compiler_pic_CXX='-fpic'
19275 lt_prog_compiler_static_CXX='-Bstatic'
19276 ;;
19277 cxx*)
19278 # Compaq C++
19279 # Make sure the PIC flag is empty. It appears that all Alpha
19280 # Linux and Compaq Tru64 Unix objects are PIC.
19281 lt_prog_compiler_pic_CXX=
19282 lt_prog_compiler_static_CXX='-non_shared'
19283 ;;
cristy0c60a692010-11-04 01:09:47 +000019284 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19285 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019286 lt_prog_compiler_wl_CXX='-Wl,'
19287 lt_prog_compiler_pic_CXX='-qpic'
19288 lt_prog_compiler_static_CXX='-qstaticlink'
19289 ;;
19290 *)
19291 case `$CC -V 2>&1 | sed 5q` in
19292 *Sun\ C*)
19293 # Sun C++ 5.9
19294 lt_prog_compiler_pic_CXX='-KPIC'
19295 lt_prog_compiler_static_CXX='-Bstatic'
19296 lt_prog_compiler_wl_CXX='-Qoption ld '
19297 ;;
19298 esac
19299 ;;
19300 esac
19301 ;;
19302 lynxos*)
19303 ;;
19304 m88k*)
19305 ;;
19306 mvs*)
19307 case $cc_basename in
19308 cxx*)
19309 lt_prog_compiler_pic_CXX='-W c,exportall'
19310 ;;
19311 *)
19312 ;;
19313 esac
19314 ;;
19315 netbsd*)
19316 ;;
19317 *qnx* | *nto*)
19318 # QNX uses GNU C++, but need to define -shared option too, otherwise
19319 # it will coredump.
19320 lt_prog_compiler_pic_CXX='-fPIC -shared'
19321 ;;
19322 osf3* | osf4* | osf5*)
19323 case $cc_basename in
19324 KCC*)
19325 lt_prog_compiler_wl_CXX='--backend -Wl,'
19326 ;;
19327 RCC*)
19328 # Rational C++ 2.4.1
19329 lt_prog_compiler_pic_CXX='-pic'
19330 ;;
19331 cxx*)
19332 # Digital/Compaq C++
19333 lt_prog_compiler_wl_CXX='-Wl,'
19334 # Make sure the PIC flag is empty. It appears that all Alpha
19335 # Linux and Compaq Tru64 Unix objects are PIC.
19336 lt_prog_compiler_pic_CXX=
19337 lt_prog_compiler_static_CXX='-non_shared'
19338 ;;
19339 *)
19340 ;;
19341 esac
19342 ;;
19343 psos*)
19344 ;;
19345 solaris*)
19346 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019347 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019348 # Sun C++ 4.2, 5.x and Centerline C++
19349 lt_prog_compiler_pic_CXX='-KPIC'
19350 lt_prog_compiler_static_CXX='-Bstatic'
19351 lt_prog_compiler_wl_CXX='-Qoption ld '
19352 ;;
19353 gcx*)
19354 # Green Hills C++ Compiler
19355 lt_prog_compiler_pic_CXX='-PIC'
19356 ;;
19357 *)
19358 ;;
19359 esac
19360 ;;
19361 sunos4*)
19362 case $cc_basename in
19363 CC*)
19364 # Sun C++ 4.x
19365 lt_prog_compiler_pic_CXX='-pic'
19366 lt_prog_compiler_static_CXX='-Bstatic'
19367 ;;
19368 lcc*)
19369 # Lucid
19370 lt_prog_compiler_pic_CXX='-pic'
19371 ;;
19372 *)
19373 ;;
19374 esac
19375 ;;
19376 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19377 case $cc_basename in
19378 CC*)
19379 lt_prog_compiler_wl_CXX='-Wl,'
19380 lt_prog_compiler_pic_CXX='-KPIC'
19381 lt_prog_compiler_static_CXX='-Bstatic'
19382 ;;
19383 esac
19384 ;;
19385 tandem*)
19386 case $cc_basename in
19387 NCC*)
19388 # NonStop-UX NCC 3.20
19389 lt_prog_compiler_pic_CXX='-KPIC'
19390 ;;
19391 *)
19392 ;;
19393 esac
19394 ;;
19395 vxworks*)
19396 ;;
19397 *)
19398 lt_prog_compiler_can_build_shared_CXX=no
19399 ;;
19400 esac
19401 fi
19402
19403case $host_os in
19404 # For platforms which do not support PIC, -DPIC is meaningless:
19405 *djgpp*)
19406 lt_prog_compiler_pic_CXX=
19407 ;;
19408 *)
19409 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19410 ;;
19411esac
cristy73bd4a52010-10-05 11:24:23 +000019412
cristyda16f162011-02-19 23:52:17 +000019413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19414$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19415if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19416 $as_echo_n "(cached) " >&6
19417else
19418 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19419fi
19420{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19421$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19422lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019423
19424#
19425# Check to make sure the PIC flag actually works.
19426#
19427if test -n "$lt_prog_compiler_pic_CXX"; then
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19429$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019430if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019431 $as_echo_n "(cached) " >&6
19432else
19433 lt_cv_prog_compiler_pic_works_CXX=no
19434 ac_outfile=conftest.$ac_objext
19435 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19436 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19437 # Insert the option either (1) after the last *FLAGS variable, or
19438 # (2) before a word containing "conftest.", or (3) at the end.
19439 # Note that $ac_compile itself does not contain backslashes and begins
19440 # with a dollar sign (not a hyphen), so the echo should work correctly.
19441 # The option is referenced via a variable to avoid confusing sed.
19442 lt_compile=`echo "$ac_compile" | $SED \
19443 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19444 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19445 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019446 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019447 (eval "$lt_compile" 2>conftest.err)
19448 ac_status=$?
19449 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019451 if (exit $ac_status) && test -s "$ac_outfile"; then
19452 # The compiler can only warn and ignore the option if not recognized
19453 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019454 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019455 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19456 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19457 lt_cv_prog_compiler_pic_works_CXX=yes
19458 fi
19459 fi
19460 $RM conftest*
19461
19462fi
19463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19464$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19465
19466if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19467 case $lt_prog_compiler_pic_CXX in
19468 "" | " "*) ;;
19469 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19470 esac
19471else
19472 lt_prog_compiler_pic_CXX=
19473 lt_prog_compiler_can_build_shared_CXX=no
19474fi
19475
19476fi
19477
19478
19479
cristyda16f162011-02-19 23:52:17 +000019480
19481
cristy73bd4a52010-10-05 11:24:23 +000019482#
19483# Check to make sure the static flag actually works.
19484#
19485wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19487$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019488if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019489 $as_echo_n "(cached) " >&6
19490else
19491 lt_cv_prog_compiler_static_works_CXX=no
19492 save_LDFLAGS="$LDFLAGS"
19493 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19494 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19495 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19496 # The linker can only warn and ignore the option if not recognized
19497 # So say no if there are warnings
19498 if test -s conftest.err; then
19499 # Append any errors to the config.log.
19500 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019501 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019502 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19503 if diff conftest.exp conftest.er2 >/dev/null; then
19504 lt_cv_prog_compiler_static_works_CXX=yes
19505 fi
19506 else
19507 lt_cv_prog_compiler_static_works_CXX=yes
19508 fi
19509 fi
19510 $RM -r conftest*
19511 LDFLAGS="$save_LDFLAGS"
19512
19513fi
19514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19515$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19516
19517if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19518 :
19519else
19520 lt_prog_compiler_static_CXX=
19521fi
19522
19523
19524
19525
19526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19527$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019528if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019529 $as_echo_n "(cached) " >&6
19530else
19531 lt_cv_prog_compiler_c_o_CXX=no
19532 $RM -r conftest 2>/dev/null
19533 mkdir conftest
19534 cd conftest
19535 mkdir out
19536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19537
19538 lt_compiler_flag="-o out/conftest2.$ac_objext"
19539 # Insert the option either (1) after the last *FLAGS variable, or
19540 # (2) before a word containing "conftest.", or (3) at the end.
19541 # Note that $ac_compile itself does not contain backslashes and begins
19542 # with a dollar sign (not a hyphen), so the echo should work correctly.
19543 lt_compile=`echo "$ac_compile" | $SED \
19544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19546 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019548 (eval "$lt_compile" 2>out/conftest.err)
19549 ac_status=$?
19550 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019552 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19553 then
19554 # The compiler can only warn and ignore the option if not recognized
19555 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019556 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019557 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19558 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19559 lt_cv_prog_compiler_c_o_CXX=yes
19560 fi
19561 fi
19562 chmod u+w . 2>&5
19563 $RM conftest*
19564 # SGI C++ compiler will create directory out/ii_files/ for
19565 # template instantiation
19566 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19567 $RM out/* && rmdir out
19568 cd ..
19569 $RM -r conftest
19570 $RM conftest*
19571
19572fi
19573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19574$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19575
19576
19577
19578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19579$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019580if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019581 $as_echo_n "(cached) " >&6
19582else
19583 lt_cv_prog_compiler_c_o_CXX=no
19584 $RM -r conftest 2>/dev/null
19585 mkdir conftest
19586 cd conftest
19587 mkdir out
19588 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19589
19590 lt_compiler_flag="-o out/conftest2.$ac_objext"
19591 # Insert the option either (1) after the last *FLAGS variable, or
19592 # (2) before a word containing "conftest.", or (3) at the end.
19593 # Note that $ac_compile itself does not contain backslashes and begins
19594 # with a dollar sign (not a hyphen), so the echo should work correctly.
19595 lt_compile=`echo "$ac_compile" | $SED \
19596 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19597 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19598 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019599 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019600 (eval "$lt_compile" 2>out/conftest.err)
19601 ac_status=$?
19602 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019604 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19605 then
19606 # The compiler can only warn and ignore the option if not recognized
19607 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019608 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019609 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19610 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19611 lt_cv_prog_compiler_c_o_CXX=yes
19612 fi
19613 fi
19614 chmod u+w . 2>&5
19615 $RM conftest*
19616 # SGI C++ compiler will create directory out/ii_files/ for
19617 # template instantiation
19618 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19619 $RM out/* && rmdir out
19620 cd ..
19621 $RM -r conftest
19622 $RM conftest*
19623
19624fi
19625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19626$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19627
19628
19629
19630
19631hard_links="nottested"
19632if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19633 # do not overwrite the value of need_locks provided by the user
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19635$as_echo_n "checking if we can lock with hard links... " >&6; }
19636 hard_links=yes
19637 $RM conftest*
19638 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19639 touch conftest.a
19640 ln conftest.a conftest.b 2>&5 || hard_links=no
19641 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19643$as_echo "$hard_links" >&6; }
19644 if test "$hard_links" = no; then
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19646$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19647 need_locks=warn
19648 fi
19649else
19650 need_locks=no
19651fi
19652
19653
19654
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19656$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19657
19658 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019659 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019660 case $host_os in
19661 aix[4-9]*)
19662 # If we're using GNU nm, then we don't want the "-C" option.
19663 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019664 # Also, AIX nm treats weak defined symbols like other global defined
19665 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019666 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019667 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
cristy73bd4a52010-10-05 11:24:23 +000019668 else
19669 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'
19670 fi
19671 ;;
19672 pw32*)
19673 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019674 ;;
cristy73bd4a52010-10-05 11:24:23 +000019675 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019676 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019677 cl*)
19678 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19679 ;;
cristyda16f162011-02-19 23:52:17 +000019680 *)
19681 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
19682 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19683 ;;
19684 esac
19685 ;;
cristy73bd4a52010-10-05 11:24:23 +000019686 *)
19687 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019688 ;;
cristy73bd4a52010-10-05 11:24:23 +000019689 esac
cristy73bd4a52010-10-05 11:24:23 +000019690
19691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19692$as_echo "$ld_shlibs_CXX" >&6; }
19693test "$ld_shlibs_CXX" = no && can_build_shared=no
19694
19695with_gnu_ld_CXX=$with_gnu_ld
19696
19697
19698
19699
19700
19701
19702#
19703# Do we need to explicitly link libc?
19704#
19705case "x$archive_cmds_need_lc_CXX" in
19706x|xyes)
19707 # Assume -lc should be added
19708 archive_cmds_need_lc_CXX=yes
19709
19710 if test "$enable_shared" = yes && test "$GCC" = yes; then
19711 case $archive_cmds_CXX in
19712 *'~'*)
19713 # FIXME: we may have to deal with multi-command sequences.
19714 ;;
19715 '$CC '*)
19716 # Test whether the compiler implicitly links with -lc since on some
19717 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19718 # to ld, don't add -lc before -lgcc.
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19720$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019721if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019722 $as_echo_n "(cached) " >&6
19723else
19724 $RM conftest*
19725 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019726
cristy0c60a692010-11-04 01:09:47 +000019727 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019728 (eval $ac_compile) 2>&5
19729 ac_status=$?
19730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19731 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019732 soname=conftest
19733 lib=conftest
19734 libobjs=conftest.$ac_objext
19735 deplibs=
19736 wl=$lt_prog_compiler_wl_CXX
19737 pic_flag=$lt_prog_compiler_pic_CXX
19738 compiler_flags=-v
19739 linker_flags=-v
19740 verstring=
19741 output_objdir=.
19742 libname=conftest
19743 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19744 allow_undefined_flag_CXX=
19745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019746 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19747 ac_status=$?
19748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19749 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019750 then
19751 lt_cv_archive_cmds_need_lc_CXX=no
19752 else
19753 lt_cv_archive_cmds_need_lc_CXX=yes
19754 fi
19755 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19756 else
19757 cat conftest.err 1>&5
19758 fi
19759 $RM conftest*
19760
19761fi
19762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19763$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19764 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019765 ;;
19766 esac
19767 fi
19768 ;;
19769esac
19770
19771
19772
19773
19774
19775
19776
19777
19778
19779
19780
19781
19782
19783
19784
19785
19786
19787
19788
19789
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799
19800
19801
19802
19803
19804
19805
19806
19807
19808
19809
19810
19811
19812
19813
19814
19815
19816
19817
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
cristy73bd4a52010-10-05 11:24:23 +000019832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19833$as_echo_n "checking dynamic linker characteristics... " >&6; }
19834
19835library_names_spec=
19836libname_spec='lib$name'
19837soname_spec=
19838shrext_cmds=".so"
19839postinstall_cmds=
19840postuninstall_cmds=
19841finish_cmds=
19842finish_eval=
19843shlibpath_var=
19844shlibpath_overrides_runpath=unknown
19845version_type=none
19846dynamic_linker="$host_os ld.so"
19847sys_lib_dlsearch_path_spec="/lib /usr/lib"
19848need_lib_prefix=unknown
19849hardcode_into_libs=no
19850
19851# when you set need_version to no, make sure it does not cause -set_version
19852# flags to be left without arguments
19853need_version=unknown
19854
19855case $host_os in
19856aix3*)
cristy99bd5232011-12-07 14:38:20 +000019857 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019858 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19859 shlibpath_var=LIBPATH
19860
19861 # AIX 3 has no versioning support, so we append a major version to the name.
19862 soname_spec='${libname}${release}${shared_ext}$major'
19863 ;;
19864
19865aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019866 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019867 need_lib_prefix=no
19868 need_version=no
19869 hardcode_into_libs=yes
19870 if test "$host_cpu" = ia64; then
19871 # AIX 5 supports IA64
19872 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19873 shlibpath_var=LD_LIBRARY_PATH
19874 else
19875 # With GCC up to 2.95.x, collect2 would create an import file
19876 # for dependence libraries. The import file would start with
19877 # the line `#! .'. This would cause the generated library to
19878 # depend on `.', always an invalid library. This was fixed in
19879 # development snapshots of GCC prior to 3.0.
19880 case $host_os in
19881 aix4 | aix4.[01] | aix4.[01].*)
19882 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19883 echo ' yes '
19884 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19885 :
19886 else
19887 can_build_shared=no
19888 fi
19889 ;;
19890 esac
19891 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19892 # soname into executable. Probably we can add versioning support to
19893 # collect2, so additional links can be useful in future.
19894 if test "$aix_use_runtimelinking" = yes; then
19895 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19896 # instead of lib<name>.a to let people know that these are not
19897 # typical AIX shared libraries.
19898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19899 else
19900 # We preserve .a as extension for shared libraries through AIX4.2
19901 # and later when we are not doing run time linking.
19902 library_names_spec='${libname}${release}.a $libname.a'
19903 soname_spec='${libname}${release}${shared_ext}$major'
19904 fi
19905 shlibpath_var=LIBPATH
19906 fi
19907 ;;
19908
19909amigaos*)
19910 case $host_cpu in
19911 powerpc)
19912 # Since July 2007 AmigaOS4 officially supports .so libraries.
19913 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19915 ;;
19916 m68k)
19917 library_names_spec='$libname.ixlibrary $libname.a'
19918 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019919 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
cristy73bd4a52010-10-05 11:24:23 +000019920 ;;
19921 esac
19922 ;;
19923
19924beos*)
19925 library_names_spec='${libname}${shared_ext}'
19926 dynamic_linker="$host_os ld.so"
19927 shlibpath_var=LIBRARY_PATH
19928 ;;
19929
19930bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019931 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019932 need_version=no
19933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934 soname_spec='${libname}${release}${shared_ext}$major'
19935 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19936 shlibpath_var=LD_LIBRARY_PATH
19937 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19938 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19939 # the default ld.so.conf also contains /usr/contrib/lib and
19940 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19941 # libtool to hard-code these into programs
19942 ;;
19943
19944cygwin* | mingw* | pw32* | cegcc*)
19945 version_type=windows
19946 shrext_cmds=".dll"
19947 need_version=no
19948 need_lib_prefix=no
19949
cristyda16f162011-02-19 23:52:17 +000019950 case $GCC,$cc_basename in
19951 yes,*)
19952 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019953 library_names_spec='$libname.dll.a'
19954 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19955 postinstall_cmds='base_file=`basename \${file}`~
19956 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19957 dldir=$destdir/`dirname \$dlpath`~
19958 test -d \$dldir || mkdir -p \$dldir~
19959 $install_prog $dir/$dlname \$dldir/$dlname~
19960 chmod a+x \$dldir/$dlname~
19961 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19962 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19963 fi'
19964 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19965 dlpath=$dir/\$dldll~
19966 $RM \$dlpath'
19967 shlibpath_overrides_runpath=yes
19968
19969 case $host_os in
19970 cygwin*)
19971 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19972 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019973
cristy73bd4a52010-10-05 11:24:23 +000019974 ;;
19975 mingw* | cegcc*)
19976 # MinGW DLLs use traditional 'lib' prefix
19977 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019978 ;;
19979 pw32*)
19980 # pw32 DLLs use 'pw' prefix rather than 'lib'
19981 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19982 ;;
19983 esac
cristyda16f162011-02-19 23:52:17 +000019984 dynamic_linker='Win32 ld.exe'
19985 ;;
19986
19987 *,cl*)
19988 # Native MSVC
19989 libname_spec='$name'
19990 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19991 library_names_spec='${libname}.dll.lib'
19992
19993 case $build_os in
19994 mingw*)
19995 sys_lib_search_path_spec=
19996 lt_save_ifs=$IFS
19997 IFS=';'
19998 for lt_path in $LIB
19999 do
20000 IFS=$lt_save_ifs
20001 # Let DOS variable expansion print the short 8.3 style file name.
20002 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20003 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20004 done
20005 IFS=$lt_save_ifs
20006 # Convert to MSYS style.
20007 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20008 ;;
20009 cygwin*)
20010 # Convert to unix form, then to dos form, then back to unix form
20011 # but this time dos style (no spaces!) so that the unix form looks
20012 # like /cygdrive/c/PROGRA~1:/cygdr...
20013 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20014 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20015 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20016 ;;
20017 *)
20018 sys_lib_search_path_spec="$LIB"
20019 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20020 # It is most probably a Windows format PATH.
20021 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20022 else
20023 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20024 fi
20025 # FIXME: find the short name or the path components, as spaces are
20026 # common. (e.g. "Program Files" -> "PROGRA~1")
20027 ;;
20028 esac
20029
20030 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20031 postinstall_cmds='base_file=`basename \${file}`~
20032 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20033 dldir=$destdir/`dirname \$dlpath`~
20034 test -d \$dldir || mkdir -p \$dldir~
20035 $install_prog $dir/$dlname \$dldir/$dlname'
20036 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20037 dlpath=$dir/\$dldll~
20038 $RM \$dlpath'
20039 shlibpath_overrides_runpath=yes
20040 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020041 ;;
20042
20043 *)
cristyda16f162011-02-19 23:52:17 +000020044 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020045 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020046 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020047 ;;
20048 esac
cristy73bd4a52010-10-05 11:24:23 +000020049 # FIXME: first we should search . and the directory the executable is in
20050 shlibpath_var=PATH
20051 ;;
20052
20053darwin* | rhapsody*)
20054 dynamic_linker="$host_os dyld"
20055 version_type=darwin
20056 need_lib_prefix=no
20057 need_version=no
20058 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20059 soname_spec='${libname}${release}${major}$shared_ext'
20060 shlibpath_overrides_runpath=yes
20061 shlibpath_var=DYLD_LIBRARY_PATH
20062 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20063
20064 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20065 ;;
20066
20067dgux*)
cristy99bd5232011-12-07 14:38:20 +000020068 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020069 need_lib_prefix=no
20070 need_version=no
20071 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20072 soname_spec='${libname}${release}${shared_ext}$major'
20073 shlibpath_var=LD_LIBRARY_PATH
20074 ;;
20075
cristy73bd4a52010-10-05 11:24:23 +000020076freebsd* | dragonfly*)
20077 # DragonFly does not have aout. When/if they implement a new
20078 # versioning mechanism, adjust this.
20079 if test -x /usr/bin/objformat; then
20080 objformat=`/usr/bin/objformat`
20081 else
20082 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020083 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020084 *) objformat=elf ;;
20085 esac
20086 fi
20087 version_type=freebsd-$objformat
20088 case $version_type in
20089 freebsd-elf*)
20090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20091 need_version=no
20092 need_lib_prefix=no
20093 ;;
20094 freebsd-*)
20095 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20096 need_version=yes
20097 ;;
20098 esac
20099 shlibpath_var=LD_LIBRARY_PATH
20100 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020101 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020102 shlibpath_overrides_runpath=yes
20103 ;;
20104 freebsd3.[01]* | freebsdelf3.[01]*)
20105 shlibpath_overrides_runpath=yes
20106 hardcode_into_libs=yes
20107 ;;
20108 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20109 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20110 shlibpath_overrides_runpath=no
20111 hardcode_into_libs=yes
20112 ;;
20113 *) # from 4.6 on, and DragonFly
20114 shlibpath_overrides_runpath=yes
20115 hardcode_into_libs=yes
20116 ;;
20117 esac
20118 ;;
20119
20120gnu*)
cristy99bd5232011-12-07 14:38:20 +000020121 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020122 need_lib_prefix=no
20123 need_version=no
20124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20125 soname_spec='${libname}${release}${shared_ext}$major'
20126 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020127 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020128 hardcode_into_libs=yes
20129 ;;
20130
cristy0c60a692010-11-04 01:09:47 +000020131haiku*)
cristy99bd5232011-12-07 14:38:20 +000020132 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020133 need_lib_prefix=no
20134 need_version=no
20135 dynamic_linker="$host_os runtime_loader"
20136 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20137 soname_spec='${libname}${release}${shared_ext}$major'
20138 shlibpath_var=LIBRARY_PATH
20139 shlibpath_overrides_runpath=yes
20140 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20141 hardcode_into_libs=yes
20142 ;;
20143
cristy73bd4a52010-10-05 11:24:23 +000020144hpux9* | hpux10* | hpux11*)
20145 # Give a soname corresponding to the major version so that dld.sl refuses to
20146 # link against other versions.
20147 version_type=sunos
20148 need_lib_prefix=no
20149 need_version=no
20150 case $host_cpu in
20151 ia64*)
20152 shrext_cmds='.so'
20153 hardcode_into_libs=yes
20154 dynamic_linker="$host_os dld.so"
20155 shlibpath_var=LD_LIBRARY_PATH
20156 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20158 soname_spec='${libname}${release}${shared_ext}$major'
20159 if test "X$HPUX_IA64_MODE" = X32; then
20160 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20161 else
20162 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20163 fi
20164 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20165 ;;
20166 hppa*64*)
20167 shrext_cmds='.sl'
20168 hardcode_into_libs=yes
20169 dynamic_linker="$host_os dld.sl"
20170 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20171 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20175 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20176 ;;
20177 *)
20178 shrext_cmds='.sl'
20179 dynamic_linker="$host_os dld.sl"
20180 shlibpath_var=SHLIB_PATH
20181 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20183 soname_spec='${libname}${release}${shared_ext}$major'
20184 ;;
20185 esac
cristy0c60a692010-11-04 01:09:47 +000020186 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020187 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020188 # or fails outright, so override atomically:
20189 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020190 ;;
20191
20192interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020193 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020194 need_lib_prefix=no
20195 need_version=no
20196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20197 soname_spec='${libname}${release}${shared_ext}$major'
20198 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20199 shlibpath_var=LD_LIBRARY_PATH
20200 shlibpath_overrides_runpath=no
20201 hardcode_into_libs=yes
20202 ;;
20203
20204irix5* | irix6* | nonstopux*)
20205 case $host_os in
20206 nonstopux*) version_type=nonstopux ;;
20207 *)
20208 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020209 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020210 else
20211 version_type=irix
20212 fi ;;
20213 esac
20214 need_lib_prefix=no
20215 need_version=no
20216 soname_spec='${libname}${release}${shared_ext}$major'
20217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20218 case $host_os in
20219 irix5* | nonstopux*)
20220 libsuff= shlibsuff=
20221 ;;
20222 *)
20223 case $LD in # libtool.m4 will add one of these switches to LD
20224 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20225 libsuff= shlibsuff= libmagic=32-bit;;
20226 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20227 libsuff=32 shlibsuff=N32 libmagic=N32;;
20228 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20229 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20230 *) libsuff= shlibsuff= libmagic=never-match;;
20231 esac
20232 ;;
20233 esac
20234 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20235 shlibpath_overrides_runpath=no
20236 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20237 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20238 hardcode_into_libs=yes
20239 ;;
20240
20241# No shared lib support for Linux oldld, aout, or coff.
20242linux*oldld* | linux*aout* | linux*coff*)
20243 dynamic_linker=no
20244 ;;
20245
cristy99bd5232011-12-07 14:38:20 +000020246# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020247linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020248 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020249 need_lib_prefix=no
20250 need_version=no
20251 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20252 soname_spec='${libname}${release}${shared_ext}$major'
20253 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20254 shlibpath_var=LD_LIBRARY_PATH
20255 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020256
cristy73bd4a52010-10-05 11:24:23 +000020257 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020258 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020259 $as_echo_n "(cached) " >&6
20260else
20261 lt_cv_shlibpath_overrides_runpath=no
20262 save_LDFLAGS=$LDFLAGS
20263 save_libdir=$libdir
20264 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20265 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020267/* end confdefs.h. */
20268
20269int
20270main ()
20271{
20272
20273 ;
20274 return 0;
20275}
20276_ACEOF
20277if ac_fn_cxx_try_link "$LINENO"; then :
20278 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020279 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020280fi
20281fi
20282rm -f core conftest.err conftest.$ac_objext \
20283 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020284 LDFLAGS=$save_LDFLAGS
20285 libdir=$save_libdir
20286
20287fi
20288
20289 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020290
20291 # This implies no fast_install, which is unacceptable.
20292 # Some rework will be needed to allow for fast_install
20293 # before this can be enabled.
20294 hardcode_into_libs=yes
20295
20296 # Add ABI-specific directories to the system library path.
20297 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20298
20299 # Append ld.so.conf contents to the search path
20300 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020301 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;s/"//g;/^$/d' | tr '\n' ' '`
cristy73bd4a52010-10-05 11:24:23 +000020302 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020303
cristy73bd4a52010-10-05 11:24:23 +000020304 fi
20305
20306 # We used to test for /lib/ld.so.1 and disable shared libraries on
20307 # powerpc, because MkLinux only supported shared libraries with the
20308 # GNU dynamic linker. Since this was broken with cross compilers,
20309 # most powerpc-linux boxes support dynamic linking these days and
20310 # people can always --disable-shared, the test was removed, and we
20311 # assume the GNU/Linux dynamic linker is in use.
20312 dynamic_linker='GNU/Linux ld.so'
20313 ;;
20314
20315netbsd*)
20316 version_type=sunos
20317 need_lib_prefix=no
20318 need_version=no
20319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20320 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20321 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20322 dynamic_linker='NetBSD (a.out) ld.so'
20323 else
20324 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20325 soname_spec='${libname}${release}${shared_ext}$major'
20326 dynamic_linker='NetBSD ld.elf_so'
20327 fi
20328 shlibpath_var=LD_LIBRARY_PATH
20329 shlibpath_overrides_runpath=yes
20330 hardcode_into_libs=yes
20331 ;;
20332
20333newsos6)
cristy99bd5232011-12-07 14:38:20 +000020334 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020335 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20336 shlibpath_var=LD_LIBRARY_PATH
20337 shlibpath_overrides_runpath=yes
20338 ;;
20339
20340*nto* | *qnx*)
20341 version_type=qnx
20342 need_lib_prefix=no
20343 need_version=no
20344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20345 soname_spec='${libname}${release}${shared_ext}$major'
20346 shlibpath_var=LD_LIBRARY_PATH
20347 shlibpath_overrides_runpath=no
20348 hardcode_into_libs=yes
20349 dynamic_linker='ldqnx.so'
20350 ;;
20351
20352openbsd*)
20353 version_type=sunos
20354 sys_lib_dlsearch_path_spec="/usr/lib"
20355 need_lib_prefix=no
20356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20357 case $host_os in
20358 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20359 *) need_version=no ;;
20360 esac
20361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20362 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20363 shlibpath_var=LD_LIBRARY_PATH
20364 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20365 case $host_os in
20366 openbsd2.[89] | openbsd2.[89].*)
20367 shlibpath_overrides_runpath=no
20368 ;;
20369 *)
20370 shlibpath_overrides_runpath=yes
20371 ;;
20372 esac
20373 else
20374 shlibpath_overrides_runpath=yes
20375 fi
20376 ;;
20377
20378os2*)
20379 libname_spec='$name'
20380 shrext_cmds=".dll"
20381 need_lib_prefix=no
20382 library_names_spec='$libname${shared_ext} $libname.a'
20383 dynamic_linker='OS/2 ld.exe'
20384 shlibpath_var=LIBPATH
20385 ;;
20386
20387osf3* | osf4* | osf5*)
20388 version_type=osf
20389 need_lib_prefix=no
20390 need_version=no
20391 soname_spec='${libname}${release}${shared_ext}$major'
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 shlibpath_var=LD_LIBRARY_PATH
20394 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20395 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20396 ;;
20397
20398rdos*)
20399 dynamic_linker=no
20400 ;;
20401
20402solaris*)
cristy99bd5232011-12-07 14:38:20 +000020403 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020404 need_lib_prefix=no
20405 need_version=no
20406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20407 soname_spec='${libname}${release}${shared_ext}$major'
20408 shlibpath_var=LD_LIBRARY_PATH
20409 shlibpath_overrides_runpath=yes
20410 hardcode_into_libs=yes
20411 # ldd complains unless libraries are executable
20412 postinstall_cmds='chmod +x $lib'
20413 ;;
20414
20415sunos4*)
20416 version_type=sunos
20417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20418 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20419 shlibpath_var=LD_LIBRARY_PATH
20420 shlibpath_overrides_runpath=yes
20421 if test "$with_gnu_ld" = yes; then
20422 need_lib_prefix=no
20423 fi
20424 need_version=yes
20425 ;;
20426
20427sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020428 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20430 soname_spec='${libname}${release}${shared_ext}$major'
20431 shlibpath_var=LD_LIBRARY_PATH
20432 case $host_vendor in
20433 sni)
20434 shlibpath_overrides_runpath=no
20435 need_lib_prefix=no
20436 runpath_var=LD_RUN_PATH
20437 ;;
20438 siemens)
20439 need_lib_prefix=no
20440 ;;
20441 motorola)
20442 need_lib_prefix=no
20443 need_version=no
20444 shlibpath_overrides_runpath=no
20445 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20446 ;;
20447 esac
20448 ;;
20449
20450sysv4*MP*)
20451 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020452 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020453 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20454 soname_spec='$libname${shared_ext}.$major'
20455 shlibpath_var=LD_LIBRARY_PATH
20456 fi
20457 ;;
20458
20459sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20460 version_type=freebsd-elf
20461 need_lib_prefix=no
20462 need_version=no
20463 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20464 soname_spec='${libname}${release}${shared_ext}$major'
20465 shlibpath_var=LD_LIBRARY_PATH
20466 shlibpath_overrides_runpath=yes
20467 hardcode_into_libs=yes
20468 if test "$with_gnu_ld" = yes; then
20469 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20470 else
20471 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20472 case $host_os in
20473 sco3.2v5*)
20474 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20475 ;;
20476 esac
20477 fi
20478 sys_lib_dlsearch_path_spec='/usr/lib'
20479 ;;
20480
20481tpf*)
20482 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020483 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020484 need_lib_prefix=no
20485 need_version=no
20486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20487 shlibpath_var=LD_LIBRARY_PATH
20488 shlibpath_overrides_runpath=no
20489 hardcode_into_libs=yes
20490 ;;
20491
20492uts4*)
cristy99bd5232011-12-07 14:38:20 +000020493 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020494 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20495 soname_spec='${libname}${release}${shared_ext}$major'
20496 shlibpath_var=LD_LIBRARY_PATH
20497 ;;
20498
20499*)
20500 dynamic_linker=no
20501 ;;
20502esac
20503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20504$as_echo "$dynamic_linker" >&6; }
20505test "$dynamic_linker" = no && can_build_shared=no
20506
20507variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20508if test "$GCC" = yes; then
20509 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20510fi
20511
20512if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20513 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20514fi
20515if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20516 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20517fi
20518
20519
20520
20521
20522
20523
20524
20525
20526
20527
20528
20529
20530
20531
20532
20533
20534
20535
20536
20537
20538
20539
20540
20541
20542
20543
20544
20545
20546
20547
20548
20549
20550
20551
20552
20553
cristy0c60a692010-11-04 01:09:47 +000020554
20555
cristy73bd4a52010-10-05 11:24:23 +000020556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20557$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20558hardcode_action_CXX=
20559if test -n "$hardcode_libdir_flag_spec_CXX" ||
20560 test -n "$runpath_var_CXX" ||
20561 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20562
20563 # We can hardcode non-existent directories.
20564 if test "$hardcode_direct_CXX" != no &&
20565 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20566 # have to relink, otherwise we might link with an installed library
20567 # when we should be linking with a yet-to-be-installed one
20568 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20569 test "$hardcode_minus_L_CXX" != no; then
20570 # Linking always hardcodes the temporary library directory.
20571 hardcode_action_CXX=relink
20572 else
20573 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20574 hardcode_action_CXX=immediate
20575 fi
20576else
20577 # We cannot hardcode anything, or else we can only hardcode existing
20578 # directories.
20579 hardcode_action_CXX=unsupported
20580fi
20581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20582$as_echo "$hardcode_action_CXX" >&6; }
20583
20584if test "$hardcode_action_CXX" = relink ||
20585 test "$inherit_rpath_CXX" = yes; then
20586 # Fast installation is not supported
20587 enable_fast_install=no
20588elif test "$shlibpath_overrides_runpath" = yes ||
20589 test "$enable_shared" = no; then
20590 # Fast installation is not necessary
20591 enable_fast_install=needless
20592fi
20593
20594
20595
20596
20597
20598
20599
20600 fi # test -n "$compiler"
20601
20602 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020603 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020604 LDCXX=$LD
20605 LD=$lt_save_LD
20606 GCC=$lt_save_GCC
20607 with_gnu_ld=$lt_save_with_gnu_ld
20608 lt_cv_path_LDCXX=$lt_cv_path_LD
20609 lt_cv_path_LD=$lt_save_path_LD
20610 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20611 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20612fi # test "$_lt_caught_CXX_error" != yes
20613
20614ac_ext=c
20615ac_cpp='$CPP $CPPFLAGS'
20616ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20617ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20618ac_compiler_gnu=$ac_cv_c_compiler_gnu
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
20631
cristy99bd5232011-12-07 14:38:20 +000020632
20633
cristy73bd4a52010-10-05 11:24:23 +000020634 ac_config_commands="$ac_config_commands libtool"
20635
20636
20637
20638
20639# Only expand once:
20640
20641
20642
cristy3ed852e2009-09-05 21:47:34 +000020643
20644
20645# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020646
20647
20648
20649
20650
20651
20652
cristy73bd4a52010-10-05 11:24:23 +000020653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20654$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020655if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020656 $as_echo_n "(cached) " >&6
20657else
20658
20659module=yes
20660eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020661module=no
20662eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020663
20664fi
20665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20666$as_echo "$libltdl_cv_shlibext" >&6; }
20667if test -n "$libltdl_cv_shlibext"; then
20668
20669cat >>confdefs.h <<_ACEOF
20670#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20671_ACEOF
20672
20673fi
cristy99bd5232011-12-07 14:38:20 +000020674if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20675
20676cat >>confdefs.h <<_ACEOF
20677#define LT_SHARED_EXT "$libltdl_cv_shrext"
20678_ACEOF
20679
20680fi
cristy73bd4a52010-10-05 11:24:23 +000020681
20682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20683$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020684if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020685 $as_echo_n "(cached) " >&6
20686else
20687 lt_cv_module_path_var="$shlibpath_var"
20688fi
20689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20690$as_echo "$lt_cv_module_path_var" >&6; }
20691if test -n "$lt_cv_module_path_var"; then
20692
20693cat >>confdefs.h <<_ACEOF
20694#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20695_ACEOF
20696
20697fi
20698
20699{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20700$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020701if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020702 $as_echo_n "(cached) " >&6
20703else
20704 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20705fi
20706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20707$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20708if test -n "$lt_cv_sys_dlsearch_path"; then
20709 sys_dlsearch_path=
20710 for dir in $lt_cv_sys_dlsearch_path; do
20711 if test -z "$sys_dlsearch_path"; then
20712 sys_dlsearch_path="$dir"
20713 else
20714 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20715 fi
20716 done
20717
20718cat >>confdefs.h <<_ACEOF
20719#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20720_ACEOF
20721
20722fi
20723
20724
20725LT_DLLOADERS=
20726
20727
20728ac_ext=c
20729ac_cpp='$CPP $CPPFLAGS'
20730ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20731ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20732ac_compiler_gnu=$ac_cv_c_compiler_gnu
20733
20734
20735LIBADD_DLOPEN=
20736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20737$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020738if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020739 $as_echo_n "(cached) " >&6
20740else
20741 ac_func_search_save_LIBS=$LIBS
20742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20743/* end confdefs.h. */
20744
20745/* Override any GCC internal prototype to avoid an error.
20746 Use char because int might match the return type of a GCC
20747 builtin and then its argument prototype would still apply. */
20748#ifdef __cplusplus
20749extern "C"
20750#endif
20751char dlopen ();
20752int
20753main ()
20754{
20755return dlopen ();
20756 ;
20757 return 0;
20758}
20759_ACEOF
20760for ac_lib in '' dl; do
20761 if test -z "$ac_lib"; then
20762 ac_res="none required"
20763 else
20764 ac_res=-l$ac_lib
20765 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20766 fi
20767 if ac_fn_c_try_link "$LINENO"; then :
20768 ac_cv_search_dlopen=$ac_res
20769fi
20770rm -f core conftest.err conftest.$ac_objext \
20771 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020772 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020773 break
20774fi
20775done
cristyda16f162011-02-19 23:52:17 +000020776if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020777
20778else
20779 ac_cv_search_dlopen=no
20780fi
20781rm conftest.$ac_ext
20782LIBS=$ac_func_search_save_LIBS
20783fi
20784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20785$as_echo "$ac_cv_search_dlopen" >&6; }
20786ac_res=$ac_cv_search_dlopen
20787if test "$ac_res" != no; then :
20788 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20789
20790$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20791
20792 if test "$ac_cv_search_dlopen" != "none required" ; then
20793 LIBADD_DLOPEN="-ldl"
20794 fi
20795 libltdl_cv_lib_dl_dlopen="yes"
20796 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20797else
20798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799/* end confdefs.h. */
20800#if HAVE_DLFCN_H
20801# include <dlfcn.h>
20802#endif
20803
20804int
20805main ()
20806{
20807dlopen(0, 0);
20808 ;
20809 return 0;
20810}
20811_ACEOF
20812if ac_fn_c_try_link "$LINENO"; then :
20813
20814$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20815
20816 libltdl_cv_func_dlopen="yes"
20817 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20818else
20819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20820$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020821if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020822 $as_echo_n "(cached) " >&6
20823else
20824 ac_check_lib_save_LIBS=$LIBS
20825LIBS="-lsvld $LIBS"
20826cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20827/* end confdefs.h. */
20828
20829/* Override any GCC internal prototype to avoid an error.
20830 Use char because int might match the return type of a GCC
20831 builtin and then its argument prototype would still apply. */
20832#ifdef __cplusplus
20833extern "C"
20834#endif
20835char dlopen ();
20836int
20837main ()
20838{
20839return dlopen ();
20840 ;
20841 return 0;
20842}
20843_ACEOF
20844if ac_fn_c_try_link "$LINENO"; then :
20845 ac_cv_lib_svld_dlopen=yes
20846else
20847 ac_cv_lib_svld_dlopen=no
20848fi
20849rm -f core conftest.err conftest.$ac_objext \
20850 conftest$ac_exeext conftest.$ac_ext
20851LIBS=$ac_check_lib_save_LIBS
20852fi
20853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20854$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020855if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020856
20857$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20858
20859 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20860 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20861fi
20862
20863fi
20864rm -f core conftest.err conftest.$ac_objext \
20865 conftest$ac_exeext conftest.$ac_ext
20866fi
20867
20868if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20869then
20870 lt_save_LIBS="$LIBS"
20871 LIBS="$LIBS $LIBADD_DLOPEN"
20872 for ac_func in dlerror
20873do :
20874 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020875if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020876 cat >>confdefs.h <<_ACEOF
20877#define HAVE_DLERROR 1
20878_ACEOF
20879
20880fi
20881done
20882
20883 LIBS="$lt_save_LIBS"
20884fi
20885
20886
20887LIBADD_SHL_LOAD=
20888ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020889if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020890
20891$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20892
20893 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20894else
20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20896$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020897if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020898 $as_echo_n "(cached) " >&6
20899else
20900 ac_check_lib_save_LIBS=$LIBS
20901LIBS="-ldld $LIBS"
20902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20903/* end confdefs.h. */
20904
20905/* Override any GCC internal prototype to avoid an error.
20906 Use char because int might match the return type of a GCC
20907 builtin and then its argument prototype would still apply. */
20908#ifdef __cplusplus
20909extern "C"
20910#endif
20911char shl_load ();
20912int
20913main ()
20914{
20915return shl_load ();
20916 ;
20917 return 0;
20918}
20919_ACEOF
20920if ac_fn_c_try_link "$LINENO"; then :
20921 ac_cv_lib_dld_shl_load=yes
20922else
20923 ac_cv_lib_dld_shl_load=no
20924fi
20925rm -f core conftest.err conftest.$ac_objext \
20926 conftest$ac_exeext conftest.$ac_ext
20927LIBS=$ac_check_lib_save_LIBS
20928fi
20929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20930$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020931if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020932
20933$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20934
20935 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20936 LIBADD_SHL_LOAD="-ldld"
20937fi
20938
20939fi
20940
20941
20942
20943case $host_os in
20944darwin[1567].*)
20945# We only want this for pre-Mac OS X 10.4.
20946 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020947if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020948
20949$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20950
20951 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20952fi
20953
20954 ;;
20955beos*)
20956 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20957 ;;
20958cygwin* | mingw* | os2* | pw32*)
20959 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20960"
cristyda16f162011-02-19 23:52:17 +000020961if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020962 ac_have_decl=1
20963else
20964 ac_have_decl=0
20965fi
20966
20967cat >>confdefs.h <<_ACEOF
20968#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20969_ACEOF
20970
20971 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20972 ;;
20973esac
20974
20975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20976$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020977if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020978 $as_echo_n "(cached) " >&6
20979else
20980 ac_check_lib_save_LIBS=$LIBS
20981LIBS="-ldld $LIBS"
20982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20983/* end confdefs.h. */
20984
20985/* Override any GCC internal prototype to avoid an error.
20986 Use char because int might match the return type of a GCC
20987 builtin and then its argument prototype would still apply. */
20988#ifdef __cplusplus
20989extern "C"
20990#endif
20991char dld_link ();
20992int
20993main ()
20994{
20995return dld_link ();
20996 ;
20997 return 0;
20998}
20999_ACEOF
21000if ac_fn_c_try_link "$LINENO"; then :
21001 ac_cv_lib_dld_dld_link=yes
21002else
21003 ac_cv_lib_dld_dld_link=no
21004fi
21005rm -f core conftest.err conftest.$ac_objext \
21006 conftest$ac_exeext conftest.$ac_ext
21007LIBS=$ac_check_lib_save_LIBS
21008fi
21009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21010$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000021011if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021012
21013$as_echo "#define HAVE_DLD 1" >>confdefs.h
21014
21015 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
21016fi
21017
21018
21019
21020
21021LT_DLPREOPEN=
21022if test -n "$LT_DLLOADERS"
21023then
21024 for lt_loader in $LT_DLLOADERS; do
21025 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
21026 done
21027
21028$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
21029
21030fi
21031
21032
21033LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21034
21035
21036ac_ext=c
21037ac_cpp='$CPP $CPPFLAGS'
21038ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21039ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21040ac_compiler_gnu=$ac_cv_c_compiler_gnu
21041
21042
21043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21044$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021045if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021046 $as_echo_n "(cached) " >&6
21047else
21048 lt_cv_sys_symbol_underscore=no
21049 cat > conftest.$ac_ext <<_LT_EOF
21050void nm_test_func(){}
21051int main(){nm_test_func;return 0;}
21052_LT_EOF
21053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21054 (eval $ac_compile) 2>&5
21055 ac_status=$?
21056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21057 test $ac_status = 0; }; then
21058 # Now try to grab the symbols.
21059 ac_nlist=conftest.nm
21060 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21061 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21062 ac_status=$?
21063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21064 test $ac_status = 0; } && test -s "$ac_nlist"; then
21065 # See whether the symbols have a leading underscore.
21066 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21067 lt_cv_sys_symbol_underscore=yes
21068 else
21069 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21070 :
21071 else
21072 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21073 fi
21074 fi
21075 else
21076 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21077 fi
21078 else
21079 echo "configure: failed program was:" >&5
21080 cat conftest.c >&5
21081 fi
21082 rm -rf conftest*
21083
21084fi
21085{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21086$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21087 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21088
21089
21090if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21091 if test x"$libltdl_cv_func_dlopen" = xyes ||
21092 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21094$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021095if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021096 $as_echo_n "(cached) " >&6
21097else
21098 libltdl_cv_need_uscore=unknown
21099 save_LIBS="$LIBS"
21100 LIBS="$LIBS $LIBADD_DLOPEN"
21101 if test "$cross_compiling" = yes; then :
21102 libltdl_cv_need_uscore=cross
21103else
21104 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21105 lt_status=$lt_dlunknown
21106 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021107#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021108#include "confdefs.h"
21109
21110#if HAVE_DLFCN_H
21111#include <dlfcn.h>
21112#endif
21113
21114#include <stdio.h>
21115
21116#ifdef RTLD_GLOBAL
21117# define LT_DLGLOBAL RTLD_GLOBAL
21118#else
21119# ifdef DL_GLOBAL
21120# define LT_DLGLOBAL DL_GLOBAL
21121# else
21122# define LT_DLGLOBAL 0
21123# endif
21124#endif
21125
21126/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21127 find out it does not work in some platform. */
21128#ifndef LT_DLLAZY_OR_NOW
21129# ifdef RTLD_LAZY
21130# define LT_DLLAZY_OR_NOW RTLD_LAZY
21131# else
21132# ifdef DL_LAZY
21133# define LT_DLLAZY_OR_NOW DL_LAZY
21134# else
21135# ifdef RTLD_NOW
21136# define LT_DLLAZY_OR_NOW RTLD_NOW
21137# else
21138# ifdef DL_NOW
21139# define LT_DLLAZY_OR_NOW DL_NOW
21140# else
21141# define LT_DLLAZY_OR_NOW 0
21142# endif
21143# endif
21144# endif
21145# endif
21146#endif
21147
cristy0c60a692010-11-04 01:09:47 +000021148/* When -fvisbility=hidden is used, assume the code has been annotated
21149 correspondingly for the symbols needed. */
21150#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021151int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021152#endif
21153
cristyda16f162011-02-19 23:52:17 +000021154int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021155int main ()
21156{
21157 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21158 int status = $lt_dlunknown;
21159
21160 if (self)
21161 {
21162 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021163 else
21164 {
21165 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21166 else puts (dlerror ());
21167 }
cristy73bd4a52010-10-05 11:24:23 +000021168 /* dlclose (self); */
21169 }
21170 else
21171 puts (dlerror ());
21172
21173 return status;
21174}
21175_LT_EOF
21176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21177 (eval $ac_link) 2>&5
21178 ac_status=$?
21179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21180 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21181 (./conftest; exit; ) >&5 2>/dev/null
21182 lt_status=$?
21183 case x$lt_status in
21184 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21185 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21186 x$lt_dlunknown|x*) ;;
21187 esac
21188 else :
21189 # compilation failed
21190
21191 fi
21192fi
21193rm -fr conftest*
21194
21195 LIBS="$save_LIBS"
21196
21197fi
21198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21199$as_echo "$libltdl_cv_need_uscore" >&6; }
21200 fi
21201fi
21202
21203if test x"$libltdl_cv_need_uscore" = xyes; then
21204
21205$as_echo "#define NEED_USCORE 1" >>confdefs.h
21206
21207fi
21208
21209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21210$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021211if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021212 $as_echo_n "(cached) " >&6
21213else
21214 # PORTME does your system automatically load deplibs for dlopen?
21215 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21216 # For now, we just catch OSes we know something about -- in the
21217 # future, we'll try test this programmatically.
21218 lt_cv_sys_dlopen_deplibs=unknown
21219 case $host_os in
21220 aix3*|aix4.1.*|aix4.2.*)
21221 # Unknown whether this is true for these versions of AIX, but
21222 # we want this `case' here to explicitly catch those versions.
21223 lt_cv_sys_dlopen_deplibs=unknown
21224 ;;
21225 aix[4-9]*)
21226 lt_cv_sys_dlopen_deplibs=yes
21227 ;;
21228 amigaos*)
21229 case $host_cpu in
21230 powerpc)
21231 lt_cv_sys_dlopen_deplibs=no
21232 ;;
21233 esac
21234 ;;
21235 darwin*)
21236 # Assuming the user has installed a libdl from somewhere, this is true
21237 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21238 lt_cv_sys_dlopen_deplibs=yes
21239 ;;
21240 freebsd* | dragonfly*)
21241 lt_cv_sys_dlopen_deplibs=yes
21242 ;;
cristy0c60a692010-11-04 01:09:47 +000021243 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021244 # GNU and its variants, using gnu ld.so (Glibc)
21245 lt_cv_sys_dlopen_deplibs=yes
21246 ;;
21247 hpux10*|hpux11*)
21248 lt_cv_sys_dlopen_deplibs=yes
21249 ;;
21250 interix*)
21251 lt_cv_sys_dlopen_deplibs=yes
21252 ;;
21253 irix[12345]*|irix6.[01]*)
21254 # Catch all versions of IRIX before 6.2, and indicate that we don't
21255 # know how it worked for any of those versions.
21256 lt_cv_sys_dlopen_deplibs=unknown
21257 ;;
21258 irix*)
21259 # The case above catches anything before 6.2, and it's known that
21260 # at 6.2 and later dlopen does load deplibs.
21261 lt_cv_sys_dlopen_deplibs=yes
21262 ;;
21263 netbsd*)
21264 lt_cv_sys_dlopen_deplibs=yes
21265 ;;
21266 openbsd*)
21267 lt_cv_sys_dlopen_deplibs=yes
21268 ;;
21269 osf[1234]*)
21270 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21271 # it did *not* use an RPATH in a shared library to find objects the
21272 # library depends on, so we explicitly say `no'.
21273 lt_cv_sys_dlopen_deplibs=no
21274 ;;
21275 osf5.0|osf5.0a|osf5.1)
21276 # dlopen *does* load deplibs and with the right loader patch applied
21277 # it even uses RPATH in a shared library to search for shared objects
21278 # that the library depends on, but there's no easy way to know if that
21279 # patch is installed. Since this is the case, all we can really
21280 # say is unknown -- it depends on the patch being installed. If
21281 # it is, this changes to `yes'. Without it, it would be `no'.
21282 lt_cv_sys_dlopen_deplibs=unknown
21283 ;;
21284 osf*)
21285 # the two cases above should catch all versions of osf <= 5.1. Read
21286 # the comments above for what we know about them.
21287 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21288 # is used to find them so we can finally say `yes'.
21289 lt_cv_sys_dlopen_deplibs=yes
21290 ;;
21291 qnx*)
21292 lt_cv_sys_dlopen_deplibs=yes
21293 ;;
21294 solaris*)
21295 lt_cv_sys_dlopen_deplibs=yes
21296 ;;
21297 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21298 libltdl_cv_sys_dlopen_deplibs=yes
21299 ;;
21300 esac
21301
21302fi
21303{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21304$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21305if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21306
21307$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21308
21309fi
21310
21311:
21312
21313for ac_header in argz.h
21314do :
21315 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21316"
cristyda16f162011-02-19 23:52:17 +000021317if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021318 cat >>confdefs.h <<_ACEOF
21319#define HAVE_ARGZ_H 1
21320_ACEOF
21321
21322fi
21323
21324done
21325
21326
21327ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21328# include <argz.h>
21329#endif
21330"
cristyda16f162011-02-19 23:52:17 +000021331if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021332
21333cat >>confdefs.h <<_ACEOF
21334#define HAVE_ERROR_T 1
21335_ACEOF
21336
21337
21338else
21339
21340$as_echo "#define error_t int" >>confdefs.h
21341
21342
21343$as_echo "#define __error_t_defined 1" >>confdefs.h
21344
21345fi
21346
21347
21348ARGZ_H=
21349for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21350 argz_next argz_stringify
21351do :
21352 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21353ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021354if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021355 cat >>confdefs.h <<_ACEOF
21356#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21357_ACEOF
21358
21359else
21360 ARGZ_H=argz.h;
21361
21362 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21363
21364fi
21365done
21366
21367
21368if test -z "$ARGZ_H"; then :
21369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21370$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021371if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021372 $as_echo_n "(cached) " >&6
21373else
21374 case $host_os in #(
21375 *cygwin*)
21376 lt_cv_sys_argz_works=no
21377 if test "$cross_compiling" != no; then
21378 lt_cv_sys_argz_works="guessing no"
21379 else
21380 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21381 save_IFS=$IFS
21382 IFS=-.
21383 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21384 IFS=$save_IFS
21385 lt_os_major=${2-0}
21386 lt_os_minor=${3-0}
21387 lt_os_micro=${4-0}
21388 if test "$lt_os_major" -gt 1 \
21389 || { test "$lt_os_major" -eq 1 \
21390 && { test "$lt_os_minor" -gt 5 \
21391 || { test "$lt_os_minor" -eq 5 \
21392 && test "$lt_os_micro" -gt 24; }; }; }; then
21393 lt_cv_sys_argz_works=yes
21394 fi
21395 fi
21396 ;; #(
21397 *) lt_cv_sys_argz_works=yes ;;
21398 esac
21399fi
21400{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21401$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021402 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021403
21404$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21405
21406else
21407 ARGZ_H=argz.h
21408
21409
21410 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21411
21412fi
21413fi
21414
21415
21416
21417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21418$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021419if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021420 $as_echo_n "(cached) " >&6
21421else
21422 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21423 libltdl_cv_preloaded_symbols=yes
21424 else
21425 libltdl_cv_preloaded_symbols=no
21426 fi
21427
21428fi
21429{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21430$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21431if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21432
21433$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21434
21435fi
21436
21437# Set options
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448
21449# Check whether --with-included_ltdl was given.
21450if test "${with_included_ltdl+set}" = set; then :
21451 withval=$with_included_ltdl;
21452fi
21453
21454
21455if test "x$with_included_ltdl" != xyes; then
21456 # We are not being forced to use the included libltdl sources, so
21457 # decide whether there is a useful installed version we can use.
21458 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21459
21460"
cristyda16f162011-02-19 23:52:17 +000021461if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021462 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21463 #include <ltdl.h>
21464"
cristyda16f162011-02-19 23:52:17 +000021465if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21467$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021468if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021469 $as_echo_n "(cached) " >&6
21470else
21471 ac_check_lib_save_LIBS=$LIBS
21472LIBS="-lltdl $LIBS"
21473cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21474/* end confdefs.h. */
21475
21476/* Override any GCC internal prototype to avoid an error.
21477 Use char because int might match the return type of a GCC
21478 builtin and then its argument prototype would still apply. */
21479#ifdef __cplusplus
21480extern "C"
21481#endif
21482char lt_dladvise_preload ();
21483int
21484main ()
21485{
21486return lt_dladvise_preload ();
21487 ;
21488 return 0;
21489}
21490_ACEOF
21491if ac_fn_c_try_link "$LINENO"; then :
21492 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21493else
21494 ac_cv_lib_ltdl_lt_dladvise_preload=no
21495fi
21496rm -f core conftest.err conftest.$ac_objext \
21497 conftest$ac_exeext conftest.$ac_ext
21498LIBS=$ac_check_lib_save_LIBS
21499fi
21500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21501$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021502if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021503 with_included_ltdl=no
21504else
21505 with_included_ltdl=yes
21506fi
21507
21508else
21509 with_included_ltdl=yes
21510fi
21511
21512else
21513 with_included_ltdl=yes
21514fi
21515
21516
21517fi
21518
21519
21520
21521
21522# Check whether --with-ltdl_include was given.
21523if test "${with_ltdl_include+set}" = set; then :
21524 withval=$with_ltdl_include;
21525fi
21526
21527
21528if test -n "$with_ltdl_include"; then
21529 if test -f "$with_ltdl_include/ltdl.h"; then :
21530 else
cristy98dddb52010-11-04 00:30:15 +000021531 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021532 fi
21533else
21534 with_ltdl_include=no
21535fi
21536
21537
21538# Check whether --with-ltdl_lib was given.
21539if test "${with_ltdl_lib+set}" = set; then :
21540 withval=$with_ltdl_lib;
21541fi
21542
21543
21544if test -n "$with_ltdl_lib"; then
21545 if test -f "$with_ltdl_lib/libltdl.la"; then :
21546 else
cristy98dddb52010-11-04 00:30:15 +000021547 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021548 fi
21549else
21550 with_ltdl_lib=no
21551fi
21552
21553case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21554 ,yes,no,no,)
cristy6aa65bb2012-10-11 13:30:38 +000021555 if test -f $prefix/lib/libltdl.la; then
21556 lt_save_LDFLAGS="$LDFLAGS"
21557 LDFLAGS="-L$prefix/lib $LDFLAGS"
21558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
21559$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
21560if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
21561 $as_echo_n "(cached) " >&6
21562else
21563 ac_check_lib_save_LIBS=$LIBS
21564LIBS="-lltdl $LIBS"
21565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21566/* end confdefs.h. */
21567
21568/* Override any GCC internal prototype to avoid an error.
21569 Use char because int might match the return type of a GCC
21570 builtin and then its argument prototype would still apply. */
21571#ifdef __cplusplus
21572extern "C"
21573#endif
21574char lt_dlinit ();
21575int
21576main ()
21577{
21578return lt_dlinit ();
21579 ;
21580 return 0;
21581}
21582_ACEOF
21583if ac_fn_c_try_link "$LINENO"; then :
21584 ac_cv_lib_ltdl_lt_dlinit=yes
21585else
21586 ac_cv_lib_ltdl_lt_dlinit=no
21587fi
21588rm -f core conftest.err conftest.$ac_objext \
21589 conftest$ac_exeext conftest.$ac_ext
21590LIBS=$ac_check_lib_save_LIBS
21591fi
21592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
21593$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
21594if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
21595 lt_lib_ltdl=yes
21596fi
21597
21598 LDFLAGS="$lt_save_LDFLAGS"
21599 if test x"${lt_lib_ltdl-no}" = xyes; then
21600 if test x"$enable_ltdl_install" != xyes; then
21601 # Don't overwrite $prefix/lib/libltdl.la without --enable-ltdl-install
21602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&5
21603$as_echo "$as_me: WARNING: not overwriting libltdl at $prefix, force with \`--enable-ltdl-install'" >&2;}
21604 enable_ltdl_install=no
21605 fi
21606 elif test x"$enable_ltdl_install" = xno; then
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: libltdl not installed, but installation disabled" >&5
21608$as_echo "$as_me: WARNING: libltdl not installed, but installation disabled" >&2;}
21609 fi
21610fi
21611
21612# If configure.ac declared an installable ltdl, and the user didn't override
21613# with --disable-ltdl-install, we will install the shipped libltdl.
21614case $enable_ltdl_install in
21615 no) ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
21616 LIBLTDL="-lltdl"
21617 LTDLDEPS=
21618 LTDLINCL=
21619 ;;
21620 *) enable_ltdl_install=yes
21621 ac_configure_args="$ac_configure_args --enable-ltdl-install"
21622 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdl.la"
21623 LTDLDEPS=$LIBLTDL
21624 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
21625 ;;
cristy73bd4a52010-10-05 11:24:23 +000021626esac
cristy73bd4a52010-10-05 11:24:23 +000021627
21628
21629
21630
21631
21632# For backwards non-gettext consistent compatibility...
21633INCLTDL="$LTDLINCL"
21634
21635
21636 ;;
21637 ,no,no,no,)
21638 # If the included ltdl is not to be used, then use the
21639 # preinstalled libltdl we found.
21640
21641$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21642
21643 LIBLTDL=-lltdl
21644 LTDLDEPS=
21645 LTDLINCL=
21646 ;;
21647 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021648 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021649 ;;
21650 *) with_included_ltdl=no
21651 LIBLTDL="-L$with_ltdl_lib -lltdl"
21652 LTDLDEPS=
21653 LTDLINCL="-I$with_ltdl_include"
21654 ;;
21655esac
21656INCLTDL="$LTDLINCL"
21657
21658# Report our decision...
21659{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21660$as_echo_n "checking where to find libltdl headers... " >&6; }
21661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21662$as_echo "$LTDLINCL" >&6; }
21663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21664$as_echo_n "checking where to find libltdl library... " >&6; }
21665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21666$as_echo "$LIBLTDL" >&6; }
21667
21668
21669
21670# Check whether --enable-ltdl-install was given.
21671if test "${enable_ltdl_install+set}" = set; then :
21672 enableval=$enable_ltdl_install;
21673fi
21674
21675
21676case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21677 *yes*) ;;
21678 *) enable_ltdl_convenience=yes ;;
21679esac
21680
21681 if test x"${enable_ltdl_install-no}" != xno; then
21682 INSTALL_LTDL_TRUE=
21683 INSTALL_LTDL_FALSE='#'
21684else
21685 INSTALL_LTDL_TRUE='#'
21686 INSTALL_LTDL_FALSE=
21687fi
21688
21689 if test x"${enable_ltdl_convenience-no}" != xno; then
21690 CONVENIENCE_LTDL_TRUE=
21691 CONVENIENCE_LTDL_FALSE='#'
21692else
21693 CONVENIENCE_LTDL_TRUE='#'
21694 CONVENIENCE_LTDL_FALSE=
21695fi
21696
21697
21698
21699
21700
21701
cristy73bd4a52010-10-05 11:24:23 +000021702# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21703# the user used. This is so that ltdl.h can pick up the parent projects
21704# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21705# definitions required by ltdl.c.
21706# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21707
21708
21709
21710for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21711do :
21712 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21713ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21714"
cristy98dddb52010-11-04 00:30:15 +000021715if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021716 cat >>confdefs.h <<_ACEOF
21717#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21718_ACEOF
21719
21720fi
21721
21722done
21723
21724
21725for ac_func in closedir opendir readdir
21726do :
21727 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21728ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021729if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021730 cat >>confdefs.h <<_ACEOF
21731#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21732_ACEOF
21733
21734else
21735
21736
21737 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21738
21739fi
21740done
21741
21742for ac_func in strlcat strlcpy
21743do :
21744 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21745ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021746if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021747 cat >>confdefs.h <<_ACEOF
21748#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21749_ACEOF
21750
21751else
21752
21753
21754 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21755
21756fi
21757done
21758
21759
21760
21761cat >>confdefs.h <<_ACEOF
21762#define LT_LIBEXT "$libext"
21763_ACEOF
21764
21765
cristyda16f162011-02-19 23:52:17 +000021766name=
21767eval "lt_libprefix=\"$libname_spec\""
21768
21769cat >>confdefs.h <<_ACEOF
21770#define LT_LIBPREFIX "$lt_libprefix"
21771_ACEOF
21772
21773
cristy73bd4a52010-10-05 11:24:23 +000021774name=ltdl
cristyda16f162011-02-19 23:52:17 +000021775eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021776
21777
21778
21779
21780
21781
21782
21783
21784# Only expand once:
21785
21786
cristy3ed852e2009-09-05 21:47:34 +000021787
21788# Check to see if building shared libraries
21789libtool_build_shared_libs='no'
21790if test "$enable_shared" = 'yes'; then
21791 libtool_build_shared_libs='yes'
21792fi
21793
21794# Check to see if building static libraries
21795libtool_build_static_libs='no'
21796if test "$enable_static" = 'yes'; then
21797 libtool_build_static_libs='yes'
21798fi
21799
cristy73bd4a52010-10-05 11:24:23 +000021800 if test "${libtool_build_shared_libs}" = 'yes'; then
21801 WITH_SHARED_LIBS_TRUE=
21802 WITH_SHARED_LIBS_FALSE='#'
21803else
21804 WITH_SHARED_LIBS_TRUE='#'
21805 WITH_SHARED_LIBS_FALSE=
21806fi
21807
cristy3ed852e2009-09-05 21:47:34 +000021808#
21809# Enable support for building loadable modules
21810#
21811
21812# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021813if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021814 withval=$with_modules; with_modules=$withval
21815else
cristy5a1cefd2010-01-06 20:42:35 +000021816 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021817fi
21818
21819
21820# Only allow building loadable modules if we are building shared libraries
21821if test "$with_modules" != 'no' ; then
21822 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021823 { $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 +000021824$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
21825 with_modules='no'
21826 fi
21827fi
21828if test "$with_modules" != 'no'; then
21829
cristy8b350f62009-11-15 23:12:43 +000021830$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021831
21832fi
cristy73bd4a52010-10-05 11:24:23 +000021833 if test "$with_modules" != 'no'; then
21834 WITH_MODULES_TRUE=
21835 WITH_MODULES_FALSE='#'
21836else
21837 WITH_MODULES_TRUE='#'
21838 WITH_MODULES_FALSE=
21839fi
21840
cristy3ed852e2009-09-05 21:47:34 +000021841
21842# Enable building/use of libltdl if we are building shared libraries regardless
21843# of whether modules are built or not.
21844with_ltdl='no'
21845if test "$libtool_build_shared_libs" != 'no'; then
21846 with_ltdl='yes'
21847fi
21848
cristy73bd4a52010-10-05 11:24:23 +000021849 if test "$with_ltdl" != 'no'; then
21850 WITH_LTDL_TRUE=
21851 WITH_LTDL_FALSE='#'
21852else
21853 WITH_LTDL_TRUE='#'
21854 WITH_LTDL_FALSE=
21855fi
21856
cristy3ed852e2009-09-05 21:47:34 +000021857if test "$with_ltdl" != 'no'; then
21858
cristy8b350f62009-11-15 23:12:43 +000021859$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021860
21861
21862 # Set DLLDFLAGS
21863 if test X"$enable_shared" = Xyes; then
21864 DLLDFLAGS=-export-dynamic
21865
21866 fi
21867fi
21868
21869# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021870# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021871# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021872if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021873 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21874else
21875 enable_delegate_build='no'
21876fi
21877
21878
21879# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021880if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021881 enableval=$enable_deprecated; enable_deprecated=$enableval
21882else
21883 enable_deprecated='no'
21884fi
21885
21886
21887if test "$enable_deprecated" = 'yes'; then
21888
cristy8b350f62009-11-15 23:12:43 +000021889$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021890
21891else
21892 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21893fi
21894
21895# Build a version of ImageMagick which operates uninstalled.
21896# Used to build distributions located via MAGICK_HOME / executable path
21897# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021898if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021899 enableval=$enable_installed; enable_installed=$enableval
21900else
21901 enable_installed='yes'
21902fi
21903
21904
21905if test "$enable_installed" = 'yes'; then
21906
cristy8b350f62009-11-15 23:12:43 +000021907$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021908
21909else
21910 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21911fi
21912
21913# Permit enciphering and deciphering image pixels.
21914# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021915if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021916 enableval=$enable_cipher; enable_cipher=$enableval
21917else
21918 enable_cipher='yes'
21919fi
21920
21921
21922if test "$enable_cipher" = 'yes'; then
21923
cristy8b350f62009-11-15 23:12:43 +000021924$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021925
21926fi
21927
cristy6e3607c2011-09-13 13:59:17 +000021928# Build a zero-configuration version of ImageMagick.
21929# Check whether --enable-zero-configuration was given.
21930if test "${enable_zero_configuration+set}" = set; then :
21931 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021932else
cristy6e3607c2011-09-13 13:59:17 +000021933 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021934fi
21935
21936
cristy6e3607c2011-09-13 13:59:17 +000021937if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021938
cristy6e3607c2011-09-13 13:59:17 +000021939$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021940
cristy81af5702011-09-13 14:20:58 +000021941 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021942fi
21943
21944# Build a high dynamic range version of ImageMagick.
21945# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021946if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021947 enableval=$enable_hdri; enable_hdri=$enableval
21948else
cristy191c0b72012-08-12 16:29:52 +000021949 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021950fi
21951
21952
21953MAGICK_HDRI=""
21954if test "$enable_hdri" = 'yes'; then
21955 MAGICK_HDRI="HDRI"
21956
cristy8b350f62009-11-15 23:12:43 +000021957$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021958
cristyfd9dcd42010-08-08 18:07:02 +000021959 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021960fi
21961
cristy3ed852e2009-09-05 21:47:34 +000021962# Build a version of ImageMagick with assert statements.
21963# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021964if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021965 enableval=$enable_assert; enable_assert=$enableval
21966else
21967 enable_assert='yes'
21968fi
21969
21970
21971if test "$enable_assert" = 'no'; then
21972
cristy8b350f62009-11-15 23:12:43 +000021973$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021974
21975fi
21976
cristya448bd22011-10-14 12:38:13 +000021977# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021978
21979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21980$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21981 # Check whether --enable-maintainer-mode was given.
21982if test "${enable_maintainer_mode+set}" = set; then :
21983 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21984else
21985 USE_MAINTAINER_MODE=no
21986fi
21987
21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21989$as_echo "$USE_MAINTAINER_MODE" >&6; }
21990 if test $USE_MAINTAINER_MODE = yes; then
21991 MAINTAINER_MODE_TRUE=
21992 MAINTAINER_MODE_FALSE='#'
21993else
21994 MAINTAINER_MODE_TRUE='#'
21995 MAINTAINER_MODE_FALSE=
21996fi
21997
21998 MAINT=$MAINTAINER_MODE_TRUE
21999
22000
cristy3ed852e2009-09-05 21:47:34 +000022001
cristy3ed852e2009-09-05 21:47:34 +000022002# Enable ccmalloc memory debugging support
22003# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000022004if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022005 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
22006else
22007 enable_ccmalloc='no'
22008fi
22009
22010
22011# Enable Electric Fence memory debugging support
22012# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000022013if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022014 enableval=$enable_efence; enable_efence=$enableval
22015else
22016 enable_efence='no'
22017fi
22018
22019
22020# Enable prof-based profiling support
22021# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000022022if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022023 enableval=$enable_prof; enable_prof=$enableval
22024else
22025 enable_prof='no'
22026fi
22027
22028
22029# Enable gprof-based profiling support
22030# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000022031if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022032 enableval=$enable_gprof; enable_gprof=$enableval
22033else
22034 enable_gprof='no'
22035fi
22036
22037
22038# Enable gcov-based profiling support
22039# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000022040if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022041 enableval=$enable_gcov; enable_gcov=$enableval
22042else
22043 enable_gcov='no'
22044fi
22045
22046
22047enable_profiling='no'
22048if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
22049 enable_profiling='yes'
22050 if test "$libtool_build_shared_libs" = 'yes'; then
22051 echo "Warning: Can not profile code using shared libraries"
22052 fi
22053fi
22054
22055# Magick API method prefix
22056
22057# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000022058if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000022059 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000022060else
cristyfc3d0222012-02-07 15:05:57 +000022061 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000022062fi
22063
22064
cristyfc3d0222012-02-07 15:05:57 +000022065if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000022066
22067cat >>confdefs.h <<_ACEOF
22068#define NAMESPACE_PREFIX $with_method_prefix
22069_ACEOF
22070
cristyfc3d0222012-02-07 15:05:57 +000022071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022072fi
22073
cristy71d8c202012-03-20 17:05:01 +000022074# Enable legacy support (default no)
22075# Check whether --enable-legacy-support was given.
22076if test "${enable_legacy_support+set}" = set; then :
22077 enableval=$enable_legacy_support; with_legacy_support=$enableval
22078else
22079 with_legacy_support='no'
22080fi
22081
22082 if test "$with_legacy_support" != 'no'; then
22083 LEGACY_SUPPORT_TRUE=
22084 LEGACY_SUPPORT_FALSE='#'
22085else
22086 LEGACY_SUPPORT_TRUE='#'
22087 LEGACY_SUPPORT_FALSE=
22088fi
22089
22090
cristy3ed852e2009-09-05 21:47:34 +000022091# Number of bits in a Quantum
22092
22093# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022094if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022095 withval=$with_quantum_depth; with_quantum_depth=$withval
22096else
22097 with_quantum_depth=16
22098fi
22099
22100
22101if test "$with_quantum_depth" != '8'; then
22102 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22103fi
22104
22105case "${with_quantum_depth}" in
22106 8 ) ;;
22107 16 ) ;;
22108 32 ) ;;
22109 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022110 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022111esac
22112QUANTUM_DEPTH="$with_quantum_depth"
22113
22114cat >>confdefs.h <<_ACEOF
22115#define QUANTUM_DEPTH $QUANTUM_DEPTH
22116_ACEOF
22117
22118
22119# Set pixel cache threshold
22120
22121# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022122if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022123 withval=$with_cache; with_cache=$withval
22124else
22125 with_cache=''
22126fi
22127
22128
22129if test "$with_cache" != ''; then
22130
22131cat >>confdefs.h <<_ACEOF
22132#define PixelCacheThreshold $with_cache
22133_ACEOF
22134
22135 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22136fi
22137
22138# Disable/Enable support for full delegate paths
22139
22140# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022141if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022142 withval=$with_frozenpaths; with_frozenpaths=$withval
22143else
22144 with_frozenpaths='no'
22145fi
22146
22147
22148# Enable build/install of Magick++
22149
22150# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022151if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022152 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22153else
22154 with_magick_plus_plus='yes'
22155fi
22156
22157
cristy3a75f062012-09-08 23:29:40 +000022158# Encode the this name into the shared library.
22159
22160# Check whether --with-package-release-name was given.
22161if test "${with_package_release_name+set}" = set; then :
22162 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22163fi
22164
22165
22166
cristy3ed852e2009-09-05 21:47:34 +000022167# Disable build/install of PerlMagick.
22168
22169# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022170if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022171 withval=$with_perl; with_perl=$withval
22172else
cristyb5f4e2f2010-04-25 00:49:11 +000022173 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022174fi
22175
22176
22177# Options to pass when configuring PerlMagick
22178
22179# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022180if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022181 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022182fi
22183
22184
cristy3ed852e2009-09-05 21:47:34 +000022185
22186# Enable umem, object-caching memory allocation library.
22187
22188# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022189if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022190 withval=$with_umem; with_umem=$withval
22191else
22192 with_umem='no'
22193fi
22194
22195if test "$with_umem" != 'yes' ; then
22196 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22197fi
22198
22199#
22200# Specify path to shared libstdc++ if not in normal location
22201#
22202
22203# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022204if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022205 withval=$with_libstdc; with_libstdc=$withval
22206else
22207 with_libstdc=''
22208fi
22209
22210
22211if test "$with_libstdc" != ''; then
22212 if test -d "$with_libstdc"; then
22213 LIBSTDCLDFLAGS="-L$with_libstdc"
22214 fi
22215fi
22216
22217
22218# Does gcc required -traditional?
22219if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022221$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022222if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022223 $as_echo_n "(cached) " >&6
22224else
22225 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022227/* end confdefs.h. */
22228#include <sgtty.h>
22229Autoconf TIOCGETP
22230_ACEOF
22231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022232 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022233 ac_cv_prog_gcc_traditional=yes
22234else
22235 ac_cv_prog_gcc_traditional=no
22236fi
22237rm -f conftest*
22238
22239
22240 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022242/* end confdefs.h. */
22243#include <termio.h>
22244Autoconf TCGETA
22245_ACEOF
22246if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022247 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022248 ac_cv_prog_gcc_traditional=yes
22249fi
22250rm -f conftest*
22251
22252 fi
22253fi
cristy8b350f62009-11-15 23:12:43 +000022254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022255$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22256 if test $ac_cv_prog_gcc_traditional = yes; then
22257 CC="$CC -traditional"
22258 fi
22259fi
22260
22261
22262########
22263#
22264# Set defines required to build DLLs and modules using MinGW
22265#
22266########
22267# These options are set for multi-thread DLL module build
22268# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22269# module: _DLL
22270# executable/Magick++: _DLL _MAGICKMOD_
22271MODULE_EXTRA_CPPFLAGS=''
22272LIBRARY_EXTRA_CPPFLAGS=''
22273if test "${native_win32_build}" = 'yes'; then
22274 if test "${libtool_build_shared_libs}" = 'yes'; then
22275 CPPFLAGS="$CPPFLAGS -D_DLL"
22276 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22277 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22278 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22279 if test "$with_modules" = 'yes'; then
22280 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22281 else
22282 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22283 fi
22284 else
22285 CPPFLAGS="$CPPFLAGS -D_LIB"
22286 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22287 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22288 fi
22289 if test "$with_threads" = 'yes'; then
22290 CPPFLAGS="$CPPFLAGS -D_MT"
22291 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22292 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22293 fi
22294fi
22295
22296
22297
22298# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022300$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022301if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022302 $as_echo_n "(cached) " >&6
22303else
cristy8b350f62009-11-15 23:12:43 +000022304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022305/* end confdefs.h. */
22306#include <stdlib.h>
22307#include <stdarg.h>
22308#include <string.h>
22309#include <float.h>
22310
22311int
22312main ()
22313{
22314
22315 ;
22316 return 0;
22317}
22318_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022319if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022320 ac_cv_header_stdc=yes
22321else
cristy8b350f62009-11-15 23:12:43 +000022322 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022323fi
cristy3ed852e2009-09-05 21:47:34 +000022324rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22325
22326if test $ac_cv_header_stdc = yes; then
22327 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022329/* end confdefs.h. */
22330#include <string.h>
22331
22332_ACEOF
22333if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022334 $EGREP "memchr" >/dev/null 2>&1; then :
22335
cristy3ed852e2009-09-05 21:47:34 +000022336else
22337 ac_cv_header_stdc=no
22338fi
22339rm -f conftest*
22340
22341fi
22342
22343if test $ac_cv_header_stdc = yes; then
22344 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022346/* end confdefs.h. */
22347#include <stdlib.h>
22348
22349_ACEOF
22350if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022351 $EGREP "free" >/dev/null 2>&1; then :
22352
cristy3ed852e2009-09-05 21:47:34 +000022353else
22354 ac_cv_header_stdc=no
22355fi
22356rm -f conftest*
22357
22358fi
22359
22360if test $ac_cv_header_stdc = yes; then
22361 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022362 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022363 :
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#include <ctype.h>
22368#include <stdlib.h>
22369#if ((' ' & 0x0FF) == 0x020)
22370# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22371# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22372#else
22373# define ISLOWER(c) \
22374 (('a' <= (c) && (c) <= 'i') \
22375 || ('j' <= (c) && (c) <= 'r') \
22376 || ('s' <= (c) && (c) <= 'z'))
22377# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22378#endif
22379
22380#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22381int
22382main ()
22383{
22384 int i;
22385 for (i = 0; i < 256; i++)
22386 if (XOR (islower (i), ISLOWER (i))
22387 || toupper (i) != TOUPPER (i))
22388 return 2;
22389 return 0;
22390}
22391_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022392if ac_fn_c_try_run "$LINENO"; then :
22393
cristy3ed852e2009-09-05 21:47:34 +000022394else
cristy8b350f62009-11-15 23:12:43 +000022395 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022396fi
cristy8b350f62009-11-15 23:12:43 +000022397rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22398 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022399fi
22400
cristy3ed852e2009-09-05 21:47:34 +000022401fi
22402fi
cristy8b350f62009-11-15 23:12:43 +000022403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022404$as_echo "$ac_cv_header_stdc" >&6; }
22405if test $ac_cv_header_stdc = yes; then
22406
cristy8b350f62009-11-15 23:12:43 +000022407$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022408
22409fi
22410
22411if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022412 { $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 +000022413 header files. Compilation cannot proceed. Please install the ANSI C
22414 headers and rerun this script." >&5
22415$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22416 header files. Compilation cannot proceed. Please install the ANSI C
22417 headers and rerun this script." >&2;};
22418fi
cristya0b81c32010-01-22 02:54:33 +000022419
22420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22421$as_echo_n "checking whether to enable assertions... " >&6; }
22422 # Check whether --enable-assert was given.
22423if test "${enable_assert+set}" = set; then :
22424 enableval=$enable_assert; ac_enable_assert=$enableval
22425 if test "x$enableval" = xno; then :
22426
22427$as_echo "#define NDEBUG 1" >>confdefs.h
22428
22429elif test "x$enableval" != xyes; then :
22430 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22431$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22432 ac_enable_assert=yes
22433fi
22434else
22435 ac_enable_assert=yes
22436fi
22437
22438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22439$as_echo "$ac_enable_assert" >&6; }
22440
cristy3ed852e2009-09-05 21:47:34 +000022441ac_header_dirent=no
22442for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22443 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022445$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022446if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022447 $as_echo_n "(cached) " >&6
22448else
cristy8b350f62009-11-15 23:12:43 +000022449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022450/* end confdefs.h. */
22451#include <sys/types.h>
22452#include <$ac_hdr>
22453
22454int
22455main ()
22456{
22457if ((DIR *) 0)
22458return 0;
22459 ;
22460 return 0;
22461}
22462_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022463if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022464 eval "$as_ac_Header=yes"
22465else
cristy8b350f62009-11-15 23:12:43 +000022466 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022467fi
cristy3ed852e2009-09-05 21:47:34 +000022468rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22469fi
cristy8b350f62009-11-15 23:12:43 +000022470eval ac_res=\$$as_ac_Header
22471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022472$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022473if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 cat >>confdefs.h <<_ACEOF
22475#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22476_ACEOF
22477
22478ac_header_dirent=$ac_hdr; break
22479fi
22480
22481done
22482# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22483if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022485$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022486if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022487 $as_echo_n "(cached) " >&6
22488else
22489 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022490cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022491/* end confdefs.h. */
22492
22493/* Override any GCC internal prototype to avoid an error.
22494 Use char because int might match the return type of a GCC
22495 builtin and then its argument prototype would still apply. */
22496#ifdef __cplusplus
22497extern "C"
22498#endif
22499char opendir ();
22500int
22501main ()
22502{
22503return opendir ();
22504 ;
22505 return 0;
22506}
22507_ACEOF
22508for ac_lib in '' dir; do
22509 if test -z "$ac_lib"; then
22510 ac_res="none required"
22511 else
22512 ac_res=-l$ac_lib
22513 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22514 fi
cristy8b350f62009-11-15 23:12:43 +000022515 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022516 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022517fi
cristy8b350f62009-11-15 23:12:43 +000022518rm -f core conftest.err conftest.$ac_objext \
22519 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022520 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022521 break
22522fi
22523done
cristyda16f162011-02-19 23:52:17 +000022524if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022525
cristy3ed852e2009-09-05 21:47:34 +000022526else
22527 ac_cv_search_opendir=no
22528fi
22529rm conftest.$ac_ext
22530LIBS=$ac_func_search_save_LIBS
22531fi
cristy8b350f62009-11-15 23:12:43 +000022532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022533$as_echo "$ac_cv_search_opendir" >&6; }
22534ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022535if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22537
22538fi
22539
22540else
cristy8b350f62009-11-15 23:12:43 +000022541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022542$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022543if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022544 $as_echo_n "(cached) " >&6
22545else
22546 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022547cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022548/* end confdefs.h. */
22549
22550/* Override any GCC internal prototype to avoid an error.
22551 Use char because int might match the return type of a GCC
22552 builtin and then its argument prototype would still apply. */
22553#ifdef __cplusplus
22554extern "C"
22555#endif
22556char opendir ();
22557int
22558main ()
22559{
22560return opendir ();
22561 ;
22562 return 0;
22563}
22564_ACEOF
22565for ac_lib in '' x; do
22566 if test -z "$ac_lib"; then
22567 ac_res="none required"
22568 else
22569 ac_res=-l$ac_lib
22570 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22571 fi
cristy8b350f62009-11-15 23:12:43 +000022572 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022573 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022574fi
cristy8b350f62009-11-15 23:12:43 +000022575rm -f core conftest.err conftest.$ac_objext \
22576 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022577 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022578 break
22579fi
22580done
cristyda16f162011-02-19 23:52:17 +000022581if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022582
cristy3ed852e2009-09-05 21:47:34 +000022583else
22584 ac_cv_search_opendir=no
22585fi
22586rm conftest.$ac_ext
22587LIBS=$ac_func_search_save_LIBS
22588fi
cristy8b350f62009-11-15 23:12:43 +000022589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022590$as_echo "$ac_cv_search_opendir" >&6; }
22591ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022592if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022593 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22594
22595fi
22596
22597fi
22598
22599
22600# Check additional headers
cristy58945e42012-09-04 14:33:54 +000022601for 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 sun_prefetch.h stdarg.h sys/ipc.h sys/mman.h sys/resource.h sys/syslimits.h sys/time.h sys/timeb.h sys/times.h sys/wait.h wchar.h xlocale.h
cristy8b350f62009-11-15 23:12:43 +000022602do :
22603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22604ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022605if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022606 cat >>confdefs.h <<_ACEOF
22607#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22608_ACEOF
22609
22610fi
22611
22612done
22613
22614
22615########
22616#
22617# Checks for typedefs, structures, and compiler characteristics.
22618#
22619########
22620
cristy8b350f62009-11-15 23:12:43 +000022621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022622$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022623if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022624 $as_echo_n "(cached) " >&6
22625else
cristy8b350f62009-11-15 23:12:43 +000022626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022627/* end confdefs.h. */
22628
cristy14fefe52012-05-21 00:59:18 +000022629 #include <stdbool.h>
22630 #ifndef bool
22631 "error: bool is not defined"
22632 #endif
22633 #ifndef false
22634 "error: false is not defined"
22635 #endif
22636 #if false
22637 "error: false is not 0"
22638 #endif
22639 #ifndef true
22640 "error: true is not defined"
22641 #endif
22642 #if true != 1
22643 "error: true is not 1"
22644 #endif
22645 #ifndef __bool_true_false_are_defined
22646 "error: __bool_true_false_are_defined is not defined"
22647 #endif
cristy3ed852e2009-09-05 21:47:34 +000022648
cristy14fefe52012-05-21 00:59:18 +000022649 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022650
cristy14fefe52012-05-21 00:59:18 +000022651 char a[true == 1 ? 1 : -1];
22652 char b[false == 0 ? 1 : -1];
22653 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22654 char d[(bool) 0.5 == true ? 1 : -1];
22655 /* See body of main program for 'e'. */
22656 char f[(_Bool) 0.0 == false ? 1 : -1];
22657 char g[true];
22658 char h[sizeof (_Bool)];
22659 char i[sizeof s.t];
22660 enum { j = false, k = true, l = false * true, m = true * 256 };
22661 /* The following fails for
22662 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22663 _Bool n[m];
22664 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22665 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22666 /* Catch a bug in an HP-UX C compiler. See
22667 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22668 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22669 */
22670 _Bool q = true;
22671 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022672
22673int
22674main ()
22675{
22676
cristy14fefe52012-05-21 00:59:18 +000022677 bool e = &s;
22678 *pq |= q;
22679 *pq |= ! q;
22680 /* Refer to every declared value, to avoid compiler optimizations. */
22681 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22682 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022683
22684 ;
22685 return 0;
22686}
22687_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022688if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022689 ac_cv_header_stdbool_h=yes
22690else
cristy8b350f62009-11-15 23:12:43 +000022691 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022692fi
cristy3ed852e2009-09-05 21:47:34 +000022693rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22694fi
cristy8b350f62009-11-15 23:12:43 +000022695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022696$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022697 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022698if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022699
22700cat >>confdefs.h <<_ACEOF
22701#define HAVE__BOOL 1
22702_ACEOF
22703
22704
22705fi
22706
cristy14fefe52012-05-21 00:59:18 +000022707
cristy3ed852e2009-09-05 21:47:34 +000022708if test $ac_cv_header_stdbool_h = yes; then
22709
cristy8b350f62009-11-15 23:12:43 +000022710$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022711
22712fi
22713
cristy8b350f62009-11-15 23:12:43 +000022714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022715$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022716if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022717 $as_echo_n "(cached) " >&6
22718else
cristy8b350f62009-11-15 23:12:43 +000022719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022720/* end confdefs.h. */
22721
22722int
22723main ()
22724{
22725
22726volatile int x;
22727int * volatile y = (int *) 0;
22728return !x && !y;
22729 ;
22730 return 0;
22731}
22732_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022733if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022734 ac_cv_c_volatile=yes
22735else
cristy8b350f62009-11-15 23:12:43 +000022736 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022737fi
cristy3ed852e2009-09-05 21:47:34 +000022738rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22739fi
cristy8b350f62009-11-15 23:12:43 +000022740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022741$as_echo "$ac_cv_c_volatile" >&6; }
22742if test $ac_cv_c_volatile = no; then
22743
cristy8b350f62009-11-15 23:12:43 +000022744$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022745
22746fi
22747
cristy8b350f62009-11-15 23:12:43 +000022748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022749$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022750if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022751 $as_echo_n "(cached) " >&6
22752else
cristy8b350f62009-11-15 23:12:43 +000022753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022754/* end confdefs.h. */
22755#define x(y) #y
22756
22757char *s = x(teststring);
22758_ACEOF
22759if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022760 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022761 ac_cv_c_stringize=no
22762else
22763 ac_cv_c_stringize=yes
22764fi
22765rm -f conftest*
22766
22767fi
cristy8b350f62009-11-15 23:12:43 +000022768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022769$as_echo "$ac_cv_c_stringize" >&6; }
22770if test $ac_cv_c_stringize = yes; then
22771
cristy8b350f62009-11-15 23:12:43 +000022772$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022773
22774fi
22775
cristy8b350f62009-11-15 23:12:43 +000022776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022777$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022778if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022779 $as_echo_n "(cached) " >&6
22780else
cristy8b350f62009-11-15 23:12:43 +000022781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022782/* end confdefs.h. */
22783#include <sys/types.h>
22784#include <sys/stat.h>
22785
22786#if defined S_ISBLK && defined S_IFDIR
22787extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22788#endif
22789
22790#if defined S_ISBLK && defined S_IFCHR
22791extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22792#endif
22793
22794#if defined S_ISLNK && defined S_IFREG
22795extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22796#endif
22797
22798#if defined S_ISSOCK && defined S_IFREG
22799extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22800#endif
22801
22802_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022803if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022804 ac_cv_header_stat_broken=no
22805else
cristy8b350f62009-11-15 23:12:43 +000022806 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000022807fi
cristy3ed852e2009-09-05 21:47:34 +000022808rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22809fi
cristy8b350f62009-11-15 23:12:43 +000022810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo "$ac_cv_header_stat_broken" >&6; }
22812if test $ac_cv_header_stat_broken = yes; then
22813
cristy8b350f62009-11-15 23:12:43 +000022814$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022815
22816fi
22817
cristy8b350f62009-11-15 23:12:43 +000022818{ $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 +000022819$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022820if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022821 $as_echo_n "(cached) " >&6
22822else
cristy8b350f62009-11-15 23:12:43 +000022823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022824/* end confdefs.h. */
22825#include <sys/types.h>
22826#include <sys/time.h>
22827#include <time.h>
22828
22829int
22830main ()
22831{
22832if ((struct tm *) 0)
22833return 0;
22834 ;
22835 return 0;
22836}
22837_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022838if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022839 ac_cv_header_time=yes
22840else
cristy8b350f62009-11-15 23:12:43 +000022841 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022842fi
cristy3ed852e2009-09-05 21:47:34 +000022843rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22844fi
cristy8b350f62009-11-15 23:12:43 +000022845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022846$as_echo "$ac_cv_header_time" >&6; }
22847if test $ac_cv_header_time = yes; then
22848
cristy8b350f62009-11-15 23:12:43 +000022849$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022850
22851fi
22852
cristy8b350f62009-11-15 23:12:43 +000022853{ $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 +000022854$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022855if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022856 $as_echo_n "(cached) " >&6
22857else
cristy8b350f62009-11-15 23:12:43 +000022858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022859/* end confdefs.h. */
22860#include <sys/types.h>
22861#include <time.h>
22862
22863int
22864main ()
22865{
22866struct tm tm;
22867 int *p = &tm.tm_sec;
22868 return !p;
22869 ;
22870 return 0;
22871}
22872_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022873if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022874 ac_cv_struct_tm=time.h
22875else
cristy8b350f62009-11-15 23:12:43 +000022876 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000022877fi
cristy3ed852e2009-09-05 21:47:34 +000022878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22879fi
cristy8b350f62009-11-15 23:12:43 +000022880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022881$as_echo "$ac_cv_struct_tm" >&6; }
22882if test $ac_cv_struct_tm = sys/time.h; then
22883
cristy8b350f62009-11-15 23:12:43 +000022884$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022885
22886fi
22887
cristy92703d82010-04-26 00:18:18 +000022888ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22889#include <$ac_cv_struct_tm>
22890
22891"
cristyda16f162011-02-19 23:52:17 +000022892if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022893
22894cat >>confdefs.h <<_ACEOF
22895#define HAVE_STRUCT_TM_TM_ZONE 1
22896_ACEOF
22897
22898
22899fi
22900
22901if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22902
22903$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22904
22905else
22906 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22907"
cristyda16f162011-02-19 23:52:17 +000022908if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022909 ac_have_decl=1
22910else
22911 ac_have_decl=0
22912fi
22913
22914cat >>confdefs.h <<_ACEOF
22915#define HAVE_DECL_TZNAME $ac_have_decl
22916_ACEOF
22917
22918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22919$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022920if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022921 $as_echo_n "(cached) " >&6
22922else
22923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22924/* end confdefs.h. */
22925#include <time.h>
22926#if !HAVE_DECL_TZNAME
22927extern char *tzname[];
22928#endif
22929
22930int
22931main ()
22932{
22933return tzname[0][0];
22934 ;
22935 return 0;
22936}
22937_ACEOF
22938if ac_fn_c_try_link "$LINENO"; then :
22939 ac_cv_var_tzname=yes
22940else
22941 ac_cv_var_tzname=no
22942fi
22943rm -f core conftest.err conftest.$ac_objext \
22944 conftest$ac_exeext conftest.$ac_ext
22945fi
22946{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22947$as_echo "$ac_cv_var_tzname" >&6; }
22948 if test $ac_cv_var_tzname = yes; then
22949
22950$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22951
22952 fi
22953fi
22954
cristy8b350f62009-11-15 23:12:43 +000022955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022956$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022957if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022958 $as_echo_n "(cached) " >&6
22959else
22960 echo '#! /bin/cat
22961exit 69
22962' >conftest
22963chmod u+x conftest
22964(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22965if test $? -ne 69; then
22966 ac_cv_sys_interpreter=yes
22967else
22968 ac_cv_sys_interpreter=no
22969fi
22970rm -f conftest
22971fi
cristy8b350f62009-11-15 23:12:43 +000022972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022973$as_echo "$ac_cv_sys_interpreter" >&6; }
22974interpval=$ac_cv_sys_interpreter
22975
22976
cristy3ed852e2009-09-05 21:47:34 +000022977# If the C compiler supports the keyword inline, do nothing. Otherwise
22978# define inline to __inline__ or __inline if it accepts one of those,
22979# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022981$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022982if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022983 $as_echo_n "(cached) " >&6
22984else
22985 ac_cv_c_inline=no
22986for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022988/* end confdefs.h. */
22989#ifndef __cplusplus
22990typedef int foo_t;
22991static $ac_kw foo_t static_foo () {return 0; }
22992$ac_kw foo_t foo () {return 0; }
22993#endif
22994
22995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022996if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022997 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022998fi
cristy3ed852e2009-09-05 21:47:34 +000022999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23000 test "$ac_cv_c_inline" != no && break
23001done
23002
23003fi
cristy8b350f62009-11-15 23:12:43 +000023004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000023005$as_echo "$ac_cv_c_inline" >&6; }
23006
cristy3ed852e2009-09-05 21:47:34 +000023007case $ac_cv_c_inline in
23008 inline | yes) ;;
23009 *)
23010 case $ac_cv_c_inline in
23011 no) ac_val=;;
23012 *) ac_val=$ac_cv_c_inline;;
23013 esac
23014 cat >>confdefs.h <<_ACEOF
23015#ifndef __cplusplus
23016#define inline $ac_val
23017#endif
23018_ACEOF
23019 ;;
23020esac
23021
23022
23023# If the C compiler supports the keyword restrict, do nothing. Otherwise
23024# define restrict to __restrict__ or __restrict if it accepts one of those,
23025# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000023026{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000023027$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023028if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023029 $as_echo_n "(cached) " >&6
23030else
23031 ac_cv_c_restrict=no
23032 # The order here caters to the fact that C++ does not require restrict.
23033 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000023034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023035/* end confdefs.h. */
23036typedef int * int_ptr;
23037 int foo (int_ptr $ac_kw ip) {
23038 return ip[0];
23039 }
23040int
23041main ()
23042{
23043int s[1];
23044 int * $ac_kw t = s;
23045 t[0] = 0;
23046 return foo(t)
23047 ;
23048 return 0;
23049}
23050_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023051if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023052 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000023053fi
cristy3ed852e2009-09-05 21:47:34 +000023054rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23055 test "$ac_cv_c_restrict" != no && break
23056 done
23057
23058fi
cristy8b350f62009-11-15 23:12:43 +000023059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000023060$as_echo "$ac_cv_c_restrict" >&6; }
23061
cristy3ed852e2009-09-05 21:47:34 +000023062 case $ac_cv_c_restrict in
23063 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000023064 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023065 ;;
23066 *) cat >>confdefs.h <<_ACEOF
23067#define restrict $ac_cv_c_restrict
23068_ACEOF
23069 ;;
23070 esac
23071
23072
23073# If words are stored with the most significant byte first (like
23074# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023076$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023077if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023078 $as_echo_n "(cached) " >&6
23079else
23080 ac_cv_c_bigendian=unknown
23081 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023083/* end confdefs.h. */
23084#ifndef __APPLE_CC__
23085 not a universal capable compiler
23086 #endif
23087 typedef int dummy;
23088
23089_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023090if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023091
23092 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023093 # there are at least two -arch flags with different values.
23094 ac_arch=
23095 ac_prev=
23096 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23097 if test -n "$ac_prev"; then
23098 case $ac_word in
23099 i?86 | x86_64 | ppc | ppc64)
23100 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23101 ac_arch=$ac_word
23102 else
23103 ac_cv_c_bigendian=universal
23104 break
23105 fi
23106 ;;
23107 esac
23108 ac_prev=
23109 elif test "x$ac_word" = "x-arch"; then
23110 ac_prev=arch
23111 fi
23112 done
cristy3ed852e2009-09-05 21:47:34 +000023113fi
cristy3ed852e2009-09-05 21:47:34 +000023114rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23115 if test $ac_cv_c_bigendian = unknown; then
23116 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023118/* end confdefs.h. */
23119#include <sys/types.h>
23120 #include <sys/param.h>
23121
23122int
23123main ()
23124{
23125#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23126 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23127 && LITTLE_ENDIAN)
23128 bogus endian macros
23129 #endif
23130
23131 ;
23132 return 0;
23133}
23134_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023135if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023136 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023138/* end confdefs.h. */
23139#include <sys/types.h>
23140 #include <sys/param.h>
23141
23142int
23143main ()
23144{
23145#if BYTE_ORDER != BIG_ENDIAN
23146 not big endian
23147 #endif
23148
23149 ;
23150 return 0;
23151}
23152_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023153if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023154 ac_cv_c_bigendian=yes
23155else
cristy8b350f62009-11-15 23:12:43 +000023156 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023157fi
cristy3ed852e2009-09-05 21:47:34 +000023158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023159fi
cristy3ed852e2009-09-05 21:47:34 +000023160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23161 fi
23162 if test $ac_cv_c_bigendian = unknown; then
23163 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023165/* end confdefs.h. */
23166#include <limits.h>
23167
23168int
23169main ()
23170{
23171#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23172 bogus endian macros
23173 #endif
23174
23175 ;
23176 return 0;
23177}
23178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023179if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023180 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023182/* end confdefs.h. */
23183#include <limits.h>
23184
23185int
23186main ()
23187{
23188#ifndef _BIG_ENDIAN
23189 not big endian
23190 #endif
23191
23192 ;
23193 return 0;
23194}
23195_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023196if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023197 ac_cv_c_bigendian=yes
23198else
cristy8b350f62009-11-15 23:12:43 +000023199 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023200fi
cristy3ed852e2009-09-05 21:47:34 +000023201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023202fi
cristy3ed852e2009-09-05 21:47:34 +000023203rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23204 fi
23205 if test $ac_cv_c_bigendian = unknown; then
23206 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023207 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023208 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023210/* end confdefs.h. */
23211short int ascii_mm[] =
23212 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23213 short int ascii_ii[] =
23214 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23215 int use_ascii (int i) {
23216 return ascii_mm[i] + ascii_ii[i];
23217 }
23218 short int ebcdic_ii[] =
23219 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23220 short int ebcdic_mm[] =
23221 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23222 int use_ebcdic (int i) {
23223 return ebcdic_mm[i] + ebcdic_ii[i];
23224 }
23225 extern int foo;
23226
23227int
23228main ()
23229{
23230return use_ascii (foo) == use_ebcdic (foo);
23231 ;
23232 return 0;
23233}
23234_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023235if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023236 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23237 ac_cv_c_bigendian=yes
23238 fi
23239 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23240 if test "$ac_cv_c_bigendian" = unknown; then
23241 ac_cv_c_bigendian=no
23242 else
23243 # finding both strings is unlikely to happen, but who knows?
23244 ac_cv_c_bigendian=unknown
23245 fi
23246 fi
cristy3ed852e2009-09-05 21:47:34 +000023247fi
cristy3ed852e2009-09-05 21:47:34 +000023248rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23249else
cristy8b350f62009-11-15 23:12:43 +000023250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023251/* end confdefs.h. */
23252$ac_includes_default
23253int
23254main ()
23255{
23256
23257 /* Are we little or big endian? From Harbison&Steele. */
23258 union
23259 {
23260 long int l;
23261 char c[sizeof (long int)];
23262 } u;
23263 u.l = 1;
23264 return u.c[sizeof (long int) - 1] == 1;
23265
23266 ;
23267 return 0;
23268}
23269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023270if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023271 ac_cv_c_bigendian=no
23272else
cristy8b350f62009-11-15 23:12:43 +000023273 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023274fi
cristy8b350f62009-11-15 23:12:43 +000023275rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23276 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023277fi
23278
cristy3ed852e2009-09-05 21:47:34 +000023279 fi
23280fi
cristy8b350f62009-11-15 23:12:43 +000023281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023282$as_echo "$ac_cv_c_bigendian" >&6; }
23283 case $ac_cv_c_bigendian in #(
23284 yes)
cristy8b350f62009-11-15 23:12:43 +000023285 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023286;; #(
23287 no)
23288 ;; #(
23289 universal)
23290
cristy8b350f62009-11-15 23:12:43 +000023291$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023292
23293 ;; #(
23294 *)
cristy98dddb52010-11-04 00:30:15 +000023295 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023296 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023297 esac
23298
23299
cristy501c8042011-05-26 17:46:28 +000023300# Define to a suitable type, if standard headers do not define it.
23301ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23302case $ac_cv_c_int8_t in #(
23303 no|yes) ;; #(
23304 *)
cristy3ed852e2009-09-05 21:47:34 +000023305
23306cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023307#define int8_t $ac_cv_c_int8_t
23308_ACEOF
23309;;
23310esac
23311
23312ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23313case $ac_cv_c_int16_t in #(
23314 no|yes) ;; #(
23315 *)
23316
23317cat >>confdefs.h <<_ACEOF
23318#define int16_t $ac_cv_c_int16_t
23319_ACEOF
23320;;
23321esac
23322
23323ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23324case $ac_cv_c_int32_t in #(
23325 no|yes) ;; #(
23326 *)
23327
23328cat >>confdefs.h <<_ACEOF
23329#define int32_t $ac_cv_c_int32_t
23330_ACEOF
23331;;
23332esac
23333
23334ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23335case $ac_cv_c_int64_t in #(
23336 no|yes) ;; #(
23337 *)
23338
23339cat >>confdefs.h <<_ACEOF
23340#define int64_t $ac_cv_c_int64_t
23341_ACEOF
23342;;
23343esac
23344
23345
23346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23347$as_echo_n "checking for long long int... " >&6; }
23348if ${ac_cv_type_long_long_int+:} false; then :
23349 $as_echo_n "(cached) " >&6
23350else
23351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23352/* end confdefs.h. */
23353
23354 /* For now, do not test the preprocessor; as of 2007 there are too many
23355 implementations with broken preprocessors. Perhaps this can
23356 be revisited in 2012. In the meantime, code should not expect
23357 #if to work with literals wider than 32 bits. */
23358 /* Test literals. */
23359 long long int ll = 9223372036854775807ll;
23360 long long int nll = -9223372036854775807LL;
23361 unsigned long long int ull = 18446744073709551615ULL;
23362 /* Test constant expressions. */
23363 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23364 ? 1 : -1)];
23365 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23366 ? 1 : -1)];
23367 int i = 63;
23368int
23369main ()
23370{
23371/* Test availability of runtime routines for shift and division. */
23372 long long int llmax = 9223372036854775807ll;
23373 unsigned long long int ullmax = 18446744073709551615ull;
23374 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23375 | (llmax / ll) | (llmax % ll)
23376 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23377 | (ullmax / ull) | (ullmax % ull));
23378 ;
23379 return 0;
23380}
23381
23382_ACEOF
23383if ac_fn_c_try_link "$LINENO"; then :
23384 if test "$cross_compiling" = yes; then :
23385 ac_cv_type_long_long_int=yes
23386else
23387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23388/* end confdefs.h. */
23389#include <limits.h>
23390 #ifndef LLONG_MAX
23391 # define HALF \
23392 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23393 # define LLONG_MAX (HALF - 1 + HALF)
23394 #endif
23395int
23396main ()
23397{
23398long long int n = 1;
23399 int i;
23400 for (i = 0; ; i++)
23401 {
23402 long long int m = n << i;
23403 if (m >> i != n)
23404 return 1;
23405 if (LLONG_MAX / 2 < m)
23406 break;
23407 }
23408 return 0;
23409 ;
23410 return 0;
23411}
23412_ACEOF
23413if ac_fn_c_try_run "$LINENO"; then :
23414 ac_cv_type_long_long_int=yes
23415else
23416 ac_cv_type_long_long_int=no
23417fi
23418rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23419 conftest.$ac_objext conftest.beam conftest.$ac_ext
23420fi
23421
23422else
23423 ac_cv_type_long_long_int=no
23424fi
23425rm -f core conftest.err conftest.$ac_objext \
23426 conftest$ac_exeext conftest.$ac_ext
23427fi
23428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23429$as_echo "$ac_cv_type_long_long_int" >&6; }
23430 if test $ac_cv_type_long_long_int = yes; then
23431
23432$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23433
23434 fi
23435
23436
23437
23438 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23439if test "x$ac_cv_type_intmax_t" = xyes; then :
23440
23441$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23442
23443else
23444 test $ac_cv_type_long_long_int = yes \
23445 && ac_type='long long int' \
23446 || ac_type='long int'
23447
23448cat >>confdefs.h <<_ACEOF
23449#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023450_ACEOF
23451
23452fi
23453
23454
cristy501c8042011-05-26 17:46:28 +000023455
23456 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23457if test "x$ac_cv_type_intptr_t" = xyes; then :
23458
23459$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023460
cristy3ed852e2009-09-05 21:47:34 +000023461else
cristy501c8042011-05-26 17:46:28 +000023462 for ac_type in 'int' 'long int' 'long long int'; do
23463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23464/* end confdefs.h. */
23465$ac_includes_default
23466int
23467main ()
23468{
23469static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023470test_array [0] = 0;
23471return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023472
23473 ;
23474 return 0;
23475}
23476_ACEOF
23477if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023478
23479cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023480#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023481_ACEOF
23482
cristy501c8042011-05-26 17:46:28 +000023483 ac_type=
23484fi
23485rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23486 test -z "$ac_type" && break
23487 done
cristy3ed852e2009-09-05 21:47:34 +000023488fi
23489
23490
cristy3ed852e2009-09-05 21:47:34 +000023491
cristy501c8042011-05-26 17:46:28 +000023492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23493$as_echo_n "checking for long double... " >&6; }
23494if ${ac_cv_type_long_double+:} false; then :
23495 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023496else
cristy501c8042011-05-26 17:46:28 +000023497 if test "$GCC" = yes; then
23498 ac_cv_type_long_double=yes
23499 else
23500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23501/* end confdefs.h. */
23502/* The Stardent Vistra knows sizeof (long double), but does
23503 not support it. */
23504 long double foo = 0.0L;
23505int
23506main ()
23507{
23508static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23509 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023510test_array [0] = 0;
23511return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023512
cristy501c8042011-05-26 17:46:28 +000023513 ;
23514 return 0;
23515}
cristy3ed852e2009-09-05 21:47:34 +000023516_ACEOF
cristy501c8042011-05-26 17:46:28 +000023517if ac_fn_c_try_compile "$LINENO"; then :
23518 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023519else
cristy501c8042011-05-26 17:46:28 +000023520 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023521fi
cristy501c8042011-05-26 17:46:28 +000023522rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23523 fi
cristy3ed852e2009-09-05 21:47:34 +000023524fi
cristy501c8042011-05-26 17:46:28 +000023525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23526$as_echo "$ac_cv_type_long_double" >&6; }
23527 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023528
cristy501c8042011-05-26 17:46:28 +000023529$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023530
cristy501c8042011-05-26 17:46:28 +000023531 fi
23532
cristy3ed852e2009-09-05 21:47:34 +000023533
cristy8b350f62009-11-15 23:12:43 +000023534 { $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 +000023535$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023536if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023537 $as_echo_n "(cached) " >&6
23538else
cristy8b350f62009-11-15 23:12:43 +000023539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023540/* end confdefs.h. */
23541#include <float.h>
23542 long double const a[] =
23543 {
23544 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23545 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23546 };
23547 long double
23548 f (long double x)
23549 {
23550 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23551 + (x ? f (x) : 'c'));
23552 }
23553
23554int
23555main ()
23556{
23557static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23558 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23559 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23560 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23561 && (int) LDBL_EPSILON == 0
23562 )];
cristy14fefe52012-05-21 00:59:18 +000023563test_array [0] = 0;
23564return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023565
23566 ;
23567 return 0;
23568}
23569_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023570if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023571 ac_cv_type_long_double_wider=yes
23572else
cristy8b350f62009-11-15 23:12:43 +000023573 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023574fi
cristy3ed852e2009-09-05 21:47:34 +000023575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23576fi
cristy8b350f62009-11-15 23:12:43 +000023577{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023578$as_echo "$ac_cv_type_long_double_wider" >&6; }
23579 if test $ac_cv_type_long_double_wider = yes; then
23580
cristy8b350f62009-11-15 23:12:43 +000023581$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023582
23583 fi
23584
23585
cristy501c8042011-05-26 17:46:28 +000023586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23587$as_echo_n "checking for long long int... " >&6; }
23588if ${ac_cv_type_long_long_int+:} false; then :
23589 $as_echo_n "(cached) " >&6
23590else
23591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23592/* end confdefs.h. */
23593
23594 /* For now, do not test the preprocessor; as of 2007 there are too many
23595 implementations with broken preprocessors. Perhaps this can
23596 be revisited in 2012. In the meantime, code should not expect
23597 #if to work with literals wider than 32 bits. */
23598 /* Test literals. */
23599 long long int ll = 9223372036854775807ll;
23600 long long int nll = -9223372036854775807LL;
23601 unsigned long long int ull = 18446744073709551615ULL;
23602 /* Test constant expressions. */
23603 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23604 ? 1 : -1)];
23605 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23606 ? 1 : -1)];
23607 int i = 63;
23608int
23609main ()
23610{
23611/* Test availability of runtime routines for shift and division. */
23612 long long int llmax = 9223372036854775807ll;
23613 unsigned long long int ullmax = 18446744073709551615ull;
23614 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23615 | (llmax / ll) | (llmax % ll)
23616 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23617 | (ullmax / ull) | (ullmax % ull));
23618 ;
23619 return 0;
23620}
23621
23622_ACEOF
23623if ac_fn_c_try_link "$LINENO"; then :
23624 if test "$cross_compiling" = yes; then :
23625 ac_cv_type_long_long_int=yes
23626else
23627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23628/* end confdefs.h. */
23629#include <limits.h>
23630 #ifndef LLONG_MAX
23631 # define HALF \
23632 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23633 # define LLONG_MAX (HALF - 1 + HALF)
23634 #endif
23635int
23636main ()
23637{
23638long long int n = 1;
23639 int i;
23640 for (i = 0; ; i++)
23641 {
23642 long long int m = n << i;
23643 if (m >> i != n)
23644 return 1;
23645 if (LLONG_MAX / 2 < m)
23646 break;
23647 }
23648 return 0;
23649 ;
23650 return 0;
23651}
23652_ACEOF
23653if ac_fn_c_try_run "$LINENO"; then :
23654 ac_cv_type_long_long_int=yes
23655else
23656 ac_cv_type_long_long_int=no
23657fi
23658rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23659 conftest.$ac_objext conftest.beam conftest.$ac_ext
23660fi
23661
23662else
23663 ac_cv_type_long_long_int=no
23664fi
23665rm -f core conftest.err conftest.$ac_objext \
23666 conftest$ac_exeext conftest.$ac_ext
23667fi
23668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23669$as_echo "$ac_cv_type_long_long_int" >&6; }
23670 if test $ac_cv_type_long_long_int = yes; then
23671
23672$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23673
23674 fi
23675
23676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23677$as_echo_n "checking for mbstate_t... " >&6; }
23678if ${ac_cv_type_mbstate_t+:} false; then :
23679 $as_echo_n "(cached) " >&6
23680else
23681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23682/* end confdefs.h. */
23683$ac_includes_default
23684# include <wchar.h>
23685int
23686main ()
23687{
23688mbstate_t x; return sizeof x;
23689 ;
23690 return 0;
23691}
23692_ACEOF
23693if ac_fn_c_try_compile "$LINENO"; then :
23694 ac_cv_type_mbstate_t=yes
23695else
23696 ac_cv_type_mbstate_t=no
23697fi
23698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23699fi
23700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23701$as_echo "$ac_cv_type_mbstate_t" >&6; }
23702 if test $ac_cv_type_mbstate_t = yes; then
23703
23704$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23705
23706 else
23707
23708$as_echo "#define mbstate_t int" >>confdefs.h
23709
23710 fi
23711ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23712if test "x$ac_cv_type_mode_t" = xyes; then :
23713
23714else
23715
23716cat >>confdefs.h <<_ACEOF
23717#define mode_t int
23718_ACEOF
23719
23720fi
23721
23722ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23723if test "x$ac_cv_type_off_t" = xyes; then :
23724
23725else
23726
23727cat >>confdefs.h <<_ACEOF
23728#define off_t long int
23729_ACEOF
23730
23731fi
23732
23733ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23734if test "x$ac_cv_type_pid_t" = xyes; then :
23735
23736else
23737
23738cat >>confdefs.h <<_ACEOF
23739#define pid_t int
23740_ACEOF
23741
23742fi
23743
23744ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23745if test "x$ac_cv_type_size_t" = xyes; then :
23746
23747else
23748
23749cat >>confdefs.h <<_ACEOF
23750#define size_t unsigned int
23751_ACEOF
23752
23753fi
23754
23755ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23756if test "x$ac_cv_type_ssize_t" = xyes; then :
23757
23758else
23759
23760cat >>confdefs.h <<_ACEOF
23761#define ssize_t int
23762_ACEOF
23763
23764fi
23765
23766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23767$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23768if ${ac_cv_type_uid_t+:} false; then :
23769 $as_echo_n "(cached) " >&6
23770else
23771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23772/* end confdefs.h. */
23773#include <sys/types.h>
23774
23775_ACEOF
23776if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23777 $EGREP "uid_t" >/dev/null 2>&1; then :
23778 ac_cv_type_uid_t=yes
23779else
23780 ac_cv_type_uid_t=no
23781fi
23782rm -f conftest*
23783
23784fi
23785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23786$as_echo "$ac_cv_type_uid_t" >&6; }
23787if test $ac_cv_type_uid_t = no; then
23788
23789$as_echo "#define uid_t int" >>confdefs.h
23790
23791
23792$as_echo "#define gid_t int" >>confdefs.h
23793
23794fi
23795
23796ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23797case $ac_cv_c_uint8_t in #(
23798 no|yes) ;; #(
23799 *)
23800
23801$as_echo "#define _UINT8_T 1" >>confdefs.h
23802
23803
23804cat >>confdefs.h <<_ACEOF
23805#define uint8_t $ac_cv_c_uint8_t
23806_ACEOF
23807;;
23808 esac
23809
23810ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23811case $ac_cv_c_uint16_t in #(
23812 no|yes) ;; #(
23813 *)
23814
23815
23816cat >>confdefs.h <<_ACEOF
23817#define uint16_t $ac_cv_c_uint16_t
23818_ACEOF
23819;;
23820 esac
23821
23822ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23823case $ac_cv_c_uint32_t in #(
23824 no|yes) ;; #(
23825 *)
23826
23827$as_echo "#define _UINT32_T 1" >>confdefs.h
23828
23829
23830cat >>confdefs.h <<_ACEOF
23831#define uint32_t $ac_cv_c_uint32_t
23832_ACEOF
23833;;
23834 esac
23835
23836ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23837case $ac_cv_c_uint64_t in #(
23838 no|yes) ;; #(
23839 *)
23840
23841$as_echo "#define _UINT64_T 1" >>confdefs.h
23842
23843
23844cat >>confdefs.h <<_ACEOF
23845#define uint64_t $ac_cv_c_uint64_t
23846_ACEOF
23847;;
23848 esac
23849
23850
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23852$as_echo_n "checking for unsigned long long int... " >&6; }
23853if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23854 $as_echo_n "(cached) " >&6
23855else
23856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23857/* end confdefs.h. */
23858
23859 /* For now, do not test the preprocessor; as of 2007 there are too many
23860 implementations with broken preprocessors. Perhaps this can
23861 be revisited in 2012. In the meantime, code should not expect
23862 #if to work with literals wider than 32 bits. */
23863 /* Test literals. */
23864 long long int ll = 9223372036854775807ll;
23865 long long int nll = -9223372036854775807LL;
23866 unsigned long long int ull = 18446744073709551615ULL;
23867 /* Test constant expressions. */
23868 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23869 ? 1 : -1)];
23870 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23871 ? 1 : -1)];
23872 int i = 63;
23873int
23874main ()
23875{
23876/* Test availability of runtime routines for shift and division. */
23877 long long int llmax = 9223372036854775807ll;
23878 unsigned long long int ullmax = 18446744073709551615ull;
23879 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23880 | (llmax / ll) | (llmax % ll)
23881 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23882 | (ullmax / ull) | (ullmax % ull));
23883 ;
23884 return 0;
23885}
23886
23887_ACEOF
23888if ac_fn_c_try_link "$LINENO"; then :
23889 ac_cv_type_unsigned_long_long_int=yes
23890else
23891 ac_cv_type_unsigned_long_long_int=no
23892fi
23893rm -f core conftest.err conftest.$ac_objext \
23894 conftest$ac_exeext conftest.$ac_ext
23895fi
23896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23897$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23898 if test $ac_cv_type_unsigned_long_long_int = yes; then
23899
23900$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23901
23902 fi
23903
23904
23905
23906 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23907if test "x$ac_cv_type_uintmax_t" = xyes; then :
23908
23909$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23910
23911else
23912 test $ac_cv_type_unsigned_long_long_int = yes \
23913 && ac_type='unsigned long long int' \
23914 || ac_type='unsigned long int'
23915
23916cat >>confdefs.h <<_ACEOF
23917#define uintmax_t $ac_type
23918_ACEOF
23919
23920fi
23921
23922
23923
23924 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23925if test "x$ac_cv_type_uintptr_t" = xyes; then :
23926
23927$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23928
23929else
23930 for ac_type in 'unsigned int' 'unsigned long int' \
23931 'unsigned long long int'; do
23932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23933/* end confdefs.h. */
23934$ac_includes_default
23935int
23936main ()
23937{
23938static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023939test_array [0] = 0;
23940return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023941
23942 ;
23943 return 0;
23944}
23945_ACEOF
23946if ac_fn_c_try_compile "$LINENO"; then :
23947
23948cat >>confdefs.h <<_ACEOF
23949#define uintptr_t $ac_type
23950_ACEOF
23951
23952 ac_type=
23953fi
23954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23955 test -z "$ac_type" && break
23956 done
23957fi
23958
23959
23960
23961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23962$as_echo_n "checking for unsigned long long int... " >&6; }
23963if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23964 $as_echo_n "(cached) " >&6
23965else
23966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23967/* end confdefs.h. */
23968
23969 /* For now, do not test the preprocessor; as of 2007 there are too many
23970 implementations with broken preprocessors. Perhaps this can
23971 be revisited in 2012. In the meantime, code should not expect
23972 #if to work with literals wider than 32 bits. */
23973 /* Test literals. */
23974 long long int ll = 9223372036854775807ll;
23975 long long int nll = -9223372036854775807LL;
23976 unsigned long long int ull = 18446744073709551615ULL;
23977 /* Test constant expressions. */
23978 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23979 ? 1 : -1)];
23980 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23981 ? 1 : -1)];
23982 int i = 63;
23983int
23984main ()
23985{
23986/* Test availability of runtime routines for shift and division. */
23987 long long int llmax = 9223372036854775807ll;
23988 unsigned long long int ullmax = 18446744073709551615ull;
23989 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23990 | (llmax / ll) | (llmax % ll)
23991 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23992 | (ullmax / ull) | (ullmax % ull));
23993 ;
23994 return 0;
23995}
23996
23997_ACEOF
23998if ac_fn_c_try_link "$LINENO"; then :
23999 ac_cv_type_unsigned_long_long_int=yes
24000else
24001 ac_cv_type_unsigned_long_long_int=no
24002fi
24003rm -f core conftest.err conftest.$ac_objext \
24004 conftest$ac_exeext conftest.$ac_ext
24005fi
24006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
24007$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
24008 if test $ac_cv_type_unsigned_long_long_int = yes; then
24009
24010$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
24011
24012 fi
24013
24014
cristy3ed852e2009-09-05 21:47:34 +000024015# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
24016# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000024017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000024018$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024019if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024020 $as_echo_n "(cached) " >&6
24021else
cristy8b350f62009-11-15 23:12:43 +000024022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024023/* end confdefs.h. */
24024$ac_includes_default
24025int
24026main ()
24027{
24028static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000024029test_array [0] = 0;
24030return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000024031
24032 ;
24033 return 0;
24034}
24035_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024036if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024037 ac_cv_c_char_unsigned=no
24038else
cristy8b350f62009-11-15 23:12:43 +000024039 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000024040fi
cristy3ed852e2009-09-05 21:47:34 +000024041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24042fi
cristy8b350f62009-11-15 23:12:43 +000024043{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000024044$as_echo "$ac_cv_c_char_unsigned" >&6; }
24045if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000024046 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024047
24048fi
24049
24050
24051# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
24052# The cast to long int works around a bug in the HP C Compiler
24053# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24054# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24055# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024058if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024059 $as_echo_n "(cached) " >&6
24060else
cristy8b350f62009-11-15 23:12:43 +000024061 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 +000024062
cristy3ed852e2009-09-05 21:47:34 +000024063else
cristy8b350f62009-11-15 23:12:43 +000024064 if test "$ac_cv_type_signed_short" = yes; then
24065 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024067as_fn_error 77 "cannot compute sizeof (signed short)
24068See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024069 else
24070 ac_cv_sizeof_signed_short=0
24071 fi
24072fi
cristy8b350f62009-11-15 23:12:43 +000024073
cristy3ed852e2009-09-05 21:47:34 +000024074fi
cristy8b350f62009-11-15 23:12:43 +000024075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024076$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24077
24078
24079
24080cat >>confdefs.h <<_ACEOF
24081#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24082_ACEOF
24083
24084
24085
24086# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24087# The cast to long int works around a bug in the HP C Compiler
24088# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24089# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24090# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024093if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024094 $as_echo_n "(cached) " >&6
24095else
cristy8b350f62009-11-15 23:12:43 +000024096 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 +000024097
cristy3ed852e2009-09-05 21:47:34 +000024098else
cristy8b350f62009-11-15 23:12:43 +000024099 if test "$ac_cv_type_unsigned_short" = yes; then
24100 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024101$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024102as_fn_error 77 "cannot compute sizeof (unsigned short)
24103See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024104 else
24105 ac_cv_sizeof_unsigned_short=0
24106 fi
24107fi
cristy8b350f62009-11-15 23:12:43 +000024108
cristy3ed852e2009-09-05 21:47:34 +000024109fi
cristy8b350f62009-11-15 23:12:43 +000024110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024111$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24112
24113
24114
24115cat >>confdefs.h <<_ACEOF
24116#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24117_ACEOF
24118
24119
24120
24121# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
24122# The cast to long int works around a bug in the HP C Compiler
24123# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24124# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24125# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024128if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024129 $as_echo_n "(cached) " >&6
24130else
cristy8b350f62009-11-15 23:12:43 +000024131 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 +000024132
cristy3ed852e2009-09-05 21:47:34 +000024133else
cristy8b350f62009-11-15 23:12:43 +000024134 if test "$ac_cv_type_signed_int" = yes; then
24135 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024136$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024137as_fn_error 77 "cannot compute sizeof (signed int)
24138See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024139 else
24140 ac_cv_sizeof_signed_int=0
24141 fi
24142fi
cristy8b350f62009-11-15 23:12:43 +000024143
cristy3ed852e2009-09-05 21:47:34 +000024144fi
cristy8b350f62009-11-15 23:12:43 +000024145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24147
24148
24149
24150cat >>confdefs.h <<_ACEOF
24151#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24152_ACEOF
24153
24154
24155
24156# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
24157# The cast to long int works around a bug in the HP C Compiler
24158# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24159# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24160# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024163if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024164 $as_echo_n "(cached) " >&6
24165else
cristy8b350f62009-11-15 23:12:43 +000024166 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 +000024167
cristy3ed852e2009-09-05 21:47:34 +000024168else
cristy8b350f62009-11-15 23:12:43 +000024169 if test "$ac_cv_type_unsigned_int" = yes; then
24170 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024171$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024172as_fn_error 77 "cannot compute sizeof (unsigned int)
24173See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024174 else
24175 ac_cv_sizeof_unsigned_int=0
24176 fi
24177fi
cristy8b350f62009-11-15 23:12:43 +000024178
cristy3ed852e2009-09-05 21:47:34 +000024179fi
cristy8b350f62009-11-15 23:12:43 +000024180{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24182
24183
24184
24185cat >>confdefs.h <<_ACEOF
24186#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24187_ACEOF
24188
24189
24190
24191# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
24192# The cast to long int works around a bug in the HP C Compiler
24193# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24194# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24195# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024197$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024198if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024199 $as_echo_n "(cached) " >&6
24200else
cristy8b350f62009-11-15 23:12:43 +000024201 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 +000024202
cristy3ed852e2009-09-05 21:47:34 +000024203else
cristy8b350f62009-11-15 23:12:43 +000024204 if test "$ac_cv_type_signed_long" = yes; then
24205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024206$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024207as_fn_error 77 "cannot compute sizeof (signed long)
24208See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024209 else
24210 ac_cv_sizeof_signed_long=0
24211 fi
24212fi
cristy8b350f62009-11-15 23:12:43 +000024213
cristy3ed852e2009-09-05 21:47:34 +000024214fi
cristy8b350f62009-11-15 23:12:43 +000024215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024216$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24217
24218
24219
24220cat >>confdefs.h <<_ACEOF
24221#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24222_ACEOF
24223
24224
24225
24226# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
24227# The cast to long int works around a bug in the HP C Compiler
24228# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24229# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24230# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024232$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024233if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024234 $as_echo_n "(cached) " >&6
24235else
cristy8b350f62009-11-15 23:12:43 +000024236 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 +000024237
cristy3ed852e2009-09-05 21:47:34 +000024238else
cristy8b350f62009-11-15 23:12:43 +000024239 if test "$ac_cv_type_unsigned_long" = yes; then
24240 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024241$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024242as_fn_error 77 "cannot compute sizeof (unsigned long)
24243See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024244 else
24245 ac_cv_sizeof_unsigned_long=0
24246 fi
24247fi
cristy8b350f62009-11-15 23:12:43 +000024248
cristy3ed852e2009-09-05 21:47:34 +000024249fi
cristy8b350f62009-11-15 23:12:43 +000024250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024251$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24252
24253
24254
24255cat >>confdefs.h <<_ACEOF
24256#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24257_ACEOF
24258
24259
24260
24261# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24262# 'signed long long' is not supported then the value defined is zero.
24263# The cast to long int works around a bug in the HP C Compiler
24264# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24265# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24266# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024268$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024269if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024270 $as_echo_n "(cached) " >&6
24271else
cristy8b350f62009-11-15 23:12:43 +000024272 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 +000024273
cristy3ed852e2009-09-05 21:47:34 +000024274else
cristy8b350f62009-11-15 23:12:43 +000024275 if test "$ac_cv_type_signed_long_long" = yes; then
24276 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024277$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024278as_fn_error 77 "cannot compute sizeof (signed long long)
24279See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024280 else
24281 ac_cv_sizeof_signed_long_long=0
24282 fi
24283fi
cristy8b350f62009-11-15 23:12:43 +000024284
cristy3ed852e2009-09-05 21:47:34 +000024285fi
cristy8b350f62009-11-15 23:12:43 +000024286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024287$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24288
24289
24290
24291cat >>confdefs.h <<_ACEOF
24292#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24293_ACEOF
24294
24295
24296
24297# Obtain size of a 'unsigned long long' and define as
24298# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24299# supported then the value defined is zero.
24300# The cast to long int works around a bug in the HP C Compiler
24301# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24302# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24303# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024306if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024307 $as_echo_n "(cached) " >&6
24308else
cristy8b350f62009-11-15 23:12:43 +000024309 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 +000024310
cristy3ed852e2009-09-05 21:47:34 +000024311else
cristy8b350f62009-11-15 23:12:43 +000024312 if test "$ac_cv_type_unsigned_long_long" = yes; then
24313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024314$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024315as_fn_error 77 "cannot compute sizeof (unsigned long long)
24316See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024317 else
24318 ac_cv_sizeof_unsigned_long_long=0
24319 fi
24320fi
cristy8b350f62009-11-15 23:12:43 +000024321
cristy3ed852e2009-09-05 21:47:34 +000024322fi
cristy8b350f62009-11-15 23:12:43 +000024323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24325
24326
24327
24328cat >>confdefs.h <<_ACEOF
24329#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24330_ACEOF
24331
24332
24333
24334# Obtain size of off_t and define as SIZEOF_OFF_T
24335# The cast to long int works around a bug in the HP C Compiler
24336# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24337# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24338# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024340$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024342 $as_echo_n "(cached) " >&6
24343else
cristy8b350f62009-11-15 23:12:43 +000024344 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 +000024345
cristy3ed852e2009-09-05 21:47:34 +000024346else
cristy8b350f62009-11-15 23:12:43 +000024347 if test "$ac_cv_type_off_t" = yes; then
24348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024350as_fn_error 77 "cannot compute sizeof (off_t)
24351See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024352 else
24353 ac_cv_sizeof_off_t=0
24354 fi
24355fi
cristy8b350f62009-11-15 23:12:43 +000024356
cristy3ed852e2009-09-05 21:47:34 +000024357fi
cristy8b350f62009-11-15 23:12:43 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024359$as_echo "$ac_cv_sizeof_off_t" >&6; }
24360
24361
24362
24363cat >>confdefs.h <<_ACEOF
24364#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24365_ACEOF
24366
24367
24368
24369# Obtain size of size_t and define as SIZEOF_SIZE_T
24370# The cast to long int works around a bug in the HP C Compiler
24371# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24372# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24373# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024375$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024376if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024377 $as_echo_n "(cached) " >&6
24378else
cristy8b350f62009-11-15 23:12:43 +000024379 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 +000024380
cristy3ed852e2009-09-05 21:47:34 +000024381else
cristy8b350f62009-11-15 23:12:43 +000024382 if test "$ac_cv_type_size_t" = yes; then
24383 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024384$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024385as_fn_error 77 "cannot compute sizeof (size_t)
24386See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024387 else
24388 ac_cv_sizeof_size_t=0
24389 fi
24390fi
cristy8b350f62009-11-15 23:12:43 +000024391
cristy3ed852e2009-09-05 21:47:34 +000024392fi
cristy8b350f62009-11-15 23:12:43 +000024393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo "$ac_cv_sizeof_size_t" >&6; }
24395
24396
24397
24398cat >>confdefs.h <<_ACEOF
24399#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24400_ACEOF
24401
24402
24403
cristy330e9352010-06-01 18:42:49 +000024404# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
24405# The cast to long int works around a bug in the HP C Compiler
24406# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24407# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24408# This bug is HP SR number 8606223364.
24409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24410$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024411if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024412 $as_echo_n "(cached) " >&6
24413else
24414 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24415
24416else
24417 if test "$ac_cv_type_ssize_t" = yes; then
24418 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024420as_fn_error 77 "cannot compute sizeof (ssize_t)
24421See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024422 else
24423 ac_cv_sizeof_ssize_t=0
24424 fi
24425fi
24426
24427fi
24428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24429$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24430
24431
24432
24433cat >>confdefs.h <<_ACEOF
24434#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24435_ACEOF
24436
24437
24438
cristy3ed852e2009-09-05 21:47:34 +000024439# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
24440# The cast to long int works around a bug in the HP C Compiler
24441# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24442# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24443# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024445$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024446if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024447 $as_echo_n "(cached) " >&6
24448else
cristy8b350f62009-11-15 23:12:43 +000024449 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 +000024450
cristy3ed852e2009-09-05 21:47:34 +000024451else
cristy8b350f62009-11-15 23:12:43 +000024452 if test "$ac_cv_type_unsigned_intp" = yes; then
24453 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024454$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024455as_fn_error 77 "cannot compute sizeof (unsigned int*)
24456See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024457 else
24458 ac_cv_sizeof_unsigned_intp=0
24459 fi
24460fi
cristy8b350f62009-11-15 23:12:43 +000024461
cristy3ed852e2009-09-05 21:47:34 +000024462fi
cristy8b350f62009-11-15 23:12:43 +000024463{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024464$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24465
24466
24467
24468cat >>confdefs.h <<_ACEOF
24469#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24470_ACEOF
24471
24472
24473
24474#
24475# Compute sized types for current CPU and compiler options.
24476#
24477
cristy8b350f62009-11-15 23:12:43 +000024478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024479$as_echo_n "checking for signed 8-bit type... " >&6; }
24480INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024481{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24482$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024483
24484
cristy8b350f62009-11-15 23:12:43 +000024485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024486$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24487UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024488{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24489$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024490
24491
cristy8b350f62009-11-15 23:12:43 +000024492{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024493$as_echo_n "checking for signed 16-bit type... " >&6; }
24494INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024495{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24496$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024497
24498
cristy8b350f62009-11-15 23:12:43 +000024499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024500$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24501UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024502{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24503$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024504
24505
cristy8b350f62009-11-15 23:12:43 +000024506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024507$as_echo_n "checking for signed 32-bit type... " >&6; }
24508INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024509INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024510if test $ac_cv_sizeof_signed_int -eq 4; then
24511 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024512 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024513elif test $ac_cv_sizeof_signed_long -eq 4; then
24514 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024515 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024516fi
cristy09b53e12011-10-14 12:47:22 +000024517{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24518$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024519
24520
cristy6d5e20f2011-04-25 13:48:54 +000024521
cristy8b350f62009-11-15 23:12:43 +000024522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024523$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24524UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024525UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024526if test $ac_cv_sizeof_unsigned_int -eq 4; then
24527 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024528 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024529elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24530 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024531 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024532fi
cristy09b53e12011-10-14 12:47:22 +000024533{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24534$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024535
24536
cristy6d5e20f2011-04-25 13:48:54 +000024537
cristy8b350f62009-11-15 23:12:43 +000024538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024539$as_echo_n "checking for signed 64-bit type... " >&6; }
24540INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024541INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024542if test $ac_cv_sizeof_signed_long -eq 8; then
24543 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024544 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024545elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24546 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024547 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024548fi
cristy3a99dcf2011-12-17 01:29:40 +000024549case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024550 mingw* )
24551 INT64_F='"I64"'
24552 ;;
24553esac
cristy09b53e12011-10-14 12:47:22 +000024554{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24555$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024556
24557
cristy6d5e20f2011-04-25 13:48:54 +000024558
cristy8b350f62009-11-15 23:12:43 +000024559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024560$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24561UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024562UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024563if test $ac_cv_sizeof_unsigned_long -eq 8; then
24564 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024565 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024566elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24567 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024568 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024569fi
cristy3a99dcf2011-12-17 01:29:40 +000024570case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024571 mingw* )
24572 UINT64_F='"I64"'
24573 ;;
24574esac
cristy09b53e12011-10-14 12:47:22 +000024575{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24576$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024577
24578
cristy6d5e20f2011-04-25 13:48:54 +000024579
cristy8b350f62009-11-15 23:12:43 +000024580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024581$as_echo_n "checking for unsigned maximum type... " >&6; }
24582UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024583UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024584if test "$UINT64_T" != 'none'; then
24585 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024586 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024587elif test "$UINT32_T" != 'none'; then
24588 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024589 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024590fi
cristy09b53e12011-10-14 12:47:22 +000024591{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24592$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024593
24594
cristy6d5e20f2011-04-25 13:48:54 +000024595
cristy8b350f62009-11-15 23:12:43 +000024596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024597$as_echo_n "checking for pointer difference type... " >&6; }
24598UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024599UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024600if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24601 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024602 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024603elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24604 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024605 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024606fi
cristy09b53e12011-10-14 12:47:22 +000024607{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24608$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024609
24610
cristy6d5e20f2011-04-25 13:48:54 +000024611
cristy8b350f62009-11-15 23:12:43 +000024612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024613$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024615/* end confdefs.h. */
24616
24617int
24618main ()
24619{
24620{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24621 ;
24622 return 0;
24623}
24624_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024625if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024626 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24627$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024628else
cristy09b53e12011-10-14 12:47:22 +000024629 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24630$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024632$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024634/* end confdefs.h. */
24635
24636int
24637main ()
24638{
24639{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24640 ;
24641 return 0;
24642}
24643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024644if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024645 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24646$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024647
cristy8b350f62009-11-15 23:12:43 +000024648$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024649
24650else
cristy09b53e12011-10-14 12:47:22 +000024651 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24652$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024653
cristy8b350f62009-11-15 23:12:43 +000024654$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024655
24656fi
cristy3ed852e2009-09-05 21:47:34 +000024657rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24658fi
cristy3ed852e2009-09-05 21:47:34 +000024659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24660
24661########
24662#
24663# Check for functions
24664#
24665########
cristy73bd4a52010-10-05 11:24:23 +000024666for ac_header in stdlib.h unistd.h
24667do :
24668 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24669ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024670if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024671 cat >>confdefs.h <<_ACEOF
24672#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24673_ACEOF
24674
24675fi
24676
24677done
24678
24679for ac_func in getpagesize
24680do :
24681 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024682if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024683 cat >>confdefs.h <<_ACEOF
24684#define HAVE_GETPAGESIZE 1
24685_ACEOF
24686
24687fi
24688done
24689
24690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24691$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024692if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024693 $as_echo_n "(cached) " >&6
24694else
24695 if test "$cross_compiling" = yes; then :
24696 magick_cv_func_mmap_fileio=no
24697else
24698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24699/* end confdefs.h. */
24700$ac_includes_default
24701/* malloc might have been renamed as rpl_malloc. */
24702#undef malloc
24703
24704/*
24705 This test is derived from GNU Autoconf's similar macro.
24706 The purpose of this test is to verify that files may be memory
24707 mapped, and that memory mapping and file I/O are coherent.
24708
24709 The test creates a test file, memory maps the file, updates
24710 the file using the memory map, and then reads the file using
24711 file I/O to verify that the file contains the updates.
24712*/
24713
24714#include <fcntl.h>
24715#include <sys/mman.h>
24716
24717#if !STDC_HEADERS && !HAVE_STDLIB_H
24718char *malloc ();
24719#endif
24720
24721/* This mess was copied from the GNU getpagesize.h. */
24722#if !HAVE_GETPAGESIZE
24723/* Assume that all systems that can run configure have sys/param.h. */
24724# if !HAVE_SYS_PARAM_H
24725# define HAVE_SYS_PARAM_H 1
24726# endif
24727
24728# ifdef _SC_PAGESIZE
24729# define getpagesize() sysconf(_SC_PAGESIZE)
24730# else /* no _SC_PAGESIZE */
24731# if HAVE_SYS_PARAM_H
24732# include <sys/param.h>
24733# ifdef EXEC_PAGESIZE
24734# define getpagesize() EXEC_PAGESIZE
24735# else /* no EXEC_PAGESIZE */
24736# ifdef NBPG
24737# define getpagesize() NBPG * CLSIZE
24738# ifndef CLSIZE
24739# define CLSIZE 1
24740# endif /* no CLSIZE */
24741# else /* no NBPG */
24742# ifdef NBPC
24743# define getpagesize() NBPC
24744# else /* no NBPC */
24745# ifdef PAGESIZE
24746# define getpagesize() PAGESIZE
24747# endif /* PAGESIZE */
24748# endif /* no NBPC */
24749# endif /* no NBPG */
24750# endif /* no EXEC_PAGESIZE */
24751# else /* no HAVE_SYS_PARAM_H */
24752# define getpagesize() 8192 /* punt totally */
24753# endif /* no HAVE_SYS_PARAM_H */
24754# endif /* no _SC_PAGESIZE */
24755
24756#endif /* no HAVE_GETPAGESIZE */
24757
24758int
24759main ()
24760{
24761 char *data, *data2, *data3;
24762 int i, pagesize;
24763 int fd;
24764
24765 pagesize = getpagesize ();
24766
24767 /* First, make a file with some known garbage in it. */
24768 data = (char *) malloc (pagesize);
24769 if (!data)
24770 exit (1);
24771 for (i = 0; i < pagesize; ++i)
24772 *(data + i) = rand ();
24773 umask (0);
24774 fd = creat ("conftest.mmap", 0600);
24775 if (fd < 0)
24776 exit (1);
24777 if (write (fd, data, pagesize) != pagesize)
24778 exit (1);
24779 close (fd);
24780
24781 /* Mmap the file as read/write/shared and verify that we see the
24782 same garbage. */
24783 fd = open ("conftest.mmap", O_RDWR);
24784 if (fd < 0)
24785 exit (1);
24786 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24787 if (data2 == 0)
24788 exit (1);
24789 for (i = 0; i < pagesize; ++i)
24790 if (*(data + i) != *(data2 + i))
24791 exit (1);
24792
24793 /* Finally, make sure that changes to the mapped area
24794 percolate back to the file as seen by read(). */
24795 for (i = 0; i < pagesize; ++i)
24796 *(data2 + i) = *(data2 + i) + 1;
24797 data3 = (char *) malloc (pagesize);
24798 if (!data3)
24799 exit (1);
24800 if (read (fd, data3, pagesize) != pagesize)
24801 exit (1);
24802 for (i = 0; i < pagesize; ++i)
24803 if (*(data2 + i) != *(data3 + i))
24804 exit (1);
24805 close (fd);
24806 exit (0);
24807}
24808_ACEOF
24809if ac_fn_c_try_run "$LINENO"; then :
24810 magick_cv_func_mmap_fileio=yes
24811else
24812 magick_cv_func_mmap_fileio=no
24813fi
24814rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24815 conftest.$ac_objext conftest.beam conftest.$ac_ext
24816fi
24817
24818fi
24819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24820$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24821if test $magick_cv_func_mmap_fileio = yes; then
24822
24823$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24824
24825fi
24826rm -f conftest.mmap
24827
cristy8b350f62009-11-15 23:12:43 +000024828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024829$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024830if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024831 $as_echo_n "(cached) " >&6
24832else
cristy8b350f62009-11-15 23:12:43 +000024833 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024834 ac_cv_func_closedir_void=yes
24835else
cristy8b350f62009-11-15 23:12:43 +000024836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024837/* end confdefs.h. */
24838$ac_includes_default
24839#include <$ac_header_dirent>
24840#ifndef __cplusplus
24841int closedir ();
24842#endif
24843
24844int
24845main ()
24846{
24847return closedir (opendir (".")) != 0;
24848 ;
24849 return 0;
24850}
24851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024852if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024853 ac_cv_func_closedir_void=no
24854else
cristy8b350f62009-11-15 23:12:43 +000024855 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024856fi
cristy8b350f62009-11-15 23:12:43 +000024857rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24858 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024859fi
24860
cristy3ed852e2009-09-05 21:47:34 +000024861fi
cristy8b350f62009-11-15 23:12:43 +000024862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024863$as_echo "$ac_cv_func_closedir_void" >&6; }
24864if test $ac_cv_func_closedir_void = yes; then
24865
cristy8b350f62009-11-15 23:12:43 +000024866$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024867
24868fi
24869
cristycd4c5312009-11-22 01:19:08 +000024870
24871
24872
24873 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024874do :
24875 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024876ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24877"
cristy98dddb52010-11-04 00:30:15 +000024878if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024879 cat >>confdefs.h <<_ACEOF
24880#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24881_ACEOF
24882
24883fi
24884
24885done
24886
cristycd4c5312009-11-22 01:19:08 +000024887
24888
24889
24890
24891
24892
24893
cristy3ed852e2009-09-05 21:47:34 +000024894for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024895do :
24896 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024897if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024898 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024899#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024900_ACEOF
24901
24902fi
24903done
24904
cristy8b350f62009-11-15 23:12:43 +000024905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024906$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024907if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024908 $as_echo_n "(cached) " >&6
24909else
cristy8b350f62009-11-15 23:12:43 +000024910 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024911 ac_cv_func_mmap_fixed_mapped=no
24912else
cristy8b350f62009-11-15 23:12:43 +000024913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024914/* end confdefs.h. */
24915$ac_includes_default
24916/* malloc might have been renamed as rpl_malloc. */
24917#undef malloc
24918
24919/* Thanks to Mike Haertel and Jim Avera for this test.
24920 Here is a matrix of mmap possibilities:
24921 mmap private not fixed
24922 mmap private fixed at somewhere currently unmapped
24923 mmap private fixed at somewhere already mapped
24924 mmap shared not fixed
24925 mmap shared fixed at somewhere currently unmapped
24926 mmap shared fixed at somewhere already mapped
24927 For private mappings, we should verify that changes cannot be read()
24928 back from the file, nor mmap's back from the file at a different
24929 address. (There have been systems where private was not correctly
24930 implemented like the infamous i386 svr4.0, and systems where the
24931 VM page cache was not coherent with the file system buffer cache
24932 like early versions of FreeBSD and possibly contemporary NetBSD.)
24933 For shared mappings, we should conversely verify that changes get
24934 propagated back to all the places they're supposed to be.
24935
24936 Grep wants private fixed already mapped.
24937 The main things grep needs to know about mmap are:
24938 * does it exist and is it safe to write into the mmap'd area
24939 * how to use it (BSD variants) */
24940
24941#include <fcntl.h>
24942#include <sys/mman.h>
24943
24944#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24945char *malloc ();
24946#endif
24947
24948/* This mess was copied from the GNU getpagesize.h. */
24949#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024950# ifdef _SC_PAGESIZE
24951# define getpagesize() sysconf(_SC_PAGESIZE)
24952# else /* no _SC_PAGESIZE */
24953# ifdef HAVE_SYS_PARAM_H
24954# include <sys/param.h>
24955# ifdef EXEC_PAGESIZE
24956# define getpagesize() EXEC_PAGESIZE
24957# else /* no EXEC_PAGESIZE */
24958# ifdef NBPG
24959# define getpagesize() NBPG * CLSIZE
24960# ifndef CLSIZE
24961# define CLSIZE 1
24962# endif /* no CLSIZE */
24963# else /* no NBPG */
24964# ifdef NBPC
24965# define getpagesize() NBPC
24966# else /* no NBPC */
24967# ifdef PAGESIZE
24968# define getpagesize() PAGESIZE
24969# endif /* PAGESIZE */
24970# endif /* no NBPC */
24971# endif /* no NBPG */
24972# endif /* no EXEC_PAGESIZE */
24973# else /* no HAVE_SYS_PARAM_H */
24974# define getpagesize() 8192 /* punt totally */
24975# endif /* no HAVE_SYS_PARAM_H */
24976# endif /* no _SC_PAGESIZE */
24977
24978#endif /* no HAVE_GETPAGESIZE */
24979
24980int
24981main ()
24982{
24983 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024984 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024985 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024986 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024987
24988 pagesize = getpagesize ();
24989
24990 /* First, make a file with some known garbage in it. */
24991 data = (char *) malloc (pagesize);
24992 if (!data)
24993 return 1;
24994 for (i = 0; i < pagesize; ++i)
24995 *(data + i) = rand ();
24996 umask (0);
24997 fd = creat ("conftest.mmap", 0600);
24998 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024999 return 2;
cristy3ed852e2009-09-05 21:47:34 +000025000 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025001 return 3;
cristy3ed852e2009-09-05 21:47:34 +000025002 close (fd);
25003
cristycd4c5312009-11-22 01:19:08 +000025004 /* Next, check that the tail of a page is zero-filled. File must have
25005 non-zero length, otherwise we risk SIGBUS for entire page. */
25006 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
25007 if (fd2 < 0)
25008 return 4;
cristyc54f5d42009-11-27 21:36:31 +000025009 cdata2 = "";
25010 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000025011 return 5;
cristyc54f5d42009-11-27 21:36:31 +000025012 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000025013 if (data2 == MAP_FAILED)
25014 return 6;
25015 for (i = 0; i < pagesize; ++i)
25016 if (*(data2 + i))
25017 return 7;
25018 close (fd2);
25019 if (munmap (data2, pagesize))
25020 return 8;
25021
cristy3ed852e2009-09-05 21:47:34 +000025022 /* Next, try to mmap the file at a fixed address which already has
25023 something else allocated at it. If we can, also make sure that
25024 we see the same garbage. */
25025 fd = open ("conftest.mmap", O_RDWR);
25026 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000025027 return 9;
cristy3ed852e2009-09-05 21:47:34 +000025028 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
25029 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000025030 return 10;
cristy3ed852e2009-09-05 21:47:34 +000025031 for (i = 0; i < pagesize; ++i)
25032 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000025033 return 11;
cristy3ed852e2009-09-05 21:47:34 +000025034
25035 /* Finally, make sure that changes to the mapped area do not
25036 percolate back to the file as seen by read(). (This is a bug on
25037 some variants of i386 svr4.0.) */
25038 for (i = 0; i < pagesize; ++i)
25039 *(data2 + i) = *(data2 + i) + 1;
25040 data3 = (char *) malloc (pagesize);
25041 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000025042 return 12;
cristy3ed852e2009-09-05 21:47:34 +000025043 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000025044 return 13;
cristy3ed852e2009-09-05 21:47:34 +000025045 for (i = 0; i < pagesize; ++i)
25046 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000025047 return 14;
cristy3ed852e2009-09-05 21:47:34 +000025048 close (fd);
25049 return 0;
25050}
25051_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025052if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025053 ac_cv_func_mmap_fixed_mapped=yes
25054else
cristy8b350f62009-11-15 23:12:43 +000025055 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000025056fi
cristy8b350f62009-11-15 23:12:43 +000025057rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25058 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025059fi
25060
cristy3ed852e2009-09-05 21:47:34 +000025061fi
cristy8b350f62009-11-15 23:12:43 +000025062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000025063$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
25064if test $ac_cv_func_mmap_fixed_mapped = yes; then
25065
cristy8b350f62009-11-15 23:12:43 +000025066$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025067
25068fi
cristycd4c5312009-11-22 01:19:08 +000025069rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025070
cristy3ed852e2009-09-05 21:47:34 +000025071for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025072do :
25073 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025074if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025076#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025077_ACEOF
25078
25079fi
25080
25081done
25082
cristy3ed852e2009-09-05 21:47:34 +000025083for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025084do :
25085 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25086ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025087if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025088 cat >>confdefs.h <<_ACEOF
25089#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25090_ACEOF
25091
25092fi
25093done
25094
25095if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025097$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025098if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025099 $as_echo_n "(cached) " >&6
25100else
cristy8b350f62009-11-15 23:12:43 +000025101 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025102 ac_cv_func_fork_works=cross
25103else
cristy8b350f62009-11-15 23:12:43 +000025104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025105/* end confdefs.h. */
25106$ac_includes_default
25107int
25108main ()
25109{
25110
25111 /* By Ruediger Kuhlmann. */
25112 return fork () < 0;
25113
25114 ;
25115 return 0;
25116}
25117_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025118if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025119 ac_cv_func_fork_works=yes
25120else
cristy8b350f62009-11-15 23:12:43 +000025121 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025122fi
cristy8b350f62009-11-15 23:12:43 +000025123rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25124 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025125fi
25126
cristy3ed852e2009-09-05 21:47:34 +000025127fi
cristy8b350f62009-11-15 23:12:43 +000025128{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025129$as_echo "$ac_cv_func_fork_works" >&6; }
25130
25131else
25132 ac_cv_func_fork_works=$ac_cv_func_fork
25133fi
25134if test "x$ac_cv_func_fork_works" = xcross; then
25135 case $host in
25136 *-*-amigaos* | *-*-msdosdjgpp*)
25137 # Override, as these systems have only a dummy fork() stub
25138 ac_cv_func_fork_works=no
25139 ;;
25140 *)
25141 ac_cv_func_fork_works=yes
25142 ;;
25143 esac
cristy8b350f62009-11-15 23:12:43 +000025144 { $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 +000025145$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25146fi
25147ac_cv_func_vfork_works=$ac_cv_func_vfork
25148if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025150$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025151if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025152 $as_echo_n "(cached) " >&6
25153else
cristy8b350f62009-11-15 23:12:43 +000025154 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025155 ac_cv_func_vfork_works=cross
25156else
cristy8b350f62009-11-15 23:12:43 +000025157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025158/* end confdefs.h. */
25159/* Thanks to Paul Eggert for this test. */
25160$ac_includes_default
25161#include <sys/wait.h>
25162#ifdef HAVE_VFORK_H
25163# include <vfork.h>
25164#endif
25165/* On some sparc systems, changes by the child to local and incoming
25166 argument registers are propagated back to the parent. The compiler
25167 is told about this with #include <vfork.h>, but some compilers
25168 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25169 static variable whose address is put into a register that is
25170 clobbered by the vfork. */
25171static void
25172#ifdef __cplusplus
25173sparc_address_test (int arg)
25174# else
25175sparc_address_test (arg) int arg;
25176#endif
25177{
25178 static pid_t child;
25179 if (!child) {
25180 child = vfork ();
25181 if (child < 0) {
25182 perror ("vfork");
25183 _exit(2);
25184 }
25185 if (!child) {
25186 arg = getpid();
25187 write(-1, "", 0);
25188 _exit (arg);
25189 }
25190 }
25191}
25192
25193int
25194main ()
25195{
25196 pid_t parent = getpid ();
25197 pid_t child;
25198
25199 sparc_address_test (0);
25200
25201 child = vfork ();
25202
25203 if (child == 0) {
25204 /* Here is another test for sparc vfork register problems. This
25205 test uses lots of local variables, at least as many local
25206 variables as main has allocated so far including compiler
25207 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25208 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25209 reuse the register of parent for one of the local variables,
25210 since it will think that parent can't possibly be used any more
25211 in this routine. Assigning to the local variable will thus
25212 munge parent in the parent process. */
25213 pid_t
25214 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25215 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25216 /* Convince the compiler that p..p7 are live; otherwise, it might
25217 use the same hardware register for all 8 local variables. */
25218 if (p != p1 || p != p2 || p != p3 || p != p4
25219 || p != p5 || p != p6 || p != p7)
25220 _exit(1);
25221
25222 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25223 from child file descriptors. If the child closes a descriptor
25224 before it execs or exits, this munges the parent's descriptor
25225 as well. Test for this by closing stdout in the child. */
25226 _exit(close(fileno(stdout)) != 0);
25227 } else {
25228 int status;
25229 struct stat st;
25230
25231 while (wait(&status) != child)
25232 ;
25233 return (
25234 /* Was there some problem with vforking? */
25235 child < 0
25236
25237 /* Did the child fail? (This shouldn't happen.) */
25238 || status
25239
25240 /* Did the vfork/compiler bug occur? */
25241 || parent != getpid()
25242
25243 /* Did the file descriptor bug occur? */
25244 || fstat(fileno(stdout), &st) != 0
25245 );
25246 }
25247}
25248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025249if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025250 ac_cv_func_vfork_works=yes
25251else
cristy8b350f62009-11-15 23:12:43 +000025252 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025253fi
cristy8b350f62009-11-15 23:12:43 +000025254rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25255 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025256fi
25257
cristy3ed852e2009-09-05 21:47:34 +000025258fi
cristy8b350f62009-11-15 23:12:43 +000025259{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025260$as_echo "$ac_cv_func_vfork_works" >&6; }
25261
25262fi;
25263if test "x$ac_cv_func_fork_works" = xcross; then
25264 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025265 { $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 +000025266$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25267fi
25268
25269if test "x$ac_cv_func_vfork_works" = xyes; then
25270
cristy8b350f62009-11-15 23:12:43 +000025271$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025272
25273else
25274
cristy8b350f62009-11-15 23:12:43 +000025275$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025276
25277fi
25278if test "x$ac_cv_func_fork_works" = xyes; then
25279
cristy8b350f62009-11-15 23:12:43 +000025280$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025281
25282fi
25283
cristy8b350f62009-11-15 23:12:43 +000025284{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025285$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025286if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025287 $as_echo_n "(cached) " >&6
25288else
cristy8b350f62009-11-15 23:12:43 +000025289 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025290 ac_cv_func_memcmp_working=no
25291else
cristy8b350f62009-11-15 23:12:43 +000025292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025293/* end confdefs.h. */
25294$ac_includes_default
25295int
25296main ()
25297{
25298
25299 /* Some versions of memcmp are not 8-bit clean. */
25300 char c0 = '\100', c1 = '\200', c2 = '\201';
25301 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25302 return 1;
25303
25304 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25305 or more and with at least one buffer not starting on a 4-byte boundary.
25306 William Lewis provided this test program. */
25307 {
25308 char foo[21];
25309 char bar[21];
25310 int i;
25311 for (i = 0; i < 4; i++)
25312 {
25313 char *a = foo + i;
25314 char *b = bar + i;
25315 strcpy (a, "--------01111111");
25316 strcpy (b, "--------10000000");
25317 if (memcmp (a, b, 16) >= 0)
25318 return 1;
25319 }
25320 return 0;
25321 }
25322
25323 ;
25324 return 0;
25325}
25326_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025327if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025328 ac_cv_func_memcmp_working=yes
25329else
cristy8b350f62009-11-15 23:12:43 +000025330 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025331fi
cristy8b350f62009-11-15 23:12:43 +000025332rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25333 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025334fi
25335
cristy3ed852e2009-09-05 21:47:34 +000025336fi
cristy8b350f62009-11-15 23:12:43 +000025337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025338$as_echo "$ac_cv_func_memcmp_working" >&6; }
25339test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25340 *" memcmp.$ac_objext "* ) ;;
25341 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25342 ;;
25343esac
25344
25345
cristy3ed852e2009-09-05 21:47:34 +000025346for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025347do :
25348 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25349ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025350if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025351 cat >>confdefs.h <<_ACEOF
25352#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25353_ACEOF
25354
25355fi
25356
25357done
25358
cristy8b350f62009-11-15 23:12:43 +000025359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025360$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025361if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025362 $as_echo_n "(cached) " >&6
25363else
25364 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25365 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25366 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025368/* end confdefs.h. */
25369$ac_includes_default
25370#ifdef HAVE_SYS_SELECT_H
25371# include <sys/select.h>
25372#endif
25373#ifdef HAVE_SYS_SOCKET_H
25374# include <sys/socket.h>
25375#endif
25376
25377int
25378main ()
25379{
25380extern int select ($ac_arg1,
25381 $ac_arg234, $ac_arg234, $ac_arg234,
25382 $ac_arg5);
25383 ;
25384 return 0;
25385}
25386_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025387if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025388 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025389fi
cristy3ed852e2009-09-05 21:47:34 +000025390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25391 done
25392 done
25393done
25394# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025395: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025396
25397fi
cristy8b350f62009-11-15 23:12:43 +000025398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025399$as_echo "$ac_cv_func_select_args" >&6; }
25400ac_save_IFS=$IFS; IFS=','
25401set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25402IFS=$ac_save_IFS
25403shift
25404
25405cat >>confdefs.h <<_ACEOF
25406#define SELECT_TYPE_ARG1 $1
25407_ACEOF
25408
25409
25410cat >>confdefs.h <<_ACEOF
25411#define SELECT_TYPE_ARG234 ($2)
25412_ACEOF
25413
25414
25415cat >>confdefs.h <<_ACEOF
25416#define SELECT_TYPE_ARG5 ($3)
25417_ACEOF
25418
25419rm -f conftest*
25420
cristyda16f162011-02-19 23:52:17 +000025421if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025422 $as_echo_n "(cached) " >&6
25423else
25424 ac_cv_func_setvbuf_reversed=no
25425fi
25426
25427
cristy8b350f62009-11-15 23:12:43 +000025428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025429$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025430if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025431 $as_echo_n "(cached) " >&6
25432else
cristy8b350f62009-11-15 23:12:43 +000025433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025434/* end confdefs.h. */
25435#include <sys/types.h>
25436#include <signal.h>
25437
25438int
25439main ()
25440{
25441return *(signal (0, 0)) (0) == 1;
25442 ;
25443 return 0;
25444}
25445_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025446if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025447 ac_cv_type_signal=int
25448else
cristy8b350f62009-11-15 23:12:43 +000025449 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025450fi
cristy3ed852e2009-09-05 21:47:34 +000025451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25452fi
cristy8b350f62009-11-15 23:12:43 +000025453{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025454$as_echo "$ac_cv_type_signal" >&6; }
25455
25456cat >>confdefs.h <<_ACEOF
25457#define RETSIGTYPE $ac_cv_type_signal
25458_ACEOF
25459
25460
cristy8b350f62009-11-15 23:12:43 +000025461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025462$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025463if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025464 $as_echo_n "(cached) " >&6
25465else
cristy8b350f62009-11-15 23:12:43 +000025466 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025467 ac_cv_func_strtod=no
25468else
cristy8b350f62009-11-15 23:12:43 +000025469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025470/* end confdefs.h. */
25471
25472$ac_includes_default
25473#ifndef strtod
25474double strtod ();
25475#endif
25476int
25477main()
25478{
25479 {
25480 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25481 char *string = " +69";
25482 char *term;
25483 double value;
25484 value = strtod (string, &term);
25485 if (value != 69 || term != (string + 4))
25486 return 1;
25487 }
25488
25489 {
25490 /* Under Solaris 2.4, strtod returns the wrong value for the
25491 terminating character under some conditions. */
25492 char *string = "NaN";
25493 char *term;
25494 strtod (string, &term);
25495 if (term != string && *(term - 1) == 0)
25496 return 1;
25497 }
25498 return 0;
25499}
25500
25501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025502if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025503 ac_cv_func_strtod=yes
25504else
cristy8b350f62009-11-15 23:12:43 +000025505 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025506fi
cristy8b350f62009-11-15 23:12:43 +000025507rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25508 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025509fi
25510
cristy3ed852e2009-09-05 21:47:34 +000025511fi
cristy8b350f62009-11-15 23:12:43 +000025512{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025513$as_echo "$ac_cv_func_strtod" >&6; }
25514if test $ac_cv_func_strtod = no; then
25515 case " $LIBOBJS " in
25516 *" strtod.$ac_objext "* ) ;;
25517 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25518 ;;
25519esac
25520
cristy8b350f62009-11-15 23:12:43 +000025521ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025522if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025523
cristy3ed852e2009-09-05 21:47:34 +000025524fi
25525
cristy3ed852e2009-09-05 21:47:34 +000025526if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025528$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025529if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025530 $as_echo_n "(cached) " >&6
25531else
25532 ac_check_lib_save_LIBS=$LIBS
25533LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025534cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025535/* end confdefs.h. */
25536
25537/* Override any GCC internal prototype to avoid an error.
25538 Use char because int might match the return type of a GCC
25539 builtin and then its argument prototype would still apply. */
25540#ifdef __cplusplus
25541extern "C"
25542#endif
25543char pow ();
25544int
25545main ()
25546{
25547return pow ();
25548 ;
25549 return 0;
25550}
25551_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025552if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025553 ac_cv_lib_m_pow=yes
25554else
cristy8b350f62009-11-15 23:12:43 +000025555 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025556fi
cristy8b350f62009-11-15 23:12:43 +000025557rm -f core conftest.err conftest.$ac_objext \
25558 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025559LIBS=$ac_check_lib_save_LIBS
25560fi
cristy8b350f62009-11-15 23:12:43 +000025561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025562$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025563if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025564 POW_LIB=-lm
25565else
cristy8b350f62009-11-15 23:12:43 +000025566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025567$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25568fi
25569
25570fi
25571
25572fi
25573
cristy7d4a1d62011-10-13 15:54:12 +000025574ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25575if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25576 ac_have_decl=1
25577else
25578 ac_have_decl=0
25579fi
25580
25581cat >>confdefs.h <<_ACEOF
25582#define HAVE_DECL_STRERROR_R $ac_have_decl
25583_ACEOF
25584
25585for ac_func in strerror_r
25586do :
25587 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25588if test "x$ac_cv_func_strerror_r" = xyes; then :
25589 cat >>confdefs.h <<_ACEOF
25590#define HAVE_STRERROR_R 1
25591_ACEOF
25592
25593fi
25594done
25595
25596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25597$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25598if ${ac_cv_func_strerror_r_char_p+:} false; then :
25599 $as_echo_n "(cached) " >&6
25600else
25601
25602 ac_cv_func_strerror_r_char_p=no
25603 if test $ac_cv_have_decl_strerror_r = yes; then
25604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25605/* end confdefs.h. */
25606$ac_includes_default
25607int
25608main ()
25609{
25610
25611 char buf[100];
25612 char x = *strerror_r (0, buf, sizeof buf);
25613 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025614 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025615
25616 ;
25617 return 0;
25618}
25619_ACEOF
25620if ac_fn_c_try_compile "$LINENO"; then :
25621 ac_cv_func_strerror_r_char_p=yes
25622fi
25623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25624 else
25625 # strerror_r is not declared. Choose between
25626 # systems that have relatively inaccessible declarations for the
25627 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25628 # former has a strerror_r that returns char*, while the latter
25629 # has a strerror_r that returns `int'.
25630 # This test should segfault on the DEC system.
25631 if test "$cross_compiling" = yes; then :
25632 :
25633else
25634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25635/* end confdefs.h. */
25636$ac_includes_default
25637 extern char *strerror_r ();
25638int
25639main ()
25640{
25641char buf[100];
25642 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025643 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025644 ;
25645 return 0;
25646}
25647_ACEOF
25648if ac_fn_c_try_run "$LINENO"; then :
25649 ac_cv_func_strerror_r_char_p=yes
25650fi
25651rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25652 conftest.$ac_objext conftest.beam conftest.$ac_ext
25653fi
25654
25655 fi
25656
25657fi
25658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25659$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25660if test $ac_cv_func_strerror_r_char_p = yes; then
25661
25662$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25663
25664fi
25665
cristy3ed852e2009-09-05 21:47:34 +000025666for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025667do :
25668 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025669if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025670 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025671#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025672_ACEOF
25673
cristy8b350f62009-11-15 23:12:43 +000025674ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025675if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025676
cristy8b350f62009-11-15 23:12:43 +000025677$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025678
25679fi
25680
25681fi
25682done
25683
25684
25685
cristy161b9262010-03-20 19:34:32 +000025686#
25687# Find math library
25688#
25689MATH_LIBS=''
25690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25691$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025692if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025693 $as_echo_n "(cached) " >&6
25694else
25695 ac_check_lib_save_LIBS=$LIBS
25696LIBS="-lm $LIBS"
25697cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25698/* end confdefs.h. */
25699
25700/* Override any GCC internal prototype to avoid an error.
25701 Use char because int might match the return type of a GCC
25702 builtin and then its argument prototype would still apply. */
25703#ifdef __cplusplus
25704extern "C"
25705#endif
25706char sqrt ();
25707int
25708main ()
25709{
25710return sqrt ();
25711 ;
25712 return 0;
25713}
25714_ACEOF
25715if ac_fn_c_try_link "$LINENO"; then :
25716 ac_cv_lib_m_sqrt=yes
25717else
25718 ac_cv_lib_m_sqrt=no
25719fi
25720rm -f core conftest.err conftest.$ac_objext \
25721 conftest$ac_exeext conftest.$ac_ext
25722LIBS=$ac_check_lib_save_LIBS
25723fi
25724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25725$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025726if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025727 MATH_LIBS="-lm"
25728fi
25729
25730LIBS="$MATH_LIBS $LIBS"
25731
25732
cristy568c2d42012-07-27 01:41:20 +000025733for ac_func in acosh _aligned_malloc asinh atanh atoll atexit cabs carg cimag creal clock ctime_r directio _exit execvp fchmod floor fork ftime ftruncate getc_unlocked getcwd getpid getexecname getdtablesize getpagesize getrlimit getrusage gettimeofday gmtime_r isnan j0 j1 lltostr localtime_r lstat memmove memset mkstemp munmap nanosleep newlocale _NSGetExecutablePath pclose _pclose poll popen _popen posix_fadvise posix_fallocate posix_madvise posix_memalign posix_spawnp pow pread pwrite qsort_r raise rand_r readlink readdir_r realpath select seekdir setlocale sqrt setvbuf stat strchr strrchr strcspn strdup strpbrk strspn strstr strtod strtod_l strtol strtoul symlink sysconf sigemptyset sigaction spawnvp strerror strlcat strlcpy strcasecmp strncasecmp telldir tempnam times ulltostr uselocale usleep utime vfprintf vfprintf_l vsprintf vsnprintf vsnprintf_l waitpid _wfopen _wstat
cristy8b350f62009-11-15 23:12:43 +000025734do :
25735 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25736ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025737if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025738 cat >>confdefs.h <<_ACEOF
25739#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25740_ACEOF
25741
25742fi
25743done
25744
25745
cristye43a45e2009-09-28 14:49:00 +000025746#
25747# Check for clock_gettime().
25748#
cristy8b350f62009-11-15 23:12:43 +000025749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025750$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025751if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025752 $as_echo_n "(cached) " >&6
25753else
25754 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025755cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025756/* end confdefs.h. */
25757
25758/* Override any GCC internal prototype to avoid an error.
25759 Use char because int might match the return type of a GCC
25760 builtin and then its argument prototype would still apply. */
25761#ifdef __cplusplus
25762extern "C"
25763#endif
25764char clock_gettime ();
25765int
25766main ()
25767{
25768return clock_gettime ();
25769 ;
25770 return 0;
25771}
25772_ACEOF
25773for ac_lib in '' rt; do
25774 if test -z "$ac_lib"; then
25775 ac_res="none required"
25776 else
25777 ac_res=-l$ac_lib
25778 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25779 fi
cristy8b350f62009-11-15 23:12:43 +000025780 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025781 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025782fi
cristy8b350f62009-11-15 23:12:43 +000025783rm -f core conftest.err conftest.$ac_objext \
25784 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025785 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025786 break
25787fi
25788done
cristyda16f162011-02-19 23:52:17 +000025789if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025790
cristye43a45e2009-09-28 14:49:00 +000025791else
25792 ac_cv_search_clock_gettime=no
25793fi
25794rm conftest.$ac_ext
25795LIBS=$ac_func_search_save_LIBS
25796fi
cristy8b350f62009-11-15 23:12:43 +000025797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025798$as_echo "$ac_cv_search_clock_gettime" >&6; }
25799ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025800if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025801 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25802
25803
cristy8b350f62009-11-15 23:12:43 +000025804$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025805
cristy8b350f62009-11-15 23:12:43 +000025806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025807$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025809/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025810
25811 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025812int
25813main ()
25814{
25815clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025816 ;
25817 return 0;
25818}
25819_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025820if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025821
cristy09b53e12011-10-14 12:47:22 +000025822 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25823$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025824
cristy8b350f62009-11-15 23:12:43 +000025825$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025826
25827
25828else
cristy09b53e12011-10-14 12:47:22 +000025829 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25830$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025831
25832fi
cristye43a45e2009-09-28 14:49:00 +000025833rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25834
25835else
25836
cristy8b350f62009-11-15 23:12:43 +000025837 for ac_func in gettimeofday ftime
25838do :
25839 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25840ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025841if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025842 cat >>confdefs.h <<_ACEOF
25843#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25844_ACEOF
25845 break
25846fi
25847done
25848
25849
25850
25851fi
25852
25853
cristy3ed852e2009-09-05 21:47:34 +000025854########
25855#
25856# Check for function prototypes
25857#
25858########
25859
cristy8b350f62009-11-15 23:12:43 +000025860ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025861#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025862"
cristyda16f162011-02-19 23:52:17 +000025863if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025864 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025865else
cristy8b350f62009-11-15 23:12:43 +000025866 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025867fi
25868
cristy3ed852e2009-09-05 21:47:34 +000025869cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025870#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025871_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025872ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025873#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025874"
cristyda16f162011-02-19 23:52:17 +000025875if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025876 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025877else
cristy8b350f62009-11-15 23:12:43 +000025878 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025879fi
25880
cristy3ed852e2009-09-05 21:47:34 +000025881cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025882#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025883_ACEOF
25884
25885
cristy8b350f62009-11-15 23:12:43 +000025886ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025887#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025888"
cristyda16f162011-02-19 23:52:17 +000025889if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025890 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025891else
cristy8b350f62009-11-15 23:12:43 +000025892 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025893fi
25894
cristy3ed852e2009-09-05 21:47:34 +000025895cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025896#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025897_ACEOF
25898
25899
cristy8b350f62009-11-15 23:12:43 +000025900ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025901#include <stdio.h>
25902#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025903"
cristyda16f162011-02-19 23:52:17 +000025904if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025905 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025906else
cristy8b350f62009-11-15 23:12:43 +000025907 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025908fi
25909
cristy3ed852e2009-09-05 21:47:34 +000025910cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025911#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025912_ACEOF
25913
25914
cristy3ed852e2009-09-05 21:47:34 +000025915########
25916#
25917# C++ Support Tests (For Magick++)
25918#
25919########
25920have_magick_plus_plus='no'
25921if test "$with_magick_plus_plus" = 'yes'; then
25922 OLIBS="$LIBS"
25923 LIBS=''
25924 ac_ext=cpp
25925ac_cpp='$CXXCPP $CPPFLAGS'
25926ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25927ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25928ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25929
25930
25931 # Full set of headers used...
25932 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25933 # functional iomanip iosfwd iostream iterator list string strstream utility
25934 ac_ext=cpp
25935ac_cpp='$CXXCPP $CPPFLAGS'
25936ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25937ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25938ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25939
25940 ac_ext=cpp
25941ac_cpp='$CXXCPP $CPPFLAGS'
25942ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25943ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25944ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25945if test -z "$CXX"; then
25946 if test -n "$CCC"; then
25947 CXX=$CCC
25948 else
25949 if test -n "$ac_tool_prefix"; then
25950 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25951 do
25952 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25953set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025955$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025956if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025957 $as_echo_n "(cached) " >&6
25958else
25959 if test -n "$CXX"; then
25960 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25961else
25962as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25963for as_dir in $PATH
25964do
25965 IFS=$as_save_IFS
25966 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025967 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025968 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025969 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025971 break 2
25972 fi
25973done
cristy8b350f62009-11-15 23:12:43 +000025974 done
cristy3ed852e2009-09-05 21:47:34 +000025975IFS=$as_save_IFS
25976
25977fi
25978fi
25979CXX=$ac_cv_prog_CXX
25980if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025982$as_echo "$CXX" >&6; }
25983else
cristy8b350f62009-11-15 23:12:43 +000025984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025985$as_echo "no" >&6; }
25986fi
25987
25988
25989 test -n "$CXX" && break
25990 done
25991fi
25992if test -z "$CXX"; then
25993 ac_ct_CXX=$CXX
25994 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25995do
25996 # Extract the first word of "$ac_prog", so it can be a program name with args.
25997set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025998{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025999$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026000if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026001 $as_echo_n "(cached) " >&6
26002else
26003 if test -n "$ac_ct_CXX"; then
26004 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
26005else
26006as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26007for as_dir in $PATH
26008do
26009 IFS=$as_save_IFS
26010 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026011 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026013 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000026014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026015 break 2
26016 fi
26017done
cristy8b350f62009-11-15 23:12:43 +000026018 done
cristy3ed852e2009-09-05 21:47:34 +000026019IFS=$as_save_IFS
26020
26021fi
26022fi
26023ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
26024if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000026025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000026026$as_echo "$ac_ct_CXX" >&6; }
26027else
cristy8b350f62009-11-15 23:12:43 +000026028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026029$as_echo "no" >&6; }
26030fi
26031
26032
26033 test -n "$ac_ct_CXX" && break
26034done
26035
26036 if test "x$ac_ct_CXX" = x; then
26037 CXX="g++"
26038 else
26039 case $cross_compiling:$ac_tool_warned in
26040yes:)
cristy8b350f62009-11-15 23:12:43 +000026041{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026042$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
26043ac_tool_warned=yes ;;
26044esac
26045 CXX=$ac_ct_CXX
26046 fi
26047fi
26048
26049 fi
26050fi
26051# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000026052$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000026053set X $ac_compile
26054ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000026055for ac_option in --version -v -V -qversion; do
26056 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000026057case "(($ac_try" in
26058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
26059 *) ac_try_echo=$ac_try;;
26060esac
cristy8b350f62009-11-15 23:12:43 +000026061eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
26062$as_echo "$ac_try_echo"; } >&5
26063 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000026064 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000026065 if test -s conftest.err; then
26066 sed '10a\
26067... rest of stderr output deleted ...
26068 10q' conftest.err >conftest.er1
26069 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026070 fi
cristycd4c5312009-11-22 01:19:08 +000026071 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026072 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26073 test $ac_status = 0; }
26074done
cristy3ed852e2009-09-05 21:47:34 +000026075
cristy8b350f62009-11-15 23:12:43 +000026076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026077$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026078if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026079 $as_echo_n "(cached) " >&6
26080else
cristy8b350f62009-11-15 23:12:43 +000026081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026082/* end confdefs.h. */
26083
26084int
26085main ()
26086{
26087#ifndef __GNUC__
26088 choke me
26089#endif
26090
26091 ;
26092 return 0;
26093}
26094_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026095if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026096 ac_compiler_gnu=yes
26097else
cristy8b350f62009-11-15 23:12:43 +000026098 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026099fi
cristy3ed852e2009-09-05 21:47:34 +000026100rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26101ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26102
26103fi
cristy8b350f62009-11-15 23:12:43 +000026104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026105$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26106if test $ac_compiler_gnu = yes; then
26107 GXX=yes
26108else
26109 GXX=
26110fi
26111ac_test_CXXFLAGS=${CXXFLAGS+set}
26112ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026114$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026115if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026116 $as_echo_n "(cached) " >&6
26117else
26118 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26119 ac_cxx_werror_flag=yes
26120 ac_cv_prog_cxx_g=no
26121 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026123/* end confdefs.h. */
26124
26125int
26126main ()
26127{
26128
26129 ;
26130 return 0;
26131}
26132_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026133if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026134 ac_cv_prog_cxx_g=yes
26135else
cristy8b350f62009-11-15 23:12:43 +000026136 CXXFLAGS=""
26137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026138/* end confdefs.h. */
26139
26140int
26141main ()
26142{
26143
26144 ;
26145 return 0;
26146}
26147_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026148if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026149
cristy8b350f62009-11-15 23:12:43 +000026150else
26151 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026152 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026154/* end confdefs.h. */
26155
26156int
26157main ()
26158{
26159
26160 ;
26161 return 0;
26162}
26163_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026164if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026165 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026166fi
cristy3ed852e2009-09-05 21:47:34 +000026167rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26168fi
cristy3ed852e2009-09-05 21:47:34 +000026169rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26170fi
cristy3ed852e2009-09-05 21:47:34 +000026171rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26172 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26173fi
cristy8b350f62009-11-15 23:12:43 +000026174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026175$as_echo "$ac_cv_prog_cxx_g" >&6; }
26176if test "$ac_test_CXXFLAGS" = set; then
26177 CXXFLAGS=$ac_save_CXXFLAGS
26178elif test $ac_cv_prog_cxx_g = yes; then
26179 if test "$GXX" = yes; then
26180 CXXFLAGS="-g -O2"
26181 else
26182 CXXFLAGS="-g"
26183 fi
26184else
26185 if test "$GXX" = yes; then
26186 CXXFLAGS="-O2"
26187 else
26188 CXXFLAGS=
26189 fi
26190fi
26191ac_ext=cpp
26192ac_cpp='$CXXCPP $CPPFLAGS'
26193ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26194ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26195ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26196
cristy73bd4a52010-10-05 11:24:23 +000026197depcc="$CXX" am_compiler_list=
26198
26199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26200$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026201if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026202 $as_echo_n "(cached) " >&6
26203else
26204 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26205 # We make a subdir and do the tests there. Otherwise we can end up
26206 # making bogus files that we don't know about and never remove. For
26207 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026208 # making a dummy file named 'D' -- because '-MD' means "put the output
26209 # in D".
cristy7247bba2012-02-05 16:37:27 +000026210 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026211 mkdir conftest.dir
26212 # Copy depcomp to subdir because otherwise we won't find it if we're
26213 # using a relative directory.
26214 cp "$am_depcomp" conftest.dir
26215 cd conftest.dir
26216 # We will build objects and dependencies in a subdirectory because
26217 # it helps to detect inapplicable dependency modes. For instance
26218 # both Tru64's cc and ICC support -MD to output dependencies as a
26219 # side effect of compilation, but ICC will put the dependencies in
26220 # the current directory while Tru64 will put them in the object
26221 # directory.
26222 mkdir sub
26223
26224 am_cv_CXX_dependencies_compiler_type=none
26225 if test "$am_compiler_list" = ""; then
26226 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26227 fi
26228 am__universal=false
26229 case " $depcc " in #(
26230 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26231 esac
26232
26233 for depmode in $am_compiler_list; do
26234 # Setup a source with many dependencies, because some compilers
26235 # like to wrap large dependency lists on column 80 (with \), and
26236 # we should not choose a depcomp mode which is confused by this.
26237 #
26238 # We need to recreate these files for each test, as the compiler may
26239 # overwrite some of them when testing with obscure command lines.
26240 # This happens at least with the AIX C compiler.
26241 : > sub/conftest.c
26242 for i in 1 2 3 4 5 6; do
26243 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026244 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26245 # Solaris 10 /bin/sh.
26246 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026247 done
26248 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26249
cristyc0890a62012-07-19 00:18:20 +000026250 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026251 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026252 # handle '-M -o', and we need to detect this. Also, some Intel
26253 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026254 am__obj=sub/conftest.${OBJEXT-o}
26255 am__minus_obj="-o $am__obj"
26256 case $depmode in
26257 gcc)
26258 # This depmode causes a compiler race in universal mode.
26259 test "$am__universal" = false || continue
26260 ;;
26261 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026262 # After this tag, mechanisms are not by side-effect, so they'll
26263 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026264 if test "x$enable_dependency_tracking" = xyes; then
26265 continue
26266 else
26267 break
26268 fi
26269 ;;
cristy7247bba2012-02-05 16:37:27 +000026270 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026271 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026272 # not run yet. These depmodes are late enough in the game, and
26273 # so weak that their functioning should not be impacted.
26274 am__obj=conftest.${OBJEXT-o}
26275 am__minus_obj=
26276 ;;
26277 none) break ;;
26278 esac
26279 if depmode=$depmode \
26280 source=sub/conftest.c object=$am__obj \
26281 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26282 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26283 >/dev/null 2>conftest.err &&
26284 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26285 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26286 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26287 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26288 # icc doesn't choke on unknown options, it will just issue warnings
26289 # or remarks (even with -Werror). So we grep stderr for any message
26290 # that says an option was ignored or not supported.
26291 # When given -MP, icc 7.0 and 7.1 complain thusly:
26292 # icc: Command line warning: ignoring option '-M'; no argument required
26293 # The diagnosis changed in icc 8.0:
26294 # icc: Command line remark: option '-MP' not supported
26295 if (grep 'ignoring option' conftest.err ||
26296 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26297 am_cv_CXX_dependencies_compiler_type=$depmode
26298 break
26299 fi
26300 fi
26301 done
26302
26303 cd ..
26304 rm -rf conftest.dir
26305else
26306 am_cv_CXX_dependencies_compiler_type=none
26307fi
26308
26309fi
26310{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26311$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26312CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26313
26314 if
26315 test "x$enable_dependency_tracking" != xno \
26316 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26317 am__fastdepCXX_TRUE=
26318 am__fastdepCXX_FALSE='#'
26319else
26320 am__fastdepCXX_TRUE='#'
26321 am__fastdepCXX_FALSE=
26322fi
26323
26324
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26326$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026327if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026328 $as_echo_n "(cached) " >&6
26329else
26330
26331 ac_ext=cpp
26332ac_cpp='$CXXCPP $CPPFLAGS'
26333ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26334ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26335ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26336
26337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26338/* end confdefs.h. */
26339
26340int f(int x){return 1;}
26341int f(char x){return 1;}
26342int f(bool x){return 1;}
26343
26344int
26345main ()
26346{
26347bool b = true; return f(b);
26348 ;
26349 return 0;
26350}
26351_ACEOF
26352if ac_fn_cxx_try_compile "$LINENO"; then :
26353 ax_cv_cxx_bool=yes
26354else
26355 ax_cv_cxx_bool=no
26356fi
26357rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26358 ac_ext=cpp
26359ac_cpp='$CXXCPP $CPPFLAGS'
26360ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26361ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26362ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26363
26364
26365fi
26366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26367$as_echo "$ax_cv_cxx_bool" >&6; }
26368if test "$ax_cv_cxx_bool" = yes; then
26369
26370$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26371
26372fi
26373
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26375$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026376if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026377 $as_echo_n "(cached) " >&6
26378else
26379
26380 ac_ext=cpp
26381ac_cpp='$CXXCPP $CPPFLAGS'
26382ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26383ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26384ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26385
26386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26387/* end confdefs.h. */
26388namespace Outer { namespace Inner { int i = 0; }}
26389int
26390main ()
26391{
26392using namespace Outer::Inner; return i;
26393 ;
26394 return 0;
26395}
26396_ACEOF
26397if ac_fn_cxx_try_compile "$LINENO"; then :
26398 ax_cv_cxx_namespaces=yes
26399else
26400 ax_cv_cxx_namespaces=no
26401fi
26402rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26403 ac_ext=cpp
26404ac_cpp='$CXXCPP $CPPFLAGS'
26405ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26406ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26407ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26408
26409
26410fi
26411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26412$as_echo "$ax_cv_cxx_namespaces" >&6; }
26413if test "$ax_cv_cxx_namespaces" = yes; then
26414
26415$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26416
26417fi
26418
26419
26420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26421$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026422if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026423 $as_echo_n "(cached) " >&6
26424else
26425
26426 ac_ext=cpp
26427ac_cpp='$CXXCPP $CPPFLAGS'
26428ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26429ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26430ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26431
26432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26433/* end confdefs.h. */
26434#include <iostream>
26435 std::istream& is = std::cin;
26436int
26437main ()
26438{
26439
26440 ;
26441 return 0;
26442}
26443_ACEOF
26444if ac_fn_cxx_try_compile "$LINENO"; then :
26445 ax_cv_cxx_have_std_namespace=yes
26446else
26447 ax_cv_cxx_have_std_namespace=no
26448fi
26449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26450 ac_ext=cpp
26451ac_cpp='$CXXCPP $CPPFLAGS'
26452ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26453ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26454ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26455
26456
26457fi
26458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26459$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26460 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26461
26462$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26463
26464 fi
26465
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26467$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026468if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026469 $as_echo_n "(cached) " >&6
26470else
26471
26472
26473 ac_ext=cpp
26474ac_cpp='$CXXCPP $CPPFLAGS'
26475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26478
26479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480/* end confdefs.h. */
26481#include <iostream>
26482#include <map>
26483#include <iomanip>
26484#include <cmath>
26485#ifdef HAVE_NAMESPACES
26486using namespace std;
26487#endif
26488int
26489main ()
26490{
26491return 0;
26492 ;
26493 return 0;
26494}
26495_ACEOF
26496if ac_fn_cxx_try_compile "$LINENO"; then :
26497 ac_cv_cxx_have_std_libs=yes
26498else
26499 ac_cv_cxx_have_std_libs=no
26500fi
26501rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26502 ac_ext=cpp
26503ac_cpp='$CXXCPP $CPPFLAGS'
26504ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26505ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26506ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26507
26508
26509fi
26510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26511$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26512if test "$ac_cv_cxx_have_std_libs" = yes; then
26513
26514$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26515
26516fi
26517
cristy3ed852e2009-09-05 21:47:34 +000026518
26519 OPENMP_CXXFLAGS=
26520 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026521if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026522 enableval=$enable_openmp;
26523fi
26524
26525 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26527$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026528if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026529 $as_echo_n "(cached) " >&6
26530else
cristy8b350f62009-11-15 23:12:43 +000026531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26532/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026533
26534#ifndef _OPENMP
26535 choke me
26536#endif
26537#include <omp.h>
26538int main () { return omp_get_num_threads (); }
26539
26540_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026541if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026542 ac_cv_prog_cxx_openmp='none needed'
26543else
cristy8b350f62009-11-15 23:12:43 +000026544 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026545 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26546 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026547 ac_save_CXXFLAGS=$CXXFLAGS
26548 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26550/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026551
26552#ifndef _OPENMP
26553 choke me
26554#endif
26555#include <omp.h>
26556int main () { return omp_get_num_threads (); }
26557
26558_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026559if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026560 ac_cv_prog_cxx_openmp=$ac_option
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 +000026564 CXXFLAGS=$ac_save_CXXFLAGS
26565 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26566 break
26567 fi
26568 done
26569fi
cristy8b350f62009-11-15 23:12:43 +000026570rm -f core conftest.err conftest.$ac_objext \
26571 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026572fi
cristy8b350f62009-11-15 23:12:43 +000026573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026574$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26575 case $ac_cv_prog_cxx_openmp in #(
26576 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026577 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026578 *)
cristy8b350f62009-11-15 23:12:43 +000026579 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026580 esac
26581 fi
26582
26583
26584 ac_ext=c
26585ac_cpp='$CPP $CPPFLAGS'
26586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26588ac_compiler_gnu=$ac_cv_c_compiler_gnu
26589
26590
cristy8b350f62009-11-15 23:12:43 +000026591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026592$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26593 if \
cristy964cb7f2010-04-25 23:18:00 +000026594 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026595 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026596 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026597 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026598 have_magick_plus_plus='yes'
26599 else
26600 have_magick_plus_plus='no (failed tests)'
26601 fi
cristy09b53e12011-10-14 12:47:22 +000026602 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26603$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026604 LIBS="$OLIBS"
26605fi
cristy73bd4a52010-10-05 11:24:23 +000026606 if test "$have_magick_plus_plus" = 'yes'; then
26607 WITH_MAGICK_PLUS_PLUS_TRUE=
26608 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26609else
26610 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26611 WITH_MAGICK_PLUS_PLUS_FALSE=
26612fi
26613
cristy3ed852e2009-09-05 21:47:34 +000026614
26615# Only check for delegate libraries in subdirectories if requested.
26616if test "$enable_delegate_build" != 'no'; then
26617 # Check for delegate sub-directories and add -I & -L options as required.
26618 # This presumes that delegates are installed as detailed in the ImageMagick
26619 # README. If delegates are installed in a standard location where the
26620 # compiler will automatically find them then these options should not be
26621 # required.
26622
26623 #
26624 # Most delegates have includes in the same directory as the library, but not all...
26625 #
26626 # Includes
cristy2542fc62011-12-06 17:50:25 +000026627 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper/include jbig/libjbig jpeg lcms/include lzma magick png tiff/libtiff ttf/include wand webp wmf/include xml/include zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026628 if test -d "$builddir/$dir"; then
26629 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26630 else
26631 if test -d "$srcdirfull/$dir"; then
26632 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26633 fi
26634 fi
26635 done
26636
26637 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026638 for dir in bzlib fftw fpx gslib/src jp2 jp2/src/libjasper jbig/libjbig jpeg lcms/src lzma magick png tiff/libtiff ttf/objs wand webp wmf/src xml zlib; do
cristy3ed852e2009-09-05 21:47:34 +000026639 if test -d "$builddir/$dir/.libs"; then
26640 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26641 else
26642 if test -d "$srcdirfull/$dir/.libs"; then
26643 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26644 fi
26645 fi
26646 if test -d "$builddir/$dir"; then
26647 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26648 else
26649 if test -d "$srcdirfull/$dir"; then
26650 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26651 fi
26652 fi
26653 done
26654fi
26655
26656# Assume that delegate headers reside under same directory as ImageMagick
26657# installation prefix.
26658MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26659
26660#
26661# Find the X11 RGB database
26662#
cristy8b350f62009-11-15 23:12:43 +000026663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026664$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026665if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026666 $as_echo_n "(cached) " >&6
26667else
26668 # Look for the header file in a standard set of common directories.
26669# Check X11 before X11Rn because it is often a symlink to the current release.
26670 for ac_dir in \
26671 /lib/usr/lib/X11 \
26672 /usr/X11/lib \
26673 /usr/X11R4/lib \
26674 /usr/X11R5/lib \
26675 /usr/X11R6/lib \
26676 /usr/X11R7/lib \
26677 /usr/X386/lib \
26678 /usr/XFree86/lib/X11 \
26679 /usr/athena/lib \
26680 /usr/lib \
26681 /usr/lib/X11 \
26682 /usr/lib/X11R4 \
26683 /usr/lib/X11R5 \
26684 /usr/lib/X11R6 \
26685 /usr/lib/X11R7 \
26686 /usr/local/X11/lib \
26687 /usr/local/X11R4/lib \
26688 /usr/local/X11R5/lib \
26689 /usr/local/X11R6/lib \
26690 /usr/local/lib \
26691 /usr/local/lib/X11 \
26692 /usr/local/lib/X11R4 \
26693 /usr/local/lib/X11R5 \
26694 /usr/local/lib/X11R6 \
26695 /usr/local/lib/X11R7 \
26696 /usr/local/x11r5/lib \
26697 /usr/lpp/Xamples/lib \
26698 /usr/openwin/lib \
26699 /usr/openwin/share/lib \
26700 /usr/unsupported/lib \
26701 /usr/x386/lib \
26702 ; do
26703 if test -f "$ac_dir/X11/rgb.txt"; then
26704 im_cv_x_configure="$ac_dir/X11/"
26705 break
26706 elif test -f "$ac_dir/rgb.txt"; then
26707 im_cv_x_configure="$ac_dir/"
26708 break
26709 fi
26710
26711 done
26712fi
cristy8b350f62009-11-15 23:12:43 +000026713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026714$as_echo "$im_cv_x_configure" >&6; }
26715X11_CONFIGURE_PATH="$im_cv_x_configure"
26716case "${build_os}" in
26717 mingw* )
26718 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26719 ;;
26720esac
26721
26722cat >>confdefs.h <<_ACEOF
26723#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26724_ACEOF
26725
26726
26727#
26728# Find OpenMP library
26729#
26730GOMP_LIBS=''
26731if test "$enable_openmp" != 'no'; then
26732 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026733 # Open64 (passes for GCC but uses different OpenMP implementation)
26734 if test "x$GOMP_LIBS" = x ; then
26735 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26737$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26738if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26739 $as_echo_n "(cached) " >&6
26740else
26741 ac_check_lib_save_LIBS=$LIBS
26742LIBS="-lopenmp $LIBS"
26743cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26744/* end confdefs.h. */
26745
26746/* Override any GCC internal prototype to avoid an error.
26747 Use char because int might match the return type of a GCC
26748 builtin and then its argument prototype would still apply. */
26749#ifdef __cplusplus
26750extern "C"
26751#endif
26752char omp_get_num_procs ();
26753int
26754main ()
26755{
26756return omp_get_num_procs ();
26757 ;
26758 return 0;
26759}
26760_ACEOF
26761if ac_fn_c_try_link "$LINENO"; then :
26762 ac_cv_lib_openmp_omp_get_num_procs=yes
26763else
26764 ac_cv_lib_openmp_omp_get_num_procs=no
26765fi
26766rm -f core conftest.err conftest.$ac_objext \
26767 conftest$ac_exeext conftest.$ac_ext
26768LIBS=$ac_check_lib_save_LIBS
26769fi
26770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26771$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26772if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26773 GOMP_LIBS="-lopenmp"
26774fi
26775
26776 fi
26777 fi
26778 # GCC
26779 if test "x$GOMP_LIBS" = x ; then
26780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026781$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026782if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026783 $as_echo_n "(cached) " >&6
26784else
26785 ac_check_lib_save_LIBS=$LIBS
26786LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026788/* end confdefs.h. */
26789
26790/* Override any GCC internal prototype to avoid an error.
26791 Use char because int might match the return type of a GCC
26792 builtin and then its argument prototype would still apply. */
26793#ifdef __cplusplus
26794extern "C"
26795#endif
26796char GOMP_parallel_start ();
26797int
26798main ()
26799{
26800return GOMP_parallel_start ();
26801 ;
26802 return 0;
26803}
26804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026806 ac_cv_lib_gomp_GOMP_parallel_start=yes
26807else
cristy8b350f62009-11-15 23:12:43 +000026808 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026809fi
cristy8b350f62009-11-15 23:12:43 +000026810rm -f core conftest.err conftest.$ac_objext \
26811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026812LIBS=$ac_check_lib_save_LIBS
26813fi
cristy8b350f62009-11-15 23:12:43 +000026814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026815$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026816if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026817 GOMP_LIBS="-lgomp"
26818fi
cristy18307f12011-12-30 01:20:16 +000026819
26820 fi
cristy3ed852e2009-09-05 21:47:34 +000026821 else
cristy18307f12011-12-30 01:20:16 +000026822 # Sun CC
26823 if test "x$GOMP_LIBS" = x ; then
26824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026825$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026826if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026827 $as_echo_n "(cached) " >&6
26828else
26829 ac_check_lib_save_LIBS=$LIBS
26830LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026831cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026832/* end confdefs.h. */
26833
26834/* Override any GCC internal prototype to avoid an error.
26835 Use char because int might match the return type of a GCC
26836 builtin and then its argument prototype would still apply. */
26837#ifdef __cplusplus
26838extern "C"
26839#endif
26840char sunw_mp_register_warn ();
26841int
26842main ()
26843{
26844return sunw_mp_register_warn ();
26845 ;
26846 return 0;
26847}
26848_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026849if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026850 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26851else
cristy8b350f62009-11-15 23:12:43 +000026852 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026853fi
cristy8b350f62009-11-15 23:12:43 +000026854rm -f core conftest.err conftest.$ac_objext \
26855 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026856LIBS=$ac_check_lib_save_LIBS
26857fi
cristy8b350f62009-11-15 23:12:43 +000026858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026859$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026860if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026861 GOMP_LIBS="-lmtsk"
26862fi
cristy18307f12011-12-30 01:20:16 +000026863
26864 fi
26865 # AIX xlc
26866 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026868$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026869if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026870 $as_echo_n "(cached) " >&6
26871else
26872 ac_check_lib_save_LIBS=$LIBS
26873LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026874cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026875/* end confdefs.h. */
26876
26877/* Override any GCC internal prototype to avoid an error.
26878 Use char because int might match the return type of a GCC
26879 builtin and then its argument prototype would still apply. */
26880#ifdef __cplusplus
26881extern "C"
26882#endif
26883char _xlsmpFlush ();
26884int
26885main ()
26886{
26887return _xlsmpFlush ();
26888 ;
26889 return 0;
26890}
26891_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026892if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026893 ac_cv_lib_xlsmp__xlsmpFlush=yes
26894else
cristy8b350f62009-11-15 23:12:43 +000026895 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026896fi
cristy8b350f62009-11-15 23:12:43 +000026897rm -f core conftest.err conftest.$ac_objext \
26898 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026899LIBS=$ac_check_lib_save_LIBS
26900fi
cristy8b350f62009-11-15 23:12:43 +000026901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026902$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026903if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026904 GOMP_LIBS="-lxlsmp"
26905fi
cristy18307f12011-12-30 01:20:16 +000026906
26907 fi
26908 # SGI IRIX 6.5 MIPSpro C/C++
26909 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026911$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026912if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026913 $as_echo_n "(cached) " >&6
26914else
26915 ac_check_lib_save_LIBS=$LIBS
26916LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026917cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026918/* end confdefs.h. */
26919
26920/* Override any GCC internal prototype to avoid an error.
26921 Use char because int might match the return type of a GCC
26922 builtin and then its argument prototype would still apply. */
26923#ifdef __cplusplus
26924extern "C"
26925#endif
26926char mp_destroy ();
26927int
26928main ()
26929{
26930return mp_destroy ();
26931 ;
26932 return 0;
26933}
26934_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026935if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026936 ac_cv_lib_mp_mp_destroy=yes
26937else
cristy8b350f62009-11-15 23:12:43 +000026938 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026939fi
cristy8b350f62009-11-15 23:12:43 +000026940rm -f core conftest.err conftest.$ac_objext \
26941 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026942LIBS=$ac_check_lib_save_LIBS
26943fi
cristy8b350f62009-11-15 23:12:43 +000026944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026945$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026946if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026947 GOMP_LIBS="-lmp"
26948fi
cristy18307f12011-12-30 01:20:16 +000026949
26950 fi
cristy3ed852e2009-09-05 21:47:34 +000026951 fi
26952 LIBS="$GOMP_LIBS $LIBS"
26953fi
26954
26955
26956#
26957# Find Posix threads library
26958#
26959THREAD_LIBS=''
26960if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26961
26962 if test "x$PTHREAD_LIBS" = "x"; then
26963 case "${host_cpu}-${host_os}" in
26964 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026965
26966
26967
26968ac_ext=c
26969ac_cpp='$CPP $CPPFLAGS'
26970ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26971ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26972ac_compiler_gnu=$ac_cv_c_compiler_gnu
26973
26974magick_pthread_lib_ok=no
26975
26976LIB=-lc_r
26977save_LIBS="$LIBS"
26978LIBS="$LIBS $LIB"
26979
26980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26981$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26983/* end confdefs.h. */
26984#include <pthread.h>
26985int
26986main ()
26987{
26988 pthread_t th;
26989 pthread_join(th, 0);
26990 pthread_attr_init(0);
26991 pthread_cleanup_push(0, 0);
26992 pthread_create(0,0,0,0);
26993 pthread_cleanup_pop(0);
26994 ;
26995 return 0;
26996}
26997_ACEOF
26998if ac_fn_c_try_link "$LINENO"; then :
26999 magick_pthread_lib_ok=yes
27000fi
27001rm -f core conftest.err conftest.$ac_objext \
27002 conftest$ac_exeext conftest.$ac_ext
27003
27004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
27005$as_echo "${magick_pthread_lib_ok}" >&6; }
27006if test "$magick_pthread_lib_ok" = yes
27007then
27008 PTHREAD_LIBS=-lc_r
27009 :
27010else
27011
27012 :
27013fi
27014
27015LIBS="$save_LIBS"
27016
27017ac_ext=c
27018ac_cpp='$CPP $CPPFLAGS'
27019ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27020ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27021ac_compiler_gnu=$ac_cv_c_compiler_gnu
27022
27023 ;;
cristy3ed852e2009-09-05 21:47:34 +000027024 esac
27025 fi
27026
27027 for lib in pthread pthreads; do
27028 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000027029
27030
27031
27032ac_ext=c
27033ac_cpp='$CPP $CPPFLAGS'
27034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27036ac_compiler_gnu=$ac_cv_c_compiler_gnu
27037
27038magick_pthread_lib_ok=no
27039
27040LIB=-l$lib
27041save_LIBS="$LIBS"
27042LIBS="$LIBS $LIB"
27043
27044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
27045$as_echo_n "checking for the pthreads library $LIB... " >&6; }
27046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27047/* end confdefs.h. */
27048#include <pthread.h>
27049int
27050main ()
27051{
27052 pthread_t th;
27053 pthread_join(th, 0);
27054 pthread_attr_init(0);
27055 pthread_cleanup_push(0, 0);
27056 pthread_create(0,0,0,0);
27057 pthread_cleanup_pop(0);
27058 ;
27059 return 0;
27060}
27061_ACEOF
27062if ac_fn_c_try_link "$LINENO"; then :
27063 magick_pthread_lib_ok=yes
27064fi
27065rm -f core conftest.err conftest.$ac_objext \
27066 conftest$ac_exeext conftest.$ac_ext
27067
27068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
27069$as_echo "${magick_pthread_lib_ok}" >&6; }
27070if test "$magick_pthread_lib_ok" = yes
27071then
27072 PTHREAD_LIBS=-l$lib
27073 :
27074else
27075
27076 :
27077fi
27078
27079LIBS="$save_LIBS"
27080
27081ac_ext=c
27082ac_cpp='$CPP $CPPFLAGS'
27083ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27084ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27085ac_compiler_gnu=$ac_cv_c_compiler_gnu
27086
27087
cristy3ed852e2009-09-05 21:47:34 +000027088 fi
27089 done
27090
27091 THREAD_LIBS="$PTHREAD_LIBS"
27092 LIBS="$LIBS $THREAD_LIBS"
27093fi
27094
27095
27096#
27097# Check for umem.
27098#
27099have_umem='no'
27100UMEM_LIBS=''
27101if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027104 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27105$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027106 failed=0
27107 passed=0
cristy8b350f62009-11-15 23:12:43 +000027108 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027109if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027110 passed=`expr $passed + 1`
27111else
27112 failed=`expr $failed + 1`
27113fi
27114
27115
cristy8b350f62009-11-15 23:12:43 +000027116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027117$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027118if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027119 $as_echo_n "(cached) " >&6
27120else
27121 ac_check_lib_save_LIBS=$LIBS
27122LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027123cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027124/* end confdefs.h. */
27125
27126/* Override any GCC internal prototype to avoid an error.
27127 Use char because int might match the return type of a GCC
27128 builtin and then its argument prototype would still apply. */
27129#ifdef __cplusplus
27130extern "C"
27131#endif
27132char umem_alloc ();
27133int
27134main ()
27135{
27136return umem_alloc ();
27137 ;
27138 return 0;
27139}
27140_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027141if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027142 ac_cv_lib_umem_umem_alloc=yes
27143else
cristy8b350f62009-11-15 23:12:43 +000027144 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027145fi
cristy8b350f62009-11-15 23:12:43 +000027146rm -f core conftest.err conftest.$ac_objext \
27147 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027148LIBS=$ac_check_lib_save_LIBS
27149fi
cristy8b350f62009-11-15 23:12:43 +000027150{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027151$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027152if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027153 passed=`expr $passed + 1`
27154else
27155 failed=`expr $failed + 1`
27156fi
27157
cristy8b350f62009-11-15 23:12:43 +000027158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027159$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027160if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027161 $as_echo_n "(cached) " >&6
27162else
27163 ac_check_lib_save_LIBS=$LIBS
27164LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027165cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027166/* end confdefs.h. */
27167
27168/* Override any GCC internal prototype to avoid an error.
27169 Use char because int might match the return type of a GCC
27170 builtin and then its argument prototype would still apply. */
27171#ifdef __cplusplus
27172extern "C"
27173#endif
27174char umem_free ();
27175int
27176main ()
27177{
27178return umem_free ();
27179 ;
27180 return 0;
27181}
27182_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027183if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027184 ac_cv_lib_umem_umem_free=yes
27185else
cristy8b350f62009-11-15 23:12:43 +000027186 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027187fi
cristy8b350f62009-11-15 23:12:43 +000027188rm -f core conftest.err conftest.$ac_objext \
27189 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027190LIBS=$ac_check_lib_save_LIBS
27191fi
cristy8b350f62009-11-15 23:12:43 +000027192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027193$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027194if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027195 passed=`expr $passed + 1`
27196else
27197 failed=`expr $failed + 1`
27198fi
27199
cristy8b350f62009-11-15 23:12:43 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27202 if test $passed -gt 0; then
27203 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027204 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27205$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027206 have_umem='no (failed tests)'
27207 else
27208 UMEM_LIBS='-lumem'
27209 LIBS="$UMEM_LIBS $LIBS"
27210
cristy8b350f62009-11-15 23:12:43 +000027211$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027212
cristy09b53e12011-10-14 12:47:22 +000027213 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27214$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027215 have_umem='yes'
27216 fi
27217 else
cristy09b53e12011-10-14 12:47:22 +000027218 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27219$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027220 fi
27221fi
cristy73bd4a52010-10-05 11:24:23 +000027222 if test "$have_umem" = 'yes'; then
27223 HasUMEM_TRUE=
27224 HasUMEM_FALSE='#'
27225else
27226 HasUMEM_TRUE='#'
27227 HasUMEM_FALSE=
27228fi
27229
cristy3ed852e2009-09-05 21:47:34 +000027230
27231
27232#
27233# Add support for ccmalloc memory debugging library if requested
27234#
27235have_ccmalloc='no'
27236CCMALLOC_LIBS=''
27237if test "$enable_ccmalloc" = 'yes'; then
27238 # Extract the first word of "ccmalloc", so it can be a program name with args.
27239set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027241$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027242if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027243 $as_echo_n "(cached) " >&6
27244else
27245 case $CCMALLOCDelegate in
27246 [\\/]* | ?:[\\/]*)
27247 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27248 ;;
27249 *)
27250 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27251for as_dir in $PATH
27252do
27253 IFS=$as_save_IFS
27254 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027257 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027259 break 2
27260 fi
27261done
cristy8b350f62009-11-15 23:12:43 +000027262 done
cristy3ed852e2009-09-05 21:47:34 +000027263IFS=$as_save_IFS
27264
27265 ;;
27266esac
27267fi
27268CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27269if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027271$as_echo "$CCMALLOCDelegate" >&6; }
27272else
cristy8b350f62009-11-15 23:12:43 +000027273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027274$as_echo "no" >&6; }
27275fi
27276
27277
27278 if test -n "$CCMALLOCDelegate"; then
27279 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27280 OLIBS="$LIBS"
27281 # Assume that gcc is used with ccmalloc.
27282 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027284$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027285if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027286 $as_echo_n "(cached) " >&6
27287else
27288 ac_check_lib_save_LIBS=$LIBS
27289LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027290cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027291/* end confdefs.h. */
27292
27293/* Override any GCC internal prototype to avoid an error.
27294 Use char because int might match the return type of a GCC
27295 builtin and then its argument prototype would still apply. */
27296#ifdef __cplusplus
27297extern "C"
27298#endif
27299char ccmalloc_malloc ();
27300int
27301main ()
27302{
27303return ccmalloc_malloc ();
27304 ;
27305 return 0;
27306}
27307_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027308if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027309 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27310else
cristy8b350f62009-11-15 23:12:43 +000027311 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027312fi
cristy8b350f62009-11-15 23:12:43 +000027313rm -f core conftest.err conftest.$ac_objext \
27314 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027315LIBS=$ac_check_lib_save_LIBS
27316fi
cristy8b350f62009-11-15 23:12:43 +000027317{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027318$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027319if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027320 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27321fi
27322
27323 if test -n "$CCMALLOC_LIBS"; then
27324 LIBS="$OLIBS"
27325 LIBS="$LIBS $CCMALLOC_LIBS"
27326 have_ccmalloc='yes'
27327 else
27328 LIBS="$OLIBS"
27329 fi
27330 fi
27331fi
27332
27333#
27334# Add support for efence memory debugging library if requested
27335#
27336if test "$enable_efence" = 'yes'; then
27337 EFENCE_LIBS='-lefence'
27338 LIBS="$EFENCE_LIBS $LIBS"
27339fi
27340
cristy3ed852e2009-09-05 21:47:34 +000027341
27342#
27343# Check for BZLIB
27344#
27345
27346
27347# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027348if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027349 withval=$with_bzlib; with_bzlib=$withval
27350else
27351 with_bzlib='yes'
27352fi
27353
27354
27355if test "$with_bzlib" != 'yes'; then
27356 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27357fi
27358
27359have_bzlib='no'
27360if test "$with_bzlib" != 'no'; then
27361 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027362 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27363$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027365$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027366 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27367$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027368 failed=0
27369 passed=0
27370 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027371 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027372if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027373 passed=`expr $passed + 1`
27374else
27375 failed=`expr $failed + 1`
27376fi
27377
27378
cristy8b350f62009-11-15 23:12:43 +000027379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027380$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027381if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027382 $as_echo_n "(cached) " >&6
27383else
27384 ac_check_lib_save_LIBS=$LIBS
27385LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027386cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027387/* end confdefs.h. */
27388
27389/* Override any GCC internal prototype to avoid an error.
27390 Use char because int might match the return type of a GCC
27391 builtin and then its argument prototype would still apply. */
27392#ifdef __cplusplus
27393extern "C"
27394#endif
27395char BZ2_bzDecompress ();
27396int
27397main ()
27398{
27399return BZ2_bzDecompress ();
27400 ;
27401 return 0;
27402}
27403_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027404if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027405 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27406else
cristy8b350f62009-11-15 23:12:43 +000027407 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027408fi
cristy8b350f62009-11-15 23:12:43 +000027409rm -f core conftest.err conftest.$ac_objext \
27410 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027411LIBS=$ac_check_lib_save_LIBS
27412fi
cristy8b350f62009-11-15 23:12:43 +000027413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027414$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027415if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027416 found_libbz=`expr $found_libbz + 1`
27417fi
27418
27419 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027421$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027422if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027423 $as_echo_n "(cached) " >&6
27424else
27425 ac_check_lib_save_LIBS=$LIBS
27426LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027427cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027428/* end confdefs.h. */
27429
27430/* Override any GCC internal prototype to avoid an error.
27431 Use char because int might match the return type of a GCC
27432 builtin and then its argument prototype would still apply. */
27433#ifdef __cplusplus
27434extern "C"
27435#endif
27436char _imp__BZ2_decompress ();
27437int
27438main ()
27439{
27440return _imp__BZ2_decompress ();
27441 ;
27442 return 0;
27443}
27444_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027445if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027446 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27447else
cristy8b350f62009-11-15 23:12:43 +000027448 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027449fi
cristy8b350f62009-11-15 23:12:43 +000027450rm -f core conftest.err conftest.$ac_objext \
27451 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027452LIBS=$ac_check_lib_save_LIBS
27453fi
cristy8b350f62009-11-15 23:12:43 +000027454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027455$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027456if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027457 found_libbz=`expr $found_libbz + 1`
27458fi
27459
27460 fi
27461 if test $found_libbz -gt 0; then
27462 passed=`expr $passed + 1`
27463 else
27464 failed=`expr $failed + 1`
27465 fi
cristy8b350f62009-11-15 23:12:43 +000027466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027467$as_echo_n "checking if BZLIB package is complete... " >&6; }
27468 if test $passed -gt 0; then
27469 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027470 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27471$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027472 have_bzlib='no (failed tests)'
27473 else
27474 BZLIB_LIBS='-lbz2'
27475 LIBS="$BZLIB_LIBS $LIBS"
27476
cristy8b350f62009-11-15 23:12:43 +000027477$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027478
cristy09b53e12011-10-14 12:47:22 +000027479 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27480$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027481 have_bzlib='yes'
27482 fi
27483 else
cristy09b53e12011-10-14 12:47:22 +000027484 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27485$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027486 fi
27487fi
cristy73bd4a52010-10-05 11:24:23 +000027488 if test "$have_bzlib" = 'yes'; then
27489 BZLIB_DELEGATE_TRUE=
27490 BZLIB_DELEGATE_FALSE='#'
27491else
27492 BZLIB_DELEGATE_TRUE='#'
27493 BZLIB_DELEGATE_FALSE=
27494fi
27495
cristy3ed852e2009-09-05 21:47:34 +000027496
27497
27498#
27499# Find the X11 include and library directories.
27500#
27501IPC_LIBS=''
27502X11_LIBS=''
27503XEXT_LIBS=''
27504XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027505{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027506$as_echo_n "checking for X... " >&6; }
27507
27508
27509# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027510if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027511 withval=$with_x;
27512fi
27513
27514# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27515if test "x$with_x" = xno; then
27516 # The user explicitly disabled X.
27517 have_x=disabled
27518else
27519 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027520 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027521 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027522 $as_echo_n "(cached) " >&6
27523else
27524 # One or both of the vars are not set, and there is no cached value.
27525ac_x_includes=no ac_x_libraries=no
27526rm -f -r conftest.dir
27527if mkdir conftest.dir; then
27528 cd conftest.dir
27529 cat >Imakefile <<'_ACEOF'
27530incroot:
27531 @echo incroot='${INCROOT}'
27532usrlibdir:
27533 @echo usrlibdir='${USRLIBDIR}'
27534libdir:
27535 @echo libdir='${LIBDIR}'
27536_ACEOF
27537 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027538 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027539 for ac_var in incroot usrlibdir libdir; do
27540 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27541 done
27542 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27543 for ac_extension in a so sl dylib la dll; do
27544 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27545 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27546 ac_im_usrlibdir=$ac_im_libdir; break
27547 fi
27548 done
27549 # Screen out bogus values from the imake configuration. They are
27550 # bogus both because they are the default anyway, and because
27551 # using them would break gcc on systems where it needs fixed includes.
27552 case $ac_im_incroot in
27553 /usr/include) ac_x_includes= ;;
27554 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27555 esac
27556 case $ac_im_usrlibdir in
27557 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27558 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27559 esac
27560 fi
27561 cd ..
27562 rm -f -r conftest.dir
27563fi
27564
27565# Standard set of common directories for X headers.
27566# Check X11 before X11Rn because it is often a symlink to the current release.
27567ac_x_header_dirs='
27568/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027569/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027570/usr/X11R6/include
27571/usr/X11R5/include
27572/usr/X11R4/include
27573
27574/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027575/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027576/usr/include/X11R6
27577/usr/include/X11R5
27578/usr/include/X11R4
27579
27580/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027581/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027582/usr/local/X11R6/include
27583/usr/local/X11R5/include
27584/usr/local/X11R4/include
27585
27586/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027587/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027588/usr/local/include/X11R6
27589/usr/local/include/X11R5
27590/usr/local/include/X11R4
27591
27592/usr/X386/include
27593/usr/x386/include
27594/usr/XFree86/include/X11
27595
27596/usr/include
27597/usr/local/include
27598/usr/unsupported/include
27599/usr/athena/include
27600/usr/local/x11r5/include
27601/usr/lpp/Xamples/include
27602
27603/usr/openwin/include
27604/usr/openwin/share/include'
27605
27606if test "$ac_x_includes" = no; then
27607 # Guess where to find include files, by looking for Xlib.h.
27608 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027610/* end confdefs.h. */
27611#include <X11/Xlib.h>
27612_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027613if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027614 # We can compile using X headers with no special include directory.
27615ac_x_includes=
27616else
cristyc7083c12009-10-14 03:16:55 +000027617 for ac_dir in $ac_x_header_dirs; do
27618 if test -r "$ac_dir/X11/Xlib.h"; then
27619 ac_x_includes=$ac_dir
27620 break
27621 fi
27622done
27623fi
cristyda16f162011-02-19 23:52:17 +000027624rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027625fi # $ac_x_includes = no
27626
27627if test "$ac_x_libraries" = no; then
27628 # Check for the libraries.
27629 # See if we find them without any special options.
27630 # Don't add to $LIBS permanently.
27631 ac_save_LIBS=$LIBS
27632 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027634/* end confdefs.h. */
27635#include <X11/Xlib.h>
27636int
27637main ()
27638{
27639XrmInitialize ()
27640 ;
27641 return 0;
27642}
27643_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027644if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027645 LIBS=$ac_save_LIBS
27646# We can link X programs with no special library path.
27647ac_x_libraries=
27648else
cristy8b350f62009-11-15 23:12:43 +000027649 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027650for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27651do
27652 # Don't even attempt the hair of trying to link an X program!
27653 for ac_extension in a so sl dylib la dll; do
27654 if test -r "$ac_dir/libX11.$ac_extension"; then
27655 ac_x_libraries=$ac_dir
27656 break 2
27657 fi
27658 done
27659done
27660fi
cristy8b350f62009-11-15 23:12:43 +000027661rm -f core conftest.err conftest.$ac_objext \
27662 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027663fi # $ac_x_libraries = no
27664
27665case $ac_x_includes,$ac_x_libraries in #(
27666 no,* | *,no | *\'*)
27667 # Didn't find X, or a directory has "'" in its name.
27668 ac_cv_have_x="have_x=no";; #(
27669 *)
27670 # Record where we found X for the cache.
27671 ac_cv_have_x="have_x=yes\
27672 ac_x_includes='$ac_x_includes'\
27673 ac_x_libraries='$ac_x_libraries'"
27674esac
27675fi
27676;; #(
27677 *) have_x=yes;;
27678 esac
27679 eval "$ac_cv_have_x"
27680fi # $with_x != no
27681
27682if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027684$as_echo "$have_x" >&6; }
27685 no_x=yes
27686else
27687 # If each of the values was on the command line, it overrides each guess.
27688 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27689 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27690 # Update the cache value to reflect the command line values.
27691 ac_cv_have_x="have_x=yes\
27692 ac_x_includes='$x_includes'\
27693 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027695$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27696fi
27697
cristy3ed852e2009-09-05 21:47:34 +000027698if test "$no_x" = yes; then
27699 # Not all programs may use this symbol, but it does not hurt to define it.
27700
cristy8b350f62009-11-15 23:12:43 +000027701$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027702
27703 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27704else
27705 if test -n "$x_includes"; then
27706 X_CFLAGS="$X_CFLAGS -I$x_includes"
27707 fi
27708
27709 # It would also be nice to do this for all -L options, not just this one.
27710 if test -n "$x_libraries"; then
27711 X_LIBS="$X_LIBS -L$x_libraries"
27712 # For Solaris; some versions of Sun CC require a space after -R and
27713 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027715$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27716 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27717 ac_xsave_c_werror_flag=$ac_c_werror_flag
27718 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027720/* end confdefs.h. */
27721
27722int
27723main ()
27724{
27725
27726 ;
27727 return 0;
27728}
27729_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027730if ac_fn_c_try_link "$LINENO"; then :
27731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027732$as_echo "no" >&6; }
27733 X_LIBS="$X_LIBS -R$x_libraries"
27734else
cristy8b350f62009-11-15 23:12:43 +000027735 LIBS="$ac_xsave_LIBS -R $x_libraries"
27736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027737/* end confdefs.h. */
27738
27739int
27740main ()
27741{
27742
27743 ;
27744 return 0;
27745}
27746_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027747if ac_fn_c_try_link "$LINENO"; then :
27748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027749$as_echo "yes" >&6; }
27750 X_LIBS="$X_LIBS -R $x_libraries"
27751else
cristy8b350f62009-11-15 23:12:43 +000027752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo "neither works" >&6; }
27754fi
cristy8b350f62009-11-15 23:12:43 +000027755rm -f core conftest.err conftest.$ac_objext \
27756 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027757fi
cristy8b350f62009-11-15 23:12:43 +000027758rm -f core conftest.err conftest.$ac_objext \
27759 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027760 ac_c_werror_flag=$ac_xsave_c_werror_flag
27761 LIBS=$ac_xsave_LIBS
27762 fi
27763
27764 # Check for system-dependent libraries X programs must link with.
27765 # Do this before checking for the system-independent R6 libraries
27766 # (-lICE), since we may need -lsocket or whatever for X linking.
27767
27768 if test "$ISC" = yes; then
27769 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27770 else
27771 # Martyn Johnson says this is needed for Ultrix, if the X
27772 # libraries were built with DECnet support. And Karl Berry says
27773 # the Alpha needs dnet_stub (dnet does not exist).
27774 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027776/* end confdefs.h. */
27777
27778/* Override any GCC internal prototype to avoid an error.
27779 Use char because int might match the return type of a GCC
27780 builtin and then its argument prototype would still apply. */
27781#ifdef __cplusplus
27782extern "C"
27783#endif
27784char XOpenDisplay ();
27785int
27786main ()
27787{
27788return XOpenDisplay ();
27789 ;
27790 return 0;
27791}
27792_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027793if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027794
cristy8b350f62009-11-15 23:12:43 +000027795else
27796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027797$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027798if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027799 $as_echo_n "(cached) " >&6
27800else
27801 ac_check_lib_save_LIBS=$LIBS
27802LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027803cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027804/* end confdefs.h. */
27805
27806/* Override any GCC internal prototype to avoid an error.
27807 Use char because int might match the return type of a GCC
27808 builtin and then its argument prototype would still apply. */
27809#ifdef __cplusplus
27810extern "C"
27811#endif
27812char dnet_ntoa ();
27813int
27814main ()
27815{
27816return dnet_ntoa ();
27817 ;
27818 return 0;
27819}
27820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027821if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027822 ac_cv_lib_dnet_dnet_ntoa=yes
27823else
cristy8b350f62009-11-15 23:12:43 +000027824 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027825fi
cristy8b350f62009-11-15 23:12:43 +000027826rm -f core conftest.err conftest.$ac_objext \
27827 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027828LIBS=$ac_check_lib_save_LIBS
27829fi
cristy8b350f62009-11-15 23:12:43 +000027830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027831$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027832if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027833 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27834fi
27835
27836 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027838$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027839if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027840 $as_echo_n "(cached) " >&6
27841else
27842 ac_check_lib_save_LIBS=$LIBS
27843LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027844cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027845/* end confdefs.h. */
27846
27847/* Override any GCC internal prototype to avoid an error.
27848 Use char because int might match the return type of a GCC
27849 builtin and then its argument prototype would still apply. */
27850#ifdef __cplusplus
27851extern "C"
27852#endif
27853char dnet_ntoa ();
27854int
27855main ()
27856{
27857return dnet_ntoa ();
27858 ;
27859 return 0;
27860}
27861_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027862if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027863 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27864else
cristy8b350f62009-11-15 23:12:43 +000027865 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027866fi
cristy8b350f62009-11-15 23:12:43 +000027867rm -f core conftest.err conftest.$ac_objext \
27868 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027869LIBS=$ac_check_lib_save_LIBS
27870fi
cristy8b350f62009-11-15 23:12:43 +000027871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027872$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027873if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027874 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27875fi
27876
27877 fi
27878fi
cristy8b350f62009-11-15 23:12:43 +000027879rm -f core conftest.err conftest.$ac_objext \
27880 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027881 LIBS="$ac_xsave_LIBS"
27882
27883 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27884 # to get the SysV transport functions.
27885 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27886 # needs -lnsl.
27887 # The nsl library prevents programs from opening the X display
27888 # on Irix 5.2, according to T.E. Dickey.
27889 # The functions gethostbyname, getservbyname, and inet_addr are
27890 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027891 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027892if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027893
cristy3ed852e2009-09-05 21:47:34 +000027894fi
27895
cristy3ed852e2009-09-05 21:47:34 +000027896 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 $as_echo_n "(cached) " >&6
27901else
27902 ac_check_lib_save_LIBS=$LIBS
27903LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027905/* end confdefs.h. */
27906
27907/* Override any GCC internal prototype to avoid an error.
27908 Use char because int might match the return type of a GCC
27909 builtin and then its argument prototype would still apply. */
27910#ifdef __cplusplus
27911extern "C"
27912#endif
27913char gethostbyname ();
27914int
27915main ()
27916{
27917return gethostbyname ();
27918 ;
27919 return 0;
27920}
27921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 ac_cv_lib_nsl_gethostbyname=yes
27924else
cristy8b350f62009-11-15 23:12:43 +000027925 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027926fi
cristy8b350f62009-11-15 23:12:43 +000027927rm -f core conftest.err conftest.$ac_objext \
27928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027929LIBS=$ac_check_lib_save_LIBS
27930fi
cristy8b350f62009-11-15 23:12:43 +000027931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027932$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027933if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027934 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27935fi
27936
27937 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027939$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027940if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027941 $as_echo_n "(cached) " >&6
27942else
27943 ac_check_lib_save_LIBS=$LIBS
27944LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027945cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027946/* end confdefs.h. */
27947
27948/* Override any GCC internal prototype to avoid an error.
27949 Use char because int might match the return type of a GCC
27950 builtin and then its argument prototype would still apply. */
27951#ifdef __cplusplus
27952extern "C"
27953#endif
27954char gethostbyname ();
27955int
27956main ()
27957{
27958return gethostbyname ();
27959 ;
27960 return 0;
27961}
27962_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027963if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027964 ac_cv_lib_bsd_gethostbyname=yes
27965else
cristy8b350f62009-11-15 23:12:43 +000027966 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027967fi
cristy8b350f62009-11-15 23:12:43 +000027968rm -f core conftest.err conftest.$ac_objext \
27969 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027970LIBS=$ac_check_lib_save_LIBS
27971fi
cristy8b350f62009-11-15 23:12:43 +000027972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027973$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027974if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027975 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27976fi
27977
27978 fi
27979 fi
27980
27981 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27982 # socket/setsockopt and other routines are undefined under SCO ODT
27983 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27984 # on later versions), says Simon Leinen: it contains gethostby*
27985 # variants that don't use the name server (or something). -lsocket
27986 # must be given before -lnsl if both are needed. We assume that
27987 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027988 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027989if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027990
cristy3ed852e2009-09-05 21:47:34 +000027991fi
27992
cristy3ed852e2009-09-05 21:47:34 +000027993 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027995$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027996if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027997 $as_echo_n "(cached) " >&6
27998else
27999 ac_check_lib_save_LIBS=$LIBS
28000LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028001cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028002/* end confdefs.h. */
28003
28004/* Override any GCC internal prototype to avoid an error.
28005 Use char because int might match the return type of a GCC
28006 builtin and then its argument prototype would still apply. */
28007#ifdef __cplusplus
28008extern "C"
28009#endif
28010char connect ();
28011int
28012main ()
28013{
28014return connect ();
28015 ;
28016 return 0;
28017}
28018_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028019if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028020 ac_cv_lib_socket_connect=yes
28021else
cristy8b350f62009-11-15 23:12:43 +000028022 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000028023fi
cristy8b350f62009-11-15 23:12:43 +000028024rm -f core conftest.err conftest.$ac_objext \
28025 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028026LIBS=$ac_check_lib_save_LIBS
28027fi
cristy8b350f62009-11-15 23:12:43 +000028028{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000028029$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000028030if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028031 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
28032fi
28033
28034 fi
28035
28036 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000028037 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000028038if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028039
cristy3ed852e2009-09-05 21:47:34 +000028040fi
28041
cristy3ed852e2009-09-05 21:47:34 +000028042 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000028043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000028044$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028045if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028046 $as_echo_n "(cached) " >&6
28047else
28048 ac_check_lib_save_LIBS=$LIBS
28049LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028050cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028051/* end confdefs.h. */
28052
28053/* Override any GCC internal prototype to avoid an error.
28054 Use char because int might match the return type of a GCC
28055 builtin and then its argument prototype would still apply. */
28056#ifdef __cplusplus
28057extern "C"
28058#endif
28059char remove ();
28060int
28061main ()
28062{
28063return remove ();
28064 ;
28065 return 0;
28066}
28067_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028068if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028069 ac_cv_lib_posix_remove=yes
28070else
cristy8b350f62009-11-15 23:12:43 +000028071 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028072fi
cristy8b350f62009-11-15 23:12:43 +000028073rm -f core conftest.err conftest.$ac_objext \
28074 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028075LIBS=$ac_check_lib_save_LIBS
28076fi
cristy8b350f62009-11-15 23:12:43 +000028077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028078$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028079if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028080 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28081fi
28082
28083 fi
28084
28085 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028086 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028087if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028088
cristy3ed852e2009-09-05 21:47:34 +000028089fi
28090
cristy3ed852e2009-09-05 21:47:34 +000028091 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028093$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028094if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028095 $as_echo_n "(cached) " >&6
28096else
28097 ac_check_lib_save_LIBS=$LIBS
28098LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028099cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028100/* 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 shmat ();
28109int
28110main ()
28111{
28112return shmat ();
28113 ;
28114 return 0;
28115}
28116_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028117if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028118 ac_cv_lib_ipc_shmat=yes
28119else
cristy8b350f62009-11-15 23:12:43 +000028120 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028121fi
cristy8b350f62009-11-15 23:12:43 +000028122rm -f core conftest.err conftest.$ac_objext \
28123 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028124LIBS=$ac_check_lib_save_LIBS
28125fi
cristy8b350f62009-11-15 23:12:43 +000028126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028127$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028128if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028129 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28130fi
28131
28132 fi
28133 fi
28134
28135 # Check for libraries that X11R6 Xt/Xaw programs need.
28136 ac_save_LDFLAGS=$LDFLAGS
28137 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28138 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28139 # check for ICE first), but we must link in the order -lSM -lICE or
28140 # we get undefined symbols. So assume we have SM if we have ICE.
28141 # These have to be linked with before -lX11, unlike the other
28142 # libraries we check for below, so use a different variable.
28143 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028145$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028146if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028147 $as_echo_n "(cached) " >&6
28148else
28149 ac_check_lib_save_LIBS=$LIBS
28150LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028151cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028152/* end confdefs.h. */
28153
28154/* Override any GCC internal prototype to avoid an error.
28155 Use char because int might match the return type of a GCC
28156 builtin and then its argument prototype would still apply. */
28157#ifdef __cplusplus
28158extern "C"
28159#endif
28160char IceConnectionNumber ();
28161int
28162main ()
28163{
28164return IceConnectionNumber ();
28165 ;
28166 return 0;
28167}
28168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028169if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028170 ac_cv_lib_ICE_IceConnectionNumber=yes
28171else
cristy8b350f62009-11-15 23:12:43 +000028172 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028173fi
cristy8b350f62009-11-15 23:12:43 +000028174rm -f core conftest.err conftest.$ac_objext \
28175 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028176LIBS=$ac_check_lib_save_LIBS
28177fi
cristy8b350f62009-11-15 23:12:43 +000028178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028179$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028180if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028181 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28182fi
28183
28184 LDFLAGS=$ac_save_LDFLAGS
28185
28186fi
28187
28188if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028189 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28190$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028192$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028193 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28194$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028195 LDFLAGS="$LDFLAGS $X_LIBS"
28196 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28197 LIBS="$X11_LIBS $LIBS"
28198 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28199
28200
cristy8b350f62009-11-15 23:12:43 +000028201$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028202
28203 #
28204 # Check for X11 shared memory extension
28205 #
28206 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028207 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028208if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 have_shmctl='yes'
28210fi
28211
28212 if test "$have_shmctl" != 'yes'; then
28213 PERSIST_LIBS=$LIBS
28214 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028216/* end confdefs.h. */
28217
28218/* Override any GCC internal prototype to avoid an error.
28219 Use char because int might match the return type of a GCC
28220 builtin and then its argument prototype would still apply. */
28221#ifdef __cplusplus
28222extern "C"
28223#endif
28224char shmctl ();
28225int
28226main ()
28227{
28228return shmctl ();
28229 ;
28230 return 0;
28231}
28232_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028233if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028234 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028235fi
cristy8b350f62009-11-15 23:12:43 +000028236rm -f core conftest.err conftest.$ac_objext \
28237 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028238 LIBS=$PERSIST_LIBS
28239 fi
28240
28241 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028243$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028244if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028245 $as_echo_n "(cached) " >&6
28246else
28247 ac_check_lib_save_LIBS=$LIBS
28248LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028249cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028250/* end confdefs.h. */
28251
28252/* Override any GCC internal prototype to avoid an error.
28253 Use char because int might match the return type of a GCC
28254 builtin and then its argument prototype would still apply. */
28255#ifdef __cplusplus
28256extern "C"
28257#endif
28258char XShmAttach ();
28259int
28260main ()
28261{
28262return XShmAttach ();
28263 ;
28264 return 0;
28265}
28266_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028267if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028268 ac_cv_lib_Xext_XShmAttach=yes
28269else
cristy8b350f62009-11-15 23:12:43 +000028270 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028271fi
cristy8b350f62009-11-15 23:12:43 +000028272rm -f core conftest.err conftest.$ac_objext \
28273 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028274LIBS=$ac_check_lib_save_LIBS
28275fi
cristy8b350f62009-11-15 23:12:43 +000028276{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028277$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028278if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028279 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028280$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028281
28282fi
28283
28284 fi
28285
28286 #
28287 # Check for X11 shape extension
28288 #
cristy8b350f62009-11-15 23:12:43 +000028289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028290$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028291if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028292 $as_echo_n "(cached) " >&6
28293else
28294 ac_check_lib_save_LIBS=$LIBS
28295LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028296cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028297/* end confdefs.h. */
28298
28299/* Override any GCC internal prototype to avoid an error.
28300 Use char because int might match the return type of a GCC
28301 builtin and then its argument prototype would still apply. */
28302#ifdef __cplusplus
28303extern "C"
28304#endif
28305char XShapeCombineMask ();
28306int
28307main ()
28308{
28309return XShapeCombineMask ();
28310 ;
28311 return 0;
28312}
28313_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028314if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028315 ac_cv_lib_Xext_XShapeCombineMask=yes
28316else
cristy8b350f62009-11-15 23:12:43 +000028317 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028318fi
cristy8b350f62009-11-15 23:12:43 +000028319rm -f core conftest.err conftest.$ac_objext \
28320 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028321LIBS=$ac_check_lib_save_LIBS
28322fi
cristy8b350f62009-11-15 23:12:43 +000028323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028324$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028325if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028326 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028327$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028328
28329fi
28330
cristy8b350f62009-11-15 23:12:43 +000028331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028332$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028333if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028334 $as_echo_n "(cached) " >&6
28335else
28336 ac_check_lib_save_LIBS=$LIBS
28337LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028338cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028339/* end confdefs.h. */
28340
28341/* Override any GCC internal prototype to avoid an error.
28342 Use char because int might match the return type of a GCC
28343 builtin and then its argument prototype would still apply. */
28344#ifdef __cplusplus
28345extern "C"
28346#endif
28347char XtSetEventDispatcher ();
28348int
28349main ()
28350{
28351return XtSetEventDispatcher ();
28352 ;
28353 return 0;
28354}
28355_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028356if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028357 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28358else
cristy8b350f62009-11-15 23:12:43 +000028359 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028360fi
cristy8b350f62009-11-15 23:12:43 +000028361rm -f core conftest.err conftest.$ac_objext \
28362 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028363LIBS=$ac_check_lib_save_LIBS
28364fi
cristy8b350f62009-11-15 23:12:43 +000028365{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028366$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028367if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028368 XT_LIBS='-lXt'
28369fi
28370
28371 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28372fi
28373if test "$no_x" != 'yes'; then
28374 have_x='yes'
28375else
28376 have_x='no'
28377fi
cristy73bd4a52010-10-05 11:24:23 +000028378 if test "$have_x" = 'yes'; then
28379 X11_DELEGATE_TRUE=
28380 X11_DELEGATE_FALSE='#'
28381else
28382 X11_DELEGATE_TRUE='#'
28383 X11_DELEGATE_FALSE=
28384fi
28385
cristy3ed852e2009-09-05 21:47:34 +000028386
28387
28388
28389
28390#
28391# Check for ZLIB
28392#
28393
28394# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028395if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028396 withval=$with_zlib; with_zlib=$withval
28397else
28398 with_zlib='yes'
28399fi
28400
28401
28402if test "$with_zlib" != 'yes'; then
28403 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28404fi
28405
28406have_zlib='no'
28407ZLIB_LIBS=''
28408if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028409 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28410$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028412$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028413 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28414$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028415 ZLIB_LIBS=''
28416 failed=0
28417 passed=0
cristy8b350f62009-11-15 23:12:43 +000028418 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028419if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028420 passed=`expr $passed + 1`
28421else
28422 failed=`expr $failed + 1`
28423fi
28424
28425
cristy8b350f62009-11-15 23:12:43 +000028426 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028427if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028428 passed=`expr $passed + 1`
28429else
28430 failed=`expr $failed + 1`
28431fi
28432
28433
cristy8b350f62009-11-15 23:12:43 +000028434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028435$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028436if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028437 $as_echo_n "(cached) " >&6
28438else
28439 ac_check_lib_save_LIBS=$LIBS
28440LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028441cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028442/* end confdefs.h. */
28443
28444/* Override any GCC internal prototype to avoid an error.
28445 Use char because int might match the return type of a GCC
28446 builtin and then its argument prototype would still apply. */
28447#ifdef __cplusplus
28448extern "C"
28449#endif
28450char compress ();
28451int
28452main ()
28453{
28454return compress ();
28455 ;
28456 return 0;
28457}
28458_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028459if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028460 ac_cv_lib_z_compress=yes
28461else
cristy8b350f62009-11-15 23:12:43 +000028462 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028463fi
cristy8b350f62009-11-15 23:12:43 +000028464rm -f core conftest.err conftest.$ac_objext \
28465 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028466LIBS=$ac_check_lib_save_LIBS
28467fi
cristy8b350f62009-11-15 23:12:43 +000028468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028469$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028470if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028471 passed=`expr $passed + 1`
28472else
28473 failed=`expr $failed + 1`
28474fi
28475
cristy8b350f62009-11-15 23:12:43 +000028476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028477$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028478if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028479 $as_echo_n "(cached) " >&6
28480else
28481 ac_check_lib_save_LIBS=$LIBS
28482LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028483cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028484/* end confdefs.h. */
28485
28486/* Override any GCC internal prototype to avoid an error.
28487 Use char because int might match the return type of a GCC
28488 builtin and then its argument prototype would still apply. */
28489#ifdef __cplusplus
28490extern "C"
28491#endif
28492char uncompress ();
28493int
28494main ()
28495{
28496return uncompress ();
28497 ;
28498 return 0;
28499}
28500_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028501if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028502 ac_cv_lib_z_uncompress=yes
28503else
cristy8b350f62009-11-15 23:12:43 +000028504 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028505fi
cristy8b350f62009-11-15 23:12:43 +000028506rm -f core conftest.err conftest.$ac_objext \
28507 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028508LIBS=$ac_check_lib_save_LIBS
28509fi
cristy8b350f62009-11-15 23:12:43 +000028510{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028511$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028512if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028513 passed=`expr $passed + 1`
28514else
28515 failed=`expr $failed + 1`
28516fi
28517
cristy8b350f62009-11-15 23:12:43 +000028518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028519$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028520if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028521 $as_echo_n "(cached) " >&6
28522else
28523 ac_check_lib_save_LIBS=$LIBS
28524LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028525cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028526/* end confdefs.h. */
28527
28528/* Override any GCC internal prototype to avoid an error.
28529 Use char because int might match the return type of a GCC
28530 builtin and then its argument prototype would still apply. */
28531#ifdef __cplusplus
28532extern "C"
28533#endif
28534char deflate ();
28535int
28536main ()
28537{
28538return deflate ();
28539 ;
28540 return 0;
28541}
28542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028543if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028544 ac_cv_lib_z_deflate=yes
28545else
cristy8b350f62009-11-15 23:12:43 +000028546 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028547fi
cristy8b350f62009-11-15 23:12:43 +000028548rm -f core conftest.err conftest.$ac_objext \
28549 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028550LIBS=$ac_check_lib_save_LIBS
28551fi
cristy8b350f62009-11-15 23:12:43 +000028552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028553$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028554if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028555 passed=`expr $passed + 1`
28556else
28557 failed=`expr $failed + 1`
28558fi
28559
cristy8b350f62009-11-15 23:12:43 +000028560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028561$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028562if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028563 $as_echo_n "(cached) " >&6
28564else
28565 ac_check_lib_save_LIBS=$LIBS
28566LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028567cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028568/* end confdefs.h. */
28569
28570/* Override any GCC internal prototype to avoid an error.
28571 Use char because int might match the return type of a GCC
28572 builtin and then its argument prototype would still apply. */
28573#ifdef __cplusplus
28574extern "C"
28575#endif
28576char inflate ();
28577int
28578main ()
28579{
28580return inflate ();
28581 ;
28582 return 0;
28583}
28584_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028585if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028586 ac_cv_lib_z_inflate=yes
28587else
cristy8b350f62009-11-15 23:12:43 +000028588 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028589fi
cristy8b350f62009-11-15 23:12:43 +000028590rm -f core conftest.err conftest.$ac_objext \
28591 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028592LIBS=$ac_check_lib_save_LIBS
28593fi
cristy8b350f62009-11-15 23:12:43 +000028594{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028595$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028596if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028597 passed=`expr $passed + 1`
28598else
28599 failed=`expr $failed + 1`
28600fi
28601
cristy8b350f62009-11-15 23:12:43 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028604if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028605 $as_echo_n "(cached) " >&6
28606else
28607 ac_check_lib_save_LIBS=$LIBS
28608LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028609cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028610/* end confdefs.h. */
28611
28612/* Override any GCC internal prototype to avoid an error.
28613 Use char because int might match the return type of a GCC
28614 builtin and then its argument prototype would still apply. */
28615#ifdef __cplusplus
28616extern "C"
28617#endif
28618char gzseek ();
28619int
28620main ()
28621{
28622return gzseek ();
28623 ;
28624 return 0;
28625}
28626_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028627if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028628 ac_cv_lib_z_gzseek=yes
28629else
cristy8b350f62009-11-15 23:12:43 +000028630 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028631fi
cristy8b350f62009-11-15 23:12:43 +000028632rm -f core conftest.err conftest.$ac_objext \
28633 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028634LIBS=$ac_check_lib_save_LIBS
28635fi
cristy8b350f62009-11-15 23:12:43 +000028636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028637$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028638if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028639 passed=`expr $passed + 1`
28640else
28641 failed=`expr $failed + 1`
28642fi
28643
cristy8b350f62009-11-15 23:12:43 +000028644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028645$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028646if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028647 $as_echo_n "(cached) " >&6
28648else
28649 ac_check_lib_save_LIBS=$LIBS
28650LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028651cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028652/* end confdefs.h. */
28653
28654/* Override any GCC internal prototype to avoid an error.
28655 Use char because int might match the return type of a GCC
28656 builtin and then its argument prototype would still apply. */
28657#ifdef __cplusplus
28658extern "C"
28659#endif
28660char gztell ();
28661int
28662main ()
28663{
28664return gztell ();
28665 ;
28666 return 0;
28667}
28668_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028669if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028670 ac_cv_lib_z_gztell=yes
28671else
cristy8b350f62009-11-15 23:12:43 +000028672 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028673fi
cristy8b350f62009-11-15 23:12:43 +000028674rm -f core conftest.err conftest.$ac_objext \
28675 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028676LIBS=$ac_check_lib_save_LIBS
28677fi
cristy8b350f62009-11-15 23:12:43 +000028678{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028679$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028680if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028681 passed=`expr $passed + 1`
28682else
28683 failed=`expr $failed + 1`
28684fi
28685
cristy8b350f62009-11-15 23:12:43 +000028686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028687$as_echo_n "checking if ZLIB package is complete... " >&6; }
28688 if test $passed -gt 0; then
28689 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028690 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28691$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028692 have_zlib='no (failed tests)'
28693 else
28694 ZLIB_LIBS='-lz'
28695 LIBS="$ZLIB_LIBS $LIBS"
28696
cristy8b350f62009-11-15 23:12:43 +000028697$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028698
cristy09b53e12011-10-14 12:47:22 +000028699 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28700$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028701 have_zlib='yes'
28702 fi
28703 else
cristy09b53e12011-10-14 12:47:22 +000028704 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28705$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028706 fi
28707fi
cristy73bd4a52010-10-05 11:24:23 +000028708 if test "$have_zlib" = 'yes'; then
28709 ZLIB_DELEGATE_TRUE=
28710 ZLIB_DELEGATE_FALSE='#'
28711else
28712 ZLIB_DELEGATE_TRUE='#'
28713 ZLIB_DELEGATE_FALSE=
28714fi
28715
cristy3ed852e2009-09-05 21:47:34 +000028716
28717
28718#
28719# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28720#
28721LIB_DL=''
28722if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028724$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028725if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028726 $as_echo_n "(cached) " >&6
28727else
28728 ac_check_lib_save_LIBS=$LIBS
28729LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028730cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028731/* end confdefs.h. */
28732
28733/* Override any GCC internal prototype to avoid an error.
28734 Use char because int might match the return type of a GCC
28735 builtin and then its argument prototype would still apply. */
28736#ifdef __cplusplus
28737extern "C"
28738#endif
28739char dlopen ();
28740int
28741main ()
28742{
28743return dlopen ();
28744 ;
28745 return 0;
28746}
28747_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028748if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028749 ac_cv_lib_dl_dlopen=yes
28750else
cristy8b350f62009-11-15 23:12:43 +000028751 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028752fi
cristy8b350f62009-11-15 23:12:43 +000028753rm -f core conftest.err conftest.$ac_objext \
28754 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028755LIBS=$ac_check_lib_save_LIBS
28756fi
cristy8b350f62009-11-15 23:12:43 +000028757{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028758$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028759if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028760 LIB_DL='-ldl'
28761fi
28762
28763 LIBS="$LIB_DL $LIBS"
28764fi
28765
28766
28767
28768#
28769# Check for Autotrace delegate library.
28770#
28771
28772# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028773if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028774 withval=$with_autotrace; with_autotrace=$withval
28775else
28776 with_autotrace='no'
28777fi
28778
28779
28780if test "$with_autotrace" != 'yes'; then
28781 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28782fi
28783
28784have_autotrace='no'
28785AUTOTRACE_CFLAGS=""
28786AUTOTRACE_LIBS=""
28787AUTOTRACE_PKG=""
28788if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028789 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28790$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028791
28792pkg_failed=no
28793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28794$as_echo_n "checking for AUTOTRACE... " >&6; }
28795
28796if test -n "$AUTOTRACE_CFLAGS"; then
28797 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28798 elif test -n "$PKG_CONFIG"; then
28799 if test -n "$PKG_CONFIG" && \
28800 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28801 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28802 ac_status=$?
28803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28804 test $ac_status = 0; }; then
28805 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28806else
28807 pkg_failed=yes
28808fi
28809 else
28810 pkg_failed=untried
28811fi
28812if test -n "$AUTOTRACE_LIBS"; then
28813 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28814 elif test -n "$PKG_CONFIG"; then
28815 if test -n "$PKG_CONFIG" && \
28816 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28817 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28818 ac_status=$?
28819 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28820 test $ac_status = 0; }; then
28821 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28822else
28823 pkg_failed=yes
28824fi
28825 else
28826 pkg_failed=untried
28827fi
28828
28829
28830
28831if test $pkg_failed = yes; then
28832
28833if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28834 _pkg_short_errors_supported=yes
28835else
28836 _pkg_short_errors_supported=no
28837fi
28838 if test $_pkg_short_errors_supported = yes; then
28839 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28840 else
28841 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28842 fi
28843 # Put the nasty error message in config.log where it belongs
28844 echo "$AUTOTRACE_PKG_ERRORS" >&5
28845
28846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28847$as_echo "no" >&6; }
28848 have_autotrace=no
28849elif test $pkg_failed = untried; then
28850 have_autotrace=no
28851else
28852 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28853 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28855$as_echo "yes" >&6; }
28856 have_autotrace=yes
28857fi
cristy09b53e12011-10-14 12:47:22 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28859$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028860fi
28861
28862if test "$have_autotrace" = 'yes'; then
28863 failed=0
28864
cristy8b350f62009-11-15 23:12:43 +000028865$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028866
28867 if test "$with_modules" = 'no'; then
28868 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28869 fi
28870fi
28871
cristy73bd4a52010-10-05 11:24:23 +000028872 if test "$have_autotrace" = 'yes'; then
28873 AUTOTRACE_DELEGATE_TRUE=
28874 AUTOTRACE_DELEGATE_FALSE='#'
28875else
28876 AUTOTRACE_DELEGATE_TRUE='#'
28877 AUTOTRACE_DELEGATE_FALSE=
28878fi
28879
cristy3ed852e2009-09-05 21:47:34 +000028880
28881
28882
28883
28884#
28885# Check for Display Postscript delegate library.
28886#
28887
28888# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028889if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028890 withval=$with_dps; with_dps=$withval
28891else
28892 with_dps='yes'
28893fi
28894
28895
28896if test "$with_dps" != 'yes'; then
28897 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28898fi
28899
28900have_dps='no'
28901DPS_LIBS=''
28902if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28904$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028906$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028907 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28908$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028909 failed=0
28910 passed=0
28911 PERSIST_CPPFLAGS="$CPPFLAGS"
28912 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028913 ac_fn_c_check_header_mongrel "$LINENO" "DPS/dpsXclient.h" "ac_cv_header_DPS_dpsXclient_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028914if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028915 passed=`expr $passed + 1`
28916else
28917 failed=`expr $failed + 1`
28918fi
28919
28920
28921 # DPS issues:
28922 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28923 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28924 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28925 # ImageMagick itself doesn't use -lXt.
28926 have_libdps='no'
28927 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028929$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028930if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028931 $as_echo_n "(cached) " >&6
28932else
28933 ac_check_lib_save_LIBS=$LIBS
28934LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028935cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028936/* end confdefs.h. */
28937
28938/* Override any GCC internal prototype to avoid an error.
28939 Use char because int might match the return type of a GCC
28940 builtin and then its argument prototype would still apply. */
28941#ifdef __cplusplus
28942extern "C"
28943#endif
28944char DPSInitialize ();
28945int
28946main ()
28947{
28948return DPSInitialize ();
28949 ;
28950 return 0;
28951}
28952_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028953if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028954 ac_cv_lib_dps_DPSInitialize=yes
28955else
cristy8b350f62009-11-15 23:12:43 +000028956 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028957fi
cristy8b350f62009-11-15 23:12:43 +000028958rm -f core conftest.err conftest.$ac_objext \
28959 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028960LIBS=$ac_check_lib_save_LIBS
28961fi
cristy8b350f62009-11-15 23:12:43 +000028962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028963$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028964if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028965 have_libdps='yes'
28966else
28967 have_libdps='no'
28968fi
28969
28970 if test "$have_libdps" != 'yes'; then
28971 # Unset cache variable so we can try again.
28972 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028974$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028975if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028976 $as_echo_n "(cached) " >&6
28977else
28978 ac_check_lib_save_LIBS=$LIBS
28979LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028981/* end confdefs.h. */
28982
28983/* Override any GCC internal prototype to avoid an error.
28984 Use char because int might match the return type of a GCC
28985 builtin and then its argument prototype would still apply. */
28986#ifdef __cplusplus
28987extern "C"
28988#endif
28989char DPSInitialize ();
28990int
28991main ()
28992{
28993return DPSInitialize ();
28994 ;
28995 return 0;
28996}
28997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028999 ac_cv_lib_dps_DPSInitialize=yes
29000else
cristy8b350f62009-11-15 23:12:43 +000029001 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000029002fi
cristy8b350f62009-11-15 23:12:43 +000029003rm -f core conftest.err conftest.$ac_objext \
29004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029005LIBS=$ac_check_lib_save_LIBS
29006fi
cristy8b350f62009-11-15 23:12:43 +000029007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000029008$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000029009if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029010 have_libdps='yes'
29011else
29012 have_libdps='no'
29013fi
29014
29015 if test "$have_libdps" = 'yes'; then
29016 LIBDPS_XT='-lXt'
29017 fi
29018 fi
29019 if test "$have_libdps" = 'yes'; then
29020 passed=`expr $passed + 1`
29021 else
29022 failed=`expr $failed + 1`
29023 fi
cristy8b350f62009-11-15 23:12:43 +000029024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000029025$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029026if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029027 $as_echo_n "(cached) " >&6
29028else
29029 ac_check_lib_save_LIBS=$LIBS
29030LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029032/* end confdefs.h. */
29033
29034/* Override any GCC internal prototype to avoid an error.
29035 Use char because int might match the return type of a GCC
29036 builtin and then its argument prototype would still apply. */
29037#ifdef __cplusplus
29038extern "C"
29039#endif
29040char XDPSPixelsPerPoint ();
29041int
29042main ()
29043{
29044return XDPSPixelsPerPoint ();
29045 ;
29046 return 0;
29047}
29048_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029049if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029050 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
29051else
cristy8b350f62009-11-15 23:12:43 +000029052 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000029053fi
cristy8b350f62009-11-15 23:12:43 +000029054rm -f core conftest.err conftest.$ac_objext \
29055 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029056LIBS=$ac_check_lib_save_LIBS
29057fi
cristy8b350f62009-11-15 23:12:43 +000029058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000029059$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000029060if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029061 passed=`expr $passed + 1`
29062else
29063 failed=`expr $failed + 1`
29064fi
29065
cristy8b350f62009-11-15 23:12:43 +000029066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo_n "checking if DPS package is complete... " >&6; }
29068 if test $passed -gt 0; then
29069 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029070 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29071$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029072 have_dps='no (failed tests)'
29073 CPPFLAGS="$PERSIST_CPPFLAGS"
29074 else
29075 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29076 LIBS="$DPS_LIBS $LIBS"
29077
cristy8b350f62009-11-15 23:12:43 +000029078$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029079
cristy09b53e12011-10-14 12:47:22 +000029080 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29081$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029082 have_dps='yes'
29083 fi
29084 else
cristy09b53e12011-10-14 12:47:22 +000029085 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29086$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029087 CPPFLAGS=$PERSIST_CPPFLAGS
29088 fi
29089fi
cristy73bd4a52010-10-05 11:24:23 +000029090 if test "$have_dps" = 'yes'; then
29091 DPS_DELEGATE_TRUE=
29092 DPS_DELEGATE_FALSE='#'
29093else
29094 DPS_DELEGATE_TRUE='#'
29095 DPS_DELEGATE_FALSE=
29096fi
29097
cristy3ed852e2009-09-05 21:47:34 +000029098
29099
29100
29101#
29102# Check for DJVU delegate library.
29103#
29104
29105# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029106if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029107 withval=$with_djvu; with_djvu=$withval
29108else
29109 with_djvu='yes'
29110fi
29111
29112
29113if test "$with_djvu" != 'yes'; then
29114 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29115fi
29116
29117have_djvu='no'
29118DJVU_LIBS=''
29119if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029120 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29121$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029123$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029124 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29125$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029126 failed=0
29127 passed=0
cristy8b350f62009-11-15 23:12:43 +000029128 ac_fn_c_check_header_mongrel "$LINENO" "libdjvu/ddjvuapi.h" "ac_cv_header_libdjvu_ddjvuapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029129if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029130 passed=`expr $passed + 1`
29131else
29132 failed=`expr $failed + 1`
29133fi
29134
29135
cristy8b350f62009-11-15 23:12:43 +000029136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029137$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029138if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029139 $as_echo_n "(cached) " >&6
29140else
29141 ac_check_lib_save_LIBS=$LIBS
29142LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029143cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029144/* end confdefs.h. */
29145
29146/* Override any GCC internal prototype to avoid an error.
29147 Use char because int might match the return type of a GCC
29148 builtin and then its argument prototype would still apply. */
29149#ifdef __cplusplus
29150extern "C"
29151#endif
29152char ddjvu_context_create ();
29153int
29154main ()
29155{
29156return ddjvu_context_create ();
29157 ;
29158 return 0;
29159}
29160_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029161if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029162 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29163else
cristy8b350f62009-11-15 23:12:43 +000029164 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029165fi
cristy8b350f62009-11-15 23:12:43 +000029166rm -f core conftest.err conftest.$ac_objext \
29167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029168LIBS=$ac_check_lib_save_LIBS
29169fi
cristy8b350f62009-11-15 23:12:43 +000029170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029171$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029172if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029173 passed=`expr $passed + 1`
29174else
29175 failed=`expr $failed + 1`
29176fi
29177
cristy8b350f62009-11-15 23:12:43 +000029178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029179$as_echo_n "checking if DJVU package is complete... " >&6; }
29180 if test $passed -gt 0; then
29181 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029182 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29183$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029184 have_djvu='no (failed tests)'
29185 else
29186 DJVU_LIBS='-ldjvulibre'
29187 LIBS="$DJVU_LIBS $LIBS"
29188
cristy8b350f62009-11-15 23:12:43 +000029189$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029190
cristy09b53e12011-10-14 12:47:22 +000029191 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29192$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029193 have_djvu='yes'
29194 fi
29195 else
cristy09b53e12011-10-14 12:47:22 +000029196 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29197$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029198 fi
29199fi
cristy73bd4a52010-10-05 11:24:23 +000029200 if test "$have_djvu" = 'yes'; then
29201 DJVU_DELEGATE_TRUE=
29202 DJVU_DELEGATE_FALSE='#'
29203else
29204 DJVU_DELEGATE_TRUE='#'
29205 DJVU_DELEGATE_FALSE=
29206fi
29207
cristy3ed852e2009-09-05 21:47:34 +000029208
29209
29210
29211#
cristy430a7312010-01-21 20:44:04 +000029212# Set DejaVu font directory.
29213#
29214
29215# Check whether --with-dejavu-font-dir was given.
29216if test "${with_dejavu_font_dir+set}" = set; then :
29217 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29218else
29219 with_dejavu_font_dir='default'
29220fi
29221
29222
29223if test "$with_dejavu_font_dir" != 'default'; then
29224 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29225fi
29226
29227
29228#
cristy3ed852e2009-09-05 21:47:34 +000029229# Check for FFTW delegate library.
29230#
29231
29232# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029233if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029234 withval=$with_fftw; with_fftw=$withval
29235else
29236 with_fftw='yes'
29237fi
29238
29239
29240if test "$with_fftw" != 'yes'; then
29241 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29242fi
29243
cristy81beccd2011-10-03 18:17:24 +000029244have_fftw='no'
29245FFTW_LIBS=''
29246if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029247 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29248$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29250$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029251 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29252$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029253 failed=0
29254 passed=0
29255 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29256if test "x$ac_cv_header_fftw3_h" = xyes; then :
29257 passed=`expr $passed + 1`
29258else
29259 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029260fi
29261
cristy81beccd2011-10-03 18:17:24 +000029262
29263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29264$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29265if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29266 $as_echo_n "(cached) " >&6
29267else
29268 ac_check_lib_save_LIBS=$LIBS
29269LIBS="-lfftw3 $LIBS"
29270cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29271/* end confdefs.h. */
29272
29273/* Override any GCC internal prototype to avoid an error.
29274 Use char because int might match the return type of a GCC
29275 builtin and then its argument prototype would still apply. */
29276#ifdef __cplusplus
29277extern "C"
29278#endif
29279char fftw_execute ();
29280int
29281main ()
29282{
29283return fftw_execute ();
29284 ;
29285 return 0;
29286}
29287_ACEOF
29288if ac_fn_c_try_link "$LINENO"; then :
29289 ac_cv_lib_fftw3_fftw_execute=yes
29290else
29291 ac_cv_lib_fftw3_fftw_execute=no
29292fi
29293rm -f core conftest.err conftest.$ac_objext \
29294 conftest$ac_exeext conftest.$ac_ext
29295LIBS=$ac_check_lib_save_LIBS
29296fi
29297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29298$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29299if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29300 passed=`expr $passed + 1`
29301else
29302 failed=`expr $failed + 1`
29303fi
29304
29305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29306$as_echo_n "checking if FFTW package is complete... " >&6; }
29307 if test $passed -gt 0; then
29308 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029309 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29310$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029311 have_fftw='no (failed tests)'
29312 else
29313 FFTW_LIBS='-lfftw3'
29314 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029315
cristy8b350f62009-11-15 23:12:43 +000029316$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029317
cristy09b53e12011-10-14 12:47:22 +000029318 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29319$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029320 have_fftw='yes'
29321 fi
29322 else
cristy09b53e12011-10-14 12:47:22 +000029323 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29324$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029325 fi
29326fi
cristy73bd4a52010-10-05 11:24:23 +000029327 if test "$have_fftw" = 'yes'; then
29328 FFTW_DELEGATE_TRUE=
29329 FFTW_DELEGATE_FALSE='#'
29330else
29331 FFTW_DELEGATE_TRUE='#'
29332 FFTW_DELEGATE_FALSE=
29333fi
29334
cristy3ed852e2009-09-05 21:47:34 +000029335
29336
29337
29338#
29339# Check for FlashPIX delegate library.
29340#
29341
29342# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029343if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029344 withval=$with_fpx; with_fpx=$withval
29345else
29346 with_fpx='yes'
29347fi
29348
29349
29350if test "$with_fpx" != 'yes'; then
29351 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29352fi
29353
29354have_fpx='no'
29355FPX_LIBS=''
29356if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029357 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29358$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029360$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029361 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29362$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029363 failed=0
29364 passed=0
29365 ac_ext=cpp
29366ac_cpp='$CXXCPP $CPPFLAGS'
29367ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29368ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29369ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29370
29371
cristy8b350f62009-11-15 23:12:43 +000029372ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029373if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029374 passed=`expr $passed + 1`
29375else
29376 failed=`expr $failed + 1`
29377fi
29378
29379
cristy8b350f62009-11-15 23:12:43 +000029380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029381$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029382if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029383 $as_echo_n "(cached) " >&6
29384else
29385 ac_check_lib_save_LIBS=$LIBS
29386LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029387cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029388/* end confdefs.h. */
29389
29390/* Override any GCC internal prototype to avoid an error.
29391 Use char because int might match the return type of a GCC
29392 builtin and then its argument prototype would still apply. */
29393#ifdef __cplusplus
29394extern "C"
29395#endif
29396char FPX_OpenImageByFilename ();
29397int
29398main ()
29399{
29400return FPX_OpenImageByFilename ();
29401 ;
29402 return 0;
29403}
29404_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029405if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029406 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29407else
cristy8b350f62009-11-15 23:12:43 +000029408 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029409fi
cristy8b350f62009-11-15 23:12:43 +000029410rm -f core conftest.err conftest.$ac_objext \
29411 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029412LIBS=$ac_check_lib_save_LIBS
29413fi
cristy8b350f62009-11-15 23:12:43 +000029414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029415$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029416if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029417 passed=`expr $passed + 1`
29418else
29419 failed=`expr $failed + 1`
29420fi
29421
29422 ac_ext=c
29423ac_cpp='$CPP $CPPFLAGS'
29424ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29425ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29426ac_compiler_gnu=$ac_cv_c_compiler_gnu
29427
cristy8b350f62009-11-15 23:12:43 +000029428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029429$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29430 if test $passed -gt 0; then
29431 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029432 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29433$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029434 have_fpx='no (failed tests)'
29435 else
29436 FPX_LIBS='-lfpx'
29437
cristy8b350f62009-11-15 23:12:43 +000029438$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029439
cristy09b53e12011-10-14 12:47:22 +000029440 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29441$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029442 have_fpx='yes'
29443 PERLMAINCC="$CXX"
29444 fi
29445 else
cristy09b53e12011-10-14 12:47:22 +000029446 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29447$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029448 fi
29449fi
cristy73bd4a52010-10-05 11:24:23 +000029450 if test "$have_fpx" = 'yes'; then
29451 FPX_DELEGATE_TRUE=
29452 FPX_DELEGATE_FALSE='#'
29453else
29454 FPX_DELEGATE_TRUE='#'
29455 FPX_DELEGATE_FALSE=
29456fi
29457
cristy3ed852e2009-09-05 21:47:34 +000029458
29459
29460
29461#
29462# Check for fontconfig delegate library.
29463#
29464
29465# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029466if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029467 withval=$with_fontconfig; with_fontconfig=$withval
29468else
cristyfc3d0222012-02-07 15:05:57 +000029469 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029470fi
29471
29472
29473if test "$with_fontconfig" != 'yes'; then
29474 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29475fi
29476
29477have_fontconfig='no'
29478FONTCONFIG_CFLAGS=""
29479FONTCONFIG_LIBS=""
29480FONTCONFIG_PKG=""
29481if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029482 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29483$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029484
29485pkg_failed=no
29486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29487$as_echo_n "checking for FONTCONFIG... " >&6; }
29488
29489if test -n "$FONTCONFIG_CFLAGS"; then
29490 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29491 elif test -n "$PKG_CONFIG"; then
29492 if test -n "$PKG_CONFIG" && \
29493 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29494 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29495 ac_status=$?
29496 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29497 test $ac_status = 0; }; then
29498 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29499else
29500 pkg_failed=yes
29501fi
29502 else
29503 pkg_failed=untried
29504fi
29505if test -n "$FONTCONFIG_LIBS"; then
29506 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29507 elif test -n "$PKG_CONFIG"; then
29508 if test -n "$PKG_CONFIG" && \
29509 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29510 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29511 ac_status=$?
29512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29513 test $ac_status = 0; }; then
29514 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29515else
29516 pkg_failed=yes
29517fi
29518 else
29519 pkg_failed=untried
29520fi
29521
29522
29523
29524if test $pkg_failed = yes; then
29525
29526if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29527 _pkg_short_errors_supported=yes
29528else
29529 _pkg_short_errors_supported=no
29530fi
29531 if test $_pkg_short_errors_supported = yes; then
29532 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29533 else
29534 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29535 fi
29536 # Put the nasty error message in config.log where it belongs
29537 echo "$FONTCONFIG_PKG_ERRORS" >&5
29538
29539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29540$as_echo "no" >&6; }
29541 have_fontconfig=no
29542elif test $pkg_failed = untried; then
29543 have_fontconfig=no
29544else
29545 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29546 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29548$as_echo "yes" >&6; }
29549 have_fontconfig=yes
29550fi
cristy09b53e12011-10-14 12:47:22 +000029551 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29552$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029553fi
29554
29555if test "$have_fontconfig" = 'yes'; then
29556
cristy8b350f62009-11-15 23:12:43 +000029557$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029558
cristyd09bcf92010-03-25 03:04:45 +000029559 if test "$with_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029560 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029561 fi
cristy3ed852e2009-09-05 21:47:34 +000029562fi
29563
cristy73bd4a52010-10-05 11:24:23 +000029564 if test "$have_fontconfig" = 'yes'; then
29565 FONTCONFIG_DELEGATE_TRUE=
29566 FONTCONFIG_DELEGATE_FALSE='#'
29567else
29568 FONTCONFIG_DELEGATE_TRUE='#'
29569 FONTCONFIG_DELEGATE_FALSE=
29570fi
29571
cristy3ed852e2009-09-05 21:47:34 +000029572
29573
29574
29575
29576#
cristy81beccd2011-10-03 18:17:24 +000029577# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029578#
29579
29580# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029581if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029582 withval=$with_freetype; with_freetype=$withval
29583else
29584 with_freetype='yes'
29585fi
29586
29587
cristy81beccd2011-10-03 18:17:24 +000029588
cristy3ed852e2009-09-05 21:47:34 +000029589if test "$with_freetype" != 'yes'; then
29590 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29591fi
29592
cristy81beccd2011-10-03 18:17:24 +000029593have_freetype='no'
29594FREETYPE_LIBS=''
29595if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029596 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29597$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29599$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029600 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29601$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029602 failed=0
29603 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029604 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029605 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029606 freetype_config=''
29607 # Allow the user to specify the location of freetype.
29608 if test "$with_freetype" != 'yes'; then
29609 if test -x "${with_freetype}/bin/freetype-config"; then
29610 freetype_config="${with_freetype}/bin/freetype-config"
29611 elif test -x "${with_freetype}"; then
29612 freetype_config=${with_freetype}
29613 fi
29614 fi
29615 if test -z "$freetype_config"; then
29616 # Extract the first word of "freetype-config", so it can be a program name with args.
29617set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29619$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029620if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029621 $as_echo_n "(cached) " >&6
29622else
cristy98ca0f52011-10-08 23:19:10 +000029623 case $freetype_config in
29624 [\\/]* | ?:[\\/]*)
29625 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29626 ;;
29627 *)
29628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029629for as_dir in $PATH
29630do
29631 IFS=$as_save_IFS
29632 test -z "$as_dir" && as_dir=.
29633 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029634 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029635 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29637 break 2
29638 fi
29639done
29640 done
29641IFS=$as_save_IFS
29642
cristy98ca0f52011-10-08 23:19:10 +000029643 ;;
29644esac
cristy81beccd2011-10-03 18:17:24 +000029645fi
cristy98ca0f52011-10-08 23:19:10 +000029646freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029647if test -n "$freetype_config"; then
29648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29649$as_echo "$freetype_config" >&6; }
29650else
29651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29652$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029653fi
29654
cristy98ca0f52011-10-08 23:19:10 +000029655 fi
29656 if test -n "$freetype_config"; then
29657 freetype_prefix=`${freetype_config} --prefix`
29658 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29659 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29660 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029661 fi
29662
29663 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029665$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29666if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29667 $as_echo_n "(cached) " >&6
29668else
29669 ac_check_lib_save_LIBS=$LIBS
29670LIBS="-lfreetype $LIBS"
29671cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29672/* end confdefs.h. */
29673
29674/* Override any GCC internal prototype to avoid an error.
29675 Use char because int might match the return type of a GCC
29676 builtin and then its argument prototype would still apply. */
29677#ifdef __cplusplus
29678extern "C"
29679#endif
29680char FT_Init_FreeType ();
29681int
29682main ()
29683{
29684return FT_Init_FreeType ();
29685 ;
29686 return 0;
29687}
29688_ACEOF
29689if ac_fn_c_try_link "$LINENO"; then :
29690 ac_cv_lib_freetype_FT_Init_FreeType=yes
29691else
29692 ac_cv_lib_freetype_FT_Init_FreeType=no
29693fi
29694rm -f core conftest.err conftest.$ac_objext \
29695 conftest$ac_exeext conftest.$ac_ext
29696LIBS=$ac_check_lib_save_LIBS
29697fi
29698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29699$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29700if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29701 FREETYPE_LIBS='-lfreetype'
29702fi
29703
cristy98ca0f52011-10-08 23:19:10 +000029704 if test "$FREETYPE_LIBS" != ''; then
29705 passed=`expr $passed + 1`
29706 else
29707 failed=`expr $failed + 1`
29708 LDFLAGS="$PERSIST_LDFLAGS"
29709 fi
cristy81beccd2011-10-03 18:17:24 +000029710 fi
29711
29712 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29713if test "x$ac_cv_header_ft2build_h" = xyes; then :
29714 FT2BUILD_H='#include <ft2build.h>'
29715else
29716 ft2build=''
29717fi
29718
29719
29720 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29721"
29722if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29723 have_freetype_h='yes'
29724else
29725 have_freetype_h='no'
29726fi
29727
29728
cristy98ca0f52011-10-08 23:19:10 +000029729 if test "$have_freetype_h" = 'yes'; then
29730 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029731 else
cristy98ca0f52011-10-08 23:19:10 +000029732 failed=`expr $failed + 1`
29733 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029734 fi
29735
29736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29737$as_echo_n "checking if FreeType package is complete... " >&6; }
29738 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029739 if test $failed -gt 0; then
29740 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029741 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29742$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029743 have_freetype='no (failed tests)'
29744 else
29745 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029746
cristy8b350f62009-11-15 23:12:43 +000029747$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029748
cristy98ca0f52011-10-08 23:19:10 +000029749 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029750
29751$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29752
cristy81beccd2011-10-03 18:17:24 +000029753 fi
cristy09b53e12011-10-14 12:47:22 +000029754 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29755$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029756 have_freetype='yes'
29757 fi
cristy81beccd2011-10-03 18:17:24 +000029758 else
cristy09b53e12011-10-14 12:47:22 +000029759 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29760$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029761 fi
29762fi
cristy73bd4a52010-10-05 11:24:23 +000029763 if test "$have_freetype" = 'yes'; then
29764 FREETYPE_DELEGATE_TRUE=
29765 FREETYPE_DELEGATE_FALSE='#'
29766else
29767 FREETYPE_DELEGATE_TRUE='#'
29768 FREETYPE_DELEGATE_FALSE=
29769fi
29770
cristy3ed852e2009-09-05 21:47:34 +000029771
29772
29773
cristy3ed852e2009-09-05 21:47:34 +000029774#
29775# Check for Ghostscript library or framework.
29776#
29777# Test for iapi.h & test for gsapi_new_instance in -lgs
29778# or -framework Ghostscript
29779
29780
29781# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029782if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029783 withval=$with_gslib; with_gslib=$withval
29784else
29785 with_gslib='no'
29786fi
29787
29788
cristyb7931f12009-09-25 10:22:21 +000029789gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029790if test "$with_gslib" != 'yes'; then
29791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29792fi
29793
29794have_gslib='no'
29795GS_LIBS=''
29796if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029797 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029800$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029801 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29802$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029803 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029804 failed=0
29805 passed=0
cristy8b350f62009-11-15 23:12:43 +000029806 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/iapi.h" "ac_cv_header_ghostscript_iapi_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029807if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029808 passed=`expr $passed + 1`
29809else
29810 failed=`expr $failed + 1`
29811fi
29812
29813
cristy8b350f62009-11-15 23:12:43 +000029814 ac_fn_c_check_header_mongrel "$LINENO" "ghostscript/ierrors.h" "ac_cv_header_ghostscript_ierrors_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029815if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029816 passed=`expr $passed + 1`
29817else
29818 failed=`expr $failed + 1`
29819fi
29820
29821
cristy73bd4a52010-10-05 11:24:23 +000029822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29823$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029824if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029825 $as_echo_n "(cached) " >&6
29826else
29827 ac_check_framework_save_LIBS=$LIBS
29828LIBS="-framework Ghostscript $LIBS"
29829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29830/* end confdefs.h. */
29831
29832/* Override any GCC internal prototype to avoid an error.
29833 Use char because int might match the return type of a GCC
29834 builtin and then its argument prototype would still apply. */
29835#ifdef __cplusplus
29836extern "C"
29837#endif
29838char gsapi_new_instance ();
29839int
29840main ()
29841{
29842return gsapi_new_instance ();
29843 ;
29844 return 0;
29845}
29846_ACEOF
29847if ac_fn_c_try_link "$LINENO"; then :
29848 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29849else
29850 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29851fi
29852rm -f core conftest.err conftest.$ac_objext \
29853 conftest$ac_exeext conftest.$ac_ext
29854LIBS=$ac_check_framework_save_LIBS
29855fi
29856{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29857$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29858if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29859 framework=`expr $framework + 1`
29860else
29861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029862$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029863if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029864 $as_echo_n "(cached) " >&6
29865else
29866 ac_check_lib_save_LIBS=$LIBS
29867LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029869/* end confdefs.h. */
29870
29871/* Override any GCC internal prototype to avoid an error.
29872 Use char because int might match the return type of a GCC
29873 builtin and then its argument prototype would still apply. */
29874#ifdef __cplusplus
29875extern "C"
29876#endif
29877char gsapi_new_instance ();
29878int
29879main ()
29880{
29881return gsapi_new_instance ();
29882 ;
29883 return 0;
29884}
29885_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029886if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029887 ac_cv_lib_gs_gsapi_new_instance=yes
29888else
cristy8b350f62009-11-15 23:12:43 +000029889 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029890fi
cristy8b350f62009-11-15 23:12:43 +000029891rm -f core conftest.err conftest.$ac_objext \
29892 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029893LIBS=$ac_check_lib_save_LIBS
29894fi
cristy8b350f62009-11-15 23:12:43 +000029895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029896$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029897if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029898 passed=`expr $passed + 1`
29899else
29900 failed=`expr $failed + 1`
29901fi
cristy73bd4a52010-10-05 11:24:23 +000029902
29903fi
cristy8b350f62009-11-15 23:12:43 +000029904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029905$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29906 if test $passed -gt 0; then
29907 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029908 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29909$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029910 have_gslib='no (failed tests)'
29911 else
29912 if test $framework -gt 0; then
29913 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029914 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029915 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29916$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029917 else
cristy09b53e12011-10-14 12:47:22 +000029918 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29919$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029920 GS_LIBS='-lgs'
29921 fi
29922 LIBS="$GS_LIBS $LIBS"
29923
cristy8b350f62009-11-15 23:12:43 +000029924$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029925
29926 have_gslib='yes'
29927 fi
29928 else
cristy09b53e12011-10-14 12:47:22 +000029929 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29930$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029931 fi
29932fi
cristy73bd4a52010-10-05 11:24:23 +000029933 if test "$have_gslib" = 'yes'; then
29934 GS_DELEGATE_TRUE=
29935 GS_DELEGATE_FALSE='#'
29936else
29937 GS_DELEGATE_TRUE='#'
29938 GS_DELEGATE_FALSE=
29939fi
29940
cristy3ed852e2009-09-05 21:47:34 +000029941
29942
29943# Set default font search path
29944
29945# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029946if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029947 withval=$with_fontpath; with_fontpath=$withval
29948else
29949 with_fontpath=''
29950fi
29951
29952
29953if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29954 with_fontpath=''
29955else
29956
29957cat >>confdefs.h <<_ACEOF
29958#define MAGICK_FONT_PATH "$with_fontpath"
29959_ACEOF
29960
29961fi
29962if test "$with_fontpath=" != ''; then
29963 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29964fi
29965
29966# Set Ghostscript font directory
29967
29968# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029969if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029970 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29971else
29972 with_gs_font_dir='default'
29973fi
29974
29975
29976if test "$with_gs_font_dir" != 'default'; then
29977 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29978fi
29979
29980
29981#
29982# Check for GVC delegate library.
29983#
29984
29985# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029986if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029987 withval=$with_gvc; with_gvc=$withval
29988else
cristy1b70dc82012-07-01 23:15:05 +000029989 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029990fi
29991
29992
29993if test "$with_gvc" != 'yes'; then
29994 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29995fi
29996
29997GVC_PKG=""
29998if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029999 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30000$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030001
30002pkg_failed=no
30003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
30004$as_echo_n "checking for GVC... " >&6; }
30005
30006if test -n "$GVC_CFLAGS"; then
30007 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
30008 elif test -n "$PKG_CONFIG"; then
30009 if test -n "$PKG_CONFIG" && \
30010 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30011 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30012 ac_status=$?
30013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30014 test $ac_status = 0; }; then
30015 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
30016else
30017 pkg_failed=yes
30018fi
30019 else
30020 pkg_failed=untried
30021fi
30022if test -n "$GVC_LIBS"; then
30023 pkg_cv_GVC_LIBS="$GVC_LIBS"
30024 elif test -n "$PKG_CONFIG"; then
30025 if test -n "$PKG_CONFIG" && \
30026 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
30027 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
30028 ac_status=$?
30029 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30030 test $ac_status = 0; }; then
30031 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
30032else
30033 pkg_failed=yes
30034fi
30035 else
30036 pkg_failed=untried
30037fi
30038
30039
30040
30041if test $pkg_failed = yes; then
30042
30043if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30044 _pkg_short_errors_supported=yes
30045else
30046 _pkg_short_errors_supported=no
30047fi
30048 if test $_pkg_short_errors_supported = yes; then
30049 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
30050 else
30051 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
30052 fi
30053 # Put the nasty error message in config.log where it belongs
30054 echo "$GVC_PKG_ERRORS" >&5
30055
30056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30057$as_echo "no" >&6; }
30058 have_gvc=no
30059elif test $pkg_failed = untried; then
30060 have_gvc=no
30061else
30062 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
30063 GVC_LIBS=$pkg_cv_GVC_LIBS
30064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30065$as_echo "yes" >&6; }
30066 have_gvc=yes
30067fi
cristy09b53e12011-10-14 12:47:22 +000030068 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30069$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030070fi
30071
30072if test "$have_gvc" = 'yes'; then
30073
cristy8b350f62009-11-15 23:12:43 +000030074$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030075
30076 if test "$with_modules" = 'no'; then
30077 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30078 fi
30079fi
30080
cristy73bd4a52010-10-05 11:24:23 +000030081 if test "$have_gvc" = 'yes'; then
30082 GVC_DELEGATE_TRUE=
30083 GVC_DELEGATE_FALSE='#'
30084else
30085 GVC_DELEGATE_TRUE='#'
30086 GVC_DELEGATE_FALSE=
30087fi
30088
cristy3ed852e2009-09-05 21:47:34 +000030089
30090
30091
30092
30093#
30094# Check for JBIG delegate library.
30095#
30096
30097
30098# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030099if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030100 withval=$with_jbig; with_jbig=$withval
30101else
30102 with_jbig='yes'
30103fi
30104
30105
30106have_jbig='no'
30107JBIG_LIBS=''
30108if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030109 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30110$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030112$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030113 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30114$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030115 failed=0
30116 passed=0
cristy8b350f62009-11-15 23:12:43 +000030117 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030118if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030119 passed=`expr $passed + 1`
30120else
30121 failed=`expr $failed + 1`
30122fi
30123
30124
cristy8b350f62009-11-15 23:12:43 +000030125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030126$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030127if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030128 $as_echo_n "(cached) " >&6
30129else
30130 ac_check_lib_save_LIBS=$LIBS
30131LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030132cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030133/* end confdefs.h. */
30134
30135/* Override any GCC internal prototype to avoid an error.
30136 Use char because int might match the return type of a GCC
30137 builtin and then its argument prototype would still apply. */
30138#ifdef __cplusplus
30139extern "C"
30140#endif
30141char jbg_dec_init ();
30142int
30143main ()
30144{
30145return jbg_dec_init ();
30146 ;
30147 return 0;
30148}
30149_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030150if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030151 ac_cv_lib_jbig_jbg_dec_init=yes
30152else
cristy8b350f62009-11-15 23:12:43 +000030153 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030154fi
cristy8b350f62009-11-15 23:12:43 +000030155rm -f core conftest.err conftest.$ac_objext \
30156 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030157LIBS=$ac_check_lib_save_LIBS
30158fi
cristy8b350f62009-11-15 23:12:43 +000030159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030160$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030161if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030162 passed=`expr $passed + 1`
30163else
30164 failed=`expr $failed + 1`
30165fi
30166
cristy8b350f62009-11-15 23:12:43 +000030167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030168$as_echo_n "checking if JBIG package is complete... " >&6; }
30169 if test $passed -gt 0; then
30170 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030171 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30172$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030173 have_jbig='no (failed tests)'
30174 else
30175 JBIG_LIBS='-ljbig'
30176 LIBS="$JBIG_LIBS $LIBS"
30177
cristy8b350f62009-11-15 23:12:43 +000030178$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030179
cristy09b53e12011-10-14 12:47:22 +000030180 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30181$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030182 have_jbig='yes'
30183 fi
30184 else
cristy09b53e12011-10-14 12:47:22 +000030185 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30186$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030187 fi
30188fi
cristy73bd4a52010-10-05 11:24:23 +000030189 if test "$have_jbig" = 'yes'; then
30190 JBIG_DELEGATE_TRUE=
30191 JBIG_DELEGATE_FALSE='#'
30192else
30193 JBIG_DELEGATE_TRUE='#'
30194 JBIG_DELEGATE_FALSE=
30195fi
30196
cristy3ed852e2009-09-05 21:47:34 +000030197
30198
30199
30200#
30201# Check for JPEG delegate library.
30202#
30203
30204# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030205if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030206 withval=$with_jpeg; with_jpeg=$withval
30207else
30208 with_jpeg='yes'
30209fi
30210
30211
30212if test "$with_jpeg" != 'yes'; then
30213 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30214fi
30215
30216have_jpeg='no'
30217JPEG_LIBS=''
30218if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030219 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30220$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030222$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030223 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30224$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030225 failed=0
30226 passed=0
cristy8b350f62009-11-15 23:12:43 +000030227 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030228if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030229 passed=`expr $passed + 1`
30230else
30231 failed=`expr $failed + 1`
30232fi
30233
30234
cristy8b350f62009-11-15 23:12:43 +000030235 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030236if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030237 passed=`expr $passed + 1`
30238else
30239 failed=`expr $failed + 1`
30240fi
30241
30242
cristy8b350f62009-11-15 23:12:43 +000030243 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030244if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030245 passed=`expr $passed + 1`
30246else
30247 failed=`expr $failed + 1`
30248fi
30249
30250
cristy8b350f62009-11-15 23:12:43 +000030251 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030252if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030253 passed=`expr $passed + 1`
30254else
30255 failed=`expr $failed + 1`
30256fi
30257
30258
cristy8b350f62009-11-15 23:12:43 +000030259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030260$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030261if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030262 $as_echo_n "(cached) " >&6
30263else
30264 ac_check_lib_save_LIBS=$LIBS
30265LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030266cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030267/* end confdefs.h. */
30268
30269/* Override any GCC internal prototype to avoid an error.
30270 Use char because int might match the return type of a GCC
30271 builtin and then its argument prototype would still apply. */
30272#ifdef __cplusplus
30273extern "C"
30274#endif
30275char jpeg_read_header ();
30276int
30277main ()
30278{
30279return jpeg_read_header ();
30280 ;
30281 return 0;
30282}
30283_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030284if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030285 ac_cv_lib_jpeg_jpeg_read_header=yes
30286else
cristy8b350f62009-11-15 23:12:43 +000030287 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030288fi
cristy8b350f62009-11-15 23:12:43 +000030289rm -f core conftest.err conftest.$ac_objext \
30290 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030291LIBS=$ac_check_lib_save_LIBS
30292fi
cristy8b350f62009-11-15 23:12:43 +000030293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030294$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030295if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030296 passed=`expr $passed + 1`
30297else
30298 failed=`expr $failed + 1`
30299fi
30300
30301
30302# Test for compatible JPEG library
30303if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030305$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030306if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030307 $as_echo_n "(cached) " >&6
30308else
cristy8b350f62009-11-15 23:12:43 +000030309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030310/* end confdefs.h. */
30311#include <stdio.h>
30312#include <stdlib.h>
30313#include <jpeglib.h>
30314
30315int
30316main ()
30317{
30318
30319#if JPEG_LIB_VERSION < 62
30320#error IJG JPEG library must be version 6b or newer!
30321#endif
30322return 0;
30323
30324 ;
30325 return 0;
30326}
30327_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030328if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030329 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30330else
cristy8b350f62009-11-15 23:12:43 +000030331 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030332fi
cristy3ed852e2009-09-05 21:47:34 +000030333rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30334fi
cristy8b350f62009-11-15 23:12:43 +000030335{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030336$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30337fi
cristy8b350f62009-11-15 23:12:43 +000030338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030339$as_echo_n "checking if JPEG package is complete... " >&6; }
30340 if test $passed -gt 0; then
30341 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030342 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30343$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030344 have_jpeg='no (failed tests)'
30345 else
30346 JPEG_LIBS='-ljpeg'
30347 LIBS="$JPEG_LIBS $LIBS"
30348
cristy8b350f62009-11-15 23:12:43 +000030349$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030350
cristy09b53e12011-10-14 12:47:22 +000030351 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30352$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030353 have_jpeg='yes'
30354 fi
30355 else
cristy09b53e12011-10-14 12:47:22 +000030356 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30357$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030358 fi
30359fi
cristy73bd4a52010-10-05 11:24:23 +000030360 if test "$have_jpeg" = 'yes'; then
30361 JPEG_DELEGATE_TRUE=
30362 JPEG_DELEGATE_FALSE='#'
30363else
30364 JPEG_DELEGATE_TRUE='#'
30365 JPEG_DELEGATE_FALSE=
30366fi
30367
cristy3ed852e2009-09-05 21:47:34 +000030368
30369
30370
30371#
30372# Check for JPEG Version 2 delegate library.
30373#
30374
30375# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030376if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030377 withval=$with_jp2; with_jp2=$withval
30378else
30379 with_jp2='yes'
30380fi
30381
30382
30383if test "$with_jp2" != 'yes'; then
30384 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30385fi
30386
30387have_jp2='no'
30388JP2_LIBS=''
30389if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030390 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30391$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030393$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030394 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30395$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030396 failed=0
30397 passed=0
cristy8b350f62009-11-15 23:12:43 +000030398 ac_fn_c_check_header_mongrel "$LINENO" "jasper/jasper.h" "ac_cv_header_jasper_jasper_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030399if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030400 passed=`expr $passed + 1`
30401else
30402 failed=`expr $failed + 1`
30403fi
30404
30405
cristy8b350f62009-11-15 23:12:43 +000030406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030407$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030408if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030409 $as_echo_n "(cached) " >&6
30410else
30411 ac_check_lib_save_LIBS=$LIBS
30412LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030414/* end confdefs.h. */
30415
30416/* Override any GCC internal prototype to avoid an error.
30417 Use char because int might match the return type of a GCC
30418 builtin and then its argument prototype would still apply. */
30419#ifdef __cplusplus
30420extern "C"
30421#endif
30422char jas_stream_fopen ();
30423int
30424main ()
30425{
30426return jas_stream_fopen ();
30427 ;
30428 return 0;
30429}
30430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030432 ac_cv_lib_jasper_jas_stream_fopen=yes
30433else
cristy8b350f62009-11-15 23:12:43 +000030434 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030435fi
cristy8b350f62009-11-15 23:12:43 +000030436rm -f core conftest.err conftest.$ac_objext \
30437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030438LIBS=$ac_check_lib_save_LIBS
30439fi
cristy8b350f62009-11-15 23:12:43 +000030440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030441$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030442if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030443 passed=`expr $passed + 1`
30444else
30445 failed=`expr $failed + 1`
30446fi
30447
cristy8b350f62009-11-15 23:12:43 +000030448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030449$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30450 if test $passed -gt 0; then
30451 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030452 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30453$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030454 have_jp2='no (failed tests)'
30455 else
30456 JP2_LIBS='-ljasper'
30457 LIBS="$JP2_LIBS $LIBS"
30458
cristy8b350f62009-11-15 23:12:43 +000030459$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030460
cristy09b53e12011-10-14 12:47:22 +000030461 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30462$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030463 have_jp2='yes'
30464 fi
30465 else
cristy09b53e12011-10-14 12:47:22 +000030466 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30467$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030468 fi
30469fi
cristy73bd4a52010-10-05 11:24:23 +000030470 if test "$have_jp2" = 'yes'; then
30471 JP2_DELEGATE_TRUE=
30472 JP2_DELEGATE_FALSE='#'
30473else
30474 JP2_DELEGATE_TRUE='#'
30475 JP2_DELEGATE_FALSE=
30476fi
30477
cristy3ed852e2009-09-05 21:47:34 +000030478
30479
30480
30481#
30482# Check for LCMS delegate library.
30483#
cristy71203402010-06-18 13:12:03 +000030484# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030485
30486# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030487if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030488 withval=$with_lcms; with_lcms=$withval
30489else
30490 with_lcms='yes'
30491fi
30492
cristy71203402010-06-18 13:12:03 +000030493if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030494 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30495fi
30496
cristy71203402010-06-18 13:12:03 +000030497# Disable LCMS2.
30498
30499# Check whether --with-lcms2 was given.
30500if test "${with_lcms2+set}" = set; then :
30501 withval=$with_lcms2; with_lcms2=$withval
30502else
30503 with_lcms2='yes'
30504fi
30505
30506if test "$with_lcms2" != 'yes' ; then
30507 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30508fi
30509
30510have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030511LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030512if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030513 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30514$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30516$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030517 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30518$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030519 failed=0
30520 passed=0
30521 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030522
30523 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030524 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030525if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030526 have_lcms_header='yes'
30527fi
30528
30529
30530 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030531
30532$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30533
cristy71203402010-06-18 13:12:03 +000030534 passed=`expr $passed + 1`
30535 fi
30536
30537 # Check for <lcms2/lcms2.h)
30538 if test "$have_lcms_header" != 'yes'; then
30539 ac_fn_c_check_header_mongrel "$LINENO" "lcms2/lcms2.h" "ac_cv_header_lcms2_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030540if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030541 have_lcms_header='yes'
30542fi
30543
30544
cristy71203402010-06-18 13:12:03 +000030545 if test "$have_lcms_header" = 'yes'; then
30546 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030547
cristy71203402010-06-18 13:12:03 +000030548$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030549
cristy71203402010-06-18 13:12:03 +000030550 fi
cristyd09bcf92010-03-25 03:04:45 +000030551 fi
cristy71203402010-06-18 13:12:03 +000030552
30553 # Failed to find lcms header?
30554 if test "$have_lcms_header" != 'yes'; then
30555 failed=`expr $failed + 1`
30556 fi
30557
30558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30559$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030560if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030561 $as_echo_n "(cached) " >&6
30562else
30563 ac_check_lib_save_LIBS=$LIBS
30564LIBS="-llcms2 $LIBS"
30565cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30566/* end confdefs.h. */
30567
30568/* Override any GCC internal prototype to avoid an error.
30569 Use char because int might match the return type of a GCC
30570 builtin and then its argument prototype would still apply. */
30571#ifdef __cplusplus
30572extern "C"
30573#endif
cristy71203402010-06-18 13:12:03 +000030574char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030575int
30576main ()
30577{
cristy71203402010-06-18 13:12:03 +000030578return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030579 ;
30580 return 0;
30581}
30582_ACEOF
30583if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030584 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030585else
cristy71203402010-06-18 13:12:03 +000030586 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030587fi
30588rm -f core conftest.err conftest.$ac_objext \
30589 conftest$ac_exeext conftest.$ac_ext
30590LIBS=$ac_check_lib_save_LIBS
30591fi
cristy71203402010-06-18 13:12:03 +000030592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30593$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030594if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030595 passed=`expr $passed + 1`
30596else
30597 failed=`expr $failed + 1`
30598fi
30599
cristy71203402010-06-18 13:12:03 +000030600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30601$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030602 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030603 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030604 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30605$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030606 have_lcms2='no (failed tests)'
30607 else
30608 LCMS_LIBS='-llcms2'
30609 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030610 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30611$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030612 have_lcms2='yes'
30613 fi
cristyd09bcf92010-03-25 03:04:45 +000030614 else
cristy09b53e12011-10-14 12:47:22 +000030615 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30616$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030617 fi
30618fi
30619
cristy71203402010-06-18 13:12:03 +000030620#
30621# Check for LCMS v1 (1.11 or later)
30622#
30623if test $have_lcms2 = 'yes'; then
30624 with_lcms='no'
30625fi
30626
30627have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030628if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030629 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30630$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30632$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030633 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30634$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030635 failed=0
30636 passed=0
30637 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030638
30639 # Check for <lcms.h>
30640 if test "$have_lcms_header" != 'yes'; then
30641 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030642if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030643 have_lcms_header='yes'
30644fi
30645
30646
cristy71203402010-06-18 13:12:03 +000030647 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030648 passed=`expr $passed + 1`
30649
cristy8b350f62009-11-15 23:12:43 +000030650$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030651
cristy71203402010-06-18 13:12:03 +000030652 fi
30653 fi
30654
30655 # Check for <lcms/lcms.h>
30656 if test "$have_lcms_header" != 'yes'; then
30657 ac_fn_c_check_header_mongrel "$LINENO" "lcms/lcms.h" "ac_cv_header_lcms_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030658if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030659 have_lcms_header='yes'
30660fi
30661
30662
cristy71203402010-06-18 13:12:03 +000030663 if test "$have_lcms_header" = 'yes'; then
30664 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030665
cristy8b350f62009-11-15 23:12:43 +000030666$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030667
cristy71203402010-06-18 13:12:03 +000030668 fi
cristy3ed852e2009-09-05 21:47:34 +000030669 fi
cristy71203402010-06-18 13:12:03 +000030670
30671 # Failed to find lcms header?
30672 if test "$have_lcms_header" != 'yes'; then
30673 failed=`expr $failed + 1`
30674 fi
30675
30676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30677$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030678if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030679 $as_echo_n "(cached) " >&6
30680else
30681 ac_check_lib_save_LIBS=$LIBS
30682LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030684/* end confdefs.h. */
30685
30686/* Override any GCC internal prototype to avoid an error.
30687 Use char because int might match the return type of a GCC
30688 builtin and then its argument prototype would still apply. */
30689#ifdef __cplusplus
30690extern "C"
30691#endif
cristy71203402010-06-18 13:12:03 +000030692char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030693int
30694main ()
30695{
cristy71203402010-06-18 13:12:03 +000030696return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030697 ;
30698 return 0;
30699}
30700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030701if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030702 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030703else
cristy71203402010-06-18 13:12:03 +000030704 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030705fi
cristy8b350f62009-11-15 23:12:43 +000030706rm -f core conftest.err conftest.$ac_objext \
30707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030708LIBS=$ac_check_lib_save_LIBS
30709fi
cristy71203402010-06-18 13:12:03 +000030710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30711$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030712if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030713 passed=`expr $passed + 1`
30714else
30715 failed=`expr $failed + 1`
30716fi
30717
cristy8b350f62009-11-15 23:12:43 +000030718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030719$as_echo_n "checking if LCMS package is complete... " >&6; }
30720 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030721 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030722 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30723$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030724 have_lcms='no (failed tests)'
30725 else
30726 LCMS_LIBS='-llcms'
30727 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030728 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30729$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030730 have_lcms='yes'
30731 fi
cristy3ed852e2009-09-05 21:47:34 +000030732 else
cristy09b53e12011-10-14 12:47:22 +000030733 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30734$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030735 fi
30736fi
cristy71203402010-06-18 13:12:03 +000030737
cristy73bd4a52010-10-05 11:24:23 +000030738 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30739 LCMS_DELEGATE_TRUE=
30740 LCMS_DELEGATE_FALSE='#'
30741else
30742 LCMS_DELEGATE_TRUE='#'
30743 LCMS_DELEGATE_FALSE=
30744fi
30745
cristy71203402010-06-18 13:12:03 +000030746if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30747
30748$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30749
30750fi
30751
cristy3ed852e2009-09-05 21:47:34 +000030752
30753
30754
30755#
30756# Check for the LQR (Liquid Rescale) delegate library.
30757#
30758
30759# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030760if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030761 withval=$with_lqr; with_lqr=$withval
30762else
30763 with_lqr='yes'
30764fi
30765
30766
30767if test "$with_lqr" != 'yes'; then
30768 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30769fi
30770
30771have_lqr='no'
30772LQR_CFLAGS=""
30773LQR_LIBS=""
30774LQR_PKG=""
30775if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030776 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30777$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030778
30779pkg_failed=no
30780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30781$as_echo_n "checking for LQR... " >&6; }
30782
30783if test -n "$LQR_CFLAGS"; then
30784 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30785 elif test -n "$PKG_CONFIG"; then
30786 if test -n "$PKG_CONFIG" && \
30787 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30788 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30789 ac_status=$?
30790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30791 test $ac_status = 0; }; then
30792 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30793else
30794 pkg_failed=yes
30795fi
30796 else
30797 pkg_failed=untried
30798fi
30799if test -n "$LQR_LIBS"; then
30800 pkg_cv_LQR_LIBS="$LQR_LIBS"
30801 elif test -n "$PKG_CONFIG"; then
30802 if test -n "$PKG_CONFIG" && \
30803 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30804 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30805 ac_status=$?
30806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30807 test $ac_status = 0; }; then
30808 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30809else
30810 pkg_failed=yes
30811fi
30812 else
30813 pkg_failed=untried
30814fi
30815
30816
30817
30818if test $pkg_failed = yes; then
30819
30820if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30821 _pkg_short_errors_supported=yes
30822else
30823 _pkg_short_errors_supported=no
30824fi
30825 if test $_pkg_short_errors_supported = yes; then
30826 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30827 else
30828 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30829 fi
30830 # Put the nasty error message in config.log where it belongs
30831 echo "$LQR_PKG_ERRORS" >&5
30832
30833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30834$as_echo "no" >&6; }
30835 have_lqr=no
30836elif test $pkg_failed = untried; then
30837 have_lqr=no
30838else
30839 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30840 LQR_LIBS=$pkg_cv_LQR_LIBS
30841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30842$as_echo "yes" >&6; }
30843 have_lqr=yes
30844fi
cristy09b53e12011-10-14 12:47:22 +000030845 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30846$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030847fi
30848
30849if test "$have_lqr" = 'yes'; then
30850
cristy8b350f62009-11-15 23:12:43 +000030851$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030852
30853 CFLAGS="$LQR_CFLAGS $CFLAGS"
30854fi
30855
cristy73bd4a52010-10-05 11:24:23 +000030856 if test "$have_lqr" = 'yes'; then
30857 LQR_DELEGATE_TRUE=
30858 LQR_DELEGATE_FALSE='#'
30859else
30860 LQR_DELEGATE_TRUE='#'
30861 LQR_DELEGATE_FALSE=
30862fi
30863
cristy3ed852e2009-09-05 21:47:34 +000030864
30865
30866
30867
cristy81beccd2011-10-03 18:17:24 +000030868# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030869
30870# Check whether --with-lzma was given.
30871if test "${with_lzma+set}" = set; then :
30872 withval=$with_lzma; with_lzma=$withval
30873else
30874 with_lzma='yes'
30875fi
30876
cristy81beccd2011-10-03 18:17:24 +000030877if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030878 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30879fi
30880
cristyb94e5002011-11-14 13:20:10 +000030881LZMA_PKG=""
30882if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030883 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30884$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030885
30886pkg_failed=no
30887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030888$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030889
30890if test -n "$LZMA_CFLAGS"; then
30891 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30892 elif test -n "$PKG_CONFIG"; then
30893 if test -n "$PKG_CONFIG" && \
30894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30895 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30896 ac_status=$?
30897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30898 test $ac_status = 0; }; then
30899 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30900else
30901 pkg_failed=yes
30902fi
30903 else
30904 pkg_failed=untried
30905fi
30906if test -n "$LZMA_LIBS"; then
30907 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30908 elif test -n "$PKG_CONFIG"; then
30909 if test -n "$PKG_CONFIG" && \
30910 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30911 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30912 ac_status=$?
30913 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30914 test $ac_status = 0; }; then
30915 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30916else
30917 pkg_failed=yes
30918fi
30919 else
30920 pkg_failed=untried
30921fi
30922
30923
30924
30925if test $pkg_failed = yes; then
30926
30927if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30928 _pkg_short_errors_supported=yes
30929else
30930 _pkg_short_errors_supported=no
30931fi
30932 if test $_pkg_short_errors_supported = yes; then
30933 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30934 else
30935 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30936 fi
30937 # Put the nasty error message in config.log where it belongs
30938 echo "$LZMA_PKG_ERRORS" >&5
30939
30940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30941$as_echo "no" >&6; }
30942 have_lzma=no
30943elif test $pkg_failed = untried; then
30944 have_lzma=no
30945else
30946 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30947 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30949$as_echo "yes" >&6; }
30950 have_lzma=yes
30951fi
30952 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030953$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030954fi
30955
cristyb94e5002011-11-14 13:20:10 +000030956if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030957
30958$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30959
cristyb94e5002011-11-14 13:20:10 +000030960 if test "$with_modules" = 'no'; then
30961 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030962 fi
cristyfbb0ef02010-12-19 02:32:11 +000030963fi
cristyb94e5002011-11-14 13:20:10 +000030964
cristyfbb0ef02010-12-19 02:32:11 +000030965 if test "$have_lzma" = 'yes'; then
30966 LZMA_DELEGATE_TRUE=
30967 LZMA_DELEGATE_FALSE='#'
30968else
30969 LZMA_DELEGATE_TRUE='#'
30970 LZMA_DELEGATE_FALSE=
30971fi
30972
30973
30974
30975
cristyb94e5002011-11-14 13:20:10 +000030976
cristy3ed852e2009-09-05 21:47:34 +000030977#
30978# Check for the OpenEXR delegate library.
30979#
30980
30981# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030982if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030983 withval=$with_openexr; with_openexr=$withval
30984else
30985 with_openexr='yes'
30986fi
30987
30988
30989if test "$with_openexr" != 'yes'; then
30990 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30991fi
30992
30993have_openexr='no'
30994OPENEXR_CFLAGS=""
30995OPENEXR_LIBS=""
30996OPENEXR_PKG=""
30997if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030998 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30999$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031000
31001pkg_failed=no
31002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
31003$as_echo_n "checking for OPENEXR... " >&6; }
31004
31005if test -n "$OPENEXR_CFLAGS"; then
31006 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
31007 elif test -n "$PKG_CONFIG"; then
31008 if test -n "$PKG_CONFIG" && \
31009 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31010 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31011 ac_status=$?
31012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31013 test $ac_status = 0; }; then
31014 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
31015else
31016 pkg_failed=yes
31017fi
31018 else
31019 pkg_failed=untried
31020fi
31021if test -n "$OPENEXR_LIBS"; then
31022 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
31023 elif test -n "$PKG_CONFIG"; then
31024 if test -n "$PKG_CONFIG" && \
31025 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
31026 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
31027 ac_status=$?
31028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31029 test $ac_status = 0; }; then
31030 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
31031else
31032 pkg_failed=yes
31033fi
31034 else
31035 pkg_failed=untried
31036fi
31037
31038
31039
31040if test $pkg_failed = yes; then
31041
31042if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31043 _pkg_short_errors_supported=yes
31044else
31045 _pkg_short_errors_supported=no
31046fi
31047 if test $_pkg_short_errors_supported = yes; then
31048 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
31049 else
31050 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
31051 fi
31052 # Put the nasty error message in config.log where it belongs
31053 echo "$OPENEXR_PKG_ERRORS" >&5
31054
31055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31056$as_echo "no" >&6; }
31057 have_openexr=no
31058elif test $pkg_failed = untried; then
31059 have_openexr=no
31060else
31061 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
31062 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
31063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31064$as_echo "yes" >&6; }
31065 have_openexr=yes
31066fi
cristy09b53e12011-10-14 12:47:22 +000031067 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31068$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031069fi
31070
31071if test "$have_openexr" = 'yes'; then
31072
cristy8b350f62009-11-15 23:12:43 +000031073$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031074
31075 if test "$with_modules" = 'no'; then
31076 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31077 fi
31078fi
31079
cristy73bd4a52010-10-05 11:24:23 +000031080 if test "$have_openexr" = 'yes'; then
31081 OPENEXR_DELEGATE_TRUE=
31082 OPENEXR_DELEGATE_FALSE='#'
31083else
31084 OPENEXR_DELEGATE_TRUE='#'
31085 OPENEXR_DELEGATE_FALSE=
31086fi
31087
cristy3ed852e2009-09-05 21:47:34 +000031088
31089
31090
31091
31092#
cristy41cbe8a2011-10-27 01:35:18 +000031093# Check for PANGO delegate library.
31094#
31095
31096# Check whether --with-pango was given.
31097if test "${with_pango+set}" = set; then :
31098 withval=$with_pango; with_pango=$withval
31099else
cristyfc3d0222012-02-07 15:05:57 +000031100 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031101fi
31102
31103
31104if test "$with_pango" != 'yes'; then
31105 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31106fi
31107
31108have_pango='no'
cristya054b762012-03-26 23:16:00 +000031109have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031110PANGO_CFLAGS=""
31111PANGO_LIBS=""
31112PANGO_PKG=""
31113if test "x$with_pango" = "xyes"; then
31114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31115$as_echo "-------------------------------------------------------------" >&6; }
31116
31117pkg_failed=no
31118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31119$as_echo_n "checking for PANGO... " >&6; }
31120
31121if test -n "$PANGO_CFLAGS"; then
31122 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31123 elif test -n "$PKG_CONFIG"; then
31124 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031125 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31126 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031127 ac_status=$?
31128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31129 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031130 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031131else
31132 pkg_failed=yes
31133fi
31134 else
31135 pkg_failed=untried
31136fi
31137if test -n "$PANGO_LIBS"; then
31138 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31139 elif test -n "$PKG_CONFIG"; then
31140 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031141 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31142 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031143 ac_status=$?
31144 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31145 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031146 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031147else
31148 pkg_failed=yes
31149fi
31150 else
31151 pkg_failed=untried
31152fi
31153
31154
31155
31156if test $pkg_failed = yes; then
31157
31158if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31159 _pkg_short_errors_supported=yes
31160else
31161 _pkg_short_errors_supported=no
31162fi
31163 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031164 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031165 else
cristya054b762012-03-26 23:16:00 +000031166 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031167 fi
31168 # Put the nasty error message in config.log where it belongs
31169 echo "$PANGO_PKG_ERRORS" >&5
31170
31171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31172$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031173 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031174elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031175 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031176else
31177 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31178 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31180$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031181 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031182fi
31183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31184$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031185
31186pkg_failed=no
31187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31188$as_echo_n "checking for PANGO... " >&6; }
31189
31190if test -n "$PANGO_CFLAGS"; then
31191 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31192 elif test -n "$PKG_CONFIG"; then
31193 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031194 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31195 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031196 ac_status=$?
31197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31198 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031199 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031200else
31201 pkg_failed=yes
31202fi
31203 else
31204 pkg_failed=untried
31205fi
31206if test -n "$PANGO_LIBS"; then
31207 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31208 elif test -n "$PKG_CONFIG"; then
31209 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031210 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31211 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031212 ac_status=$?
31213 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31214 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031215 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031216else
31217 pkg_failed=yes
31218fi
31219 else
31220 pkg_failed=untried
31221fi
31222
31223
31224
31225if test $pkg_failed = yes; then
31226
31227if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31228 _pkg_short_errors_supported=yes
31229else
31230 _pkg_short_errors_supported=no
31231fi
31232 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031233 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031234 else
cristy2542fc62011-12-06 17:50:25 +000031235 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031236 fi
31237 # Put the nasty error message in config.log where it belongs
31238 echo "$PANGO_PKG_ERRORS" >&5
31239
31240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31241$as_echo "no" >&6; }
31242 have_pango=no
31243elif test $pkg_failed = untried; then
31244 have_pango=no
31245else
31246 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31247 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31249$as_echo "yes" >&6; }
31250 have_pango=yes
31251fi
31252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31253$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031254fi
31255
31256if test "$have_pango" = 'yes'; then
31257
31258$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31259
31260 if test "$with_modules" = 'no'; then
31261 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31262 fi
31263fi
31264
cristya054b762012-03-26 23:16:00 +000031265if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031266
cristya054b762012-03-26 23:16:00 +000031267$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031268
31269 if test "$with_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031270 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031271 fi
31272fi
31273
31274 if test "$have_pango" = 'yes'; then
31275 PANGO_DELEGATE_TRUE=
31276 PANGO_DELEGATE_FALSE='#'
31277else
31278 PANGO_DELEGATE_TRUE='#'
31279 PANGO_DELEGATE_FALSE=
31280fi
31281
cristya054b762012-03-26 23:16:00 +000031282 if test "$have_pangocairo" = 'yes'; then
31283 PANGOCAIRO_DELEGATE_TRUE=
31284 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031285else
cristya054b762012-03-26 23:16:00 +000031286 PANGOCAIRO_DELEGATE_TRUE='#'
31287 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031288fi
31289
31290
31291
31292
31293
31294#
cristy3ed852e2009-09-05 21:47:34 +000031295# Check for PNG delegate library.
31296#
31297
31298# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031299if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031300 withval=$with_png; with_png=$withval
31301else
31302 with_png='yes'
31303fi
31304
31305
31306if test "$with_png" != 'yes'; then
31307 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31308fi
31309
cristy81beccd2011-10-03 18:17:24 +000031310have_png='no'
31311PNG_LIBS=''
31312
31313if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031314 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31315$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31317$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031318 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31319$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031320 failed=0
31321 passed=0
31322 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31323if test "x$ac_cv_header_png_h" = xyes; then :
31324 passed=`expr $passed + 1`
31325else
31326 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031327fi
31328
cristy81beccd2011-10-03 18:17:24 +000031329
31330
31331 if test $passed -gt 0; then
31332 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031333 if test "$have_png" = 'no' ; then
31334 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031335 pnglib='png'
31336 else
31337 pnglib="png1${var}"
31338 fi
31339
31340# Test for compatible LIBPNG library
31341 failed=0
31342 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031343 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031344 if test "${pnglib}" != 'png' ; then
31345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31346$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31347 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31348/* end confdefs.h. */
31349#include <stdio.h>
31350#include <stdlib.h>
31351#include <png.h>
31352
31353int
31354main ()
31355{
31356
31357#if PNG_LIBPNG_VER_MINOR != ${var}
31358#error LIBPNG library must be version 1${var}!
31359Kaboom, Kaboom
31360#endif
31361return 0;
31362
31363 ;
31364 return 0;
31365}
31366_ACEOF
31367if ac_fn_c_try_compile "$LINENO"; then :
31368 ac_cv_libpng_ok='yes'
31369else
31370 ac_cv_libpng_ok='no'
31371fi
31372rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31373 if test "$ac_cv_libpng_ok" = 'yes' ; then
31374 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031375 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31376$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031377 else
31378 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031379 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31380$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031381 fi
31382 else
31383 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031384 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31385$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031386 fi
31387 fi
31388
31389 if test $passed -gt 0 -a $failed -le 0; then
31390 if test "1${var}" = '15' ; then
31391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31392$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31393if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31394 $as_echo_n "(cached) " >&6
31395else
31396 ac_check_lib_save_LIBS=$LIBS
31397LIBS="-lpng15 $LIBS"
31398cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31399/* end confdefs.h. */
31400
31401/* Override any GCC internal prototype to avoid an error.
31402 Use char because int might match the return type of a GCC
31403 builtin and then its argument prototype would still apply. */
31404#ifdef __cplusplus
31405extern "C"
31406#endif
31407char png_get_io_ptr ();
31408int
31409main ()
31410{
31411return png_get_io_ptr ();
31412 ;
31413 return 0;
31414}
31415_ACEOF
31416if ac_fn_c_try_link "$LINENO"; then :
31417 ac_cv_lib_png15_png_get_io_ptr=yes
31418else
31419 ac_cv_lib_png15_png_get_io_ptr=no
31420fi
31421rm -f core conftest.err conftest.$ac_objext \
31422 conftest$ac_exeext conftest.$ac_ext
31423LIBS=$ac_check_lib_save_LIBS
31424fi
31425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31426$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31427if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31428 passed=`expr $passed + 1`
31429else
31430 failed=`expr $failed + 1`
31431fi
31432
31433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31434$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31435if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31436 $as_echo_n "(cached) " >&6
31437else
31438 ac_check_lib_save_LIBS=$LIBS
31439LIBS="-lpng15 $LIBS"
31440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31441/* end confdefs.h. */
31442
31443/* Override any GCC internal prototype to avoid an error.
31444 Use char because int might match the return type of a GCC
31445 builtin and then its argument prototype would still apply. */
31446#ifdef __cplusplus
31447extern "C"
31448#endif
31449char png_longjmp ();
31450int
31451main ()
31452{
31453return png_longjmp ();
31454 ;
31455 return 0;
31456}
31457_ACEOF
31458if ac_fn_c_try_link "$LINENO"; then :
31459 ac_cv_lib_png15_png_longjmp=yes
31460else
31461 ac_cv_lib_png15_png_longjmp=no
31462fi
31463rm -f core conftest.err conftest.$ac_objext \
31464 conftest$ac_exeext conftest.$ac_ext
31465LIBS=$ac_check_lib_save_LIBS
31466fi
31467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31468$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31469if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31470 passed=`expr $passed + 1`
31471else
31472 failed=`expr $failed + 1`
31473fi
31474
31475 fi
31476 if test "1${var}" = '14' ; then
31477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31478$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31479if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31480 $as_echo_n "(cached) " >&6
31481else
31482 ac_check_lib_save_LIBS=$LIBS
31483LIBS="-lpng14 $LIBS"
31484cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31485/* end confdefs.h. */
31486
31487/* Override any GCC internal prototype to avoid an error.
31488 Use char because int might match the return type of a GCC
31489 builtin and then its argument prototype would still apply. */
31490#ifdef __cplusplus
31491extern "C"
31492#endif
31493char png_get_io_ptr ();
31494int
31495main ()
31496{
31497return png_get_io_ptr ();
31498 ;
31499 return 0;
31500}
31501_ACEOF
31502if ac_fn_c_try_link "$LINENO"; then :
31503 ac_cv_lib_png14_png_get_io_ptr=yes
31504else
31505 ac_cv_lib_png14_png_get_io_ptr=no
31506fi
31507rm -f core conftest.err conftest.$ac_objext \
31508 conftest$ac_exeext conftest.$ac_ext
31509LIBS=$ac_check_lib_save_LIBS
31510fi
31511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31512$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31513if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31514 passed=`expr $passed + 1`
31515else
31516 failed=`expr $failed + 1`
31517fi
31518
31519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31520$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31521if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31522 $as_echo_n "(cached) " >&6
31523else
31524 ac_check_lib_save_LIBS=$LIBS
31525LIBS="-lpng14 $LIBS"
31526cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31527/* end confdefs.h. */
31528
31529/* Override any GCC internal prototype to avoid an error.
31530 Use char because int might match the return type of a GCC
31531 builtin and then its argument prototype would still apply. */
31532#ifdef __cplusplus
31533extern "C"
31534#endif
31535char png_get_io_state ();
31536int
31537main ()
31538{
31539return png_get_io_state ();
31540 ;
31541 return 0;
31542}
31543_ACEOF
31544if ac_fn_c_try_link "$LINENO"; then :
31545 ac_cv_lib_png14_png_get_io_state=yes
31546else
31547 ac_cv_lib_png14_png_get_io_state=no
31548fi
31549rm -f core conftest.err conftest.$ac_objext \
31550 conftest$ac_exeext conftest.$ac_ext
31551LIBS=$ac_check_lib_save_LIBS
31552fi
31553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31554$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31555if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31556 passed=`expr $passed + 1`
31557else
31558 failed=`expr $failed + 1`
31559fi
31560
31561 fi
31562 if test "1${var}" = '12' ; then
31563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31564$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31565if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31566 $as_echo_n "(cached) " >&6
31567else
31568 ac_check_lib_save_LIBS=$LIBS
31569LIBS="-lpng12 $LIBS"
31570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31571/* end confdefs.h. */
31572
31573/* Override any GCC internal prototype to avoid an error.
31574 Use char because int might match the return type of a GCC
31575 builtin and then its argument prototype would still apply. */
31576#ifdef __cplusplus
31577extern "C"
31578#endif
31579char png_get_io_ptr ();
31580int
31581main ()
31582{
31583return png_get_io_ptr ();
31584 ;
31585 return 0;
31586}
31587_ACEOF
31588if ac_fn_c_try_link "$LINENO"; then :
31589 ac_cv_lib_png12_png_get_io_ptr=yes
31590else
31591 ac_cv_lib_png12_png_get_io_ptr=no
31592fi
31593rm -f core conftest.err conftest.$ac_objext \
31594 conftest$ac_exeext conftest.$ac_ext
31595LIBS=$ac_check_lib_save_LIBS
31596fi
31597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31598$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31599if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31600 passed=`expr $passed + 1`
31601else
31602 failed=`expr $failed + 1`
31603fi
31604
31605 fi
31606 if test "1${var}" = '1' ; then
31607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31608$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31609if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31610 $as_echo_n "(cached) " >&6
31611else
31612 ac_check_lib_save_LIBS=$LIBS
31613LIBS="-lpng $LIBS"
31614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31615/* end confdefs.h. */
31616
31617/* Override any GCC internal prototype to avoid an error.
31618 Use char because int might match the return type of a GCC
31619 builtin and then its argument prototype would still apply. */
31620#ifdef __cplusplus
31621extern "C"
31622#endif
31623char png_get_io_ptr ();
31624int
31625main ()
31626{
31627return png_get_io_ptr ();
31628 ;
31629 return 0;
31630}
31631_ACEOF
31632if ac_fn_c_try_link "$LINENO"; then :
31633 ac_cv_lib_png_png_get_io_ptr=yes
31634else
31635 ac_cv_lib_png_png_get_io_ptr=no
31636fi
31637rm -f core conftest.err conftest.$ac_objext \
31638 conftest$ac_exeext conftest.$ac_ext
31639LIBS=$ac_check_lib_save_LIBS
31640fi
31641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31642$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31643if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31644 passed=`expr $passed + 1`
31645else
31646 failed=`expr $failed + 1`
31647fi
31648
31649 fi
31650 if test $passed -gt 0 -a $failed -le 0 ; then
31651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31652$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31653 if test $passed -gt 0 ; then
31654 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031655 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31656$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031657 have_png='no (failed tests)'
31658 else
31659 PNG_LIBS="-l${pnglib}"
31660 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031661
cristy8b350f62009-11-15 23:12:43 +000031662$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031663
cristy09b53e12011-10-14 12:47:22 +000031664 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31665$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031666 have_png='yes'
31667 fi
31668 fi
31669 fi
31670 fi
31671 fi
31672 done
31673 fi
cristy3ed852e2009-09-05 21:47:34 +000031674fi
cristy64877302011-08-23 19:10:31 +000031675
cristy73bd4a52010-10-05 11:24:23 +000031676 if test "$have_png" = 'yes'; then
31677 PNG_DELEGATE_TRUE=
31678 PNG_DELEGATE_FALSE='#'
31679else
31680 PNG_DELEGATE_TRUE='#'
31681 PNG_DELEGATE_FALSE=
31682fi
31683
cristy3ed852e2009-09-05 21:47:34 +000031684
cristy50d3f5c2011-09-10 20:09:06 +000031685
cristy3ed852e2009-09-05 21:47:34 +000031686
31687
31688#
31689# Check for RSVG delegate library.
31690#
31691
31692# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031693if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031694 withval=$with_rsvg; with_rsvg=$withval
31695else
cristy1164d5f2012-08-15 00:58:25 +000031696 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031697fi
31698
31699
31700if test "$with_rsvg" != 'yes'; then
31701 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31702fi
31703
31704have_rsvg='no'
31705have_cairo='no'
31706RSVG_CFLAGS=""
31707RSVG_LIBS=""
31708RSVG_PKG=""
31709if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031710 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31711$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031712
31713pkg_failed=no
31714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31715$as_echo_n "checking for RSVG... " >&6; }
31716
31717if test -n "$RSVG_CFLAGS"; then
31718 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31719 elif test -n "$PKG_CONFIG"; then
31720 if test -n "$PKG_CONFIG" && \
31721 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31722 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31723 ac_status=$?
31724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31725 test $ac_status = 0; }; then
31726 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31727else
31728 pkg_failed=yes
31729fi
31730 else
31731 pkg_failed=untried
31732fi
31733if test -n "$RSVG_LIBS"; then
31734 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31735 elif test -n "$PKG_CONFIG"; then
31736 if test -n "$PKG_CONFIG" && \
31737 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31738 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31739 ac_status=$?
31740 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31741 test $ac_status = 0; }; then
31742 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31743else
31744 pkg_failed=yes
31745fi
31746 else
31747 pkg_failed=untried
31748fi
31749
31750
31751
31752if test $pkg_failed = yes; then
31753
31754if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31755 _pkg_short_errors_supported=yes
31756else
31757 _pkg_short_errors_supported=no
31758fi
31759 if test $_pkg_short_errors_supported = yes; then
31760 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31761 else
31762 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31763 fi
31764 # Put the nasty error message in config.log where it belongs
31765 echo "$RSVG_PKG_ERRORS" >&5
31766
31767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31768$as_echo "no" >&6; }
31769 have_rsvg=no
31770elif test $pkg_failed = untried; then
31771 have_rsvg=no
31772else
31773 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31774 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31776$as_echo "yes" >&6; }
31777 have_rsvg=yes
31778fi
cristy09b53e12011-10-14 12:47:22 +000031779 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31780$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031781
31782pkg_failed=no
31783{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31784$as_echo_n "checking for CAIRO_SVG... " >&6; }
31785
31786if test -n "$CAIRO_SVG_CFLAGS"; then
31787 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31788 elif test -n "$PKG_CONFIG"; then
31789 if test -n "$PKG_CONFIG" && \
31790 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31791 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31792 ac_status=$?
31793 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31794 test $ac_status = 0; }; then
31795 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31796else
31797 pkg_failed=yes
31798fi
31799 else
31800 pkg_failed=untried
31801fi
31802if test -n "$CAIRO_SVG_LIBS"; then
31803 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31804 elif test -n "$PKG_CONFIG"; then
31805 if test -n "$PKG_CONFIG" && \
31806 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31807 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31808 ac_status=$?
31809 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31810 test $ac_status = 0; }; then
31811 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31812else
31813 pkg_failed=yes
31814fi
31815 else
31816 pkg_failed=untried
31817fi
31818
31819
31820
31821if test $pkg_failed = yes; then
31822
31823if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31824 _pkg_short_errors_supported=yes
31825else
31826 _pkg_short_errors_supported=no
31827fi
31828 if test $_pkg_short_errors_supported = yes; then
31829 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31830 else
31831 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31832 fi
31833 # Put the nasty error message in config.log where it belongs
31834 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31835
31836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31837$as_echo "no" >&6; }
31838 have_cairo=no
31839elif test $pkg_failed = untried; then
31840 have_cairo=no
31841else
31842 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31843 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31845$as_echo "yes" >&6; }
31846 have_cairo=yes
31847fi
cristy09b53e12011-10-14 12:47:22 +000031848 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31849$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031850fi
31851
31852if test "$have_rsvg" = 'yes'; then
31853
cristy8b350f62009-11-15 23:12:43 +000031854$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031855
31856 if test "$with_modules" = 'no'; then
31857 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31858 fi
31859fi
31860
31861if test "$have_cairo" = 'yes'; then
31862
cristy8b350f62009-11-15 23:12:43 +000031863$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031864
31865 if test "$with_modules" = 'no'; then
31866 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31867 fi
31868fi
31869
cristy73bd4a52010-10-05 11:24:23 +000031870 if test "$have_rsvg" = 'yes'; then
31871 RSVG_DELEGATE_TRUE=
31872 RSVG_DELEGATE_FALSE='#'
31873else
31874 RSVG_DELEGATE_TRUE='#'
31875 RSVG_DELEGATE_FALSE=
31876fi
31877
31878 if test "$have_cairo" = 'yes'; then
31879 CAIRO_DELEGATE_TRUE=
31880 CAIRO_DELEGATE_FALSE='#'
31881else
31882 CAIRO_DELEGATE_TRUE='#'
31883 CAIRO_DELEGATE_FALSE=
31884fi
31885
cristy3ed852e2009-09-05 21:47:34 +000031886
31887
31888
31889
31890#
31891# Check for TIFF delegate library.
31892#
31893
31894# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031895if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031896 withval=$with_tiff; with_tiff=$withval
31897else
31898 with_tiff='yes'
31899fi
31900
31901
31902if test "$with_tiff" != 'yes'; then
31903 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31904fi
31905
31906have_tiff='no'
31907TIFF_LIBS=''
31908if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031909 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31910$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031912$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031913 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31914$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031915 failed=0
31916 passed=0
cristy8b350f62009-11-15 23:12:43 +000031917 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031918if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031919 passed=`expr $passed + 1`
31920else
31921 failed=`expr $failed + 1`
31922fi
31923
31924
cristy8b350f62009-11-15 23:12:43 +000031925 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031926if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031927 passed=`expr $passed + 1`
31928else
31929 failed=`expr $failed + 1`
31930fi
31931
31932
cristy8b350f62009-11-15 23:12:43 +000031933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031934$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031935if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031936 $as_echo_n "(cached) " >&6
31937else
31938 ac_check_lib_save_LIBS=$LIBS
31939LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031940cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031941/* end confdefs.h. */
31942
31943/* Override any GCC internal prototype to avoid an error.
31944 Use char because int might match the return type of a GCC
31945 builtin and then its argument prototype would still apply. */
31946#ifdef __cplusplus
31947extern "C"
31948#endif
31949char TIFFOpen ();
31950int
31951main ()
31952{
31953return TIFFOpen ();
31954 ;
31955 return 0;
31956}
31957_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031958if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031959 ac_cv_lib_tiff_TIFFOpen=yes
31960else
cristy8b350f62009-11-15 23:12:43 +000031961 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031962fi
cristy8b350f62009-11-15 23:12:43 +000031963rm -f core conftest.err conftest.$ac_objext \
31964 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031965LIBS=$ac_check_lib_save_LIBS
31966fi
cristy8b350f62009-11-15 23:12:43 +000031967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031968$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031969if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031970 passed=`expr $passed + 1`
31971else
31972 failed=`expr $failed + 1`
31973fi
31974
cristy8b350f62009-11-15 23:12:43 +000031975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031976$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031977if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031978 $as_echo_n "(cached) " >&6
31979else
31980 ac_check_lib_save_LIBS=$LIBS
31981LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031982cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031983/* end confdefs.h. */
31984
31985/* Override any GCC internal prototype to avoid an error.
31986 Use char because int might match the return type of a GCC
31987 builtin and then its argument prototype would still apply. */
31988#ifdef __cplusplus
31989extern "C"
31990#endif
31991char TIFFClientOpen ();
31992int
31993main ()
31994{
31995return TIFFClientOpen ();
31996 ;
31997 return 0;
31998}
31999_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032000if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032001 ac_cv_lib_tiff_TIFFClientOpen=yes
32002else
cristy8b350f62009-11-15 23:12:43 +000032003 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000032004fi
cristy8b350f62009-11-15 23:12:43 +000032005rm -f core conftest.err conftest.$ac_objext \
32006 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032007LIBS=$ac_check_lib_save_LIBS
32008fi
cristy8b350f62009-11-15 23:12:43 +000032009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000032010$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000032011if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032012 passed=`expr $passed + 1`
32013else
32014 failed=`expr $failed + 1`
32015fi
32016
cristy8b350f62009-11-15 23:12:43 +000032017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032018$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032019if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032020 $as_echo_n "(cached) " >&6
32021else
32022 ac_check_lib_save_LIBS=$LIBS
32023LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032024cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032025/* end confdefs.h. */
32026
32027/* Override any GCC internal prototype to avoid an error.
32028 Use char because int might match the return type of a GCC
32029 builtin and then its argument prototype would still apply. */
32030#ifdef __cplusplus
32031extern "C"
32032#endif
32033char TIFFIsByteSwapped ();
32034int
32035main ()
32036{
32037return TIFFIsByteSwapped ();
32038 ;
32039 return 0;
32040}
32041_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032042if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032043 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
32044else
cristy8b350f62009-11-15 23:12:43 +000032045 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000032046fi
cristy8b350f62009-11-15 23:12:43 +000032047rm -f core conftest.err conftest.$ac_objext \
32048 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032049LIBS=$ac_check_lib_save_LIBS
32050fi
cristy8b350f62009-11-15 23:12:43 +000032051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000032052$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000032053if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032054 passed=`expr $passed + 1`
32055else
32056 failed=`expr $failed + 1`
32057fi
32058
cristy8b350f62009-11-15 23:12:43 +000032059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032060$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032061if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032062 $as_echo_n "(cached) " >&6
32063else
32064 ac_check_lib_save_LIBS=$LIBS
32065LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032066cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032067/* end confdefs.h. */
32068
32069/* Override any GCC internal prototype to avoid an error.
32070 Use char because int might match the return type of a GCC
32071 builtin and then its argument prototype would still apply. */
32072#ifdef __cplusplus
32073extern "C"
32074#endif
32075char TIFFReadRGBATile ();
32076int
32077main ()
32078{
32079return TIFFReadRGBATile ();
32080 ;
32081 return 0;
32082}
32083_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032084if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032085 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32086else
cristy8b350f62009-11-15 23:12:43 +000032087 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032088fi
cristy8b350f62009-11-15 23:12:43 +000032089rm -f core conftest.err conftest.$ac_objext \
32090 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032091LIBS=$ac_check_lib_save_LIBS
32092fi
cristy8b350f62009-11-15 23:12:43 +000032093{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032094$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032095if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032096 passed=`expr $passed + 1`
32097else
32098 failed=`expr $failed + 1`
32099fi
32100
cristy8b350f62009-11-15 23:12:43 +000032101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032102$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032103if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032104 $as_echo_n "(cached) " >&6
32105else
32106 ac_check_lib_save_LIBS=$LIBS
32107LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032108cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032109/* end confdefs.h. */
32110
32111/* Override any GCC internal prototype to avoid an error.
32112 Use char because int might match the return type of a GCC
32113 builtin and then its argument prototype would still apply. */
32114#ifdef __cplusplus
32115extern "C"
32116#endif
32117char TIFFReadRGBAStrip ();
32118int
32119main ()
32120{
32121return TIFFReadRGBAStrip ();
32122 ;
32123 return 0;
32124}
32125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032126if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032127 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32128else
cristy8b350f62009-11-15 23:12:43 +000032129 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032130fi
cristy8b350f62009-11-15 23:12:43 +000032131rm -f core conftest.err conftest.$ac_objext \
32132 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032133LIBS=$ac_check_lib_save_LIBS
32134fi
cristy8b350f62009-11-15 23:12:43 +000032135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032136$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032137if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032138 passed=`expr $passed + 1`
32139else
32140 failed=`expr $failed + 1`
32141fi
32142
cristy8b350f62009-11-15 23:12:43 +000032143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032144$as_echo_n "checking if TIFF package is complete... " >&6; }
32145 if test $passed -gt 0; then
32146 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032147 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32148$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032149 have_tiff='no (failed tests)'
32150 else
32151 TIFF_LIBS='-ltiff'
32152 LIBS="$TIFF_LIBS $LIBS"
32153
cristy8b350f62009-11-15 23:12:43 +000032154$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032155
cristy09b53e12011-10-14 12:47:22 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32157$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032158 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032159 for ac_header in tiffconf.h
32160do :
32161 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032162if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032163 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032164#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032165_ACEOF
32166
32167fi
32168
32169done
32170
cristy8b350f62009-11-15 23:12:43 +000032171 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032172 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32173 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32174 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032175do :
32176 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32177ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032178if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032179 cat >>confdefs.h <<_ACEOF
32180#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32181_ACEOF
32182
32183fi
32184done
32185
32186 fi
32187 else
cristy09b53e12011-10-14 12:47:22 +000032188 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32189$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032190 fi
32191fi
cristy73bd4a52010-10-05 11:24:23 +000032192 if test "$have_tiff" = 'yes'; then
32193 TIFF_DELEGATE_TRUE=
32194 TIFF_DELEGATE_FALSE='#'
32195else
32196 TIFF_DELEGATE_TRUE='#'
32197 TIFF_DELEGATE_FALSE=
32198fi
32199
cristy3ed852e2009-09-05 21:47:34 +000032200
32201
32202
32203#
cristyb1860752011-03-14 00:27:46 +000032204# Check for WEBP delegate library.
32205#
32206
32207# Check whether --with-webp was given.
32208if test "${with_webp+set}" = set; then :
32209 withval=$with_webp; with_webp=$withval
32210else
32211 with_webp='yes'
32212fi
32213
32214
32215if test "$with_webp" != 'yes'; then
32216 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32217fi
32218
32219have_webp='no'
32220WEBP_LIBS=''
32221if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032222 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32223$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32225$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032226 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32227$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032228 failed=0
32229 passed=0
32230 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32231if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32232 passed=`expr $passed + 1`
32233else
32234 failed=`expr $failed + 1`
32235fi
32236
32237
32238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32239$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32240if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32241 $as_echo_n "(cached) " >&6
32242else
32243 ac_check_lib_save_LIBS=$LIBS
32244LIBS="-lwebp $LIBS"
32245cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32246/* end confdefs.h. */
32247
32248/* Override any GCC internal prototype to avoid an error.
32249 Use char because int might match the return type of a GCC
32250 builtin and then its argument prototype would still apply. */
32251#ifdef __cplusplus
32252extern "C"
32253#endif
32254char WebPDecodeRGB ();
32255int
32256main ()
32257{
32258return WebPDecodeRGB ();
32259 ;
32260 return 0;
32261}
32262_ACEOF
32263if ac_fn_c_try_link "$LINENO"; then :
32264 ac_cv_lib_webp_WebPDecodeRGB=yes
32265else
32266 ac_cv_lib_webp_WebPDecodeRGB=no
32267fi
32268rm -f core conftest.err conftest.$ac_objext \
32269 conftest$ac_exeext conftest.$ac_ext
32270LIBS=$ac_check_lib_save_LIBS
32271fi
32272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32273$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32274if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32275 passed=`expr $passed + 1`
32276else
32277 failed=`expr $failed + 1`
32278fi
32279
32280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32281$as_echo_n "checking if WEBP package is complete... " >&6; }
32282 if test $passed -gt 0; then
32283 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32285$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032286 have_webp='no (failed tests)'
32287 else
32288 WEBP_LIBS='-lwebp'
32289 LIBS="$WEBP_LIBS $LIBS"
32290
32291$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32292
cristy09b53e12011-10-14 12:47:22 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32294$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032295 have_webp='yes'
32296 fi
32297 else
cristy09b53e12011-10-14 12:47:22 +000032298 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32299$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032300 fi
32301fi
32302 if test "$have_webp" = 'yes'; then
32303 WEBP_DELEGATE_TRUE=
32304 WEBP_DELEGATE_FALSE='#'
32305else
32306 WEBP_DELEGATE_TRUE='#'
32307 WEBP_DELEGATE_FALSE=
32308fi
32309
32310
32311
32312
32313#
cristy3ed852e2009-09-05 21:47:34 +000032314# Set Windows font directory.
32315#
32316
32317# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032318if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032319 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32320else
32321 with_windows_font_dir=''
32322fi
32323
32324if test "$with_windows_font_dir" != '' ; then
32325 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32326fi
32327
32328
32329#
32330# Check for WMF delegate library.
32331#
32332
32333# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032334if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032335 withval=$with_wmf; with_wmf=$withval
32336else
cristyfc3d0222012-02-07 15:05:57 +000032337 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032338fi
32339
32340
32341if test "$with_wmf" != 'yes'; then
32342 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32343fi
32344
32345have_wmf='no'
32346WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032347WMF_LIBS_DEPS=''
32348OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032349if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32351$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032353$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32355$as_echo "" >&6; }
32356 have_libwmf='no'
32357 have_libwmflite='no'
32358 have_libwmf_ipa_h='no'
32359
32360 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32361"
32362if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32363 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032364fi
32365
32366
cristy03f7cf92011-12-15 01:40:41 +000032367 if test "$have_libwmf_ipa_h" = 'yes'; then
32368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32369$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32370if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032371 $as_echo_n "(cached) " >&6
32372else
32373 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032374LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032375cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032376/* end confdefs.h. */
32377
32378/* Override any GCC internal prototype to avoid an error.
32379 Use char because int might match the return type of a GCC
32380 builtin and then its argument prototype would still apply. */
32381#ifdef __cplusplus
32382extern "C"
32383#endif
cristy03f7cf92011-12-15 01:40:41 +000032384char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032385int
32386main ()
32387{
cristy03f7cf92011-12-15 01:40:41 +000032388return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032389 ;
32390 return 0;
32391}
32392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032393if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032394 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032395else
cristy03f7cf92011-12-15 01:40:41 +000032396 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032397fi
cristy8b350f62009-11-15 23:12:43 +000032398rm -f core conftest.err conftest.$ac_objext \
32399 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032400LIBS=$ac_check_lib_save_LIBS
32401fi
cristy03f7cf92011-12-15 01:40:41 +000032402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32403$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32404if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32405 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032406fi
32407
cristy03f7cf92011-12-15 01:40:41 +000032408 if test "$have_libwmflite" = 'yes'; then
32409
32410$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32411
32412 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032413 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032414 have_wmf='yes'
32415 else
32416 WMF_LIBS_DEPS=''
32417 WMF_CONFIG_LIBS=`libwmf-config --libs`
32418 for lib in xml2 expat freetype jpeg png z; do
32419 testlib="-l${lib}"
32420 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32421 done
32422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32423$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32424if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32425 $as_echo_n "(cached) " >&6
32426else
32427 ac_check_lib_save_LIBS=$LIBS
32428LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32429cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32430/* end confdefs.h. */
32431
32432/* Override any GCC internal prototype to avoid an error.
32433 Use char because int might match the return type of a GCC
32434 builtin and then its argument prototype would still apply. */
32435#ifdef __cplusplus
32436extern "C"
32437#endif
32438char wmf_api_create ();
32439int
32440main ()
32441{
32442return wmf_api_create ();
32443 ;
32444 return 0;
32445}
32446_ACEOF
32447if ac_fn_c_try_link "$LINENO"; then :
32448 ac_cv_lib_wmf_wmf_api_create=yes
32449else
32450 ac_cv_lib_wmf_wmf_api_create=no
32451fi
32452rm -f core conftest.err conftest.$ac_objext \
32453 conftest$ac_exeext conftest.$ac_ext
32454LIBS=$ac_check_lib_save_LIBS
32455fi
32456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32457$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32458if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32459 have_libwmf='yes'
32460fi
32461
32462 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032463
cristy8b350f62009-11-15 23:12:43 +000032464$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032465
cristy03f7cf92011-12-15 01:40:41 +000032466 WMF_LIBS='-lwmf'
32467 LIBS="$WMF_LIBS $LIBS"
32468 have_wmf='yes'
32469 else
32470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32471$as_echo "no -- some components failed test" >&6; }
32472 have_wmf='no (failed tests)'
32473 have_wmflite='no (failed tests)'
32474 LIBS="$OLIBS"
32475 WMF_LIBS=''
32476 fi
glennrp33e524b2011-08-24 17:41:57 +000032477 fi
cristy03f7cf92011-12-15 01:40:41 +000032478 fi
32479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32480$as_echo_n "checking if WMF package is complete... " >&6; }
32481 if test "$have_wmf" = 'yes'; then
32482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32483$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032484 else
cristy03f7cf92011-12-15 01:40:41 +000032485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32486$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032487 fi
cristy3ed852e2009-09-05 21:47:34 +000032488fi
cristy73bd4a52010-10-05 11:24:23 +000032489 if test "$have_wmf" = 'yes'; then
32490 WMF_DELEGATE_TRUE=
32491 WMF_DELEGATE_FALSE='#'
32492else
32493 WMF_DELEGATE_TRUE='#'
32494 WMF_DELEGATE_FALSE=
32495fi
32496
cristy3ed852e2009-09-05 21:47:34 +000032497
32498
32499
cristy81beccd2011-10-03 18:17:24 +000032500
32501
cristy3ed852e2009-09-05 21:47:34 +000032502#
32503# Check for XML delegate library.
32504#
32505
32506# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032507if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032508 withval=$with_xml; with_xml=$withval
32509else
cristyfc3d0222012-02-07 15:05:57 +000032510 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032511fi
32512
32513
cristy81beccd2011-10-03 18:17:24 +000032514if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032515 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32516fi
32517
cristy81beccd2011-10-03 18:17:24 +000032518have_xml='no'
32519XML_LIBS=''
32520if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032521 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32522$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32524$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032525 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32526$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032527 PERSIST_LDFLAGS=$LDFLAGS
32528 PERSIST_CPPFLAGS=$CPPFLAGS
32529 xml2_config=''
32530 # Extract the first word of "xml2-config", so it can be a program name with args.
32531set dummy xml2-config; ac_word=$2
32532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32533$as_echo_n "checking for $ac_word... " >&6; }
32534if ${ac_cv_path_xml2_config+:} false; then :
32535 $as_echo_n "(cached) " >&6
32536else
32537 case $xml2_config in
32538 [\\/]* | ?:[\\/]*)
32539 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32540 ;;
32541 *)
32542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32543for as_dir in $PATH
32544do
32545 IFS=$as_save_IFS
32546 test -z "$as_dir" && as_dir=.
32547 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032549 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32551 break 2
32552 fi
32553done
32554 done
32555IFS=$as_save_IFS
32556
32557 ;;
32558esac
32559fi
32560xml2_config=$ac_cv_path_xml2_config
32561if test -n "$xml2_config"; then
32562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32563$as_echo "$xml2_config" >&6; }
32564else
32565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32566$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032567fi
32568
cristy81beccd2011-10-03 18:17:24 +000032569 if test -n "$xml2_config"; then
32570 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32571 # the shared library installed under /usr/lib, whereas the package
32572 # installs itself under $prefix/libxml and $prefix/lib.
32573 xml2_prefix=`xml2-config --prefix`
32574 if test -d "${xml2_prefix}/include/libxml2"; then
32575 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32576 fi
32577 if test "${xml2_prefix}" != '/usr'; then
32578 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32579 fi
32580 fi
32581 failed=0
32582 passed=0
32583 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32584if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32585 passed=`expr $passed + 1`
32586else
32587 failed=`expr $failed + 1`
32588fi
32589
32590
32591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32592$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32593if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32594 $as_echo_n "(cached) " >&6
32595else
32596 ac_check_lib_save_LIBS=$LIBS
32597LIBS="-lxml2 $LIBS"
32598cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32599/* end confdefs.h. */
32600
32601/* Override any GCC internal prototype to avoid an error.
32602 Use char because int might match the return type of a GCC
32603 builtin and then its argument prototype would still apply. */
32604#ifdef __cplusplus
32605extern "C"
32606#endif
32607char xmlSAXVersion ();
32608int
32609main ()
32610{
32611return xmlSAXVersion ();
32612 ;
32613 return 0;
32614}
32615_ACEOF
32616if ac_fn_c_try_link "$LINENO"; then :
32617 ac_cv_lib_xml2_xmlSAXVersion=yes
32618else
32619 ac_cv_lib_xml2_xmlSAXVersion=no
32620fi
32621rm -f core conftest.err conftest.$ac_objext \
32622 conftest$ac_exeext conftest.$ac_ext
32623LIBS=$ac_check_lib_save_LIBS
32624fi
32625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32626$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32627if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32628 passed=`expr $passed + 1`
32629else
32630 failed=`expr $failed + 1`
32631fi
32632
32633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32634$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32635if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32636 $as_echo_n "(cached) " >&6
32637else
32638 ac_check_lib_save_LIBS=$LIBS
32639LIBS="-lxml2 $LIBS"
32640cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32641/* end confdefs.h. */
32642
32643/* Override any GCC internal prototype to avoid an error.
32644 Use char because int might match the return type of a GCC
32645 builtin and then its argument prototype would still apply. */
32646#ifdef __cplusplus
32647extern "C"
32648#endif
32649char xmlParseChunk ();
32650int
32651main ()
32652{
32653return xmlParseChunk ();
32654 ;
32655 return 0;
32656}
32657_ACEOF
32658if ac_fn_c_try_link "$LINENO"; then :
32659 ac_cv_lib_xml2_xmlParseChunk=yes
32660else
32661 ac_cv_lib_xml2_xmlParseChunk=no
32662fi
32663rm -f core conftest.err conftest.$ac_objext \
32664 conftest$ac_exeext conftest.$ac_ext
32665LIBS=$ac_check_lib_save_LIBS
32666fi
32667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32668$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32669if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32670 passed=`expr $passed + 1`
32671else
32672 failed=`expr $failed + 1`
32673fi
32674
32675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32676$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32677if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32678 $as_echo_n "(cached) " >&6
32679else
32680 ac_check_lib_save_LIBS=$LIBS
32681LIBS="-lxml2 $LIBS"
32682cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32683/* end confdefs.h. */
32684
32685/* Override any GCC internal prototype to avoid an error.
32686 Use char because int might match the return type of a GCC
32687 builtin and then its argument prototype would still apply. */
32688#ifdef __cplusplus
32689extern "C"
32690#endif
32691char xmlCreatePushParserCtxt ();
32692int
32693main ()
32694{
32695return xmlCreatePushParserCtxt ();
32696 ;
32697 return 0;
32698}
32699_ACEOF
32700if ac_fn_c_try_link "$LINENO"; then :
32701 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32702else
32703 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32704fi
32705rm -f core conftest.err conftest.$ac_objext \
32706 conftest$ac_exeext conftest.$ac_ext
32707LIBS=$ac_check_lib_save_LIBS
32708fi
32709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32710$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32711if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32712 passed=`expr $passed + 1`
32713else
32714 failed=`expr $failed + 1`
32715fi
32716
32717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32718$as_echo_n "checking if XML package is complete... " >&6; }
32719 if test $passed -gt 0; then
32720 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032721 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32722$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032723 have_xml='no (failed tests)'
32724 LDFLAGS="$PERSIST_LDFLAGS"
32725 CPPFLAGS="$PERSIST_CPPFLAGS"
32726 else
32727 XML_LIBS='-lxml2'
32728 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032729
cristy8b350f62009-11-15 23:12:43 +000032730$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032731
cristy09b53e12011-10-14 12:47:22 +000032732 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32733$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032734 have_xml='yes'
32735 fi
32736 else
cristy09b53e12011-10-14 12:47:22 +000032737 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32738$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032739 fi
32740fi
cristy73bd4a52010-10-05 11:24:23 +000032741 if test "$have_xml" = 'yes'; then
32742 XML_DELEGATE_TRUE=
32743 XML_DELEGATE_FALSE='#'
32744else
32745 XML_DELEGATE_TRUE='#'
32746 XML_DELEGATE_FALSE=
32747fi
32748
cristy3ed852e2009-09-05 21:47:34 +000032749
32750
32751
32752# Substitute compiler name to build/link PerlMagick
32753#
32754
32755
32756#
32757# Configure install Paths
32758#
cristy7def36a2011-10-28 19:04:41 +000032759
cristy2a11bef2011-10-28 18:33:11 +000032760# Path to ImageMagick header files
32761INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032762INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32763DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032764case "${build_os}" in
32765 mingw* )
32766 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32767 ;;
32768esac
32769
32770cat >>confdefs.h <<_ACEOF
32771#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32772_ACEOF
32773
32774
cristy3ed852e2009-09-05 21:47:34 +000032775
32776# Subdirectory under lib to place ImageMagick lib files
32777LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32778
32779cat >>confdefs.h <<_ACEOF
32780#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32781_ACEOF
32782
32783
32784# Path to ImageMagick bin directory
32785EXECUTABLE_PATH="${BIN_DIR}"
32786DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32787case "${build_os}" in
32788 mingw* )
32789 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32790 ;;
32791esac
32792
32793cat >>confdefs.h <<_ACEOF
32794#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32795_ACEOF
32796
32797
32798
32799# Path to ImageMagick lib
32800LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32801DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32802case "${build_os}" in
32803 mingw* )
32804 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32805 ;;
32806esac
32807
32808cat >>confdefs.h <<_ACEOF
32809#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32810_ACEOF
32811
32812
32813
cristy3ed852e2009-09-05 21:47:34 +000032814#
32815# Subdirectory under lib to place ImageMagick coder module files
32816CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32817
32818cat >>confdefs.h <<_ACEOF
32819#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32820_ACEOF
32821
32822CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32823DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32824case "${build_os}" in
32825 mingw* )
32826 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32827 ;;
32828esac
32829
32830cat >>confdefs.h <<_ACEOF
32831#define CODER_PATH "$DEFINE_CODER_PATH"
32832_ACEOF
32833
32834
32835
32836#
32837# Subdirectory under lib to place ImageMagick filter module files
32838FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32839
32840cat >>confdefs.h <<_ACEOF
32841#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32842_ACEOF
32843
32844FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32845DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32846case "${build_os}" in
32847 mingw* )
32848 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32849 ;;
32850esac
32851
32852cat >>confdefs.h <<_ACEOF
32853#define FILTER_PATH "$DEFINE_FILTER_PATH"
32854_ACEOF
32855
32856
32857
32858#
32859# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032860DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032861DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32862DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032863case "${build_os}" in
32864 mingw* )
32865 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32866 ;;
32867esac
32868
32869cat >>confdefs.h <<_ACEOF
32870#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32871_ACEOF
32872
32873
32874
cristy2a11bef2011-10-28 18:33:11 +000032875# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032876CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032877
32878cat >>confdefs.h <<_ACEOF
32879#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32880_ACEOF
32881
cristy7def36a2011-10-28 19:04:41 +000032882CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032883DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32884case "${build_os}" in
32885 mingw* )
32886 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32887 ;;
32888esac
32889
32890cat >>confdefs.h <<_ACEOF
32891#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32892_ACEOF
32893
32894
32895
cristy2a11bef2011-10-28 18:33:11 +000032896# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032897SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032898
32899cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032900#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032901_ACEOF
32902
cristy670aa3c2011-11-03 00:54:00 +000032903SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032904DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032905case "${build_os}" in
32906 mingw* )
cristy4f820712011-04-01 12:35:43 +000032907 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032908 ;;
32909esac
32910
32911cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032912#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032913_ACEOF
32914
32915
32916
cristy408ebcd2011-11-14 01:36:57 +000032917# Subdirectory to place architecture-dependent configuration files
32918SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032919
32920cat >>confdefs.h <<_ACEOF
32921#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32922_ACEOF
32923
cristy408ebcd2011-11-14 01:36:57 +000032924SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32925DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032926case "${build_os}" in
32927 mingw* )
32928 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32929 ;;
32930esac
32931
32932cat >>confdefs.h <<_ACEOF
32933#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32934_ACEOF
32935
32936
32937
cristy3ed852e2009-09-05 21:47:34 +000032938#
32939# program_transform_name is formed for use in a Makefile, so create a
32940# modified version for use in a shell script.
32941configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32942
32943# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032944{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32945$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032947$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032948{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32949$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032950AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032951BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032952BZIPDelegateDefault='bzip2'
32953BrowseDelegateDefault='xdg-open'
32954CGMDecodeDelegateDefault='ralcgm'
32955CatDelegateDefault='cat'
32956DNGDecodeDelegateDefault='ufraw-batch'
32957GVCDecodeDelegateDefault='dot'
32958DVIDecodeDelegateDefault='dvips'
32959EchoDelegateDefault='echo'
32960EditorDelegateDefault='xterm'
32961FIGDecodeDelegateDefault='fig2dev'
32962ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32963DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32964MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32965GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032966HPGLDecodeDelegateDefault='hp2xx'
32967HTMLDecodeDelegateDefault='html2ps'
32968ILBMDecodeDelegateDefault='ilbmtoppm'
32969ILBMEncodeDelegateDefault='ppmtoilbm'
32970LPDelegateDefault='lp'
32971LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032972LaunchDelegateDefault='gimp'
32973MANDelegateDefault='groff'
32974MPEGDecodeDelegateDefault='ffmpeg'
32975MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032976MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032977MVDelegateDefault='mv'
32978PCLDelegateDefault='pcl6'
32979PGPDecodeDelegateDefault='pgpv'
32980POVDelegateDefault='povray'
32981if test "$native_win32_build" = 'yes'; then
32982 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032983elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032984 PSDelegateDefault='gsc'
32985else
32986 PSDelegateDefault='gs'
32987fi
32988RLEEncodeDelegateDefault='rawtorle'
32989RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032990RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032991SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032992SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032993TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032994UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032995WMFDecodeDelegateDefault='wmf2eps'
32996WWWDecodeDelegateDefault='curl'
32997XPSDelegateDefault='gxps'
32998ZipDelegateDefault='gzip'
32999
33000# Search for delegates
33001# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
33002set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033004$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033005if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033006 $as_echo_n "(cached) " >&6
33007else
33008 case $AutotraceDecodeDelegate in
33009 [\\/]* | ?:[\\/]*)
33010 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
33011 ;;
33012 *)
33013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33014for as_dir in $PATH
33015do
33016 IFS=$as_save_IFS
33017 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033018 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033020 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033022 break 2
33023 fi
33024done
cristy8b350f62009-11-15 23:12:43 +000033025 done
cristy3ed852e2009-09-05 21:47:34 +000033026IFS=$as_save_IFS
33027
33028 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
33029 ;;
33030esac
33031fi
33032AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
33033if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033035$as_echo "$AutotraceDecodeDelegate" >&6; }
33036else
cristy8b350f62009-11-15 23:12:43 +000033037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033038$as_echo "no" >&6; }
33039fi
33040
33041
cristy3ed852e2009-09-05 21:47:34 +000033042# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
33043set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033044{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033045$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033046if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033047 $as_echo_n "(cached) " >&6
33048else
33049 case $BlenderDecodeDelegate in
33050 [\\/]* | ?:[\\/]*)
33051 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
33052 ;;
33053 *)
33054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33055for as_dir in $PATH
33056do
33057 IFS=$as_save_IFS
33058 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033059 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033061 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033063 break 2
33064 fi
33065done
cristy8b350f62009-11-15 23:12:43 +000033066 done
cristy3ed852e2009-09-05 21:47:34 +000033067IFS=$as_save_IFS
33068
33069 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33070 ;;
33071esac
33072fi
33073BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33074if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033076$as_echo "$BlenderDecodeDelegate" >&6; }
33077else
cristy8b350f62009-11-15 23:12:43 +000033078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033079$as_echo "no" >&6; }
33080fi
33081
33082
33083# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33084set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033086$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033087if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033088 $as_echo_n "(cached) " >&6
33089else
33090 case $BZIPDelegate in
33091 [\\/]* | ?:[\\/]*)
33092 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33093 ;;
33094 *)
33095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33096for as_dir in $PATH
33097do
33098 IFS=$as_save_IFS
33099 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033100 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033102 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033104 break 2
33105 fi
33106done
cristy8b350f62009-11-15 23:12:43 +000033107 done
cristy3ed852e2009-09-05 21:47:34 +000033108IFS=$as_save_IFS
33109
33110 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33111 ;;
33112esac
33113fi
33114BZIPDelegate=$ac_cv_path_BZIPDelegate
33115if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033117$as_echo "$BZIPDelegate" >&6; }
33118else
cristy8b350f62009-11-15 23:12:43 +000033119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033120$as_echo "no" >&6; }
33121fi
33122
33123
cristyc59f0e72012-08-27 12:59:33 +000033124for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33125do
33126 # Extract the first word of "$ac_prog", so it can be a program name with args.
33127set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033129$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033130if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033131 $as_echo_n "(cached) " >&6
33132else
33133 case $BrowseDelegate in
33134 [\\/]* | ?:[\\/]*)
33135 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33136 ;;
33137 *)
33138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33139for as_dir in $PATH
33140do
33141 IFS=$as_save_IFS
33142 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033143 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033145 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033147 break 2
33148 fi
33149done
cristy8b350f62009-11-15 23:12:43 +000033150 done
cristy3ed852e2009-09-05 21:47:34 +000033151IFS=$as_save_IFS
33152
cristy3ed852e2009-09-05 21:47:34 +000033153 ;;
33154esac
33155fi
33156BrowseDelegate=$ac_cv_path_BrowseDelegate
33157if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033159$as_echo "$BrowseDelegate" >&6; }
33160else
cristy8b350f62009-11-15 23:12:43 +000033161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162$as_echo "no" >&6; }
33163fi
33164
33165
cristyc59f0e72012-08-27 12:59:33 +000033166 test -n "$BrowseDelegate" && break
33167done
33168test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33169
cristy3ed852e2009-09-05 21:47:34 +000033170# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33171set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033173$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033174if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033175 $as_echo_n "(cached) " >&6
33176else
33177 case $CGMDecodeDelegate in
33178 [\\/]* | ?:[\\/]*)
33179 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33180 ;;
33181 *)
33182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33183for as_dir in $PATH
33184do
33185 IFS=$as_save_IFS
33186 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033187 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033189 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033191 break 2
33192 fi
33193done
cristy8b350f62009-11-15 23:12:43 +000033194 done
cristy3ed852e2009-09-05 21:47:34 +000033195IFS=$as_save_IFS
33196
33197 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33198 ;;
33199esac
33200fi
33201CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33202if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033204$as_echo "$CGMDecodeDelegate" >&6; }
33205else
cristy8b350f62009-11-15 23:12:43 +000033206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033207$as_echo "no" >&6; }
33208fi
33209
33210
33211# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33212set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033215if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033216 $as_echo_n "(cached) " >&6
33217else
33218 case $CatDelegate in
33219 [\\/]* | ?:[\\/]*)
33220 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33221 ;;
33222 *)
33223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33224for as_dir in $PATH
33225do
33226 IFS=$as_save_IFS
33227 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033228 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033230 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033232 break 2
33233 fi
33234done
cristy8b350f62009-11-15 23:12:43 +000033235 done
cristy3ed852e2009-09-05 21:47:34 +000033236IFS=$as_save_IFS
33237
33238 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33239 ;;
33240esac
33241fi
33242CatDelegate=$ac_cv_path_CatDelegate
33243if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033245$as_echo "$CatDelegate" >&6; }
33246else
cristy8b350f62009-11-15 23:12:43 +000033247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033248$as_echo "no" >&6; }
33249fi
33250
33251
33252# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33253set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033255$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033256if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033257 $as_echo_n "(cached) " >&6
33258else
33259 case $DNGDecodeDelegate in
33260 [\\/]* | ?:[\\/]*)
33261 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33262 ;;
33263 *)
33264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33265for as_dir in $PATH
33266do
33267 IFS=$as_save_IFS
33268 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033269 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033270 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033271 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033272 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033273 break 2
33274 fi
33275done
cristy8b350f62009-11-15 23:12:43 +000033276 done
cristy3ed852e2009-09-05 21:47:34 +000033277IFS=$as_save_IFS
33278
33279 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33280 ;;
33281esac
33282fi
33283DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33284if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033286$as_echo "$DNGDecodeDelegate" >&6; }
33287else
cristy8b350f62009-11-15 23:12:43 +000033288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033289$as_echo "no" >&6; }
33290fi
33291
33292
33293# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33294set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033296$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033297if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033298 $as_echo_n "(cached) " >&6
33299else
33300 case $GVCDecodeDelegate in
33301 [\\/]* | ?:[\\/]*)
33302 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33303 ;;
33304 *)
33305 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33306for as_dir in $PATH
33307do
33308 IFS=$as_save_IFS
33309 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033310 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033311 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033312 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033313 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033314 break 2
33315 fi
33316done
cristy8b350f62009-11-15 23:12:43 +000033317 done
cristy3ed852e2009-09-05 21:47:34 +000033318IFS=$as_save_IFS
33319
33320 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33321 ;;
33322esac
33323fi
33324GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33325if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033327$as_echo "$GVCDecodeDelegate" >&6; }
33328else
cristy8b350f62009-11-15 23:12:43 +000033329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033330$as_echo "no" >&6; }
33331fi
33332
33333
33334# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33335set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033337$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033338if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033339 $as_echo_n "(cached) " >&6
33340else
33341 case $DVIDecodeDelegate in
33342 [\\/]* | ?:[\\/]*)
33343 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33344 ;;
33345 *)
33346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33347for as_dir in $PATH
33348do
33349 IFS=$as_save_IFS
33350 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033351 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033352 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033353 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033355 break 2
33356 fi
33357done
cristy8b350f62009-11-15 23:12:43 +000033358 done
cristy3ed852e2009-09-05 21:47:34 +000033359IFS=$as_save_IFS
33360
33361 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33362 ;;
33363esac
33364fi
33365DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33366if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033368$as_echo "$DVIDecodeDelegate" >&6; }
33369else
cristy8b350f62009-11-15 23:12:43 +000033370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033371$as_echo "no" >&6; }
33372fi
33373
33374
33375# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33376set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033379if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033380 $as_echo_n "(cached) " >&6
33381else
33382 case $EchoDelegate in
33383 [\\/]* | ?:[\\/]*)
33384 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33385 ;;
33386 *)
33387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33388for as_dir in $PATH
33389do
33390 IFS=$as_save_IFS
33391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033394 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033396 break 2
33397 fi
33398done
cristy8b350f62009-11-15 23:12:43 +000033399 done
cristy3ed852e2009-09-05 21:47:34 +000033400IFS=$as_save_IFS
33401
33402 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33403 ;;
33404esac
33405fi
33406EchoDelegate=$ac_cv_path_EchoDelegate
33407if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033409$as_echo "$EchoDelegate" >&6; }
33410else
cristy8b350f62009-11-15 23:12:43 +000033411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033412$as_echo "no" >&6; }
33413fi
33414
33415
33416# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33417set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033418{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033419$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033420if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033421 $as_echo_n "(cached) " >&6
33422else
33423 case $EditorDelegate in
33424 [\\/]* | ?:[\\/]*)
33425 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33426 ;;
33427 *)
33428 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33429for as_dir in $PATH
33430do
33431 IFS=$as_save_IFS
33432 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033433 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033434 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033435 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033436 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033437 break 2
33438 fi
33439done
cristy8b350f62009-11-15 23:12:43 +000033440 done
cristy3ed852e2009-09-05 21:47:34 +000033441IFS=$as_save_IFS
33442
33443 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33444 ;;
33445esac
33446fi
33447EditorDelegate=$ac_cv_path_EditorDelegate
33448if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033450$as_echo "$EditorDelegate" >&6; }
33451else
cristy8b350f62009-11-15 23:12:43 +000033452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033453$as_echo "no" >&6; }
33454fi
33455
33456
33457# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33458set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033461if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033462 $as_echo_n "(cached) " >&6
33463else
33464 case $FIGDecodeDelegate in
33465 [\\/]* | ?:[\\/]*)
33466 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33467 ;;
33468 *)
33469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33470for as_dir in $PATH
33471do
33472 IFS=$as_save_IFS
33473 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033474 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033476 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033478 break 2
33479 fi
33480done
cristy8b350f62009-11-15 23:12:43 +000033481 done
cristy3ed852e2009-09-05 21:47:34 +000033482IFS=$as_save_IFS
33483
33484 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33485 ;;
33486esac
33487fi
33488FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33489if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033491$as_echo "$FIGDecodeDelegate" >&6; }
33492else
cristy8b350f62009-11-15 23:12:43 +000033493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033494$as_echo "no" >&6; }
33495fi
33496
33497
33498# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33499set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033501$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033502if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033503 $as_echo_n "(cached) " >&6
33504else
33505 case $ConvertDelegate in
33506 [\\/]* | ?:[\\/]*)
33507 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33508 ;;
33509 *)
33510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33511for as_dir in $PATH
33512do
33513 IFS=$as_save_IFS
33514 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033515 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033517 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033519 break 2
33520 fi
33521done
cristy8b350f62009-11-15 23:12:43 +000033522 done
cristy3ed852e2009-09-05 21:47:34 +000033523IFS=$as_save_IFS
33524
33525 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33526 ;;
33527esac
33528fi
33529ConvertDelegate=$ac_cv_path_ConvertDelegate
33530if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033532$as_echo "$ConvertDelegate" >&6; }
33533else
cristy8b350f62009-11-15 23:12:43 +000033534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033535$as_echo "no" >&6; }
33536fi
33537
33538
33539# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33540set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033543if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033544 $as_echo_n "(cached) " >&6
33545else
33546 case $DisplayDelegate in
33547 [\\/]* | ?:[\\/]*)
33548 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33549 ;;
33550 *)
33551 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33552for as_dir in $PATH
33553do
33554 IFS=$as_save_IFS
33555 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033556 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033557 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033558 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033560 break 2
33561 fi
33562done
cristy8b350f62009-11-15 23:12:43 +000033563 done
cristy3ed852e2009-09-05 21:47:34 +000033564IFS=$as_save_IFS
33565
33566 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33567 ;;
33568esac
33569fi
33570DisplayDelegate=$ac_cv_path_DisplayDelegate
33571if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033573$as_echo "$DisplayDelegate" >&6; }
33574else
cristy8b350f62009-11-15 23:12:43 +000033575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033576$as_echo "no" >&6; }
33577fi
33578
33579
33580# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33581set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033583$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033584if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033585 $as_echo_n "(cached) " >&6
33586else
33587 case $MogrifyDelegate in
33588 [\\/]* | ?:[\\/]*)
33589 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33590 ;;
33591 *)
33592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33593for as_dir in $PATH
33594do
33595 IFS=$as_save_IFS
33596 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033597 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033599 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033601 break 2
33602 fi
33603done
cristy8b350f62009-11-15 23:12:43 +000033604 done
cristy3ed852e2009-09-05 21:47:34 +000033605IFS=$as_save_IFS
33606
33607 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33608 ;;
33609esac
33610fi
33611MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33612if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033614$as_echo "$MogrifyDelegate" >&6; }
33615else
cristy8b350f62009-11-15 23:12:43 +000033616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033617$as_echo "no" >&6; }
33618fi
33619
33620
33621# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33622set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033624$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033625if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033626 $as_echo_n "(cached) " >&6
33627else
33628 case $GnuplotDecodeDelegate in
33629 [\\/]* | ?:[\\/]*)
33630 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33631 ;;
33632 *)
33633 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33634for as_dir in $PATH
33635do
33636 IFS=$as_save_IFS
33637 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033638 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033639 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033640 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033641 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033642 break 2
33643 fi
33644done
cristy8b350f62009-11-15 23:12:43 +000033645 done
cristy3ed852e2009-09-05 21:47:34 +000033646IFS=$as_save_IFS
33647
33648 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33649 ;;
33650esac
33651fi
33652GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33653if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033655$as_echo "$GnuplotDecodeDelegate" >&6; }
33656else
cristy8b350f62009-11-15 23:12:43 +000033657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033658$as_echo "no" >&6; }
33659fi
33660
33661
cristy3ed852e2009-09-05 21:47:34 +000033662# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33663set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033665$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033666if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033667 $as_echo_n "(cached) " >&6
33668else
33669 case $HPGLDecodeDelegate in
33670 [\\/]* | ?:[\\/]*)
33671 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33672 ;;
33673 *)
33674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33675for as_dir in $PATH
33676do
33677 IFS=$as_save_IFS
33678 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033679 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033680 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033681 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033683 break 2
33684 fi
33685done
cristy8b350f62009-11-15 23:12:43 +000033686 done
cristy3ed852e2009-09-05 21:47:34 +000033687IFS=$as_save_IFS
33688
33689 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33690 ;;
33691esac
33692fi
33693HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33694if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033696$as_echo "$HPGLDecodeDelegate" >&6; }
33697else
cristy8b350f62009-11-15 23:12:43 +000033698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033699$as_echo "no" >&6; }
33700fi
33701
33702
33703# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33704set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033706$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033707if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033708 $as_echo_n "(cached) " >&6
33709else
33710 case $HTMLDecodeDelegate in
33711 [\\/]* | ?:[\\/]*)
33712 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33713 ;;
33714 *)
33715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33716for as_dir in $PATH
33717do
33718 IFS=$as_save_IFS
33719 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033720 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033722 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033724 break 2
33725 fi
33726done
cristy8b350f62009-11-15 23:12:43 +000033727 done
cristy3ed852e2009-09-05 21:47:34 +000033728IFS=$as_save_IFS
33729
33730 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33731 ;;
33732esac
33733fi
33734HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33735if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033737$as_echo "$HTMLDecodeDelegate" >&6; }
33738else
cristy8b350f62009-11-15 23:12:43 +000033739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033740$as_echo "no" >&6; }
33741fi
33742
33743
33744# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33745set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033747$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033748if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033749 $as_echo_n "(cached) " >&6
33750else
33751 case $ILBMDecodeDelegate in
33752 [\\/]* | ?:[\\/]*)
33753 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33754 ;;
33755 *)
33756 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33757for as_dir in $PATH
33758do
33759 IFS=$as_save_IFS
33760 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033761 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033762 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033763 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033764 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033765 break 2
33766 fi
33767done
cristy8b350f62009-11-15 23:12:43 +000033768 done
cristy3ed852e2009-09-05 21:47:34 +000033769IFS=$as_save_IFS
33770
33771 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33772 ;;
33773esac
33774fi
33775ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33776if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033778$as_echo "$ILBMDecodeDelegate" >&6; }
33779else
cristy8b350f62009-11-15 23:12:43 +000033780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033781$as_echo "no" >&6; }
33782fi
33783
33784
33785# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33786set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033788$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033789if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033790 $as_echo_n "(cached) " >&6
33791else
33792 case $ILBMEncodeDelegate in
33793 [\\/]* | ?:[\\/]*)
33794 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33795 ;;
33796 *)
33797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33798for as_dir in $PATH
33799do
33800 IFS=$as_save_IFS
33801 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033802 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033804 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033806 break 2
33807 fi
33808done
cristy8b350f62009-11-15 23:12:43 +000033809 done
cristy3ed852e2009-09-05 21:47:34 +000033810IFS=$as_save_IFS
33811
33812 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33813 ;;
33814esac
33815fi
33816ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33817if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033819$as_echo "$ILBMEncodeDelegate" >&6; }
33820else
cristy8b350f62009-11-15 23:12:43 +000033821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033822$as_echo "no" >&6; }
33823fi
33824
33825
33826# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33827set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033829$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033830if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033831 $as_echo_n "(cached) " >&6
33832else
33833 case $LPDelegate in
33834 [\\/]* | ?:[\\/]*)
33835 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33836 ;;
33837 *)
33838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33839for as_dir in $PATH
33840do
33841 IFS=$as_save_IFS
33842 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033843 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033845 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033847 break 2
33848 fi
33849done
cristy8b350f62009-11-15 23:12:43 +000033850 done
cristy3ed852e2009-09-05 21:47:34 +000033851IFS=$as_save_IFS
33852
33853 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33854 ;;
33855esac
33856fi
33857LPDelegate=$ac_cv_path_LPDelegate
33858if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033860$as_echo "$LPDelegate" >&6; }
33861else
cristy8b350f62009-11-15 23:12:43 +000033862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033863$as_echo "no" >&6; }
33864fi
33865
33866
33867# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33868set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033870$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033871if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033872 $as_echo_n "(cached) " >&6
33873else
33874 case $LPRDelegate in
33875 [\\/]* | ?:[\\/]*)
33876 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33877 ;;
33878 *)
33879 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33880for as_dir in $PATH
33881do
33882 IFS=$as_save_IFS
33883 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033884 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033886 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033888 break 2
33889 fi
33890done
cristy8b350f62009-11-15 23:12:43 +000033891 done
cristy3ed852e2009-09-05 21:47:34 +000033892IFS=$as_save_IFS
33893
33894 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33895 ;;
33896esac
33897fi
33898LPRDelegate=$ac_cv_path_LPRDelegate
33899if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033901$as_echo "$LPRDelegate" >&6; }
33902else
cristy8b350f62009-11-15 23:12:43 +000033903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033904$as_echo "no" >&6; }
33905fi
33906
33907
cristy3ed852e2009-09-05 21:47:34 +000033908# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33909set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033911$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033912if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033913 $as_echo_n "(cached) " >&6
33914else
33915 case $LaunchDelegate in
33916 [\\/]* | ?:[\\/]*)
33917 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33918 ;;
33919 *)
33920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33921for as_dir in $PATH
33922do
33923 IFS=$as_save_IFS
33924 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033925 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033927 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033929 break 2
33930 fi
33931done
cristy8b350f62009-11-15 23:12:43 +000033932 done
cristy3ed852e2009-09-05 21:47:34 +000033933IFS=$as_save_IFS
33934
33935 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33936 ;;
33937esac
33938fi
33939LaunchDelegate=$ac_cv_path_LaunchDelegate
33940if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033942$as_echo "$LaunchDelegate" >&6; }
33943else
cristy8b350f62009-11-15 23:12:43 +000033944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033945$as_echo "no" >&6; }
33946fi
33947
33948
33949# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33950set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033952$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033953if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033954 $as_echo_n "(cached) " >&6
33955else
33956 case $MANDelegate in
33957 [\\/]* | ?:[\\/]*)
33958 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33959 ;;
33960 *)
33961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33962for as_dir in $PATH
33963do
33964 IFS=$as_save_IFS
33965 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033968 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033970 break 2
33971 fi
33972done
cristy8b350f62009-11-15 23:12:43 +000033973 done
cristy3ed852e2009-09-05 21:47:34 +000033974IFS=$as_save_IFS
33975
33976 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33977 ;;
33978esac
33979fi
33980MANDelegate=$ac_cv_path_MANDelegate
33981if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033983$as_echo "$MANDelegate" >&6; }
33984else
cristy8b350f62009-11-15 23:12:43 +000033985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033986$as_echo "no" >&6; }
33987fi
33988
33989
33990# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33991set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033993$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033994if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033995 $as_echo_n "(cached) " >&6
33996else
33997 case $MPEGDecodeDelegate in
33998 [\\/]* | ?:[\\/]*)
33999 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
34000 ;;
34001 *)
34002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34003for as_dir in $PATH
34004do
34005 IFS=$as_save_IFS
34006 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034007 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034009 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034011 break 2
34012 fi
34013done
cristy8b350f62009-11-15 23:12:43 +000034014 done
cristy3ed852e2009-09-05 21:47:34 +000034015IFS=$as_save_IFS
34016
34017 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
34018 ;;
34019esac
34020fi
34021MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
34022if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034024$as_echo "$MPEGDecodeDelegate" >&6; }
34025else
cristy8b350f62009-11-15 23:12:43 +000034026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034027$as_echo "no" >&6; }
34028fi
34029
34030
34031# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
34032set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034034$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034035if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034036 $as_echo_n "(cached) " >&6
34037else
34038 case $MPEGEncodeDelegate in
34039 [\\/]* | ?:[\\/]*)
34040 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
34041 ;;
34042 *)
34043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34044for as_dir in $PATH
34045do
34046 IFS=$as_save_IFS
34047 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034048 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034050 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034052 break 2
34053 fi
34054done
cristy8b350f62009-11-15 23:12:43 +000034055 done
cristy3ed852e2009-09-05 21:47:34 +000034056IFS=$as_save_IFS
34057
34058 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
34059 ;;
34060esac
34061fi
34062MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
34063if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034065$as_echo "$MPEGEncodeDelegate" >&6; }
34066else
cristy8b350f62009-11-15 23:12:43 +000034067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034068$as_echo "no" >&6; }
34069fi
34070
34071
cristy935c86e2010-06-05 23:50:07 +000034072# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34073set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34074{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34075$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034076if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034077 $as_echo_n "(cached) " >&6
34078else
34079 case $MrSIDDecodeDelegate in
34080 [\\/]* | ?:[\\/]*)
34081 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34082 ;;
34083 *)
34084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34085for as_dir in $PATH
34086do
34087 IFS=$as_save_IFS
34088 test -z "$as_dir" && as_dir=.
34089 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034091 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34093 break 2
34094 fi
34095done
34096 done
34097IFS=$as_save_IFS
34098
34099 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34100 ;;
34101esac
34102fi
34103MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34104if test -n "$MrSIDDecodeDelegate"; then
34105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34106$as_echo "$MrSIDDecodeDelegate" >&6; }
34107else
34108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34109$as_echo "no" >&6; }
34110fi
34111
34112
cristy3ed852e2009-09-05 21:47:34 +000034113# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34114set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034116$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034117if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034118 $as_echo_n "(cached) " >&6
34119else
34120 case $MVDelegate in
34121 [\\/]* | ?:[\\/]*)
34122 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34123 ;;
34124 *)
34125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34126for as_dir in $PATH
34127do
34128 IFS=$as_save_IFS
34129 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034130 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034131 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034132 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034133 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034134 break 2
34135 fi
34136done
cristy8b350f62009-11-15 23:12:43 +000034137 done
cristy3ed852e2009-09-05 21:47:34 +000034138IFS=$as_save_IFS
34139
34140 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34141 ;;
34142esac
34143fi
34144MVDelegate=$ac_cv_path_MVDelegate
34145if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034147$as_echo "$MVDelegate" >&6; }
34148else
cristy8b350f62009-11-15 23:12:43 +000034149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034150$as_echo "no" >&6; }
34151fi
34152
34153
34154# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34155set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034157$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034158if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034159 $as_echo_n "(cached) " >&6
34160else
34161 case $PCLDelegate in
34162 [\\/]* | ?:[\\/]*)
34163 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34164 ;;
34165 *)
34166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34167for as_dir in $PATH
34168do
34169 IFS=$as_save_IFS
34170 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034171 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034173 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034175 break 2
34176 fi
34177done
cristy8b350f62009-11-15 23:12:43 +000034178 done
cristy3ed852e2009-09-05 21:47:34 +000034179IFS=$as_save_IFS
34180
34181 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34182 ;;
34183esac
34184fi
34185PCLDelegate=$ac_cv_path_PCLDelegate
34186if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188$as_echo "$PCLDelegate" >&6; }
34189else
cristy8b350f62009-11-15 23:12:43 +000034190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034191$as_echo "no" >&6; }
34192fi
34193
34194
34195# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34196set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034198$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034199if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034200 $as_echo_n "(cached) " >&6
34201else
34202 case $PGPDecodeDelegate in
34203 [\\/]* | ?:[\\/]*)
34204 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34205 ;;
34206 *)
34207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34208for as_dir in $PATH
34209do
34210 IFS=$as_save_IFS
34211 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034212 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034213 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034214 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034216 break 2
34217 fi
34218done
cristy8b350f62009-11-15 23:12:43 +000034219 done
cristy3ed852e2009-09-05 21:47:34 +000034220IFS=$as_save_IFS
34221
34222 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34223 ;;
34224esac
34225fi
34226PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34227if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034229$as_echo "$PGPDecodeDelegate" >&6; }
34230else
cristy8b350f62009-11-15 23:12:43 +000034231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034232$as_echo "no" >&6; }
34233fi
34234
34235
34236# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34237set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034239$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034240if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034241 $as_echo_n "(cached) " >&6
34242else
34243 case $POVDelegate in
34244 [\\/]* | ?:[\\/]*)
34245 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34246 ;;
34247 *)
34248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34249for as_dir in $PATH
34250do
34251 IFS=$as_save_IFS
34252 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034253 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034255 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034257 break 2
34258 fi
34259done
cristy8b350f62009-11-15 23:12:43 +000034260 done
cristy3ed852e2009-09-05 21:47:34 +000034261IFS=$as_save_IFS
34262
34263 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34264 ;;
34265esac
34266fi
34267POVDelegate=$ac_cv_path_POVDelegate
34268if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034270$as_echo "$POVDelegate" >&6; }
34271else
cristy8b350f62009-11-15 23:12:43 +000034272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034273$as_echo "no" >&6; }
34274fi
34275
34276
34277for ac_prog in gsx gsc "$PSDelegateDefault"
34278do
34279 # Extract the first word of "$ac_prog", so it can be a program name with args.
34280set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034282$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034283if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034284 $as_echo_n "(cached) " >&6
34285else
34286 case $PSDelegate in
34287 [\\/]* | ?:[\\/]*)
34288 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34289 ;;
34290 *)
34291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34292for as_dir in $PATH
34293do
34294 IFS=$as_save_IFS
34295 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034296 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034298 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034300 break 2
34301 fi
34302done
cristy8b350f62009-11-15 23:12:43 +000034303 done
cristy3ed852e2009-09-05 21:47:34 +000034304IFS=$as_save_IFS
34305
34306 ;;
34307esac
34308fi
34309PSDelegate=$ac_cv_path_PSDelegate
34310if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034312$as_echo "$PSDelegate" >&6; }
34313else
cristy8b350f62009-11-15 23:12:43 +000034314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315$as_echo "no" >&6; }
34316fi
34317
34318
34319 test -n "$PSDelegate" && break
34320done
34321test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34322
34323# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34324set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034326$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034327if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034328 $as_echo_n "(cached) " >&6
34329else
34330 case $RLEEncodeDelegate in
34331 [\\/]* | ?:[\\/]*)
34332 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34333 ;;
34334 *)
34335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34336for as_dir in $PATH
34337do
34338 IFS=$as_save_IFS
34339 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034340 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034342 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034344 break 2
34345 fi
34346done
cristy8b350f62009-11-15 23:12:43 +000034347 done
cristy3ed852e2009-09-05 21:47:34 +000034348IFS=$as_save_IFS
34349
34350 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34351 ;;
34352esac
34353fi
34354RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34355if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034357$as_echo "$RLEEncodeDelegate" >&6; }
34358else
cristy8b350f62009-11-15 23:12:43 +000034359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034360$as_echo "no" >&6; }
34361fi
34362
34363
34364# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34365set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034367$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034368if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034369 $as_echo_n "(cached) " >&6
34370else
34371 case $RMDelegate in
34372 [\\/]* | ?:[\\/]*)
34373 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34374 ;;
34375 *)
34376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34377for as_dir in $PATH
34378do
34379 IFS=$as_save_IFS
34380 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034383 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034385 break 2
34386 fi
34387done
cristy8b350f62009-11-15 23:12:43 +000034388 done
cristy3ed852e2009-09-05 21:47:34 +000034389IFS=$as_save_IFS
34390
34391 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34392 ;;
34393esac
34394fi
34395RMDelegate=$ac_cv_path_RMDelegate
34396if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034398$as_echo "$RMDelegate" >&6; }
34399else
cristy8b350f62009-11-15 23:12:43 +000034400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034401$as_echo "no" >&6; }
34402fi
34403
34404
cristy4689cf02010-02-17 21:15:45 +000034405# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34406set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34407{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34408$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034409if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034410 $as_echo_n "(cached) " >&6
34411else
34412 case $RSVGDecodeDelegate in
34413 [\\/]* | ?:[\\/]*)
34414 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34415 ;;
34416 *)
34417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34418for as_dir in $PATH
34419do
34420 IFS=$as_save_IFS
34421 test -z "$as_dir" && as_dir=.
34422 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034424 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34426 break 2
34427 fi
34428done
34429 done
34430IFS=$as_save_IFS
34431
34432 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34433 ;;
34434esac
34435fi
34436RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34437if test -n "$RSVGDecodeDelegate"; then
34438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34439$as_echo "$RSVGDecodeDelegate" >&6; }
34440else
34441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34442$as_echo "no" >&6; }
34443fi
34444
34445
cristy3ed852e2009-09-05 21:47:34 +000034446# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34447set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034450if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034451 $as_echo_n "(cached) " >&6
34452else
34453 case $SCANDecodeDelegate in
34454 [\\/]* | ?:[\\/]*)
34455 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34456 ;;
34457 *)
34458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34459for as_dir in $PATH
34460do
34461 IFS=$as_save_IFS
34462 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034463 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034465 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034467 break 2
34468 fi
34469done
cristy8b350f62009-11-15 23:12:43 +000034470 done
cristy3ed852e2009-09-05 21:47:34 +000034471IFS=$as_save_IFS
34472
34473 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34474 ;;
34475esac
34476fi
34477SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34478if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034480$as_echo "$SCANDecodeDelegate" >&6; }
34481else
cristy8b350f62009-11-15 23:12:43 +000034482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034483$as_echo "no" >&6; }
34484fi
34485
34486
cristyec6934f2012-08-14 18:38:40 +000034487# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34488set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34490$as_echo_n "checking for $ac_word... " >&6; }
34491if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34492 $as_echo_n "(cached) " >&6
34493else
34494 case $SVGDecodeDelegate in
34495 [\\/]* | ?:[\\/]*)
34496 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34497 ;;
34498 *)
34499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34500for as_dir in $PATH
34501do
34502 IFS=$as_save_IFS
34503 test -z "$as_dir" && as_dir=.
34504 for ac_exec_ext in '' $ac_executable_extensions; do
34505 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34506 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34507 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34508 break 2
34509 fi
34510done
34511 done
34512IFS=$as_save_IFS
34513
34514 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34515 ;;
34516esac
34517fi
34518SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34519if test -n "$SVGDecodeDelegate"; then
34520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34521$as_echo "$SVGDecodeDelegate" >&6; }
34522else
34523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34524$as_echo "no" >&6; }
34525fi
34526
34527
cristy3ed852e2009-09-05 21:47:34 +000034528# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34529set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034530{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034531$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034532if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034533 $as_echo_n "(cached) " >&6
34534else
34535 case $TXTDelegate in
34536 [\\/]* | ?:[\\/]*)
34537 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34538 ;;
34539 *)
34540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34541for as_dir in $PATH
34542do
34543 IFS=$as_save_IFS
34544 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034545 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034547 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034549 break 2
34550 fi
34551done
cristy8b350f62009-11-15 23:12:43 +000034552 done
cristy3ed852e2009-09-05 21:47:34 +000034553IFS=$as_save_IFS
34554
34555 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34556 ;;
34557esac
34558fi
34559TXTDelegate=$ac_cv_path_TXTDelegate
34560if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034562$as_echo "$TXTDelegate" >&6; }
34563else
cristy8b350f62009-11-15 23:12:43 +000034564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034565$as_echo "no" >&6; }
34566fi
34567
34568
cristy5ac9ac82010-07-29 13:24:24 +000034569# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34570set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034573if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034574 $as_echo_n "(cached) " >&6
34575else
34576 case $UniconvertorDelegate in
34577 [\\/]* | ?:[\\/]*)
34578 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34579 ;;
34580 *)
34581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34582for as_dir in $PATH
34583do
34584 IFS=$as_save_IFS
34585 test -z "$as_dir" && as_dir=.
34586 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034588 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34590 break 2
34591 fi
34592done
34593 done
34594IFS=$as_save_IFS
34595
34596 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34597 ;;
34598esac
34599fi
34600UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34601if test -n "$UniconvertorDelegate"; then
34602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34603$as_echo "$UniconvertorDelegate" >&6; }
34604else
34605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34606$as_echo "no" >&6; }
34607fi
34608
34609
cristy3ed852e2009-09-05 21:47:34 +000034610# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34611set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034613$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034614if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034615 $as_echo_n "(cached) " >&6
34616else
34617 case $WMFDecodeDelegate in
34618 [\\/]* | ?:[\\/]*)
34619 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34620 ;;
34621 *)
34622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34623for as_dir in $PATH
34624do
34625 IFS=$as_save_IFS
34626 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034627 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034629 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034631 break 2
34632 fi
34633done
cristy8b350f62009-11-15 23:12:43 +000034634 done
cristy3ed852e2009-09-05 21:47:34 +000034635IFS=$as_save_IFS
34636
34637 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34638 ;;
34639esac
34640fi
34641WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34642if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034644$as_echo "$WMFDecodeDelegate" >&6; }
34645else
cristy8b350f62009-11-15 23:12:43 +000034646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034647$as_echo "no" >&6; }
34648fi
34649
34650
34651# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34652set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034654$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034655if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034656 $as_echo_n "(cached) " >&6
34657else
34658 case $WWWDecodeDelegate in
34659 [\\/]* | ?:[\\/]*)
34660 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34661 ;;
34662 *)
34663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34664for as_dir in $PATH
34665do
34666 IFS=$as_save_IFS
34667 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034668 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034669 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034670 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034672 break 2
34673 fi
34674done
cristy8b350f62009-11-15 23:12:43 +000034675 done
cristy3ed852e2009-09-05 21:47:34 +000034676IFS=$as_save_IFS
34677
34678 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34679 ;;
34680esac
34681fi
34682WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34683if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034685$as_echo "$WWWDecodeDelegate" >&6; }
34686else
cristy8b350f62009-11-15 23:12:43 +000034687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034688$as_echo "no" >&6; }
34689fi
34690
34691
34692# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34693set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034694{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034695$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034696if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034697 $as_echo_n "(cached) " >&6
34698else
34699 case $XPSDelegate in
34700 [\\/]* | ?:[\\/]*)
34701 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34702 ;;
34703 *)
34704 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34705for as_dir in $PATH
34706do
34707 IFS=$as_save_IFS
34708 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034709 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034710 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034711 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034712 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034713 break 2
34714 fi
34715done
cristy8b350f62009-11-15 23:12:43 +000034716 done
cristy3ed852e2009-09-05 21:47:34 +000034717IFS=$as_save_IFS
34718
34719 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34720 ;;
34721esac
34722fi
34723XPSDelegate=$ac_cv_path_XPSDelegate
34724if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034726$as_echo "$XPSDelegate" >&6; }
34727else
cristy8b350f62009-11-15 23:12:43 +000034728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034729$as_echo "no" >&6; }
34730fi
34731
34732
34733# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34734set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034736$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034737if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034738 $as_echo_n "(cached) " >&6
34739else
34740 case $ZipDelegate in
34741 [\\/]* | ?:[\\/]*)
34742 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34743 ;;
34744 *)
34745 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34746for as_dir in $PATH
34747do
34748 IFS=$as_save_IFS
34749 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034750 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034751 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034752 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034753 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034754 break 2
34755 fi
34756done
cristy8b350f62009-11-15 23:12:43 +000034757 done
cristy3ed852e2009-09-05 21:47:34 +000034758IFS=$as_save_IFS
34759
34760 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34761 ;;
34762esac
34763fi
34764ZipDelegate=$ac_cv_path_ZipDelegate
34765if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034767$as_echo "$ZipDelegate" >&6; }
34768else
cristy8b350f62009-11-15 23:12:43 +000034769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034770$as_echo "no" >&6; }
34771fi
34772
34773
34774
34775# Prefer lpr to lp; lp needs options tacked on.
34776if test "$LPRDelegate" != no; then
34777 PrintDelegate="$LPRDelegate"
34778else
34779 PrintDelegate="$LPDelegate -c -s"
34780fi
34781
34782
34783# Installed ImageMagick utiltity paths
34784ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34785DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34786MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34787
34788# Set delegate booleans
34789have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34790have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34791have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34792have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34793have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034794have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034795have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34796have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034797have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34798have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34799
34800#
34801# Test for font directories
34802#
34803type_include_files=''
34804
cristy430a7312010-01-21 20:44:04 +000034805# Dejavu fonts.
34806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34807$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34808dejavu_font_dir=''
34809if test "${with_dejavu_font_dir}" != 'default'; then
34810 dejavu_font_dir="${with_dejavu_font_dir}/"
34811else
34812 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34813 if test -f "${font_dir}DejaVuSerif.ttf"; then
34814 dejavu_font_dir="${font_dir}"
34815 break 1
34816 fi
34817 done
34818fi
34819if test "${dejavu_font_dir}x" != 'x'; then
34820 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034821 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34822$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034823else
cristy09b53e12011-10-14 12:47:22 +000034824 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34825$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034826fi
34827
34828
cristy3ed852e2009-09-05 21:47:34 +000034829# Windows
34830windows_font_dir=''
34831if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34832 windows_font_dir="${with_windows_font_dir}/"
34833fi
cristy430a7312010-01-21 20:44:04 +000034834if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034835 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34836 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34837 fi
34838 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34839 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34840 fi
34841 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34842 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34843 fi
34844fi
cristy430a7312010-01-21 20:44:04 +000034845if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034846 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34847fi
34848
34849
34850# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034852$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34853ghostscript_font_dir=''
34854if test "${with_gs_font_dir}" != 'default'; then
34855 ghostscript_font_dir="${with_gs_font_dir}/"
34856else
34857 if test "${native_win32_build}" = 'yes'; then
34858 # Native Windows Build
34859 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34860 if test -f "${font_dir}a010013l.pfb"; then
34861 ghostscript_font_dir="$font_dir"
34862 break 1
34863 fi
34864 done
34865 if test "${PSDelegate}" != 'gswin32c'; then
34866 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34867 fi
34868 else
34869 # Linux / Mac OS X / Unix Build
34870 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
34871 if test -f "${font_dir}a010013l.pfb"; then
34872 ghostscript_font_dir="${font_dir}"
34873 break 1
34874 fi
34875 done
34876 if test "${ghostscript_font_dir}x" = 'x'; then
34877 if test "$PSDelegate" != 'gs'; then
34878 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34879 fi
34880 fi
34881 fi
34882fi
34883if test "${ghostscript_font_dir}x" != 'x'; then
34884 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034885 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34886$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034887else
cristy09b53e12011-10-14 12:47:22 +000034888 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34889$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034890fi
34891
34892case "${build_os}" in
34893 mingw* )
34894 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34895 ;;
34896esac
34897
34898
34899
34900#
34901# Handle case where user doesn't want frozen paths
34902#
34903if test "$with_frozenpaths" != 'yes'; then
34904 # Re-set delegate definitions to default (no paths)
34905 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034906 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34907 BZIPDelegate="$BZIPDelegateDefault"
34908 BrowseDelegate="$BrowseDelegateDefault"
34909 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34910 CatDelegate="$CatDelegateDefault"
34911 ConvertDelegate="$ConvertDelegateDefault"
34912 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34913 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34914 EchoDelegate="$EchoDelegateDefault"
34915 EditorDelegate="$EditorDelegateDefault"
34916 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34917 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34918 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34919 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34920 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34921 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34922 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034923 LaunchDelegate="$LaunchDelegateDefault"
34924 MANDelegate="$MANDelegateDefault"
34925 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34926 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034927 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034928 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34929 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034930 PCLDelegate="$PCLDelegateDefault"
34931 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34932 POVDelegate="$POVDelegateDefault"
34933 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034934 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34935 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034936 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034937 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034938 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034939 ShowImageDelegate="$ShowImageDelegateDefault"
34940 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034941 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034942 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34943 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34944 XPSDelegate="$XPSDelegateDefault"
34945 ZipDelegate="$ZipDelegateDefault"
34946fi
34947
34948# Delegate substitutions
34949
34950
34951
34952
34953
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969
34970
34971
34972
34973
34974
34975
34976
34977
34978
34979
34980
34981
34982
34983
34984
34985
34986
34987
34988
cristy3ed852e2009-09-05 21:47:34 +000034989#
34990# RPM support.
34991#
34992RPM=''
34993for ac_prog in gnutar gtar tar
34994do
34995 # Extract the first word of "$ac_prog", so it can be a program name with args.
34996set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034998$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034999if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035000 $as_echo_n "(cached) " >&6
35001else
35002 if test -n "$TAR"; then
35003 ac_cv_prog_TAR="$TAR" # Let the user override the test.
35004else
35005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35006for as_dir in $PATH
35007do
35008 IFS=$as_save_IFS
35009 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035010 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035012 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035014 break 2
35015 fi
35016done
cristy8b350f62009-11-15 23:12:43 +000035017 done
cristy3ed852e2009-09-05 21:47:34 +000035018IFS=$as_save_IFS
35019
35020fi
35021fi
35022TAR=$ac_cv_prog_TAR
35023if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000035024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000035025$as_echo "$TAR" >&6; }
35026else
cristy8b350f62009-11-15 23:12:43 +000035027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028$as_echo "no" >&6; }
35029fi
35030
35031
35032 test -n "$TAR" && break
35033done
35034
35035for ac_prog in perl
35036do
35037 # Extract the first word of "$ac_prog", so it can be a program name with args.
35038set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035039{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035040$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035041if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035042 $as_echo_n "(cached) " >&6
35043else
35044 if test -n "$PERL"; then
35045 ac_cv_prog_PERL="$PERL" # Let the user override the test.
35046else
35047as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35048for as_dir in $PATH
35049do
35050 IFS=$as_save_IFS
35051 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035052 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035054 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035056 break 2
35057 fi
35058done
cristy8b350f62009-11-15 23:12:43 +000035059 done
cristy3ed852e2009-09-05 21:47:34 +000035060IFS=$as_save_IFS
35061
35062fi
35063fi
35064PERL=$ac_cv_prog_PERL
35065if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035067$as_echo "$PERL" >&6; }
35068else
cristy8b350f62009-11-15 23:12:43 +000035069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035070$as_echo "no" >&6; }
35071fi
35072
35073
35074 test -n "$PERL" && break
35075done
35076
35077for ac_prog in rpmbuild rpm
35078do
35079 # Extract the first word of "$ac_prog", so it can be a program name with args.
35080set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035082$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035083if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035084 $as_echo_n "(cached) " >&6
35085else
35086 if test -n "$RPM"; then
35087 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35088else
35089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35090for as_dir in $PATH
35091do
35092 IFS=$as_save_IFS
35093 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035094 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035096 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035098 break 2
35099 fi
35100done
cristy8b350f62009-11-15 23:12:43 +000035101 done
cristy3ed852e2009-09-05 21:47:34 +000035102IFS=$as_save_IFS
35103
35104fi
35105fi
35106RPM=$ac_cv_prog_RPM
35107if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035109$as_echo "$RPM" >&6; }
35110else
cristy8b350f62009-11-15 23:12:43 +000035111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035112$as_echo "no" >&6; }
35113fi
35114
35115
35116 test -n "$RPM" && break
35117done
35118
35119
cristy73bd4a52010-10-05 11:24:23 +000035120ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35121
35122
35123AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35124
35125
35126AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35127
35128
35129AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35130
35131
35132 if test "x$RPM" != "x" ; then
35133 RPM_DELEGATE_TRUE=
35134 RPM_DELEGATE_FALSE='#'
35135else
35136 RPM_DELEGATE_TRUE='#'
35137 RPM_DELEGATE_FALSE=
35138fi
35139
cristy3ed852e2009-09-05 21:47:34 +000035140
35141#
35142# 7ZIP support (http://p7zip.sourceforge.net/)
35143#
35144P7ZIP=''
35145for ac_prog in 7za
35146do
35147 # Extract the first word of "$ac_prog", so it can be a program name with args.
35148set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035149{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035150$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035151if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035152 $as_echo_n "(cached) " >&6
35153else
35154 if test -n "$P7ZIP"; then
35155 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35156else
35157as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35158for as_dir in $PATH
35159do
35160 IFS=$as_save_IFS
35161 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035162 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035164 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035166 break 2
35167 fi
35168done
cristy8b350f62009-11-15 23:12:43 +000035169 done
cristy3ed852e2009-09-05 21:47:34 +000035170IFS=$as_save_IFS
35171
35172fi
35173fi
35174P7ZIP=$ac_cv_prog_P7ZIP
35175if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035177$as_echo "$P7ZIP" >&6; }
35178else
cristy8b350f62009-11-15 23:12:43 +000035179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035180$as_echo "no" >&6; }
35181fi
35182
35183
35184 test -n "$P7ZIP" && break
35185done
35186
35187
cristy73bd4a52010-10-05 11:24:23 +000035188 if test "x$P7ZIP" != "x" ; then
35189 P7ZIP_DELEGATE_TRUE=
35190 P7ZIP_DELEGATE_FALSE='#'
35191else
35192 P7ZIP_DELEGATE_TRUE='#'
35193 P7ZIP_DELEGATE_FALSE=
35194fi
35195
cristy3ed852e2009-09-05 21:47:34 +000035196
35197#
35198# ZIP support (http://www.info-zip.org/Zip.html)
35199#
35200ZIP=''
35201for ac_prog in zip
35202do
35203 # Extract the first word of "$ac_prog", so it can be a program name with args.
35204set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035206$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035207if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035208 $as_echo_n "(cached) " >&6
35209else
35210 if test -n "$ZIP"; then
35211 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35212else
35213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35214for as_dir in $PATH
35215do
35216 IFS=$as_save_IFS
35217 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035218 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035220 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035222 break 2
35223 fi
35224done
cristy8b350f62009-11-15 23:12:43 +000035225 done
cristy3ed852e2009-09-05 21:47:34 +000035226IFS=$as_save_IFS
35227
35228fi
35229fi
35230ZIP=$ac_cv_prog_ZIP
35231if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035233$as_echo "$ZIP" >&6; }
35234else
cristy8b350f62009-11-15 23:12:43 +000035235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035236$as_echo "no" >&6; }
35237fi
35238
35239
35240 test -n "$ZIP" && break
35241done
35242
35243
cristy73bd4a52010-10-05 11:24:23 +000035244 if test "x$ZIP" != "x" ; then
35245 ZIP_DELEGATE_TRUE=
35246 ZIP_DELEGATE_FALSE='#'
35247else
35248 ZIP_DELEGATE_TRUE='#'
35249 ZIP_DELEGATE_FALSE=
35250fi
35251
cristy3ed852e2009-09-05 21:47:34 +000035252
35253#
35254# GhostPCL related configuration.
35255#
35256PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035257PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035258PCLMonoDevice=pbmraw
35259if test -z "$PCLVersion"; then
35260 PCLVersion='unknown'
35261fi
35262if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035263 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35264$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035266$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035267 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35268$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035269 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035271$as_echo_n "checking for pcl color device... " >&6; }
35272 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35273 :
35274 else
35275 PCLColorDevice=ppmraw
35276 fi
cristy09b53e12011-10-14 12:47:22 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35278$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035279
35280 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035282$as_echo_n "checking for pcl CMYK device... " >&6; }
35283 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35284 :
35285 else
35286 PCLCMYKDevice=$PCLColorDevice
35287 fi
cristy09b53e12011-10-14 12:47:22 +000035288 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35289$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035290
35291 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035293$as_echo_n "checking for pcl mono device... " >&6; }
35294 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35295 :
35296 else
35297 PCLMonoDevice=$PCLColorDevice
35298 fi
cristy09b53e12011-10-14 12:47:22 +000035299 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35300$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035301fi
35302
35303
35304
35305
35306
35307
35308#
35309# GhostXPS related configuration.
35310#
35311XPSColorDevice=ppmraw
35312XPSCMYKDevice=bmpsep8
35313XPSMonoDevice=pbmraw
35314if test -z "$XPSVersion"; then
35315 XPSVersion='unknown'
35316fi
35317if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035318 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35319$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035321$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035322 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35323$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035324 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035326$as_echo_n "checking for xps color device... " >&6; }
35327 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35328 :
35329 else
35330 XPSColorDevice=ppmraw
35331 fi
cristy09b53e12011-10-14 12:47:22 +000035332 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35333$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035334
35335 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035337$as_echo_n "checking for xps CMYK device... " >&6; }
35338 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35339 :
35340 else
35341 XPSCMYKDevice=$XPSColorDevice
35342 fi
cristy09b53e12011-10-14 12:47:22 +000035343 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35344$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035345
35346 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035348$as_echo_n "checking for xps mono device... " >&6; }
35349 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35350 :
35351 else
35352 XPSMonoDevice=$XPSColorDevice
35353 fi
cristy09b53e12011-10-14 12:47:22 +000035354 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35355$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035356fi
35357
35358
35359
35360
35361
35362
35363#
35364# Ghostscript related configuration.
35365#
cristya97426c2011-02-04 01:41:27 +000035366GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035367GSColorDevice=pnmraw
35368GSCMYKDevice=pam
35369GSMonoDevice=pbmraw
35370GSPDFDevice=pdfwrite
35371GSPSDevice=pswrite
35372GSEPSDevice=epswrite
35373GSVersion='unknown'
35374if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035375 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35376$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035378$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035379 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35380$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035382$as_echo_n "checking for Ghostscript version... " >&6; }
35383 if GSVersion=`$PSDelegate --version`; then
35384 :
35385 else
35386 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35387 fi
cristy09b53e12011-10-14 12:47:22 +000035388 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35389$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035390
35391 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035393$as_echo_n "checking for gs alpha device... " >&6; }
35394 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35395 :
35396 else
35397 GSAlphaDevice=pnmraw
35398 fi
cristy09b53e12011-10-14 12:47:22 +000035399 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35400$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035401
35402 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035404$as_echo_n "checking for gs color device... " >&6; }
35405 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35406 :
35407 else
35408 GSColorDevice=pnmraw
35409 fi
cristy09b53e12011-10-14 12:47:22 +000035410 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35411$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035412
35413 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035415$as_echo_n "checking for gs CMYK device... " >&6; }
35416 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35417 :
35418 else
35419 GSCMYKDevice=bmpsep8
35420 fi
cristy09b53e12011-10-14 12:47:22 +000035421 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35422$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035423
35424 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035426$as_echo_n "checking for gs mono device... " >&6; }
35427 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35428 :
35429 else
35430 GSMonoDevice=$GSColorDevice
35431 fi
cristy09b53e12011-10-14 12:47:22 +000035432 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35433$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035434
35435 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035437$as_echo_n "checking for gs PDF writing device... " >&6; }
35438 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35439 :
35440 else
35441 GSPDFDevice=nodevice
35442 fi
cristy09b53e12011-10-14 12:47:22 +000035443 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35444$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035445
35446 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035448$as_echo_n "checking for gs PS writing device... " >&6; }
35449 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35450 :
35451 else
35452 GSPSDevice=nodevice
35453 fi
cristy09b53e12011-10-14 12:47:22 +000035454 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35455$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035456
35457 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035459$as_echo_n "checking for gs EPS writing device... " >&6; }
35460 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35461 :
35462 else
35463 GSEPSDevice=nodevice
35464 fi
cristy09b53e12011-10-14 12:47:22 +000035465 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35466$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035467fi
35468
35469
35470
35471
35472
35473
35474
35475
35476
35477
35478#
35479# PerlMagick-related configuration
35480#
35481
35482# Look for PERL if PerlMagick requested
35483# If name/path of desired PERL interpreter is specified, look for that one first
35484have_perl='no'
35485if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035486 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35487$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035489$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035490 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35491$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035492 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035494$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035495if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035496 $as_echo_n "(cached) " >&6
35497else
35498 ac_cv_path_PERL="$with_perl"
35499fi
cristy8b350f62009-11-15 23:12:43 +000035500{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035501$as_echo "$ac_cv_path_PERL" >&6; };
35502 PERL=$ac_cv_path_PERL
35503 have_perl="$ac_cv_path_PERL"
35504 else
35505 for ac_prog in perl perl5
35506do
35507 # Extract the first word of "$ac_prog", so it can be a program name with args.
35508set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035510$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035511if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035512 $as_echo_n "(cached) " >&6
35513else
35514 case $PERL in
35515 [\\/]* | ?:[\\/]*)
35516 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35517 ;;
35518 *)
35519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35520for as_dir in $PATH
35521do
35522 IFS=$as_save_IFS
35523 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035524 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035525 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035526 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035528 break 2
35529 fi
35530done
cristy8b350f62009-11-15 23:12:43 +000035531 done
cristy3ed852e2009-09-05 21:47:34 +000035532IFS=$as_save_IFS
35533
35534 ;;
35535esac
35536fi
35537PERL=$ac_cv_path_PERL
35538if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035540$as_echo "$PERL" >&6; }
35541else
cristy8b350f62009-11-15 23:12:43 +000035542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035543$as_echo "no" >&6; }
35544fi
35545
35546
35547 test -n "$PERL" && break
35548done
35549 if test "$ac_cv_path_PERL"; then
35550 have_perl="$ac_cv_path_PERL"
35551 fi
35552 fi
35553fi
35554
cristy949301e2010-01-06 01:38:40 +000035555if test "$with_perl" != 'yes' ; then
35556 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35557fi
35558
35559PERL_SUPPORTS_DESTDIR='no'
35560
cristy3ed852e2009-09-05 21:47:34 +000035561with_perl_static='no'
35562with_perl_dynamic='no'
35563if test "$have_perl" != 'no'; then
35564 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35565 with_perl_static='yes'
35566 fi
35567 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35568 with_perl_dynamic='yes'
35569 fi
35570 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035571
35572
35573
35574
35575 if test -n "$PERL"; then :
35576
35577 ax_perl_version="5.8.1"
35578
35579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35580$as_echo_n "checking for perl version... " >&6; }
35581
35582 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35583
35584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35585$as_echo "$perl_version" >&6; }
35586
35587 PERL_VERSION=$perl_version
35588
35589
35590
35591
35592
35593 # Used to indicate true or false condition
35594 ax_compare_version=false
35595
35596 # Convert the two version strings to be compared into a format that
35597 # allows a simple string comparison. The end result is that a version
35598 # string of the form 1.12.5-r617 will be converted to the form
35599 # 0001001200050617. In other words, each number is zero padded to four
35600 # digits, and non digits are removed.
35601
35602 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35603 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35604 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35605 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35606 -e 's/[^0-9]//g'`
35607
35608
35609 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35610 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35611 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35612 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35613 -e 's/[^0-9]//g'`
35614
35615
35616 ax_compare_version=`echo "x$ax_compare_version_A
35617x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35618
35619
35620
35621 if test "$ax_compare_version" = "true" ; then
35622
35623 :
35624 PERL_SUPPORTS_DESTDIR='yes'
35625
35626 else
35627 :
35628 PERL_SUPPORTS_DESTDIR='no'
35629
35630 fi
35631
35632
35633else
35634
35635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35636$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35637 PERL_SUPPORTS_DESTDIR='no'
35638
cristy3ed852e2009-09-05 21:47:34 +000035639fi
cristy73bd4a52010-10-05 11:24:23 +000035640
35641fi
35642 if test "$have_perl" != 'no'; then
35643 WITH_PERL_TRUE=
35644 WITH_PERL_FALSE='#'
35645else
35646 WITH_PERL_TRUE='#'
35647 WITH_PERL_FALSE=
35648fi
35649
35650 if test $with_perl_static = 'yes'; then
35651 WITH_PERL_STATIC_TRUE=
35652 WITH_PERL_STATIC_FALSE='#'
35653else
35654 WITH_PERL_STATIC_TRUE='#'
35655 WITH_PERL_STATIC_FALSE=
35656fi
35657
35658 if test $with_perl_dynamic = 'yes'; then
35659 WITH_PERL_DYNAMIC_TRUE=
35660 WITH_PERL_DYNAMIC_FALSE='#'
35661else
35662 WITH_PERL_DYNAMIC_TRUE='#'
35663 WITH_PERL_DYNAMIC_FALSE=
35664fi
35665
cristy3ed852e2009-09-05 21:47:34 +000035666
35667
35668# Determine path to pick up MagickCore library from for use with building PerlMagick
35669MAGICKCORE_PATH="${LIB_DIR}"
35670if test $with_perl_static = 'yes'; then
35671 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35672 libtool_objdir=$objdir
35673
35674 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035675 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035676fi
35677
35678
35679# Create a simple string containing format names for all delegate libraries
35680DELEGATES=''
35681if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35682if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35683if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35684if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35685if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35686if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35687if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35688if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35689if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35690if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35691if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35692if test "$have_jpeg" = 'yes'; then
35693 DELEGATES="$DELEGATES jpeg";
35694 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35695fi
35696if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035697if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035698if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35699if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035700if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035701if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35702if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035703if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035704if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35705if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35706if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35707if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35708if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35709if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35710if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35711
35712
35713
35714#
35715# Handle special compiler flags
35716#
35717
35718# Add '-p' if prof source profiling support enabled
35719if test "$enable_prof" = 'yes'; then
35720 CFLAGS="-p $CFLAGS"
35721 CXXFLAGS="-p $CXXFLAGS"
35722 LDFLAGS="-p $LDFLAGS"
35723fi
35724
35725# Add '-pg' if gprof source profiling support enabled
35726if test "$enable_gprof" = 'yes'; then
35727 CFLAGS="-pg $CFLAGS"
35728 CXXFLAGS="-pg $CXXFLAGS"
35729 LDFLAGS="-pg $LDFLAGS"
35730fi
35731
35732# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35733# This is a gcc-specific feature
35734if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035736$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035737if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035738 $as_echo_n "(cached) " >&6
35739else
35740 ac_check_lib_save_LIBS=$LIBS
35741LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035742cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035743/* end confdefs.h. */
35744
35745/* Override any GCC internal prototype to avoid an error.
35746 Use char because int might match the return type of a GCC
35747 builtin and then its argument prototype would still apply. */
35748#ifdef __cplusplus
35749extern "C"
35750#endif
35751char _gcov_init ();
35752int
35753main ()
35754{
35755return _gcov_init ();
35756 ;
35757 return 0;
35758}
35759_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035760if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035761 ac_cv_lib_gcov__gcov_init=yes
35762else
cristy8b350f62009-11-15 23:12:43 +000035763 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035764fi
cristy8b350f62009-11-15 23:12:43 +000035765rm -f core conftest.err conftest.$ac_objext \
35766 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035767LIBS=$ac_check_lib_save_LIBS
35768fi
cristy8b350f62009-11-15 23:12:43 +000035769{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035770$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035771if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035772 cat >>confdefs.h <<_ACEOF
35773#define HAVE_LIBGCOV 1
35774_ACEOF
35775
35776 LIBS="-lgcov $LIBS"
35777
35778fi
35779
cristy8b350f62009-11-15 23:12:43 +000035780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035781$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035782if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035783 $as_echo_n "(cached) " >&6
35784else
35785 ac_check_lib_save_LIBS=$LIBS
35786LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035787cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035788/* end confdefs.h. */
35789
35790/* Override any GCC internal prototype to avoid an error.
35791 Use char because int might match the return type of a GCC
35792 builtin and then its argument prototype would still apply. */
35793#ifdef __cplusplus
35794extern "C"
35795#endif
35796char __gcov_init ();
35797int
35798main ()
35799{
35800return __gcov_init ();
35801 ;
35802 return 0;
35803}
35804_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035805if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035806 ac_cv_lib_gcov___gcov_init=yes
35807else
cristy8b350f62009-11-15 23:12:43 +000035808 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035809fi
cristy8b350f62009-11-15 23:12:43 +000035810rm -f core conftest.err conftest.$ac_objext \
35811 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035812LIBS=$ac_check_lib_save_LIBS
35813fi
cristy8b350f62009-11-15 23:12:43 +000035814{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035815$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035816if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035817 cat >>confdefs.h <<_ACEOF
35818#define HAVE_LIBGCOV 1
35819_ACEOF
35820
35821 LIBS="-lgcov $LIBS"
35822
35823fi
35824
35825 case "$target_os" in
35826 darwin*)
35827 OSX_GCOV_LDFLAG="-Wl,-single_module"
35828 ;;
35829 *)
35830 OSX_GCOV_LDFLAG=""
35831 ;;
35832 esac
35833
35834 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35835 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35836 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35837fi
35838
35839#
35840# Build library dependency list for libMagickCore
35841#
35842
35843MAGICK_LIBLTDL='' # Libltdl for build
35844MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35845MAGICK_LTDLDEPS='' # extra libltdl dependencies
35846if test "$with_ltdl" != 'no'
35847then
35848 if test \( "$with_included_ltdl" = 'no' -o "$enable_ltdl_convenience" = 'no' \) -o "$enable_ltdl_install" = 'yes'; then
35849 MAGICK_API_LIBLTDL='-lltdl'
35850 fi
35851 MAGICK_LIBLTDL=${LIBLTDL}
35852 MAGICK_LTDLDEPS=${LTDLDEPS}
35853fi
35854
35855
35856
35857if test "$with_modules" != 'no'; then
cristy3a75f062012-09-08 23:29:40 +000035858 MAGICK_DEP_LIBS="$LCMS_LIBS $FREETYPE_LIBS $LQR_LIBS $FFTW_LIBS $FONTCONFIG_LIBS $XEXT_LIBS $IPC_LIBS $X11_LIBS $XT_LIBS $LZMA_LIBS $BZLIB_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035859else
cristy3a75f062012-09-08 23:29:40 +000035860 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 $WEBP_LIBS $WMF_LIBS $DPS_LIBS $XEXT_LIBS $XT_LIBS $IPC_LIBS $X11_LIBS $LZMA_LIBS $BZLIB_LIBS $OPENEXR_LIBS $PANGO_LIBS $RSVG_LIBS $XML_LIBS $GVC_LIBS $ZLIB_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035861fi
35862
35863
35864#
35865# Remove extraneous spaces from output variables (asthetic)
35866#
35867X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35868X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35869X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35870X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35871
35872CC=`echo $CC | sed -e 's/ */ /g'`
35873CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35874CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35875CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35876DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35877DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35878LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35879TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35880MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35881#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35882
35883# Pass only user-provided LIBS as "global" libraries
35884LIBS=$USER_LIBS
35885
35886#AC_SUBST(CPPFLAGS)
35887
35888#AC_SUBST(LDFLAGS)
35889#AC_SUBST(X_PRE_LIBS)
35890#AC_SUBST(X_LIBS)
35891#AC_SUBST(X_EXTRA_LIBS)
35892
35893MAGICK_CFLAGS=$CFLAGS
35894MAGICK_CXXFLAGS="$CXXFLAGS"
35895MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35896MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35897MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
35898MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS $MAGICK_API_LIBLTDL"
35899
35900
35901
35902
35903
35904
35905
35906
cristyfd9dcd42010-08-08 18:07:02 +000035907
cristy3ed852e2009-09-05 21:47:34 +000035908# Set configured scripts to executable.
35909ac_config_commands="$ac_config_commands default"
35910
cristy2bd4b6e2012-07-22 15:29:11 +000035911ac_config_commands="$ac_config_commands magick.sh.in"
35912
cristy3ed852e2009-09-05 21:47:34 +000035913ac_config_commands="$ac_config_commands MagickCore-config.in"
35914
cristy3ed852e2009-09-05 21:47:34 +000035915ac_config_commands="$ac_config_commands MagickWand-config.in"
35916
cristy3ed852e2009-09-05 21:47:34 +000035917ac_config_commands="$ac_config_commands Magick++-config.in"
35918
35919ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35920
35921
cristy09b53e12011-10-14 12:47:22 +000035922{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35923$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35924{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35925$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035926cat >confcache <<\_ACEOF
35927# This file is a shell script that caches the results of configure
35928# tests run on this system so they can be shared between configure
35929# scripts and configure runs, see configure's option --config-cache.
35930# It is not useful on other systems. If it contains results you don't
35931# want to keep, you may remove or edit it.
35932#
35933# config.status only pays attention to the cache file if you give it
35934# the --recheck option to rerun configure.
35935#
35936# `ac_cv_env_foo' variables (set or unset) will be overridden when
35937# loading this file, other *unset* `ac_cv_foo' will be assigned the
35938# following values.
35939
35940_ACEOF
35941
35942# The following way of writing the cache mishandles newlines in values,
35943# but we know of no workaround that is simple, portable, and efficient.
35944# So, we kill variables containing newlines.
35945# Ultrix sh set writes to stderr and can't be redirected directly,
35946# and sets the high bit in the cache file unless we assign to the vars.
35947(
35948 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35949 eval ac_val=\$$ac_var
35950 case $ac_val in #(
35951 *${as_nl}*)
35952 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35955 esac
35956 case $ac_var in #(
35957 _ | IFS | as_nl) ;; #(
35958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035959 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035960 esac ;;
35961 esac
35962 done
35963
35964 (set) 2>&1 |
35965 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35966 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035967 # `set' does not quote correctly, so add quotes: double-quote
35968 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035969 sed -n \
35970 "s/'/'\\\\''/g;
35971 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35972 ;; #(
35973 *)
35974 # `set' quotes correctly as required by POSIX, so do not add quotes.
35975 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35976 ;;
35977 esac |
35978 sort
35979) |
35980 sed '
35981 /^ac_cv_env_/b end
35982 t clear
35983 :clear
35984 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35985 t end
35986 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35987 :end' >>confcache
35988if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35989 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035990 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035991 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035992$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035993 if test ! -f "$cache_file" || test -h "$cache_file"; then
35994 cat confcache >"$cache_file"
35995 else
35996 case $cache_file in #(
35997 */* | ?:*)
35998 mv -f confcache "$cache_file"$$ &&
35999 mv -f "$cache_file"$$ "$cache_file" ;; #(
36000 *)
36001 mv -f confcache "$cache_file" ;;
36002 esac
36003 fi
36004 fi
cristy3ed852e2009-09-05 21:47:34 +000036005 else
cristy8b350f62009-11-15 23:12:43 +000036006 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036007$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36008 fi
36009fi
36010rm -f confcache
36011
36012test "x$prefix" = xNONE && prefix=$ac_default_prefix
36013# Let make expand exec_prefix.
36014test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36015
36016DEFS=-DHAVE_CONFIG_H
36017
36018ac_libobjs=
36019ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000036020U=
cristy3ed852e2009-09-05 21:47:34 +000036021for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36022 # 1. Remove the extension, and $U if already installed.
36023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36024 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36026 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000036027 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36028 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000036029done
36030LIBOBJS=$ac_libobjs
36031
36032LTLIBOBJS=$ac_ltlibobjs
36033
36034
cristyc0890a62012-07-19 00:18:20 +000036035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36036$as_echo_n "checking that generated files are newer than configure... " >&6; }
36037 if test -n "$am_sleep_pid"; then
36038 # Hide warnings about reused PIDs.
36039 wait $am_sleep_pid 2>/dev/null
36040 fi
36041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36042$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000036043 if test -n "$EXEEXT"; then
36044 am__EXEEXT_TRUE=
36045 am__EXEEXT_FALSE='#'
36046else
36047 am__EXEEXT_TRUE='#'
36048 am__EXEEXT_FALSE=
36049fi
cristy3ed852e2009-09-05 21:47:34 +000036050
cristy73bd4a52010-10-05 11:24:23 +000036051if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036052 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
36055if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036056 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036057Usually this means the macro was only invoked conditionally." "$LINENO" 5
36058fi
36059if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036060 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036061Usually this means the macro was only invoked conditionally." "$LINENO" 5
36062fi
36063if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036064 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036065Usually this means the macro was only invoked conditionally." "$LINENO" 5
36066fi
36067if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036068 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036069Usually this means the macro was only invoked conditionally." "$LINENO" 5
36070fi
36071if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036072 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036073Usually this means the macro was only invoked conditionally." "$LINENO" 5
36074fi
36075if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036076 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036077Usually this means the macro was only invoked conditionally." "$LINENO" 5
36078fi
36079if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036080 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036081Usually this means the macro was only invoked conditionally." "$LINENO" 5
36082fi
cristy73bd4a52010-10-05 11:24:23 +000036083if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036084 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036085Usually this means the macro was only invoked conditionally." "$LINENO" 5
36086fi
36087if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036088 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036089Usually this means the macro was only invoked conditionally." "$LINENO" 5
36090fi
36091LT_CONFIG_H=config/config.h
36092
36093 _ltdl_libobjs=
36094 _ltdl_ltlibobjs=
36095 if test -n "$_LT_LIBOBJS"; then
36096 # Remove the extension.
36097 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36098 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36099 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36100 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36101 done
36102 fi
36103 ltdl_LIBOBJS=$_ltdl_libobjs
36104
36105 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36106
36107
36108if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
36116if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
36120if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
cristy71d8c202012-03-20 17:05:01 +000036124if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36125 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
cristy73bd4a52010-10-05 11:24:23 +000036128
36129if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036130 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036131Usually this means the macro was only invoked conditionally." "$LINENO" 5
36132fi
36133if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036134 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036135Usually this means the macro was only invoked conditionally." "$LINENO" 5
36136fi
36137if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036138 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036139Usually this means the macro was only invoked conditionally." "$LINENO" 5
36140fi
36141if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036142 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036143Usually this means the macro was only invoked conditionally." "$LINENO" 5
36144fi
36145if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036146 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036147Usually this means the macro was only invoked conditionally." "$LINENO" 5
36148fi
36149if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036150 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036151Usually this means the macro was only invoked conditionally." "$LINENO" 5
36152fi
36153if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036154 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036155Usually this means the macro was only invoked conditionally." "$LINENO" 5
36156fi
36157if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036158 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036159Usually this means the macro was only invoked conditionally." "$LINENO" 5
36160fi
36161if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036162 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036163Usually this means the macro was only invoked conditionally." "$LINENO" 5
36164fi
36165if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036166 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036167Usually this means the macro was only invoked conditionally." "$LINENO" 5
36168fi
36169if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036170 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036171Usually this means the macro was only invoked conditionally." "$LINENO" 5
36172fi
36173if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036174 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036175Usually this means the macro was only invoked conditionally." "$LINENO" 5
36176fi
36177if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036178 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036179Usually this means the macro was only invoked conditionally." "$LINENO" 5
36180fi
36181if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036182 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036183Usually this means the macro was only invoked conditionally." "$LINENO" 5
36184fi
36185if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036186 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036187Usually this means the macro was only invoked conditionally." "$LINENO" 5
36188fi
36189if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036190 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036191Usually this means the macro was only invoked conditionally." "$LINENO" 5
36192fi
36193if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036194 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036195Usually this means the macro was only invoked conditionally." "$LINENO" 5
36196fi
36197if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036198 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036199Usually this means the macro was only invoked conditionally." "$LINENO" 5
36200fi
36201if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036202 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036203Usually this means the macro was only invoked conditionally." "$LINENO" 5
36204fi
36205if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036206 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036207Usually this means the macro was only invoked conditionally." "$LINENO" 5
36208fi
cristyfbb0ef02010-12-19 02:32:11 +000036209if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36210 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36211Usually this means the macro was only invoked conditionally." "$LINENO" 5
36212fi
cristy73bd4a52010-10-05 11:24:23 +000036213if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036214 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036215Usually this means the macro was only invoked conditionally." "$LINENO" 5
36216fi
cristy41cbe8a2011-10-27 01:35:18 +000036217if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36218 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36219Usually this means the macro was only invoked conditionally." "$LINENO" 5
36220fi
cristya054b762012-03-26 23:16:00 +000036221if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36222 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036223Usually this means the macro was only invoked conditionally." "$LINENO" 5
36224fi
cristy73bd4a52010-10-05 11:24:23 +000036225if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036226 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036227Usually this means the macro was only invoked conditionally." "$LINENO" 5
36228fi
36229if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036230 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036231Usually this means the macro was only invoked conditionally." "$LINENO" 5
36232fi
36233if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036234 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036235Usually this means the macro was only invoked conditionally." "$LINENO" 5
36236fi
36237if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036238 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036239Usually this means the macro was only invoked conditionally." "$LINENO" 5
36240fi
cristyb1860752011-03-14 00:27:46 +000036241if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36242 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36243Usually this means the macro was only invoked conditionally." "$LINENO" 5
36244fi
cristy73bd4a52010-10-05 11:24:23 +000036245if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036246 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036247Usually this means the macro was only invoked conditionally." "$LINENO" 5
36248fi
36249if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036250 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036251Usually this means the macro was only invoked conditionally." "$LINENO" 5
36252fi
36253if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036254 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036255Usually this means the macro was only invoked conditionally." "$LINENO" 5
36256fi
36257if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036258 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036259Usually this means the macro was only invoked conditionally." "$LINENO" 5
36260fi
36261if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036262 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036263Usually this means the macro was only invoked conditionally." "$LINENO" 5
36264fi
36265if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036266 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036267Usually this means the macro was only invoked conditionally." "$LINENO" 5
36268fi
36269if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036270 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036271Usually this means the macro was only invoked conditionally." "$LINENO" 5
36272fi
36273if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036274 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036275Usually this means the macro was only invoked conditionally." "$LINENO" 5
36276fi
cristy3ed852e2009-09-05 21:47:34 +000036277
cristyda16f162011-02-19 23:52:17 +000036278: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036279ac_write_fail=0
36280ac_clean_files_save=$ac_clean_files
36281ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036282{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036283$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036284as_write_fail=0
36285cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036286#! $SHELL
36287# Generated by $as_me.
36288# Run this file to recreate the current configuration.
36289# Compiler output produced by configure, useful for debugging
36290# configure, is in config.log if it exists.
36291
36292debug=false
36293ac_cs_recheck=false
36294ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036295
cristy8b350f62009-11-15 23:12:43 +000036296SHELL=\${CONFIG_SHELL-$SHELL}
36297export SHELL
36298_ASEOF
36299cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36300## -------------------- ##
36301## M4sh Initialization. ##
36302## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036303
36304# Be more Bourne compatible
36305DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036306if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036307 emulate sh
36308 NULLCMD=:
36309 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36310 # is contrary to our usage. Disable this feature.
36311 alias -g '${1+"$@"}'='"$@"'
36312 setopt NO_GLOB_SUBST
36313else
cristy8b350f62009-11-15 23:12:43 +000036314 case `(set -o) 2>/dev/null` in #(
36315 *posix*) :
36316 set -o posix ;; #(
36317 *) :
36318 ;;
cristy3ed852e2009-09-05 21:47:34 +000036319esac
cristy3ed852e2009-09-05 21:47:34 +000036320fi
36321
36322
cristy3ed852e2009-09-05 21:47:34 +000036323as_nl='
36324'
36325export as_nl
36326# Printing a long string crashes Solaris 7 /usr/bin/printf.
36327as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36328as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36329as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036330# Prefer a ksh shell builtin over an external printf program on Solaris,
36331# but without wasting forks for bash or zsh.
36332if test -z "$BASH_VERSION$ZSH_VERSION" \
36333 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36334 as_echo='print -r --'
36335 as_echo_n='print -rn --'
36336elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036337 as_echo='printf %s\n'
36338 as_echo_n='printf %s'
36339else
36340 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36341 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36342 as_echo_n='/usr/ucb/echo -n'
36343 else
36344 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36345 as_echo_n_body='eval
36346 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036347 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036348 *"$as_nl"*)
36349 expr "X$arg" : "X\\(.*\\)$as_nl";
36350 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36351 esac;
36352 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36353 '
36354 export as_echo_n_body
36355 as_echo_n='sh -c $as_echo_n_body as_echo'
36356 fi
36357 export as_echo_body
36358 as_echo='sh -c $as_echo_body as_echo'
36359fi
36360
36361# The user is always right.
36362if test "${PATH_SEPARATOR+set}" != set; then
36363 PATH_SEPARATOR=:
36364 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36365 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36366 PATH_SEPARATOR=';'
36367 }
36368fi
36369
cristy3ed852e2009-09-05 21:47:34 +000036370
36371# IFS
36372# We need space, tab and new line, in precisely that order. Quoting is
36373# there to prevent editors from complaining about space-tab.
36374# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36375# splitting by setting IFS to empty value.)
36376IFS=" "" $as_nl"
36377
36378# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036379as_myself=
cristy8b350f62009-11-15 23:12:43 +000036380case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036381 *[\\/]* ) as_myself=$0 ;;
36382 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36383for as_dir in $PATH
36384do
36385 IFS=$as_save_IFS
36386 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036387 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36388 done
cristy3ed852e2009-09-05 21:47:34 +000036389IFS=$as_save_IFS
36390
36391 ;;
36392esac
36393# We did not find ourselves, most probably we were run as `sh COMMAND'
36394# in which case we are not to be found in the path.
36395if test "x$as_myself" = x; then
36396 as_myself=$0
36397fi
36398if test ! -f "$as_myself"; then
36399 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036400 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036401fi
36402
cristy8b350f62009-11-15 23:12:43 +000036403# Unset variables that we do not need and which cause bugs (e.g. in
36404# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36405# suppresses any "Segmentation fault" message there. '((' could
36406# trigger a bug in pdksh 5.2.14.
36407for as_var in BASH_ENV ENV MAIL MAILPATH
36408do eval test x\${$as_var+set} = xset \
36409 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036410done
36411PS1='$ '
36412PS2='> '
36413PS4='+ '
36414
36415# NLS nuisances.
36416LC_ALL=C
36417export LC_ALL
36418LANGUAGE=C
36419export LANGUAGE
36420
cristy8b350f62009-11-15 23:12:43 +000036421# CDPATH.
36422(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36423
36424
cristy98dddb52010-11-04 00:30:15 +000036425# as_fn_error STATUS ERROR [LINENO LOG_FD]
36426# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036427# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36428# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036429# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036430as_fn_error ()
36431{
cristy98dddb52010-11-04 00:30:15 +000036432 as_status=$1; test $as_status -eq 0 && as_status=1
36433 if test "$4"; then
36434 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36435 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036436 fi
cristy98dddb52010-11-04 00:30:15 +000036437 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036438 as_fn_exit $as_status
36439} # as_fn_error
36440
36441
36442# as_fn_set_status STATUS
36443# -----------------------
36444# Set $? to STATUS, without forking.
36445as_fn_set_status ()
36446{
36447 return $1
36448} # as_fn_set_status
36449
36450# as_fn_exit STATUS
36451# -----------------
36452# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36453as_fn_exit ()
36454{
36455 set +e
36456 as_fn_set_status $1
36457 exit $1
36458} # as_fn_exit
36459
36460# as_fn_unset VAR
36461# ---------------
36462# Portably unset VAR.
36463as_fn_unset ()
36464{
36465 { eval $1=; unset $1;}
36466}
36467as_unset=as_fn_unset
36468# as_fn_append VAR VALUE
36469# ----------------------
36470# Append the text in VALUE to the end of the definition contained in VAR. Take
36471# advantage of any shell optimizations that allow amortized linear growth over
36472# repeated appends, instead of the typical quadratic growth present in naive
36473# implementations.
36474if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36475 eval 'as_fn_append ()
36476 {
36477 eval $1+=\$2
36478 }'
36479else
36480 as_fn_append ()
36481 {
36482 eval $1=\$$1\$2
36483 }
36484fi # as_fn_append
36485
36486# as_fn_arith ARG...
36487# ------------------
36488# Perform arithmetic evaluation on the ARGs, and store the result in the
36489# global $as_val. Take advantage of shells that can avoid forks. The arguments
36490# must be portable across $(()) and expr.
36491if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36492 eval 'as_fn_arith ()
36493 {
36494 as_val=$(( $* ))
36495 }'
36496else
36497 as_fn_arith ()
36498 {
36499 as_val=`expr "$@" || test $? -eq 1`
36500 }
36501fi # as_fn_arith
36502
36503
cristy3ed852e2009-09-05 21:47:34 +000036504if expr a : '\(a\)' >/dev/null 2>&1 &&
36505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36506 as_expr=expr
36507else
36508 as_expr=false
36509fi
36510
36511if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36512 as_basename=basename
36513else
36514 as_basename=false
36515fi
36516
cristy8b350f62009-11-15 23:12:43 +000036517if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36518 as_dirname=dirname
36519else
36520 as_dirname=false
36521fi
cristy3ed852e2009-09-05 21:47:34 +000036522
cristy3ed852e2009-09-05 21:47:34 +000036523as_me=`$as_basename -- "$0" ||
36524$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36525 X"$0" : 'X\(//\)$' \| \
36526 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36527$as_echo X/"$0" |
36528 sed '/^.*\/\([^/][^/]*\)\/*$/{
36529 s//\1/
36530 q
36531 }
36532 /^X\/\(\/\/\)$/{
36533 s//\1/
36534 q
36535 }
36536 /^X\/\(\/\).*/{
36537 s//\1/
36538 q
36539 }
36540 s/.*/./; q'`
36541
cristy8b350f62009-11-15 23:12:43 +000036542# Avoid depending upon Character Ranges.
36543as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36544as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36545as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36546as_cr_digits='0123456789'
36547as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036548
36549ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036550case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036551-n*)
cristy8b350f62009-11-15 23:12:43 +000036552 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036553 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036554 xy) ECHO_C='\c';;
36555 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36556 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036557 esac;;
36558*)
36559 ECHO_N='-n';;
36560esac
cristy3ed852e2009-09-05 21:47:34 +000036561
36562rm -f conf$$ conf$$.exe conf$$.file
36563if test -d conf$$.dir; then
36564 rm -f conf$$.dir/conf$$.file
36565else
36566 rm -f conf$$.dir
36567 mkdir conf$$.dir 2>/dev/null
36568fi
36569if (echo >conf$$.file) 2>/dev/null; then
36570 if ln -s conf$$.file conf$$ 2>/dev/null; then
36571 as_ln_s='ln -s'
36572 # ... but there are two gotchas:
36573 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36574 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036575 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036576 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036577 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036578 elif ln conf$$.file conf$$ 2>/dev/null; then
36579 as_ln_s=ln
36580 else
cristy14fefe52012-05-21 00:59:18 +000036581 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036582 fi
36583else
cristy14fefe52012-05-21 00:59:18 +000036584 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036585fi
36586rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36587rmdir conf$$.dir 2>/dev/null
36588
cristy8b350f62009-11-15 23:12:43 +000036589
36590# as_fn_mkdir_p
36591# -------------
36592# Create "$as_dir" as a directory, including parents if necessary.
36593as_fn_mkdir_p ()
36594{
36595
36596 case $as_dir in #(
36597 -*) as_dir=./$as_dir;;
36598 esac
36599 test -d "$as_dir" || eval $as_mkdir_p || {
36600 as_dirs=
36601 while :; do
36602 case $as_dir in #(
36603 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36604 *) as_qdir=$as_dir;;
36605 esac
36606 as_dirs="'$as_qdir' $as_dirs"
36607 as_dir=`$as_dirname -- "$as_dir" ||
36608$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36609 X"$as_dir" : 'X\(//\)[^/]' \| \
36610 X"$as_dir" : 'X\(//\)$' \| \
36611 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36612$as_echo X"$as_dir" |
36613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36614 s//\1/
36615 q
36616 }
36617 /^X\(\/\/\)[^/].*/{
36618 s//\1/
36619 q
36620 }
36621 /^X\(\/\/\)$/{
36622 s//\1/
36623 q
36624 }
36625 /^X\(\/\).*/{
36626 s//\1/
36627 q
36628 }
36629 s/.*/./; q'`
36630 test -d "$as_dir" && break
36631 done
36632 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036633 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036634
36635
36636} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036637if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036638 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036639else
36640 test -d ./-p && rmdir ./-p
36641 as_mkdir_p=false
36642fi
36643
cristy14fefe52012-05-21 00:59:18 +000036644
36645# as_fn_executable_p FILE
36646# -----------------------
36647# Test if FILE is an executable regular file.
36648as_fn_executable_p ()
36649{
36650 test -f "$1" && test -x "$1"
36651} # as_fn_executable_p
36652as_test_x='test -x'
36653as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036654
36655# Sed expression to map a string onto a valid CPP name.
36656as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36657
36658# Sed expression to map a string onto a valid variable name.
36659as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36660
36661
36662exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036663## ----------------------------------- ##
36664## Main body of $CONFIG_STATUS script. ##
36665## ----------------------------------- ##
36666_ASEOF
36667test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036668
cristy8b350f62009-11-15 23:12:43 +000036669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36670# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036671# report actual input values of CONFIG_FILES etc. instead of their
36672# values after options handling.
36673ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036674This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036675generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036676
36677 CONFIG_FILES = $CONFIG_FILES
36678 CONFIG_HEADERS = $CONFIG_HEADERS
36679 CONFIG_LINKS = $CONFIG_LINKS
36680 CONFIG_COMMANDS = $CONFIG_COMMANDS
36681 $ $0 $@
36682
36683on `(hostname || uname -n) 2>/dev/null | sed 1q`
36684"
36685
36686_ACEOF
36687
36688case $ac_config_files in *"
36689"*) set x $ac_config_files; shift; ac_config_files=$*;;
36690esac
36691
36692case $ac_config_headers in *"
36693"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36694esac
36695
36696
36697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36698# Files that config.status was made for.
36699config_files="$ac_config_files"
36700config_headers="$ac_config_headers"
36701config_commands="$ac_config_commands"
36702
36703_ACEOF
36704
36705cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36706ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036707\`$as_me' instantiates files and other configuration actions
36708from templates according to the current configuration. Unless the files
36709and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036710
cristy8b350f62009-11-15 23:12:43 +000036711Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036712
36713 -h, --help print this help, then exit
36714 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036715 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036716 -q, --quiet, --silent
36717 do not print progress messages
36718 -d, --debug don't remove temporary files
36719 --recheck update $as_me by reconfiguring in the same conditions
36720 --file=FILE[:TEMPLATE]
36721 instantiate the configuration file FILE
36722 --header=FILE[:TEMPLATE]
36723 instantiate the configuration header FILE
36724
36725Configuration files:
36726$config_files
36727
36728Configuration headers:
36729$config_headers
36730
36731Configuration commands:
36732$config_commands
36733
cristy8b350f62009-11-15 23:12:43 +000036734Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036735
36736_ACEOF
36737cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036738ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036739ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036740ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036741configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036742 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036743
cristy14fefe52012-05-21 00:59:18 +000036744Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036745This config.status script is free software; the Free Software Foundation
36746gives unlimited permission to copy, distribute and modify it."
36747
36748ac_pwd='$ac_pwd'
36749srcdir='$srcdir'
36750INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036751MKDIR_P='$MKDIR_P'
36752AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036753test -n "\$AWK" || AWK=awk
36754_ACEOF
36755
36756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36757# The default lists apply if the user does not specify any file.
36758ac_need_defaults=:
36759while test $# != 0
36760do
36761 case $1 in
cristyda16f162011-02-19 23:52:17 +000036762 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036763 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36764 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36765 ac_shift=:
36766 ;;
cristyda16f162011-02-19 23:52:17 +000036767 --*=)
36768 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36769 ac_optarg=
36770 ac_shift=:
36771 ;;
cristy3ed852e2009-09-05 21:47:34 +000036772 *)
36773 ac_option=$1
36774 ac_optarg=$2
36775 ac_shift=shift
36776 ;;
36777 esac
36778
36779 case $ac_option in
36780 # Handling of the options.
36781 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36782 ac_cs_recheck=: ;;
36783 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36784 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036785 --config | --confi | --conf | --con | --co | --c )
36786 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036787 --debug | --debu | --deb | --de | --d | -d )
36788 debug=: ;;
36789 --file | --fil | --fi | --f )
36790 $ac_shift
36791 case $ac_optarg in
36792 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036793 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036794 esac
cristy8b350f62009-11-15 23:12:43 +000036795 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036796 ac_need_defaults=false;;
36797 --header | --heade | --head | --hea )
36798 $ac_shift
36799 case $ac_optarg in
36800 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36801 esac
cristy8b350f62009-11-15 23:12:43 +000036802 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036803 ac_need_defaults=false;;
36804 --he | --h)
36805 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036806 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036807Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036808 --help | --hel | -h )
36809 $as_echo "$ac_cs_usage"; exit ;;
36810 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36811 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36812 ac_cs_silent=: ;;
36813
36814 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036815 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036816Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036817
cristy8b350f62009-11-15 23:12:43 +000036818 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036819 ac_need_defaults=false ;;
36820
36821 esac
36822 shift
36823done
36824
36825ac_configure_extra_args=
36826
36827if $ac_cs_silent; then
36828 exec 6>/dev/null
36829 ac_configure_extra_args="$ac_configure_extra_args --silent"
36830fi
36831
36832_ACEOF
36833cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36834if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036835 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036836 shift
36837 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36838 CONFIG_SHELL='$SHELL'
36839 export CONFIG_SHELL
36840 exec "\$@"
36841fi
36842
36843_ACEOF
36844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36845exec 5>>config.log
36846{
36847 echo
36848 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36849## Running $as_me. ##
36850_ASBOX
36851 $as_echo "$ac_log"
36852} >&5
36853
36854_ACEOF
36855cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036856#
36857# INIT-COMMANDS
36858#
36859PACKAGE="$PACKAGE"
36860AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36861
36862
36863# The HP-UX ksh and POSIX shell print the target directory to stdout
36864# if CDPATH is set.
36865(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36866
36867sed_quote_subst='$sed_quote_subst'
36868double_quote_subst='$double_quote_subst'
36869delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036870SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36871Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36872GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36873EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36874FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36875SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36876ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36877LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36878macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36879macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36880AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36881DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36882OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36883enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36884enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36885pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36886enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036887PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036888host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36889host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36890host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36891build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36892build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36893build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36894NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36895LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36896max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36897ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36898exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36899lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36900lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36901lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036902lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36903lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036904reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36905reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36906deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36907file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036908file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36909want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36910sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036911AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36912AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036913archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036914STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36915RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36916old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36917old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36918old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36919lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36920CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36921CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36922compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36923GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36924lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36925lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36926lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36927lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036928nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36929lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036930objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36931MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36932lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036933lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036934lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036935lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36936lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36937need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036938MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036939DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36940NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36941LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36942OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36943OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36944libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36945shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36946extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36947archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36948enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36949export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36950whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36951compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36952old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36953old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36954archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36955archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36956module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36957module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36958with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36959allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36960no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36961hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036962hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36963hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36964hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36965hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36966hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36967hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36968inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36969link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036970always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36971export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36972exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36973include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36974prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036975postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036976file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36977variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36978need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36979need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36980version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36981runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36982shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36983shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36984libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36985library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36986soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36987install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36988postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36989postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36990finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36991finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36992hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36993sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36994sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36995hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36996enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36997enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36998enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36999old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37000striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37001compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
37002predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
37003postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
37004predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
37005postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
37006compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
37007LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
37008reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
37009reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37010old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37011compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
37012GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
37013lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037014lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037015lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037016lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
37017lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
37018archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
37019enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
37020export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37021whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
37022compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
37023old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37024old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37025archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37026archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37027module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37028module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37029with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
37030allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37031no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
37032hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037033hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
37034hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
37035hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
37036hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
37037hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
37038hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
37039inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
37040link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037041always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
37042export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
37043exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37044include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
37045prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000037046postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000037047file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
37048hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
37049compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
37050predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37051postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
37052predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
37053postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
37054compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000037055
37056LTCC='$LTCC'
37057LTCFLAGS='$LTCFLAGS'
37058compiler='$compiler_DEFAULT'
37059
cristy0c60a692010-11-04 01:09:47 +000037060# A function that is used when there is no print builtin or printf.
37061func_fallback_echo ()
37062{
37063 eval 'cat <<_LTECHO_EOF
37064\$1
37065_LTECHO_EOF'
37066}
37067
cristy73bd4a52010-10-05 11:24:23 +000037068# Quote evaled strings.
37069for var in SED \
37070GREP \
37071EGREP \
37072FGREP \
cristy0c60a692010-11-04 01:09:47 +000037073SHELL \
37074ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037075LD \
cristy0c60a692010-11-04 01:09:47 +000037076AS \
37077DLLTOOL \
37078OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037079PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037080NM \
37081LN_S \
37082lt_SP2NL \
37083lt_NL2SP \
37084reload_flag \
37085deplibs_check_method \
37086file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037087file_magic_glob \
37088want_nocaseglob \
37089sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037090AR \
37091AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037092archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037093STRIP \
37094RANLIB \
37095CC \
37096CFLAGS \
37097compiler \
37098lt_cv_sys_global_symbol_pipe \
37099lt_cv_sys_global_symbol_to_cdecl \
37100lt_cv_sys_global_symbol_to_c_name_address \
37101lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037102nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037103lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037104lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037105lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037106lt_prog_compiler_static \
37107lt_cv_prog_compiler_c_o \
37108need_locks \
cristyda16f162011-02-19 23:52:17 +000037109MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037110DSYMUTIL \
37111NMEDIT \
37112LIPO \
37113OTOOL \
37114OTOOL64 \
37115shrext_cmds \
37116export_dynamic_flag_spec \
37117whole_archive_flag_spec \
37118compiler_needs_object \
37119with_gnu_ld \
37120allow_undefined_flag \
37121no_undefined_flag \
37122hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037123hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037124exclude_expsyms \
37125include_expsyms \
37126file_list_spec \
37127variables_saved_for_relink \
37128libname_spec \
37129library_names_spec \
37130soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037131install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037132finish_eval \
37133old_striplib \
37134striplib \
37135compiler_lib_search_dirs \
37136predep_objects \
37137postdep_objects \
37138predeps \
37139postdeps \
37140compiler_lib_search_path \
37141LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037142reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037143compiler_CXX \
37144lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037145lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037146lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037147lt_prog_compiler_static_CXX \
37148lt_cv_prog_compiler_c_o_CXX \
37149export_dynamic_flag_spec_CXX \
37150whole_archive_flag_spec_CXX \
37151compiler_needs_object_CXX \
37152with_gnu_ld_CXX \
37153allow_undefined_flag_CXX \
37154no_undefined_flag_CXX \
37155hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037156hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037157exclude_expsyms_CXX \
37158include_expsyms_CXX \
37159file_list_spec_CXX \
37160compiler_lib_search_dirs_CXX \
37161predep_objects_CXX \
37162postdep_objects_CXX \
37163predeps_CXX \
37164postdeps_CXX \
37165compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037166 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037167 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037168 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037169 ;;
37170 *)
37171 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37172 ;;
37173 esac
37174done
37175
37176# Double-quote double-evaled strings.
37177for var in reload_cmds \
37178old_postinstall_cmds \
37179old_postuninstall_cmds \
37180old_archive_cmds \
37181extract_expsyms_cmds \
37182old_archive_from_new_cmds \
37183old_archive_from_expsyms_cmds \
37184archive_cmds \
37185archive_expsym_cmds \
37186module_cmds \
37187module_expsym_cmds \
37188export_symbols_cmds \
37189prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037190postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037191postinstall_cmds \
37192postuninstall_cmds \
37193finish_cmds \
37194sys_lib_search_path_spec \
37195sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037196reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037197old_archive_cmds_CXX \
37198old_archive_from_new_cmds_CXX \
37199old_archive_from_expsyms_cmds_CXX \
37200archive_cmds_CXX \
37201archive_expsym_cmds_CXX \
37202module_cmds_CXX \
37203module_expsym_cmds_CXX \
37204export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037205prelink_cmds_CXX \
37206postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037207 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037208 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037209 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037210 ;;
37211 *)
37212 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37213 ;;
37214 esac
37215done
37216
cristy73bd4a52010-10-05 11:24:23 +000037217ac_aux_dir='$ac_aux_dir'
37218xsi_shell='$xsi_shell'
37219lt_shell_append='$lt_shell_append'
37220
37221# See if we are running on zsh, and set the options which allow our
37222# commands through without removal of \ escapes INIT.
37223if test -n "\${ZSH_VERSION+set}" ; then
37224 setopt NO_GLOB_SUBST
37225fi
37226
37227
37228 PACKAGE='$PACKAGE'
37229 VERSION='$VERSION'
37230 TIMESTAMP='$TIMESTAMP'
37231 RM='$RM'
37232 ofile='$ofile'
37233
37234
37235
37236
37237
37238
cristy3ed852e2009-09-05 21:47:34 +000037239_ACEOF
37240
37241cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37242
37243# Handling of arguments.
37244for ac_config_target in $ac_config_targets
37245do
37246 case $ac_config_target in
37247 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037248 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037249 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037250 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37251 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37252 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37253 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37254 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037255 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037256 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037257 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37258 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37259 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37260 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37261 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037262 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037263 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37264 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037265 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37266 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37267 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037268 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37269 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37270 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37271 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37272 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37273 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37274 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37275 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37276 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37277 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37278 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37279 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37280 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37281 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37282 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37283 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37284 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037285 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37286 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037287 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37288 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037289 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037290 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037291 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037292 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037293 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37294 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37295
cristy98dddb52010-11-04 00:30:15 +000037296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037297 esac
37298done
37299
37300
37301# If the user did not use the arguments to specify the items to instantiate,
37302# then the envvar interface is used. Set only those that are not.
37303# We use the long form for the default assignment because of an extremely
37304# bizarre bug on SunOS 4.1.3.
37305if $ac_need_defaults; then
37306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37308 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37309fi
37310
37311# Have a temporary directory for convenience. Make it in the build tree
37312# simply because there is no reason against having it here, and in addition,
37313# creating and moving files from /tmp can sometimes cause problems.
37314# Hook for its removal unless debugging.
37315# Note that there is a small window in which the directory will not be cleaned:
37316# after its creation but before its name has been assigned to `$tmp'.
37317$debug ||
37318{
cristyda16f162011-02-19 23:52:17 +000037319 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037320 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037321 : "${ac_tmp:=$tmp}"
37322 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037323' 0
cristy8b350f62009-11-15 23:12:43 +000037324 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037325}
37326# Create a (secure) tmp directory for tmp files.
37327
37328{
37329 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037330 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037331} ||
37332{
37333 tmp=./conf$$-$RANDOM
37334 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037335} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037336ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037337
37338# Set up the scripts for CONFIG_FILES section.
37339# No need to generate them if there are no CONFIG_FILES.
37340# This happens for instance with `./config.status config.h'.
37341if test -n "$CONFIG_FILES"; then
37342
37343
cristy8b350f62009-11-15 23:12:43 +000037344ac_cr=`echo X | tr X '\015'`
37345# On cygwin, bash can eat \r inside `` if the user requested igncr.
37346# But we know of no other shell where ac_cr would be empty at this
37347# point, so we can use a bashism as a fallback.
37348if test "x$ac_cr" = x; then
37349 eval ac_cr=\$\'\\r\'
37350fi
cristy3ed852e2009-09-05 21:47:34 +000037351ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37352if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037353 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037354else
37355 ac_cs_awk_cr=$ac_cr
37356fi
37357
cristyda16f162011-02-19 23:52:17 +000037358echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037359_ACEOF
37360
37361
37362{
37363 echo "cat >conf$$subs.awk <<_ACEOF" &&
37364 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37365 echo "_ACEOF"
37366} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037367 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37368ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037369ac_delim='%!_!# '
37370for ac_last_try in false false false false false :; do
37371 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037372 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037373
37374 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37375 if test $ac_delim_n = $ac_delim_num; then
37376 break
37377 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037378 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037379 else
37380 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37381 fi
37382done
37383rm -f conf$$subs.sh
37384
37385cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037386cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037387_ACEOF
37388sed -n '
37389h
37390s/^/S["/; s/!.*/"]=/
37391p
37392g
37393s/^[^!]*!//
37394:repl
37395t repl
37396s/'"$ac_delim"'$//
37397t delim
37398:nl
37399h
cristycd4c5312009-11-22 01:19:08 +000037400s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037401t more1
37402s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37403p
37404n
37405b repl
37406:more1
37407s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37408p
37409g
37410s/.\{148\}//
37411t nl
37412:delim
37413h
cristycd4c5312009-11-22 01:19:08 +000037414s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037415t more2
37416s/["\\]/\\&/g; s/^/"/; s/$/"/
37417p
37418b
37419:more2
37420s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37421p
37422g
37423s/.\{148\}//
37424t delim
37425' <conf$$subs.awk | sed '
37426/^[^""]/{
37427 N
37428 s/\n//
37429}
37430' >>$CONFIG_STATUS || ac_write_fail=1
37431rm -f conf$$subs.awk
37432cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37433_ACAWK
cristyda16f162011-02-19 23:52:17 +000037434cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037435 for (key in S) S_is_set[key] = 1
37436 FS = ""
37437
37438}
37439{
37440 line = $ 0
37441 nfields = split(line, field, "@")
37442 substed = 0
37443 len = length(field[1])
37444 for (i = 2; i < nfields; i++) {
37445 key = field[i]
37446 keylen = length(key)
37447 if (S_is_set[key]) {
37448 value = S[key]
37449 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37450 len += length(value) + length(field[++i])
37451 substed = 1
37452 } else
37453 len += 1 + keylen
37454 }
37455
37456 print line
37457}
37458
37459_ACAWK
37460_ACEOF
37461cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37462if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37463 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37464else
37465 cat
cristyda16f162011-02-19 23:52:17 +000037466fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037467 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037468_ACEOF
37469
cristy98dddb52010-11-04 00:30:15 +000037470# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37471# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037472# trailing colons and then remove the whole line if VPATH becomes empty
37473# (actually we leave an empty line to preserve line numbers).
37474if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037475 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37476h
37477s///
37478s/^/:/
37479s/[ ]*$/:/
37480s/:\$(srcdir):/:/g
37481s/:\${srcdir}:/:/g
37482s/:@srcdir@:/:/g
37483s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037484s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037485x
37486s/\(=[ ]*\).*/\1/
37487G
37488s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037489s/^[^=]*=[ ]*$//
37490}'
37491fi
37492
37493cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37494fi # test -n "$CONFIG_FILES"
37495
37496# Set up the scripts for CONFIG_HEADERS section.
37497# No need to generate them if there are no CONFIG_HEADERS.
37498# This happens for instance with `./config.status Makefile'.
37499if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037500cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037501BEGIN {
37502_ACEOF
37503
37504# Transform confdefs.h into an awk script `defines.awk', embedded as
37505# here-document in config.status, that substitutes the proper values into
37506# config.h.in to produce config.h.
37507
37508# Create a delimiter string that does not exist in confdefs.h, to ease
37509# handling of long lines.
37510ac_delim='%!_!# '
37511for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037512 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37513 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037514 break
37515 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037516 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037517 else
37518 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37519 fi
37520done
37521
37522# For the awk script, D is an array of macro values keyed by name,
37523# likewise P contains macro parameters if any. Preserve backslash
37524# newline sequences.
37525
37526ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37527sed -n '
37528s/.\{148\}/&'"$ac_delim"'/g
37529t rset
37530:rset
37531s/^[ ]*#[ ]*define[ ][ ]*/ /
37532t def
37533d
37534:def
37535s/\\$//
37536t bsnl
37537s/["\\]/\\&/g
37538s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37539D["\1"]=" \3"/p
37540s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37541d
37542:bsnl
37543s/["\\]/\\&/g
37544s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37545D["\1"]=" \3\\\\\\n"\\/p
37546t cont
37547s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37548t cont
37549d
37550:cont
37551n
37552s/.\{148\}/&'"$ac_delim"'/g
37553t clear
37554:clear
37555s/\\$//
37556t bsnlc
37557s/["\\]/\\&/g; s/^/"/; s/$/"/p
37558d
37559:bsnlc
37560s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37561b cont
37562' <confdefs.h | sed '
37563s/'"$ac_delim"'/"\\\
37564"/g' >>$CONFIG_STATUS || ac_write_fail=1
37565
37566cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37567 for (key in D) D_is_set[key] = 1
37568 FS = ""
37569}
37570/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37571 line = \$ 0
37572 split(line, arg, " ")
37573 if (arg[1] == "#") {
37574 defundef = arg[2]
37575 mac1 = arg[3]
37576 } else {
37577 defundef = substr(arg[1], 2)
37578 mac1 = arg[2]
37579 }
37580 split(mac1, mac2, "(") #)
37581 macro = mac2[1]
37582 prefix = substr(line, 1, index(line, defundef) - 1)
37583 if (D_is_set[macro]) {
37584 # Preserve the white space surrounding the "#".
37585 print prefix "define", macro P[macro] D[macro]
37586 next
37587 } else {
37588 # Replace #undef with comments. This is necessary, for example,
37589 # in the case of _POSIX_SOURCE, which is predefined and required
37590 # on some systems where configure will not decide to define it.
37591 if (defundef == "undef") {
37592 print "/*", prefix defundef, macro, "*/"
37593 next
37594 }
37595 }
37596}
37597{ print }
37598_ACAWK
37599_ACEOF
37600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037601 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037602fi # test -n "$CONFIG_HEADERS"
37603
37604
37605eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37606shift
37607for ac_tag
37608do
37609 case $ac_tag in
37610 :[FHLC]) ac_mode=$ac_tag; continue;;
37611 esac
37612 case $ac_mode$ac_tag in
37613 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037614 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037615 :[FH]-) ac_tag=-:-;;
37616 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37617 esac
37618 ac_save_IFS=$IFS
37619 IFS=:
37620 set x $ac_tag
37621 IFS=$ac_save_IFS
37622 shift
37623 ac_file=$1
37624 shift
37625
37626 case $ac_mode in
37627 :L) ac_source=$1;;
37628 :[FH])
37629 ac_file_inputs=
37630 for ac_f
37631 do
37632 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037633 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037634 *) # Look for the file first in the build tree, then in the source tree
37635 # (if the path is not absolute). The absolute path cannot be DOS-style,
37636 # because $ac_f cannot contain `:'.
37637 test -f "$ac_f" ||
37638 case $ac_f in
37639 [\\/$]*) false;;
37640 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37641 esac ||
cristy98dddb52010-11-04 00:30:15 +000037642 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037643 esac
37644 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037645 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037646 done
37647
37648 # Let's still pretend it is `configure' which instantiates (i.e., don't
37649 # use $as_me), people would be surprised to read:
37650 # /* config.h. Generated by config.status. */
37651 configure_input='Generated from '`
37652 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37653 `' by configure.'
37654 if test x"$ac_file" != x-; then
37655 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037656 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037657$as_echo "$as_me: creating $ac_file" >&6;}
37658 fi
37659 # Neutralize special characters interpreted by sed in replacement strings.
37660 case $configure_input in #(
37661 *\&* | *\|* | *\\* )
37662 ac_sed_conf_input=`$as_echo "$configure_input" |
37663 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37664 *) ac_sed_conf_input=$configure_input;;
37665 esac
37666
37667 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037668 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037669 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037670 esac
37671 ;;
37672 esac
37673
37674 ac_dir=`$as_dirname -- "$ac_file" ||
37675$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37676 X"$ac_file" : 'X\(//\)[^/]' \| \
37677 X"$ac_file" : 'X\(//\)$' \| \
37678 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37679$as_echo X"$ac_file" |
37680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37681 s//\1/
37682 q
37683 }
37684 /^X\(\/\/\)[^/].*/{
37685 s//\1/
37686 q
37687 }
37688 /^X\(\/\/\)$/{
37689 s//\1/
37690 q
37691 }
37692 /^X\(\/\).*/{
37693 s//\1/
37694 q
37695 }
37696 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037697 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037698 ac_builddir=.
37699
37700case "$ac_dir" in
37701.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37702*)
37703 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37704 # A ".." for each directory in $ac_dir_suffix.
37705 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37706 case $ac_top_builddir_sub in
37707 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37708 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37709 esac ;;
37710esac
37711ac_abs_top_builddir=$ac_pwd
37712ac_abs_builddir=$ac_pwd$ac_dir_suffix
37713# for backward compatibility:
37714ac_top_builddir=$ac_top_build_prefix
37715
37716case $srcdir in
37717 .) # We are building in place.
37718 ac_srcdir=.
37719 ac_top_srcdir=$ac_top_builddir_sub
37720 ac_abs_top_srcdir=$ac_pwd ;;
37721 [\\/]* | ?:[\\/]* ) # Absolute name.
37722 ac_srcdir=$srcdir$ac_dir_suffix;
37723 ac_top_srcdir=$srcdir
37724 ac_abs_top_srcdir=$srcdir ;;
37725 *) # Relative name.
37726 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37727 ac_top_srcdir=$ac_top_build_prefix$srcdir
37728 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37729esac
37730ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37731
37732
37733 case $ac_mode in
37734 :F)
37735 #
37736 # CONFIG_FILE
37737 #
37738
37739 case $INSTALL in
37740 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37741 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37742 esac
cristy73bd4a52010-10-05 11:24:23 +000037743 ac_MKDIR_P=$MKDIR_P
37744 case $MKDIR_P in
37745 [\\/$]* | ?:[\\/]* ) ;;
37746 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37747 esac
cristy3ed852e2009-09-05 21:47:34 +000037748_ACEOF
37749
37750cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37751# If the template does not know about datarootdir, expand it.
37752# FIXME: This hack should be removed a few years after 2.60.
37753ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037754ac_sed_dataroot='
37755/datarootdir/ {
37756 p
37757 q
37758}
37759/@datadir@/p
37760/@docdir@/p
37761/@infodir@/p
37762/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037763/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037764case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37765*datarootdir*) ac_datarootdir_seen=yes;;
37766*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037768$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37769_ACEOF
37770cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37771 ac_datarootdir_hack='
37772 s&@datadir@&$datadir&g
37773 s&@docdir@&$docdir&g
37774 s&@infodir@&$infodir&g
37775 s&@localedir@&$localedir&g
37776 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037777 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037778esac
37779_ACEOF
37780
37781# Neutralize VPATH when `$srcdir' = `.'.
37782# Shell code in configure.ac might set extrasub.
37783# FIXME: do we really want to maintain this feature?
37784cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37785ac_sed_extra="$ac_vpsub
37786$extrasub
37787_ACEOF
37788cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37789:t
37790/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37791s|@configure_input@|$ac_sed_conf_input|;t t
37792s&@top_builddir@&$ac_top_builddir_sub&;t t
37793s&@top_build_prefix@&$ac_top_build_prefix&;t t
37794s&@srcdir@&$ac_srcdir&;t t
37795s&@abs_srcdir@&$ac_abs_srcdir&;t t
37796s&@top_srcdir@&$ac_top_srcdir&;t t
37797s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37798s&@builddir@&$ac_builddir&;t t
37799s&@abs_builddir@&$ac_abs_builddir&;t t
37800s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37801s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037802s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037803$ac_datarootdir_hack
37804"
cristyda16f162011-02-19 23:52:17 +000037805eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37806 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037807
37808test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037809 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37810 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37811 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037813which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037814$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037815which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037816
cristyda16f162011-02-19 23:52:17 +000037817 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037818 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037819 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37820 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037821 esac \
cristy98dddb52010-11-04 00:30:15 +000037822 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037823 ;;
37824 :H)
37825 #
37826 # CONFIG_HEADER
37827 #
37828 if test x"$ac_file" != x-; then
37829 {
37830 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037831 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37832 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037833 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037834 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037835 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037836$as_echo "$as_me: $ac_file is unchanged" >&6;}
37837 else
37838 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037839 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037840 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037841 fi
37842 else
37843 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037844 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037845 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037846 fi
cristy73bd4a52010-10-05 11:24:23 +000037847# Compute "$ac_file"'s index in $config_headers.
37848_am_arg="$ac_file"
37849_am_stamp_count=1
37850for _am_header in $config_headers :; do
37851 case $_am_header in
37852 $_am_arg | $_am_arg:* )
37853 break ;;
37854 * )
37855 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37856 esac
37857done
37858echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37859$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37860 X"$_am_arg" : 'X\(//\)[^/]' \| \
37861 X"$_am_arg" : 'X\(//\)$' \| \
37862 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37863$as_echo X"$_am_arg" |
37864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37865 s//\1/
37866 q
37867 }
37868 /^X\(\/\/\)[^/].*/{
37869 s//\1/
37870 q
37871 }
37872 /^X\(\/\/\)$/{
37873 s//\1/
37874 q
37875 }
37876 /^X\(\/\).*/{
37877 s//\1/
37878 q
37879 }
37880 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037881 ;;
37882
cristy8b350f62009-11-15 23:12:43 +000037883 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037884$as_echo "$as_me: executing $ac_file commands" >&6;}
37885 ;;
37886 esac
37887
37888
37889 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037890 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037891ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37892ac_prefix_conf_PKG=`echo MagickCore`
37893ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37894ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37895ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37896if test ".$ac_prefix_conf_INP" = "."; then
37897 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37898 case "$ac_file" in
37899 *.h) ac_prefix_conf_INP=$ac_file ;;
37900 *)
37901 esac
37902 test ".$ac_prefix_conf_INP" != "." && break
37903 done
37904fi
37905if test ".$ac_prefix_conf_INP" = "."; then
37906 case "$ac_prefix_conf_OUT" in
37907 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37908 ;;
37909 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37910 ;;
37911 *) ac_prefix_conf_INP=config.h
37912 ;;
37913 esac
37914fi
37915if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037916 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037917else
37918 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37919 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37920 fi fi
37921 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37922$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37923 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037924 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37925 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37926 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37927 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37928 $as_echo "#endif/" >> conftest.prefix
37929 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37930 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37931 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037932 # now executing _script on _DEF input to create _OUT output file
37933 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37934 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37935 echo ' ' >>$tmp/pconfig.h
37936 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37937
37938 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37939 echo ' ' >>$tmp/pconfig.h
37940 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37941 echo "#endif" >>$tmp/pconfig.h
37942 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37943 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37944$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37945 else
37946 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37947$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37948 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37949 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37950 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37951$as_echo X"$ac_prefix_conf_OUT" |
37952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37953 s//\1/
37954 q
37955 }
37956 /^X\(\/\/\)[^/].*/{
37957 s//\1/
37958 q
37959 }
37960 /^X\(\/\/\)$/{
37961 s//\1/
37962 q
37963 }
37964 /^X\(\/\).*/{
37965 s//\1/
37966 q
37967 }
37968 s/.*/./; q'`
37969 as_dir="$ac_dir"; as_fn_mkdir_p
37970 rm -f "$ac_prefix_conf_OUT"
37971 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37972 fi
37973 cp conftest.prefix _configs.sed
37974 else
cristy98dddb52010-11-04 00:30:15 +000037975 as_fn_error $? "input file $ac_prefix_conf_INP does not exist - skip generating $ac_prefix_conf_OUT" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037976 fi
37977 rm -f conftest.*
37978fi
37979 ;;
37980 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37981 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37982 # are listed without --file. Let's play safe and only enable the eval
37983 # if we detect the quoting.
37984 case $CONFIG_FILES in
37985 *\'*) eval set x "$CONFIG_FILES" ;;
37986 *) set x $CONFIG_FILES ;;
37987 esac
37988 shift
37989 for mf
37990 do
37991 # Strip MF so we end up with the name of the file.
37992 mf=`echo "$mf" | sed -e 's/:.*$//'`
37993 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037994 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037995 # some people rename them; so instead we look at the file content.
37996 # Grep'ing the first line is not enough: some people post-process
37997 # each Makefile.in and add a new line on top of each file to say so.
37998 # Grep'ing the whole file is not good either: AIX grep has a line
37999 # limit of 2048, but all sed's we know have understand at least 4000.
38000 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
38001 dirpart=`$as_dirname -- "$mf" ||
38002$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38003 X"$mf" : 'X\(//\)[^/]' \| \
38004 X"$mf" : 'X\(//\)$' \| \
38005 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
38006$as_echo X"$mf" |
38007 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38008 s//\1/
38009 q
38010 }
38011 /^X\(\/\/\)[^/].*/{
38012 s//\1/
38013 q
38014 }
38015 /^X\(\/\/\)$/{
38016 s//\1/
38017 q
38018 }
38019 /^X\(\/\).*/{
38020 s//\1/
38021 q
38022 }
38023 s/.*/./; q'`
38024 else
38025 continue
38026 fi
38027 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000038028 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000038029 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
38030 test -z "$DEPDIR" && continue
38031 am__include=`sed -n 's/^am__include = //p' < "$mf"`
38032 test -z "am__include" && continue
38033 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000038034 # Find all dependency output files, they are included files with
38035 # $(DEPDIR) in their names. We invoke sed twice because it is the
38036 # simplest approach to changing $(DEPDIR) to its actual value in the
38037 # expansion.
38038 for file in `sed -n "
38039 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000038040 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000038041 # Make sure the directory exists.
38042 test -f "$dirpart/$file" && continue
38043 fdir=`$as_dirname -- "$file" ||
38044$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38045 X"$file" : 'X\(//\)[^/]' \| \
38046 X"$file" : 'X\(//\)$' \| \
38047 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
38048$as_echo X"$file" |
38049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38050 s//\1/
38051 q
38052 }
38053 /^X\(\/\/\)[^/].*/{
38054 s//\1/
38055 q
38056 }
38057 /^X\(\/\/\)$/{
38058 s//\1/
38059 q
38060 }
38061 /^X\(\/\).*/{
38062 s//\1/
38063 q
38064 }
38065 s/.*/./; q'`
38066 as_dir=$dirpart/$fdir; as_fn_mkdir_p
38067 # echo "creating $dirpart/$file"
38068 echo '# dummy' > "$dirpart/$file"
38069 done
38070 done
38071}
38072 ;;
38073 "libtool":C)
38074
38075 # See if we are running on zsh, and set the options which allow our
38076 # commands through without removal of \ escapes.
38077 if test -n "${ZSH_VERSION+set}" ; then
38078 setopt NO_GLOB_SUBST
38079 fi
38080
38081 cfgfile="${ofile}T"
38082 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38083 $RM "$cfgfile"
38084
38085 cat <<_LT_EOF >> "$cfgfile"
38086#! $SHELL
38087
38088# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38089# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38090# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38091# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38092#
38093# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038094# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38095# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038096# Written by Gordon Matzigkeit, 1996
38097#
38098# This file is part of GNU Libtool.
38099#
38100# GNU Libtool is free software; you can redistribute it and/or
38101# modify it under the terms of the GNU General Public License as
38102# published by the Free Software Foundation; either version 2 of
38103# the License, or (at your option) any later version.
38104#
38105# As a special exception to the GNU General Public License,
38106# if you distribute this file as part of a program or library that
38107# is built using GNU Libtool, you may include this file under the
38108# same distribution terms that you use for the rest of that program.
38109#
38110# GNU Libtool is distributed in the hope that it will be useful,
38111# but WITHOUT ANY WARRANTY; without even the implied warranty of
38112# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38113# GNU General Public License for more details.
38114#
38115# You should have received a copy of the GNU General Public License
38116# along with GNU Libtool; see the file COPYING. If not, a copy
38117# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38118# obtained by writing to the Free Software Foundation, Inc.,
38119# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38120
38121
38122# The names of the tagged configurations supported by this script.
38123available_tags="CXX "
38124
38125# ### BEGIN LIBTOOL CONFIG
38126
38127# A sed program that does not truncate output.
38128SED=$lt_SED
38129
38130# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38131Xsed="\$SED -e 1s/^X//"
38132
38133# A grep program that handles long lines.
38134GREP=$lt_GREP
38135
38136# An ERE matcher.
38137EGREP=$lt_EGREP
38138
38139# A literal string matcher.
38140FGREP=$lt_FGREP
38141
cristy0c60a692010-11-04 01:09:47 +000038142# Shell to use when invoking shell scripts.
38143SHELL=$lt_SHELL
38144
38145# An echo program that protects backslashes.
38146ECHO=$lt_ECHO
38147
cristy73bd4a52010-10-05 11:24:23 +000038148# Which release of libtool.m4 was used?
38149macro_version=$macro_version
38150macro_revision=$macro_revision
38151
38152# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038153AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038154
38155# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038156DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038157
38158# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038159OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038160
38161# Whether or not to build shared libraries.
38162build_libtool_libs=$enable_shared
38163
38164# Whether or not to build static libraries.
38165build_old_libs=$enable_static
38166
38167# What type of objects to build.
38168pic_mode=$pic_mode
38169
38170# Whether or not to optimize for fast installation.
38171fast_install=$enable_fast_install
38172
cristy99bd5232011-12-07 14:38:20 +000038173# The PATH separator for the build system.
38174PATH_SEPARATOR=$lt_PATH_SEPARATOR
38175
cristy73bd4a52010-10-05 11:24:23 +000038176# The host system.
38177host_alias=$host_alias
38178host=$host
38179host_os=$host_os
38180
38181# The build system.
38182build_alias=$build_alias
38183build=$build
38184build_os=$build_os
38185
38186# A BSD- or MS-compatible name lister.
38187NM=$lt_NM
38188
38189# Whether we need soft or hard links.
38190LN_S=$lt_LN_S
38191
38192# What is the maximum length of a command?
38193max_cmd_len=$max_cmd_len
38194
38195# Object file suffix (normally "o").
38196objext=$ac_objext
38197
38198# Executable file suffix (normally "").
38199exeext=$exeext
38200
38201# whether the shell understands "unset".
38202lt_unset=$lt_unset
38203
38204# turn spaces into newlines.
38205SP2NL=$lt_lt_SP2NL
38206
38207# turn newlines into spaces.
38208NL2SP=$lt_lt_NL2SP
38209
cristyda16f162011-02-19 23:52:17 +000038210# convert \$build file names to \$host format.
38211to_host_file_cmd=$lt_cv_to_host_file_cmd
38212
38213# convert \$build files to toolchain format.
38214to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38215
cristy73bd4a52010-10-05 11:24:23 +000038216# Method to check whether dependent libraries are shared objects.
38217deplibs_check_method=$lt_deplibs_check_method
38218
cristyda16f162011-02-19 23:52:17 +000038219# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038220file_magic_cmd=$lt_file_magic_cmd
38221
cristyda16f162011-02-19 23:52:17 +000038222# How to find potential files when deplibs_check_method = "file_magic".
38223file_magic_glob=$lt_file_magic_glob
38224
38225# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38226want_nocaseglob=$lt_want_nocaseglob
38227
38228# Command to associate shared and link libraries.
38229sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38230
cristy73bd4a52010-10-05 11:24:23 +000038231# The archiver.
38232AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038233
38234# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038235AR_FLAGS=$lt_AR_FLAGS
38236
cristyda16f162011-02-19 23:52:17 +000038237# How to feed a file listing to the archiver.
38238archiver_list_spec=$lt_archiver_list_spec
38239
cristy73bd4a52010-10-05 11:24:23 +000038240# A symbol stripping program.
38241STRIP=$lt_STRIP
38242
38243# Commands used to install an old-style archive.
38244RANLIB=$lt_RANLIB
38245old_postinstall_cmds=$lt_old_postinstall_cmds
38246old_postuninstall_cmds=$lt_old_postuninstall_cmds
38247
cristy0c60a692010-11-04 01:09:47 +000038248# Whether to use a lock for old archive extraction.
38249lock_old_archive_extraction=$lock_old_archive_extraction
38250
cristy73bd4a52010-10-05 11:24:23 +000038251# A C compiler.
38252LTCC=$lt_CC
38253
38254# LTCC compiler flags.
38255LTCFLAGS=$lt_CFLAGS
38256
38257# Take the output of nm and produce a listing of raw symbols and C names.
38258global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38259
38260# Transform the output of nm in a proper C declaration.
38261global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38262
38263# Transform the output of nm in a C name address pair.
38264global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38265
38266# Transform the output of nm in a C name address pair when lib prefix is needed.
38267global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38268
cristyda16f162011-02-19 23:52:17 +000038269# Specify filename containing input files for \$NM.
38270nm_file_list_spec=$lt_nm_file_list_spec
38271
38272# The root where to search for dependent libraries,and in which our libraries should be installed.
38273lt_sysroot=$lt_sysroot
38274
cristy73bd4a52010-10-05 11:24:23 +000038275# The name of the directory that contains temporary libtool files.
38276objdir=$objdir
38277
cristy73bd4a52010-10-05 11:24:23 +000038278# Used to examine libraries when file_magic_cmd begins with "file".
38279MAGIC_CMD=$MAGIC_CMD
38280
38281# Must we lock files when doing compilation?
38282need_locks=$lt_need_locks
38283
cristyda16f162011-02-19 23:52:17 +000038284# Manifest tool.
38285MANIFEST_TOOL=$lt_MANIFEST_TOOL
38286
cristy73bd4a52010-10-05 11:24:23 +000038287# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38288DSYMUTIL=$lt_DSYMUTIL
38289
38290# Tool to change global to local symbols on Mac OS X.
38291NMEDIT=$lt_NMEDIT
38292
38293# Tool to manipulate fat objects and archives on Mac OS X.
38294LIPO=$lt_LIPO
38295
38296# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38297OTOOL=$lt_OTOOL
38298
38299# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38300OTOOL64=$lt_OTOOL64
38301
38302# Old archive suffix (normally "a").
38303libext=$libext
38304
38305# Shared library suffix (normally ".so").
38306shrext_cmds=$lt_shrext_cmds
38307
38308# The commands to extract the exported symbol list from a shared archive.
38309extract_expsyms_cmds=$lt_extract_expsyms_cmds
38310
38311# Variables whose values should be saved in libtool wrapper scripts and
38312# restored at link time.
38313variables_saved_for_relink=$lt_variables_saved_for_relink
38314
38315# Do we need the "lib" prefix for modules?
38316need_lib_prefix=$need_lib_prefix
38317
38318# Do we need a version for libraries?
38319need_version=$need_version
38320
38321# Library versioning type.
38322version_type=$version_type
38323
38324# Shared library runtime path variable.
38325runpath_var=$runpath_var
38326
38327# Shared library path variable.
38328shlibpath_var=$shlibpath_var
38329
38330# Is shlibpath searched before the hard-coded library search path?
38331shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38332
38333# Format of library name prefix.
38334libname_spec=$lt_libname_spec
38335
38336# List of archive names. First name is the real one, the rest are links.
38337# The last name is the one that the linker finds with -lNAME
38338library_names_spec=$lt_library_names_spec
38339
38340# The coded name of the library, if different from the real name.
38341soname_spec=$lt_soname_spec
38342
cristy0c60a692010-11-04 01:09:47 +000038343# Permission mode override for installation of shared libraries.
38344install_override_mode=$lt_install_override_mode
38345
cristy73bd4a52010-10-05 11:24:23 +000038346# Command to use after installation of a shared archive.
38347postinstall_cmds=$lt_postinstall_cmds
38348
38349# Command to use after uninstallation of a shared archive.
38350postuninstall_cmds=$lt_postuninstall_cmds
38351
38352# Commands used to finish a libtool library installation in a directory.
38353finish_cmds=$lt_finish_cmds
38354
38355# As "finish_cmds", except a single script fragment to be evaled but
38356# not shown.
38357finish_eval=$lt_finish_eval
38358
38359# Whether we should hardcode library paths into libraries.
38360hardcode_into_libs=$hardcode_into_libs
38361
38362# Compile-time system search path for libraries.
38363sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38364
38365# Run-time system search path for libraries.
38366sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38367
38368# Whether dlopen is supported.
38369dlopen_support=$enable_dlopen
38370
38371# Whether dlopen of programs is supported.
38372dlopen_self=$enable_dlopen_self
38373
38374# Whether dlopen of statically linked programs is supported.
38375dlopen_self_static=$enable_dlopen_self_static
38376
38377# Commands to strip libraries.
38378old_striplib=$lt_old_striplib
38379striplib=$lt_striplib
38380
38381
38382# The linker used to build libraries.
38383LD=$lt_LD
38384
cristy0c60a692010-11-04 01:09:47 +000038385# How to create reloadable object files.
38386reload_flag=$lt_reload_flag
38387reload_cmds=$lt_reload_cmds
38388
cristy73bd4a52010-10-05 11:24:23 +000038389# Commands used to build an old-style archive.
38390old_archive_cmds=$lt_old_archive_cmds
38391
38392# A language specific compiler.
38393CC=$lt_compiler
38394
38395# Is the compiler the GNU compiler?
38396with_gcc=$GCC
38397
38398# Compiler flag to turn off builtin functions.
38399no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38400
cristy73bd4a52010-10-05 11:24:23 +000038401# Additional compiler flags for building library objects.
38402pic_flag=$lt_lt_prog_compiler_pic
38403
cristyda16f162011-02-19 23:52:17 +000038404# How to pass a linker flag through the compiler.
38405wl=$lt_lt_prog_compiler_wl
38406
cristy73bd4a52010-10-05 11:24:23 +000038407# Compiler flag to prevent dynamic linking.
38408link_static_flag=$lt_lt_prog_compiler_static
38409
38410# Does compiler simultaneously support -c and -o options?
38411compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38412
38413# Whether or not to add -lc for building shared libraries.
38414build_libtool_need_lc=$archive_cmds_need_lc
38415
38416# Whether or not to disallow shared libs when runtime libs are static.
38417allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38418
38419# Compiler flag to allow reflexive dlopens.
38420export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38421
38422# Compiler flag to generate shared objects directly from archives.
38423whole_archive_flag_spec=$lt_whole_archive_flag_spec
38424
38425# Whether the compiler copes with passing no objects directly.
38426compiler_needs_object=$lt_compiler_needs_object
38427
38428# Create an old-style archive from a shared archive.
38429old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38430
38431# Create a temporary old-style archive to link instead of a shared archive.
38432old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38433
38434# Commands used to build a shared archive.
38435archive_cmds=$lt_archive_cmds
38436archive_expsym_cmds=$lt_archive_expsym_cmds
38437
38438# Commands used to build a loadable module if different from building
38439# a shared archive.
38440module_cmds=$lt_module_cmds
38441module_expsym_cmds=$lt_module_expsym_cmds
38442
38443# Whether we are building with GNU ld or not.
38444with_gnu_ld=$lt_with_gnu_ld
38445
38446# Flag that allows shared libraries with undefined symbols to be built.
38447allow_undefined_flag=$lt_allow_undefined_flag
38448
38449# Flag that enforces no undefined symbols.
38450no_undefined_flag=$lt_no_undefined_flag
38451
38452# Flag to hardcode \$libdir into a binary during linking.
38453# This must work even if \$libdir does not exist
38454hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38455
cristy73bd4a52010-10-05 11:24:23 +000038456# Whether we need a single "-rpath" flag with a separated argument.
38457hardcode_libdir_separator=$lt_hardcode_libdir_separator
38458
38459# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38460# DIR into the resulting binary.
38461hardcode_direct=$hardcode_direct
38462
38463# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38464# DIR into the resulting binary and the resulting library dependency is
38465# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38466# library is relocated.
38467hardcode_direct_absolute=$hardcode_direct_absolute
38468
38469# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38470# into the resulting binary.
38471hardcode_minus_L=$hardcode_minus_L
38472
38473# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38474# into the resulting binary.
38475hardcode_shlibpath_var=$hardcode_shlibpath_var
38476
38477# Set to "yes" if building a shared library automatically hardcodes DIR
38478# into the library and all subsequent libraries and executables linked
38479# against it.
38480hardcode_automatic=$hardcode_automatic
38481
38482# Set to yes if linker adds runtime paths of dependent libraries
38483# to runtime path list.
38484inherit_rpath=$inherit_rpath
38485
38486# Whether libtool must link a program against all its dependency libraries.
38487link_all_deplibs=$link_all_deplibs
38488
cristy73bd4a52010-10-05 11:24:23 +000038489# Set to "yes" if exported symbols are required.
38490always_export_symbols=$always_export_symbols
38491
38492# The commands to list exported symbols.
38493export_symbols_cmds=$lt_export_symbols_cmds
38494
38495# Symbols that should not be listed in the preloaded symbols.
38496exclude_expsyms=$lt_exclude_expsyms
38497
38498# Symbols that must always be exported.
38499include_expsyms=$lt_include_expsyms
38500
38501# Commands necessary for linking programs (against libraries) with templates.
38502prelink_cmds=$lt_prelink_cmds
38503
cristyda16f162011-02-19 23:52:17 +000038504# Commands necessary for finishing linking programs.
38505postlink_cmds=$lt_postlink_cmds
38506
cristy73bd4a52010-10-05 11:24:23 +000038507# Specify filename containing input files.
38508file_list_spec=$lt_file_list_spec
38509
38510# How to hardcode a shared library path into an executable.
38511hardcode_action=$hardcode_action
38512
38513# The directories searched by this compiler when creating a shared library.
38514compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38515
38516# Dependencies to place before and after the objects being linked to
38517# create a shared library.
38518predep_objects=$lt_predep_objects
38519postdep_objects=$lt_postdep_objects
38520predeps=$lt_predeps
38521postdeps=$lt_postdeps
38522
38523# The library search path used internally by the compiler when linking
38524# a shared library.
38525compiler_lib_search_path=$lt_compiler_lib_search_path
38526
38527# ### END LIBTOOL CONFIG
38528
38529_LT_EOF
38530
38531 case $host_os in
38532 aix3*)
38533 cat <<\_LT_EOF >> "$cfgfile"
38534# AIX sometimes has problems with the GCC collect2 program. For some
38535# reason, if we set the COLLECT_NAMES environment variable, the problems
38536# vanish in a puff of smoke.
38537if test "X${COLLECT_NAMES+set}" != Xset; then
38538 COLLECT_NAMES=
38539 export COLLECT_NAMES
38540fi
38541_LT_EOF
38542 ;;
38543 esac
38544
38545
38546ltmain="$ac_aux_dir/ltmain.sh"
38547
38548
38549 # We use sed instead of cat because bash on DJGPP gets confused if
38550 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38551 # text mode, it properly converts lines to CR/LF. This bash problem
38552 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038553 sed '$q' "$ltmain" >> "$cfgfile" \
38554 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038555
cristyda16f162011-02-19 23:52:17 +000038556 if test x"$xsi_shell" = xyes; then
38557 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38558func_dirname ()\
38559{\
38560\ case ${1} in\
38561\ */*) func_dirname_result="${1%/*}${2}" ;;\
38562\ * ) func_dirname_result="${3}" ;;\
38563\ esac\
38564} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38565 && mv -f "$cfgfile.tmp" "$cfgfile" \
38566 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38567test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038568
38569
cristyda16f162011-02-19 23:52:17 +000038570 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38571func_basename ()\
38572{\
38573\ func_basename_result="${1##*/}"\
38574} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38575 && mv -f "$cfgfile.tmp" "$cfgfile" \
38576 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38577test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038578
38579
cristyda16f162011-02-19 23:52:17 +000038580 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38581func_dirname_and_basename ()\
38582{\
38583\ case ${1} in\
38584\ */*) func_dirname_result="${1%/*}${2}" ;;\
38585\ * ) func_dirname_result="${3}" ;;\
38586\ esac\
38587\ func_basename_result="${1##*/}"\
38588} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38589 && mv -f "$cfgfile.tmp" "$cfgfile" \
38590 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38591test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038592
cristyda16f162011-02-19 23:52:17 +000038593
38594 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38595func_stripname ()\
38596{\
38597\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38598\ # positional parameters, so assign one to ordinary parameter first.\
38599\ func_stripname_result=${3}\
38600\ func_stripname_result=${func_stripname_result#"${1}"}\
38601\ func_stripname_result=${func_stripname_result%"${2}"}\
38602} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38603 && mv -f "$cfgfile.tmp" "$cfgfile" \
38604 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38605test 0 -eq $? || _lt_function_replace_fail=:
38606
38607
38608 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38609func_split_long_opt ()\
38610{\
38611\ func_split_long_opt_name=${1%%=*}\
38612\ func_split_long_opt_arg=${1#*=}\
38613} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38614 && mv -f "$cfgfile.tmp" "$cfgfile" \
38615 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38616test 0 -eq $? || _lt_function_replace_fail=:
38617
38618
38619 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38620func_split_short_opt ()\
38621{\
38622\ func_split_short_opt_arg=${1#??}\
38623\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38624} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38625 && mv -f "$cfgfile.tmp" "$cfgfile" \
38626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38627test 0 -eq $? || _lt_function_replace_fail=:
38628
38629
38630 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38631func_lo2o ()\
38632{\
38633\ case ${1} in\
38634\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38635\ *) func_lo2o_result=${1} ;;\
38636\ esac\
38637} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
38638 && mv -f "$cfgfile.tmp" "$cfgfile" \
38639 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38640test 0 -eq $? || _lt_function_replace_fail=:
38641
38642
38643 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38644func_xform ()\
38645{\
38646 func_xform_result=${1%.*}.lo\
38647} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
38648 && mv -f "$cfgfile.tmp" "$cfgfile" \
38649 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38650test 0 -eq $? || _lt_function_replace_fail=:
38651
38652
38653 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38654func_arith ()\
38655{\
38656 func_arith_result=$(( $* ))\
38657} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38658 && mv -f "$cfgfile.tmp" "$cfgfile" \
38659 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38660test 0 -eq $? || _lt_function_replace_fail=:
38661
38662
38663 sed -e '/^func_len ()$/,/^} # func_len /c\
38664func_len ()\
38665{\
38666 func_len_result=${#1}\
38667} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38668 && mv -f "$cfgfile.tmp" "$cfgfile" \
38669 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38670test 0 -eq $? || _lt_function_replace_fail=:
38671
38672fi
38673
38674if test x"$lt_shell_append" = xyes; then
38675 sed -e '/^func_append ()$/,/^} # func_append /c\
38676func_append ()\
38677{\
38678 eval "${1}+=\\${2}"\
38679} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38680 && mv -f "$cfgfile.tmp" "$cfgfile" \
38681 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38682test 0 -eq $? || _lt_function_replace_fail=:
38683
38684
38685 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38686func_append_quoted ()\
38687{\
38688\ func_quote_for_eval "${2}"\
38689\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38690} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38691 && mv -f "$cfgfile.tmp" "$cfgfile" \
38692 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38693test 0 -eq $? || _lt_function_replace_fail=:
38694
38695
38696 # Save a `func_append' function call where possible by direct use of '+='
38697 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38698 && mv -f "$cfgfile.tmp" "$cfgfile" \
38699 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38700 test 0 -eq $? || _lt_function_replace_fail=:
38701else
38702 # Save a `func_append' function call even when '+=' is not available
38703 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38704 && mv -f "$cfgfile.tmp" "$cfgfile" \
38705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38706 test 0 -eq $? || _lt_function_replace_fail=:
38707fi
38708
38709if test x"$_lt_function_replace_fail" = x":"; then
38710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38711$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38712fi
38713
38714
38715 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038716 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38717 chmod +x "$ofile"
38718
38719
38720 cat <<_LT_EOF >> "$ofile"
38721
38722# ### BEGIN LIBTOOL TAG CONFIG: CXX
38723
38724# The linker used to build libraries.
38725LD=$lt_LD_CXX
38726
cristy0c60a692010-11-04 01:09:47 +000038727# How to create reloadable object files.
38728reload_flag=$lt_reload_flag_CXX
38729reload_cmds=$lt_reload_cmds_CXX
38730
cristy73bd4a52010-10-05 11:24:23 +000038731# Commands used to build an old-style archive.
38732old_archive_cmds=$lt_old_archive_cmds_CXX
38733
38734# A language specific compiler.
38735CC=$lt_compiler_CXX
38736
38737# Is the compiler the GNU compiler?
38738with_gcc=$GCC_CXX
38739
38740# Compiler flag to turn off builtin functions.
38741no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38742
cristy73bd4a52010-10-05 11:24:23 +000038743# Additional compiler flags for building library objects.
38744pic_flag=$lt_lt_prog_compiler_pic_CXX
38745
cristyda16f162011-02-19 23:52:17 +000038746# How to pass a linker flag through the compiler.
38747wl=$lt_lt_prog_compiler_wl_CXX
38748
cristy73bd4a52010-10-05 11:24:23 +000038749# Compiler flag to prevent dynamic linking.
38750link_static_flag=$lt_lt_prog_compiler_static_CXX
38751
38752# Does compiler simultaneously support -c and -o options?
38753compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38754
38755# Whether or not to add -lc for building shared libraries.
38756build_libtool_need_lc=$archive_cmds_need_lc_CXX
38757
38758# Whether or not to disallow shared libs when runtime libs are static.
38759allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38760
38761# Compiler flag to allow reflexive dlopens.
38762export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38763
38764# Compiler flag to generate shared objects directly from archives.
38765whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38766
38767# Whether the compiler copes with passing no objects directly.
38768compiler_needs_object=$lt_compiler_needs_object_CXX
38769
38770# Create an old-style archive from a shared archive.
38771old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38772
38773# Create a temporary old-style archive to link instead of a shared archive.
38774old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38775
38776# Commands used to build a shared archive.
38777archive_cmds=$lt_archive_cmds_CXX
38778archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38779
38780# Commands used to build a loadable module if different from building
38781# a shared archive.
38782module_cmds=$lt_module_cmds_CXX
38783module_expsym_cmds=$lt_module_expsym_cmds_CXX
38784
38785# Whether we are building with GNU ld or not.
38786with_gnu_ld=$lt_with_gnu_ld_CXX
38787
38788# Flag that allows shared libraries with undefined symbols to be built.
38789allow_undefined_flag=$lt_allow_undefined_flag_CXX
38790
38791# Flag that enforces no undefined symbols.
38792no_undefined_flag=$lt_no_undefined_flag_CXX
38793
38794# Flag to hardcode \$libdir into a binary during linking.
38795# This must work even if \$libdir does not exist
38796hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38797
cristy73bd4a52010-10-05 11:24:23 +000038798# Whether we need a single "-rpath" flag with a separated argument.
38799hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38800
38801# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38802# DIR into the resulting binary.
38803hardcode_direct=$hardcode_direct_CXX
38804
38805# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38806# DIR into the resulting binary and the resulting library dependency is
38807# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38808# library is relocated.
38809hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38810
38811# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38812# into the resulting binary.
38813hardcode_minus_L=$hardcode_minus_L_CXX
38814
38815# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38816# into the resulting binary.
38817hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38818
38819# Set to "yes" if building a shared library automatically hardcodes DIR
38820# into the library and all subsequent libraries and executables linked
38821# against it.
38822hardcode_automatic=$hardcode_automatic_CXX
38823
38824# Set to yes if linker adds runtime paths of dependent libraries
38825# to runtime path list.
38826inherit_rpath=$inherit_rpath_CXX
38827
38828# Whether libtool must link a program against all its dependency libraries.
38829link_all_deplibs=$link_all_deplibs_CXX
38830
cristy73bd4a52010-10-05 11:24:23 +000038831# Set to "yes" if exported symbols are required.
38832always_export_symbols=$always_export_symbols_CXX
38833
38834# The commands to list exported symbols.
38835export_symbols_cmds=$lt_export_symbols_cmds_CXX
38836
38837# Symbols that should not be listed in the preloaded symbols.
38838exclude_expsyms=$lt_exclude_expsyms_CXX
38839
38840# Symbols that must always be exported.
38841include_expsyms=$lt_include_expsyms_CXX
38842
38843# Commands necessary for linking programs (against libraries) with templates.
38844prelink_cmds=$lt_prelink_cmds_CXX
38845
cristyda16f162011-02-19 23:52:17 +000038846# Commands necessary for finishing linking programs.
38847postlink_cmds=$lt_postlink_cmds_CXX
38848
cristy73bd4a52010-10-05 11:24:23 +000038849# Specify filename containing input files.
38850file_list_spec=$lt_file_list_spec_CXX
38851
38852# How to hardcode a shared library path into an executable.
38853hardcode_action=$hardcode_action_CXX
38854
38855# The directories searched by this compiler when creating a shared library.
38856compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38857
38858# Dependencies to place before and after the objects being linked to
38859# create a shared library.
38860predep_objects=$lt_predep_objects_CXX
38861postdep_objects=$lt_postdep_objects_CXX
38862predeps=$lt_predeps_CXX
38863postdeps=$lt_postdeps_CXX
38864
38865# The library search path used internally by the compiler when linking
38866# a shared library.
38867compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38868
38869# ### END LIBTOOL TAG CONFIG: CXX
38870_LT_EOF
38871
38872 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038873 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038874 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038875 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038876 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38877 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38878
38879 esac
38880done # for ac_tag
38881
38882
cristy8b350f62009-11-15 23:12:43 +000038883as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038884_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038885ac_clean_files=$ac_clean_files_save
38886
38887test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038888 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038889
38890
38891# configure is writing to config.log, and then calls config.status.
38892# config.status does its own redirection, appending to config.log.
38893# Unfortunately, on DOS this fails, as config.log is still kept open
38894# by configure, so config.status won't be able to write to it; its
38895# output is simply discarded. So we exec the FD to /dev/null,
38896# effectively closing config.log, so it can be properly (re)opened and
38897# appended to by config.status. When coming back to configure, we
38898# need to make the FD available again.
38899if test "$no_create" != yes; then
38900 ac_cs_success=:
38901 ac_config_status_args=
38902 test "$silent" = yes &&
38903 ac_config_status_args="$ac_config_status_args --quiet"
38904 exec 5>/dev/null
38905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38906 exec 5>>config.log
38907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38908 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038909 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038910fi
38911if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038913$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38914fi
38915
38916
38917rm -f magick-version
38918
cristy430a7312010-01-21 20:44:04 +000038919result_dejavu_font_dir='none'
38920if test "${dejavu_font_dir}x" != 'x'; then
38921 result_dejavu_font_dir=$dejavu_font_dir
38922fi
38923
cristy3ed852e2009-09-05 21:47:34 +000038924result_ghostscript_font_dir='none'
38925if test "${ghostscript_font_dir}x" != 'x'; then
38926 result_ghostscript_font_dir=$ghostscript_font_dir
38927fi
38928
38929result_windows_font_dir='none'
38930if test "${windows_font_dir}x" != 'x'; then
38931 result_windows_font_dir=${windows_font_dir}
38932fi
38933
cristy09b53e12011-10-14 12:47:22 +000038934{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038935ImageMagick is configured as follows. Please verify that this configuration
38936matches your expectations.
38937
38938Host system type: $host
38939Build system type: $build
38940
38941 Option Value
38942-------------------------------------------------------------------------------
38943Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38944Static libraries --enable-static=$enable_static $libtool_build_static_libs
38945Module support --with-modules=$with_modules $with_modules
38946GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38947Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38948High Dynamic Range Imagery
38949 --enable-hdri=$enable_hdri $enable_hdri
38950
38951Delegate Configuration:
38952BZLIB --with-bzlib=$with_bzlib $have_bzlib
38953Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038954Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038955DJVU --with-djvu=$with_djvu $have_djvu
38956DPS --with-dps=$with_dps $have_dps
38957FFTW --with-fftw=$with_fftw $have_fftw
38958FlashPIX --with-fpx=$with_fpx $have_fpx
38959FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38960FreeType --with-freetype=$with_freetype $have_freetype
38961GhostPCL None $PCLDelegate ($PCLVersion)
38962GhostXPS None $XPSDelegate ($XPSVersion)
38963Ghostscript None $PSDelegate ($GSVersion)
38964Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38965Ghostscript lib --with-gslib=$with_gslib $have_gslib
38966Graphviz --with-gvc=$with_gvc $have_gvc
38967JBIG --with-jbig=$with_jbig $have_jbig
38968JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38969JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038970LCMS v1 --with-lcms=$with_lcms $have_lcms
38971LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038972LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038973LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038974Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38975OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038976PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038977PERL --with-perl=$with_perl $have_perl
38978PNG --with-png=$with_png $have_png
38979RSVG --with-rsvg=$with_rsvg $have_rsvg
38980TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038981WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038982Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38983WMF --with-wmf=$with_wmf $have_wmf
38984X11 --with-x=$with_x $have_x
38985XML --with-xml=$with_xml $have_xml
38986ZLIB --with-zlib=$with_zlib $have_zlib
38987
38988X11 Configuration:
38989 X_CFLAGS = $X_CFLAGS
38990 X_PRE_LIBS = $X_PRE_LIBS
38991 X_LIBS = $X_LIBS
38992 X_EXTRA_LIBS = $X_EXTRA_LIBS
38993
38994Options used to compile and link:
38995 PREFIX = $PREFIX_DIR
38996 EXEC-PREFIX = $EXEC_PREFIX_DIR
38997 VERSION = $PACKAGE_VERSION
38998 CC = $CC
38999 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039000 CPPFLAGS = $MAGICK_CPPFLAGS
39001 PCFLAGS = $MAGICK_PCFLAGS
39002 DEFS = $DEFS
39003 LDFLAGS = $LDFLAGS
39004 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39005 LIBS = $MAGICK_LIBS
39006 CXX = $CXX
39007 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039008 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000039009" >&5
cristy09b53e12011-10-14 12:47:22 +000039010$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000039011ImageMagick is configured as follows. Please verify that this configuration
39012matches your expectations.
39013
39014Host system type: $host
39015Build system type: $build
39016
39017 Option Value
39018-------------------------------------------------------------------------------
39019Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
39020Static libraries --enable-static=$enable_static $libtool_build_static_libs
39021Module support --with-modules=$with_modules $with_modules
39022GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
39023Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
39024High Dynamic Range Imagery
39025 --enable-hdri=$enable_hdri $enable_hdri
39026
39027Delegate Configuration:
39028BZLIB --with-bzlib=$with_bzlib $have_bzlib
39029Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000039030Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000039031DJVU --with-djvu=$with_djvu $have_djvu
39032DPS --with-dps=$with_dps $have_dps
39033FFTW --with-fftw=$with_fftw $have_fftw
39034FlashPIX --with-fpx=$with_fpx $have_fpx
39035FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
39036FreeType --with-freetype=$with_freetype $have_freetype
39037GhostPCL None $PCLDelegate ($PCLVersion)
39038GhostXPS None $XPSDelegate ($XPSVersion)
39039Ghostscript None $PSDelegate ($GSVersion)
39040Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
39041Ghostscript lib --with-gslib=$with_gslib $have_gslib
39042Graphviz --with-gvc=$with_gvc $have_gvc
39043JBIG --with-jbig=$with_jbig $have_jbig
39044JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
39045JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000039046LCMS v1 --with-lcms=$with_lcms $have_lcms
39047LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000039048LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000039049LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000039050Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
39051OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000039052PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000039053PERL --with-perl=$with_perl $have_perl
39054PNG --with-png=$with_png $have_png
39055RSVG --with-rsvg=$with_rsvg $have_rsvg
39056TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000039057WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000039058Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
39059WMF --with-wmf=$with_wmf $have_wmf
39060X11 --with-x=$with_x $have_x
39061XML --with-xml=$with_xml $have_xml
39062ZLIB --with-zlib=$with_zlib $have_zlib
39063
39064X11 Configuration:
39065 X_CFLAGS = $X_CFLAGS
39066 X_PRE_LIBS = $X_PRE_LIBS
39067 X_LIBS = $X_LIBS
39068 X_EXTRA_LIBS = $X_EXTRA_LIBS
39069
39070Options used to compile and link:
39071 PREFIX = $PREFIX_DIR
39072 EXEC-PREFIX = $EXEC_PREFIX_DIR
39073 VERSION = $PACKAGE_VERSION
39074 CC = $CC
39075 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039076 CPPFLAGS = $MAGICK_CPPFLAGS
39077 PCFLAGS = $MAGICK_PCFLAGS
39078 DEFS = $DEFS
39079 LDFLAGS = $LDFLAGS
39080 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39081 LIBS = $MAGICK_LIBS
39082 CXX = $CXX
39083 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039084 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000039085" >&6;}