blob: 0bdf1267032f7f681e15072a0717df9f64a05638 [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
cristy73bd4a52010-10-05 11:24:23 +0000895WITH_LTDL_FALSE
896WITH_LTDL_TRUE
897WITH_MODULES_FALSE
898WITH_MODULES_TRUE
899WITH_SHARED_LIBS_FALSE
900WITH_SHARED_LIBS_TRUE
901LTDLOPEN
902LT_CONFIG_H
903CONVENIENCE_LTDL_FALSE
904CONVENIENCE_LTDL_TRUE
905INSTALL_LTDL_FALSE
906INSTALL_LTDL_TRUE
907ARGZ_H
908sys_symbol_underscore
909LIBADD_DL
910LT_DLPREOPEN
911LIBADD_DLD_LINK
912LIBADD_SHL_LOAD
913LIBADD_DLOPEN
914LT_DLLOADERS
915INCLTDL
916LTDLINCL
917LTDLDEPS
918LIBLTDL
cristy3ed852e2009-09-05 21:47:34 +0000919LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000920CXXCPP
921OTOOL64
922OTOOL
923LIPO
924NMEDIT
925DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000926MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000927RANLIB
cristyda16f162011-02-19 23:52:17 +0000928ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000929AR
930NM
931ac_ct_DUMPBIN
932DUMPBIN
933LIBTOOL
934OBJDUMP
935DLLTOOL
936AS
cristy3ed852e2009-09-05 21:47:34 +0000937LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000938CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000939CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000940OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000941PTHREAD_CFLAGS
942PTHREAD_LIBS
943PTHREAD_CC
944ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000945SHAREARCH_DIR
946INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000947WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000948USING_CL_FALSE
949USING_CL_TRUE
950CYGWIN_BUILD_FALSE
951CYGWIN_BUILD_TRUE
952WIN32_NATIVE_BUILD_FALSE
953WIN32_NATIVE_BUILD_TRUE
954WINGDI32_DELEGATE_FALSE
955WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000956GDI32_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000957PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000958PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000959LN_S
cristy3ed852e2009-09-05 21:47:34 +0000960LD
cristy73bd4a52010-10-05 11:24:23 +0000961FGREP
962SED
963am__fastdepCXX_FALSE
964am__fastdepCXX_TRUE
965CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000966ac_ct_CXX
967CXXFLAGS
968CXX
cristya0b81c32010-01-22 02:54:33 +0000969EGREP
970GREP
971CPP
cristy73bd4a52010-10-05 11:24:23 +0000972am__fastdepCC_FALSE
973am__fastdepCC_TRUE
974CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000975am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000976AMDEPBACKSLASH
977AMDEP_FALSE
978AMDEP_TRUE
979am__quote
980am__include
981DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000982OBJEXT
983EXEEXT
984ac_ct_CC
985CPPFLAGS
986LDFLAGS
987CFLAGS
988CC
989DIRSEP
990MAGICK_FILTER_MODULE_PATH
991MAGICK_CONFIGURE_BUILD_PATH
992MAGICK_CONFIGURE_SRC_PATH
993MAGICK_CODER_MODULE_PATH
994MAN_DIR
995INFO_DIR
996PERSISTINCLUDE_DIR
997INCLUDE_DIR
998LIB_DIR
999LOCALSTATE_DIR
1000SHAREDSTATE_DIR
1001SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +00001002DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +00001003DATA_DIR
1004LIBEXEC_DIR
1005SBIN_DIR
1006BIN_DIR
1007EXEC_PREFIX_DIR
1008PREFIX_DIR
1009CONFIG_STATUS_DEPENDENCIES
1010MAGICK_LIB_VERSION_NUMBER
1011MAGICK_LIB_VERSION_TEXT
1012MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +00001013AM_BACKSLASH
1014AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +00001015AM_DEFAULT_V
1016AM_V
cristy73bd4a52010-10-05 11:24:23 +00001017am__untar
1018am__tar
1019AMTAR
1020am__leading_dot
1021SET_MAKE
1022AWK
1023mkdir_p
1024MKDIR_P
1025INSTALL_STRIP_PROGRAM
1026STRIP
1027install_sh
1028MAKEINFO
1029AUTOHEADER
1030AUTOMAKE
1031AUTOCONF
1032ACLOCAL
1033VERSION
1034PACKAGE
1035CYGPATH_W
1036am__isrc
1037INSTALL_DATA
1038INSTALL_SCRIPT
1039INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001040PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001041PACKAGE_RELEASE_DATE
1042PACKAGE_LIB_VERSION_NUMBER
1043PACKAGE_LIB_VERSION
1044PACKAGE_CHANGE_DATE
1045PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001046PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001047MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001048MAGICK_LIBRARY_VERSION_INFO
1049MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001050MAGICK_LIBRARY_AGE
1051MAGICK_LIBRARY_REVISION
1052MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001053MAGICK_TARGET_OS
1054MAGICK_TARGET_VENDOR
1055MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001056target_os
1057target_vendor
1058target_cpu
1059target
1060host_os
1061host_vendor
1062host_cpu
1063host
1064build_os
1065build_vendor
1066build_cpu
1067build
1068CONFIGURE_ARGS
1069DISTCHECK_CONFIG_FLAGS
1070target_alias
1071host_alias
1072build_alias
1073LIBS
1074ECHO_T
1075ECHO_N
1076ECHO_C
1077DEFS
1078mandir
1079localedir
1080libdir
1081psdir
1082pdfdir
1083dvidir
1084htmldir
1085infodir
1086docdir
1087oldincludedir
1088includedir
1089localstatedir
1090sharedstatedir
1091sysconfdir
1092datadir
1093datarootdir
1094libexecdir
1095sbindir
1096bindir
1097program_transform_name
1098prefix
1099exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001100PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001101PACKAGE_BUGREPORT
1102PACKAGE_STRING
1103PACKAGE_VERSION
1104PACKAGE_TARNAME
1105PACKAGE_NAME
1106PATH_SEPARATOR
1107SHELL'
1108ac_subst_files=''
1109ac_user_opts='
1110enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001111enable_silent_rules
1112enable_dependency_tracking
1113with_gnu_ld
1114with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001115with_gcc_arch
cristy3ed852e2009-09-05 21:47:34 +00001116enable_bounds_checking
1117enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001118with_includearch_dir
1119with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001120with_threads
1121enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001122enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001123enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001124enable_shared
1125enable_static
1126with_pic
1127enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001128with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001129enable_libtool_lock
1130with_included_ltdl
1131with_ltdl_include
1132with_ltdl_lib
1133enable_ltdl_install
cristy3ed852e2009-09-05 21:47:34 +00001134with_modules
1135enable_delegate_build
1136enable_deprecated
1137enable_installed
1138enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001139enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001140enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001141enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001142enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001143enable_ccmalloc
1144enable_efence
1145enable_prof
1146enable_gprof
1147enable_gcov
1148with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001149enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001150with_quantum_depth
1151with_cache
1152with_frozenpaths
1153with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001154with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001155with_perl
1156with_perl_options
1157with_umem
1158with_libstdc
1159with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001160with_x
cristy3ed852e2009-09-05 21:47:34 +00001161with_zlib
1162with_autotrace
1163with_dps
1164with_djvu
cristy430a7312010-01-21 20:44:04 +00001165with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001166with_fftw
1167with_fpx
1168with_fontconfig
1169with_freetype
1170with_gslib
1171with_fontpath
1172with_gs_font_dir
1173with_gvc
1174with_jbig
1175with_jpeg
1176with_jp2
1177with_lcms
cristy71203402010-06-18 13:12:03 +00001178with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001179with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001180with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001181with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001182with_pango
cristy3ed852e2009-09-05 21:47:34 +00001183with_png
1184with_rsvg
1185with_tiff
cristyb1860752011-03-14 00:27:46 +00001186with_webp
cristy3ed852e2009-09-05 21:47:34 +00001187with_windows_font_dir
1188with_wmf
1189with_xml
1190'
1191 ac_precious_vars='build_alias
1192host_alias
1193target_alias
1194CC
1195CFLAGS
1196LDFLAGS
1197LIBS
1198CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001199CPP
cristy3ed852e2009-09-05 21:47:34 +00001200CXX
1201CXXFLAGS
1202CCC
cristy73bd4a52010-10-05 11:24:23 +00001203PKG_CONFIG
1204CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001205XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001206AUTOTRACE_CFLAGS
1207AUTOTRACE_LIBS
1208FONTCONFIG_CFLAGS
1209FONTCONFIG_LIBS
1210GVC_CFLAGS
1211GVC_LIBS
1212LQR_CFLAGS
1213LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001214LZMA_CFLAGS
1215LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001216OPENEXR_CFLAGS
1217OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001218PANGO_CFLAGS
1219PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001220RSVG_CFLAGS
1221RSVG_LIBS
1222CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001223CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001224
1225
1226# Initialize some variables set by options.
1227ac_init_help=
1228ac_init_version=false
1229ac_unrecognized_opts=
1230ac_unrecognized_sep=
1231# The variables have the same names as the options, with
1232# dashes changed to underlines.
1233cache_file=/dev/null
1234exec_prefix=NONE
1235no_create=
1236no_recursion=
1237prefix=NONE
1238program_prefix=NONE
1239program_suffix=NONE
1240program_transform_name=s,x,x,
1241silent=
1242site=
1243srcdir=
1244verbose=
1245x_includes=NONE
1246x_libraries=NONE
1247
1248# Installation directory options.
1249# These are left unexpanded so users can "make install exec_prefix=/foo"
1250# and all the variables that are supposed to be based on exec_prefix
1251# by default will actually change.
1252# Use braces instead of parens because sh, perl, etc. also accept them.
1253# (The list follows the same order as the GNU Coding Standards.)
1254bindir='${exec_prefix}/bin'
1255sbindir='${exec_prefix}/sbin'
1256libexecdir='${exec_prefix}/libexec'
1257datarootdir='${prefix}/share'
1258datadir='${datarootdir}'
1259sysconfdir='${prefix}/etc'
1260sharedstatedir='${prefix}/com'
1261localstatedir='${prefix}/var'
1262includedir='${prefix}/include'
1263oldincludedir='/usr/include'
1264docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1265infodir='${datarootdir}/info'
1266htmldir='${docdir}'
1267dvidir='${docdir}'
1268pdfdir='${docdir}'
1269psdir='${docdir}'
1270libdir='${exec_prefix}/lib'
1271localedir='${datarootdir}/locale'
1272mandir='${datarootdir}/man'
1273
1274ac_prev=
1275ac_dashdash=
1276for ac_option
1277do
1278 # If the previous option needs an argument, assign it.
1279 if test -n "$ac_prev"; then
1280 eval $ac_prev=\$ac_option
1281 ac_prev=
1282 continue
1283 fi
1284
1285 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001286 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1287 *=) ac_optarg= ;;
1288 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001289 esac
1290
1291 # Accept the important Cygnus configure options, so we can diagnose typos.
1292
1293 case $ac_dashdash$ac_option in
1294 --)
1295 ac_dashdash=yes ;;
1296
1297 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1298 ac_prev=bindir ;;
1299 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1300 bindir=$ac_optarg ;;
1301
1302 -build | --build | --buil | --bui | --bu)
1303 ac_prev=build_alias ;;
1304 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1305 build_alias=$ac_optarg ;;
1306
1307 -cache-file | --cache-file | --cache-fil | --cache-fi \
1308 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1309 ac_prev=cache_file ;;
1310 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1311 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1312 cache_file=$ac_optarg ;;
1313
1314 --config-cache | -C)
1315 cache_file=config.cache ;;
1316
1317 -datadir | --datadir | --datadi | --datad)
1318 ac_prev=datadir ;;
1319 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1320 datadir=$ac_optarg ;;
1321
1322 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1323 | --dataroo | --dataro | --datar)
1324 ac_prev=datarootdir ;;
1325 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1326 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1327 datarootdir=$ac_optarg ;;
1328
1329 -disable-* | --disable-*)
1330 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1331 # Reject names that are not valid shell variable names.
1332 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001333 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001334 ac_useropt_orig=$ac_useropt
1335 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1336 case $ac_user_opts in
1337 *"
1338"enable_$ac_useropt"
1339"*) ;;
1340 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1341 ac_unrecognized_sep=', ';;
1342 esac
1343 eval enable_$ac_useropt=no ;;
1344
1345 -docdir | --docdir | --docdi | --doc | --do)
1346 ac_prev=docdir ;;
1347 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1348 docdir=$ac_optarg ;;
1349
1350 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1351 ac_prev=dvidir ;;
1352 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1353 dvidir=$ac_optarg ;;
1354
1355 -enable-* | --enable-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001359 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1363 *"
1364"enable_$ac_useropt"
1365"*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval enable_$ac_useropt=\$ac_optarg ;;
1370
1371 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1372 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1373 | --exec | --exe | --ex)
1374 ac_prev=exec_prefix ;;
1375 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1376 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1377 | --exec=* | --exe=* | --ex=*)
1378 exec_prefix=$ac_optarg ;;
1379
1380 -gas | --gas | --ga | --g)
1381 # Obsolete; use --with-gas.
1382 with_gas=yes ;;
1383
1384 -help | --help | --hel | --he | -h)
1385 ac_init_help=long ;;
1386 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1387 ac_init_help=recursive ;;
1388 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1389 ac_init_help=short ;;
1390
1391 -host | --host | --hos | --ho)
1392 ac_prev=host_alias ;;
1393 -host=* | --host=* | --hos=* | --ho=*)
1394 host_alias=$ac_optarg ;;
1395
1396 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1397 ac_prev=htmldir ;;
1398 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1399 | --ht=*)
1400 htmldir=$ac_optarg ;;
1401
1402 -includedir | --includedir | --includedi | --included | --include \
1403 | --includ | --inclu | --incl | --inc)
1404 ac_prev=includedir ;;
1405 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1406 | --includ=* | --inclu=* | --incl=* | --inc=*)
1407 includedir=$ac_optarg ;;
1408
1409 -infodir | --infodir | --infodi | --infod | --info | --inf)
1410 ac_prev=infodir ;;
1411 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1412 infodir=$ac_optarg ;;
1413
1414 -libdir | --libdir | --libdi | --libd)
1415 ac_prev=libdir ;;
1416 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1417 libdir=$ac_optarg ;;
1418
1419 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1420 | --libexe | --libex | --libe)
1421 ac_prev=libexecdir ;;
1422 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1423 | --libexe=* | --libex=* | --libe=*)
1424 libexecdir=$ac_optarg ;;
1425
1426 -localedir | --localedir | --localedi | --localed | --locale)
1427 ac_prev=localedir ;;
1428 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1429 localedir=$ac_optarg ;;
1430
1431 -localstatedir | --localstatedir | --localstatedi | --localstated \
1432 | --localstate | --localstat | --localsta | --localst | --locals)
1433 ac_prev=localstatedir ;;
1434 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1435 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1436 localstatedir=$ac_optarg ;;
1437
1438 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1439 ac_prev=mandir ;;
1440 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1441 mandir=$ac_optarg ;;
1442
1443 -nfp | --nfp | --nf)
1444 # Obsolete; use --without-fp.
1445 with_fp=no ;;
1446
1447 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1448 | --no-cr | --no-c | -n)
1449 no_create=yes ;;
1450
1451 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1452 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1453 no_recursion=yes ;;
1454
1455 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1456 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1457 | --oldin | --oldi | --old | --ol | --o)
1458 ac_prev=oldincludedir ;;
1459 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1460 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1461 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1462 oldincludedir=$ac_optarg ;;
1463
1464 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1465 ac_prev=prefix ;;
1466 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1467 prefix=$ac_optarg ;;
1468
1469 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1470 | --program-pre | --program-pr | --program-p)
1471 ac_prev=program_prefix ;;
1472 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1473 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1474 program_prefix=$ac_optarg ;;
1475
1476 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1477 | --program-suf | --program-su | --program-s)
1478 ac_prev=program_suffix ;;
1479 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1480 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1481 program_suffix=$ac_optarg ;;
1482
1483 -program-transform-name | --program-transform-name \
1484 | --program-transform-nam | --program-transform-na \
1485 | --program-transform-n | --program-transform- \
1486 | --program-transform | --program-transfor \
1487 | --program-transfo | --program-transf \
1488 | --program-trans | --program-tran \
1489 | --progr-tra | --program-tr | --program-t)
1490 ac_prev=program_transform_name ;;
1491 -program-transform-name=* | --program-transform-name=* \
1492 | --program-transform-nam=* | --program-transform-na=* \
1493 | --program-transform-n=* | --program-transform-=* \
1494 | --program-transform=* | --program-transfor=* \
1495 | --program-transfo=* | --program-transf=* \
1496 | --program-trans=* | --program-tran=* \
1497 | --progr-tra=* | --program-tr=* | --program-t=*)
1498 program_transform_name=$ac_optarg ;;
1499
1500 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1501 ac_prev=pdfdir ;;
1502 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1503 pdfdir=$ac_optarg ;;
1504
1505 -psdir | --psdir | --psdi | --psd | --ps)
1506 ac_prev=psdir ;;
1507 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1508 psdir=$ac_optarg ;;
1509
1510 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1511 | -silent | --silent | --silen | --sile | --sil)
1512 silent=yes ;;
1513
1514 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1515 ac_prev=sbindir ;;
1516 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1517 | --sbi=* | --sb=*)
1518 sbindir=$ac_optarg ;;
1519
1520 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1521 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1522 | --sharedst | --shareds | --shared | --share | --shar \
1523 | --sha | --sh)
1524 ac_prev=sharedstatedir ;;
1525 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1526 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1527 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1528 | --sha=* | --sh=*)
1529 sharedstatedir=$ac_optarg ;;
1530
1531 -site | --site | --sit)
1532 ac_prev=site ;;
1533 -site=* | --site=* | --sit=*)
1534 site=$ac_optarg ;;
1535
1536 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1537 ac_prev=srcdir ;;
1538 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1539 srcdir=$ac_optarg ;;
1540
1541 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1542 | --syscon | --sysco | --sysc | --sys | --sy)
1543 ac_prev=sysconfdir ;;
1544 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1545 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1546 sysconfdir=$ac_optarg ;;
1547
1548 -target | --target | --targe | --targ | --tar | --ta | --t)
1549 ac_prev=target_alias ;;
1550 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1551 target_alias=$ac_optarg ;;
1552
1553 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1554 verbose=yes ;;
1555
1556 -version | --version | --versio | --versi | --vers | -V)
1557 ac_init_version=: ;;
1558
1559 -with-* | --with-*)
1560 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1561 # Reject names that are not valid shell variable names.
1562 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001563 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001564 ac_useropt_orig=$ac_useropt
1565 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1566 case $ac_user_opts in
1567 *"
1568"with_$ac_useropt"
1569"*) ;;
1570 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1571 ac_unrecognized_sep=', ';;
1572 esac
1573 eval with_$ac_useropt=\$ac_optarg ;;
1574
1575 -without-* | --without-*)
1576 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1577 # Reject names that are not valid shell variable names.
1578 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001579 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001580 ac_useropt_orig=$ac_useropt
1581 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1582 case $ac_user_opts in
1583 *"
1584"with_$ac_useropt"
1585"*) ;;
1586 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1587 ac_unrecognized_sep=', ';;
1588 esac
1589 eval with_$ac_useropt=no ;;
1590
1591 --x)
1592 # Obsolete; use --with-x.
1593 with_x=yes ;;
1594
1595 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1596 | --x-incl | --x-inc | --x-in | --x-i)
1597 ac_prev=x_includes ;;
1598 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1599 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1600 x_includes=$ac_optarg ;;
1601
1602 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1603 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1604 ac_prev=x_libraries ;;
1605 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1606 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1607 x_libraries=$ac_optarg ;;
1608
cristy98dddb52010-11-04 00:30:15 +00001609 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1610Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001611 ;;
1612
1613 *=*)
1614 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1615 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001616 case $ac_envvar in #(
1617 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001618 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001619 esac
cristy3ed852e2009-09-05 21:47:34 +00001620 eval $ac_envvar=\$ac_optarg
1621 export $ac_envvar ;;
1622
1623 *)
1624 # FIXME: should be removed in autoconf 3.0.
1625 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1626 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1627 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001628 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001629 ;;
1630
1631 esac
1632done
1633
1634if test -n "$ac_prev"; then
1635 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001636 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001637fi
1638
1639if test -n "$ac_unrecognized_opts"; then
1640 case $enable_option_checking in
1641 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001642 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001643 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1644 esac
1645fi
1646
1647# Check all directory arguments for consistency.
1648for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1649 datadir sysconfdir sharedstatedir localstatedir includedir \
1650 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1651 libdir localedir mandir
1652do
1653 eval ac_val=\$$ac_var
1654 # Remove trailing slashes.
1655 case $ac_val in
1656 */ )
1657 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1658 eval $ac_var=\$ac_val;;
1659 esac
1660 # Be sure to have absolute directory names.
1661 case $ac_val in
1662 [\\/$]* | ?:[\\/]* ) continue;;
1663 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1664 esac
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001666done
1667
1668# There might be people who depend on the old broken behavior: `$host'
1669# used to hold the argument of --host etc.
1670# FIXME: To remove some day.
1671build=$build_alias
1672host=$host_alias
1673target=$target_alias
1674
1675# FIXME: To remove some day.
1676if test "x$host_alias" != x; then
1677 if test "x$build_alias" = x; then
1678 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001679 elif test "x$build_alias" != "x$host_alias"; then
1680 cross_compiling=yes
1681 fi
1682fi
1683
1684ac_tool_prefix=
1685test -n "$host_alias" && ac_tool_prefix=$host_alias-
1686
1687test "$silent" = yes && exec 6>/dev/null
1688
1689
1690ac_pwd=`pwd` && test -n "$ac_pwd" &&
1691ac_ls_di=`ls -di .` &&
1692ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001693 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001694test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001695 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001696
1697
1698# Find the source files, if location was not specified.
1699if test -z "$srcdir"; then
1700 ac_srcdir_defaulted=yes
1701 # Try the directory containing this script, then the parent directory.
1702 ac_confdir=`$as_dirname -- "$as_myself" ||
1703$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1704 X"$as_myself" : 'X\(//\)[^/]' \| \
1705 X"$as_myself" : 'X\(//\)$' \| \
1706 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1707$as_echo X"$as_myself" |
1708 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1709 s//\1/
1710 q
1711 }
1712 /^X\(\/\/\)[^/].*/{
1713 s//\1/
1714 q
1715 }
1716 /^X\(\/\/\)$/{
1717 s//\1/
1718 q
1719 }
1720 /^X\(\/\).*/{
1721 s//\1/
1722 q
1723 }
1724 s/.*/./; q'`
1725 srcdir=$ac_confdir
1726 if test ! -r "$srcdir/$ac_unique_file"; then
1727 srcdir=..
1728 fi
1729else
1730 ac_srcdir_defaulted=no
1731fi
1732if test ! -r "$srcdir/$ac_unique_file"; then
1733 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001734 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001735fi
1736ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1737ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001738 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001739 pwd)`
1740# When building in place, set srcdir=.
1741if test "$ac_abs_confdir" = "$ac_pwd"; then
1742 srcdir=.
1743fi
1744# Remove unnecessary trailing slashes from srcdir.
1745# Double slashes in file names in object file debugging info
1746# mess up M-x gdb in Emacs.
1747case $srcdir in
1748*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1749esac
1750for ac_var in $ac_precious_vars; do
1751 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1752 eval ac_env_${ac_var}_value=\$${ac_var}
1753 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1754 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1755done
1756
1757#
1758# Report the --help message.
1759#
1760if test "$ac_init_help" = "long"; then
1761 # Omit some internal or obsolete options to make the list less imposing.
1762 # This message is too long to be a string in the A/UX 3.1 sh.
1763 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001764\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001765
1766Usage: $0 [OPTION]... [VAR=VALUE]...
1767
1768To assign environment variables (e.g., CC, CFLAGS...), specify them as
1769VAR=VALUE. See below for descriptions of some of the useful variables.
1770
1771Defaults for the options are specified in brackets.
1772
1773Configuration:
1774 -h, --help display this help and exit
1775 --help=short display options specific to this package
1776 --help=recursive display the short help of all the included packages
1777 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001778 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001779 --cache-file=FILE cache test results in FILE [disabled]
1780 -C, --config-cache alias for \`--cache-file=config.cache'
1781 -n, --no-create do not create output files
1782 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1783
1784Installation directories:
1785 --prefix=PREFIX install architecture-independent files in PREFIX
1786 [$ac_default_prefix]
1787 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1788 [PREFIX]
1789
1790By default, \`make install' will install all the files in
1791\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1792an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1793for instance \`--prefix=\$HOME'.
1794
1795For better control, use the options below.
1796
1797Fine tuning of the installation directories:
1798 --bindir=DIR user executables [EPREFIX/bin]
1799 --sbindir=DIR system admin executables [EPREFIX/sbin]
1800 --libexecdir=DIR program executables [EPREFIX/libexec]
1801 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1802 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1803 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1804 --libdir=DIR object code libraries [EPREFIX/lib]
1805 --includedir=DIR C header files [PREFIX/include]
1806 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1807 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1808 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1809 --infodir=DIR info documentation [DATAROOTDIR/info]
1810 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1811 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001812 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001813 --htmldir=DIR html documentation [DOCDIR]
1814 --dvidir=DIR dvi documentation [DOCDIR]
1815 --pdfdir=DIR pdf documentation [DOCDIR]
1816 --psdir=DIR ps documentation [DOCDIR]
1817_ACEOF
1818
1819 cat <<\_ACEOF
1820
cristy73bd4a52010-10-05 11:24:23 +00001821Program names:
1822 --program-prefix=PREFIX prepend PREFIX to installed program names
1823 --program-suffix=SUFFIX append SUFFIX to installed program names
1824 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1825
cristy3ed852e2009-09-05 21:47:34 +00001826X features:
1827 --x-includes=DIR X include files are in DIR
1828 --x-libraries=DIR X library files are in DIR
1829
1830System types:
1831 --build=BUILD configure for building on BUILD [guessed]
1832 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1833 --target=TARGET configure for building compilers for TARGET [HOST]
1834_ACEOF
1835fi
1836
1837if test -n "$ac_init_help"; then
1838 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001839 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001840 esac
1841 cat <<\_ACEOF
1842
1843Optional Features:
1844 --disable-option-checking ignore unrecognized --enable/--with options
1845 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1846 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001847 --enable-silent-rules less verbose build output (undo: "make V=1")
1848 --disable-silent-rules verbose build output (undo: "make V=0")
1849 --enable-dependency-tracking
1850 do not reject slow dependency extractors
1851 --disable-dependency-tracking
1852 speeds up one-time build
cristya3824692012-03-30 17:22:07 +00001853 --enable-bounds-checking
1854 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001855 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001856 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001857 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001858 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001859 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001860 --enable-shared[=PKGS] build shared libraries [default=yes]
1861 --enable-static[=PKGS] build static libraries [default=yes]
1862 --enable-fast-install[=PKGS]
1863 optimize for fast installation [default=yes]
1864 --disable-libtool-lock avoid locking (might break parallel builds)
1865 --enable-ltdl-install install libltdl
cristy3ed852e2009-09-05 21:47:34 +00001866 --enable-delegate-build look for delegate libraries in build directory
1867 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001868 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001869 --disable-installed Formally install ImageMagick under PREFIX
1870 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001871 --enable-zero-configuration
1872 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001873 zero-configuration ImageMagick
cristy191c0b72012-08-12 16:29:52 +00001874 --disable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001875 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001876 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001877 --enable-maintainer-mode
1878 enable make rules and dependencies not useful (and
1879 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001880 --enable-ccmalloc enable 'ccmalloc' memory debug support
1881 --enable-efence enable 'efence' memory debug support
1882 --enable-prof enable 'prof' profiling support
1883 --enable-gprof enable 'gprof' profiling support
1884 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001885 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001886 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001887
1888Optional Packages:
1889 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1890 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001891 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001892 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001893 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1894 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001895 --includearch-dir=DIR ARCH specific include directory
1896 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001897 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001898 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001899 both]
cristyda16f162011-02-19 23:52:17 +00001900 --with-sysroot=DIR Search for dependent libraries within DIR
1901 (or the compiler's sysroot if not specified).
cristy73bd4a52010-10-05 11:24:23 +00001902 --with-included-ltdl use the GNU ltdl sources included here
1903 --with-ltdl-include=DIR use the ltdl headers installed in DIR
1904 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
cristy3ed852e2009-09-05 21:47:34 +00001905 --with-modules enable building dynamically loadable modules
1906 --with-method-prefix=PREFIX
1907 prefix MagickCore API methods
1908 --with-quantum-depth=DEPTH
1909 number of bits in a pixel quantum (default 16)
1910 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1911 memory)
1912 --with-frozenpaths freeze delegate paths
1913 --without-magick-plus-plus
1914 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001915 --with-package-release-name=NAME
1916 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001917 --with-perl enable build/install of PerlMagick
1918 --with-perl-options=OPTIONS
1919 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001920 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001921 --with-umem enable umem memory allocation library support
1922 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1923 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001924 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001925 --without-zlib disable ZLIB support
1926 --with-autotrace enable autotrace support
1927 --without-dps disable Display Postscript support
1928 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001929 --with-dejavu-font-dir=DIR
1930 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001931 --without-fftw disable FFTW support
1932 --without-fpx disable FlashPIX support
1933 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001934 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001935 --without-gslib enable Ghostscript library support
1936 --with-fontpath=DIR prepend to default font search path
1937 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001938 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001939 --without-jbig disable JBIG support
1940 --without-jpeg disable JPEG support
1941 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001942 --without-lcms disable lcms (v1.1X) support
1943 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001944 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001945 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001946 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001947 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001948 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001949 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001950 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001951 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001952 --with-windows-font-dir=DIR
1953 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001954 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001955 --without-xml disable XML support
1956
1957Some influential environment variables:
1958 CC C compiler command
1959 CFLAGS C compiler flags
1960 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1961 nonstandard directory <lib dir>
1962 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001963 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001964 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001965 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001966 CXX C++ compiler command
1967 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001968 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001969 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001970 XMKMF Path to xmkmf, Makefile generator for X Window System
1971 AUTOTRACE_CFLAGS
1972 C compiler flags for AUTOTRACE, overriding pkg-config
1973 AUTOTRACE_LIBS
1974 linker flags for AUTOTRACE, overriding pkg-config
1975 FONTCONFIG_CFLAGS
1976 C compiler flags for FONTCONFIG, overriding pkg-config
1977 FONTCONFIG_LIBS
1978 linker flags for FONTCONFIG, overriding pkg-config
1979 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1980 GVC_LIBS linker flags for GVC, overriding pkg-config
1981 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1982 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001983 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1984 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001985 OPENEXR_CFLAGS
1986 C compiler flags for OPENEXR, overriding pkg-config
1987 OPENEXR_LIBS
1988 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001989 PANGO_CFLAGS
1990 C compiler flags for PANGO, overriding pkg-config
1991 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001992 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1993 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1994 CAIRO_SVG_CFLAGS
1995 C compiler flags for CAIRO_SVG, overriding pkg-config
1996 CAIRO_SVG_LIBS
1997 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001998
1999Use these variables to override the choices made by `configure' or to help
2000it to find libraries and programs with nonstandard names/locations.
2001
2002Report bugs to <http://www.imagemagick.org>.
2003_ACEOF
2004ac_status=$?
2005fi
2006
2007if test "$ac_init_help" = "recursive"; then
2008 # If there are subdirs, report their specific --help.
2009 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2010 test -d "$ac_dir" ||
2011 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2012 continue
2013 ac_builddir=.
2014
2015case "$ac_dir" in
2016.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2017*)
2018 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2019 # A ".." for each directory in $ac_dir_suffix.
2020 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2021 case $ac_top_builddir_sub in
2022 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2023 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2024 esac ;;
2025esac
2026ac_abs_top_builddir=$ac_pwd
2027ac_abs_builddir=$ac_pwd$ac_dir_suffix
2028# for backward compatibility:
2029ac_top_builddir=$ac_top_build_prefix
2030
2031case $srcdir in
2032 .) # We are building in place.
2033 ac_srcdir=.
2034 ac_top_srcdir=$ac_top_builddir_sub
2035 ac_abs_top_srcdir=$ac_pwd ;;
2036 [\\/]* | ?:[\\/]* ) # Absolute name.
2037 ac_srcdir=$srcdir$ac_dir_suffix;
2038 ac_top_srcdir=$srcdir
2039 ac_abs_top_srcdir=$srcdir ;;
2040 *) # Relative name.
2041 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2042 ac_top_srcdir=$ac_top_build_prefix$srcdir
2043 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2044esac
2045ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2046
2047 cd "$ac_dir" || { ac_status=$?; continue; }
2048 # Check for guested configure.
2049 if test -f "$ac_srcdir/configure.gnu"; then
2050 echo &&
2051 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2052 elif test -f "$ac_srcdir/configure"; then
2053 echo &&
2054 $SHELL "$ac_srcdir/configure" --help=recursive
2055 else
2056 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2057 fi || ac_status=$?
2058 cd "$ac_pwd" || { ac_status=$?; break; }
2059 done
2060fi
2061
2062test -n "$ac_init_help" && exit $ac_status
2063if $ac_init_version; then
2064 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002065ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002066generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002067
cristy14fefe52012-05-21 00:59:18 +00002068Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002069This configure script is free software; the Free Software Foundation
2070gives unlimited permission to copy, distribute and modify it.
2071_ACEOF
2072 exit
2073fi
cristy8b350f62009-11-15 23:12:43 +00002074
2075## ------------------------ ##
2076## Autoconf initialization. ##
2077## ------------------------ ##
2078
2079# ac_fn_c_try_compile LINENO
2080# --------------------------
2081# Try to compile conftest.$ac_ext, and return whether this succeeded.
2082ac_fn_c_try_compile ()
2083{
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 rm -f conftest.$ac_objext
2086 if { { ac_try="$ac_compile"
2087case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090esac
2091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092$as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_compile") 2>conftest.err
2094 ac_status=$?
2095 if test -s conftest.err; then
2096 grep -v '^ *+' conftest.err >conftest.er1
2097 cat conftest.er1 >&5
2098 mv -f conftest.er1 conftest.err
2099 fi
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; } && {
2102 test -z "$ac_c_werror_flag" ||
2103 test ! -s conftest.err
2104 } && test -s conftest.$ac_objext; then :
2105 ac_retval=0
2106else
2107 $as_echo "$as_me: failed program was:" >&5
2108sed 's/^/| /' conftest.$ac_ext >&5
2109
2110 ac_retval=1
2111fi
cristyda16f162011-02-19 23:52:17 +00002112 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002113 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002114
2115} # ac_fn_c_try_compile
2116
cristy95646052009-11-28 23:05:30 +00002117# ac_fn_c_try_cpp LINENO
2118# ----------------------
2119# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2120ac_fn_c_try_cpp ()
2121{
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 if { { ac_try="$ac_cpp conftest.$ac_ext"
2124case "(($ac_try" in
2125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2126 *) ac_try_echo=$ac_try;;
2127esac
2128eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2129$as_echo "$ac_try_echo"; } >&5
2130 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2131 ac_status=$?
2132 if test -s conftest.err; then
2133 grep -v '^ *+' conftest.err >conftest.er1
2134 cat conftest.er1 >&5
2135 mv -f conftest.er1 conftest.err
2136 fi
2137 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002138 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002139 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2140 test ! -s conftest.err
2141 }; then :
2142 ac_retval=0
2143else
2144 $as_echo "$as_me: failed program was:" >&5
2145sed 's/^/| /' conftest.$ac_ext >&5
2146
2147 ac_retval=1
2148fi
cristyda16f162011-02-19 23:52:17 +00002149 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002150 as_fn_set_status $ac_retval
2151
2152} # ac_fn_c_try_cpp
2153
cristy8b350f62009-11-15 23:12:43 +00002154# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2155# -------------------------------------------------------
2156# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2157# the include files in INCLUDES and setting the cache variable VAR
2158# accordingly.
2159ac_fn_c_check_header_mongrel ()
2160{
2161 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002162 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2164$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002165if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002166 $as_echo_n "(cached) " >&6
2167fi
2168eval ac_res=\$$3
2169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2170$as_echo "$ac_res" >&6; }
2171else
2172 # Is the header compilable?
2173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2174$as_echo_n "checking $2 usability... " >&6; }
2175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2176/* end confdefs.h. */
2177$4
2178#include <$2>
2179_ACEOF
2180if ac_fn_c_try_compile "$LINENO"; then :
2181 ac_header_compiler=yes
2182else
2183 ac_header_compiler=no
2184fi
2185rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2186{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2187$as_echo "$ac_header_compiler" >&6; }
2188
2189# Is the header present?
2190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2191$as_echo_n "checking $2 presence... " >&6; }
2192cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2193/* end confdefs.h. */
2194#include <$2>
2195_ACEOF
2196if ac_fn_c_try_cpp "$LINENO"; then :
2197 ac_header_preproc=yes
2198else
2199 ac_header_preproc=no
2200fi
cristyda16f162011-02-19 23:52:17 +00002201rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2203$as_echo "$ac_header_preproc" >&6; }
2204
2205# So? What about this header?
2206case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2207 yes:no: )
2208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2209$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2211$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2212 ;;
2213 no:yes:* )
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2215$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2217$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2219$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2221$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2222 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2223$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002224( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002225## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002226## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002227 ) | sed "s/^/$as_me: WARNING: /" >&2
2228 ;;
2229esac
2230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2231$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002232if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002233 $as_echo_n "(cached) " >&6
2234else
2235 eval "$3=\$ac_header_compiler"
2236fi
2237eval ac_res=\$$3
2238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2239$as_echo "$ac_res" >&6; }
2240fi
cristyda16f162011-02-19 23:52:17 +00002241 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002242
2243} # ac_fn_c_check_header_mongrel
2244
2245# ac_fn_c_try_run LINENO
2246# ----------------------
2247# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2248# that executables *can* be run.
2249ac_fn_c_try_run ()
2250{
2251 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2252 if { { ac_try="$ac_link"
2253case "(($ac_try" in
2254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2255 *) ac_try_echo=$ac_try;;
2256esac
2257eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2258$as_echo "$ac_try_echo"; } >&5
2259 (eval "$ac_link") 2>&5
2260 ac_status=$?
2261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2262 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2263 { { case "(($ac_try" in
2264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2265 *) ac_try_echo=$ac_try;;
2266esac
2267eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2268$as_echo "$ac_try_echo"; } >&5
2269 (eval "$ac_try") 2>&5
2270 ac_status=$?
2271 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2272 test $ac_status = 0; }; }; then :
2273 ac_retval=0
2274else
2275 $as_echo "$as_me: program exited with status $ac_status" >&5
2276 $as_echo "$as_me: failed program was:" >&5
2277sed 's/^/| /' conftest.$ac_ext >&5
2278
2279 ac_retval=$ac_status
2280fi
2281 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002282 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002283 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002284
2285} # ac_fn_c_try_run
2286
2287# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2288# -------------------------------------------------------
2289# Tests whether HEADER exists and can be compiled using the include files in
2290# INCLUDES, setting the cache variable VAR accordingly.
2291ac_fn_c_check_header_compile ()
2292{
2293 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2295$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002296if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002297 $as_echo_n "(cached) " >&6
2298else
2299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2300/* end confdefs.h. */
2301$4
2302#include <$2>
2303_ACEOF
2304if ac_fn_c_try_compile "$LINENO"; then :
2305 eval "$3=yes"
2306else
2307 eval "$3=no"
2308fi
2309rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2310fi
2311eval ac_res=\$$3
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2313$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002314 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002315
2316} # ac_fn_c_check_header_compile
2317
cristya0b81c32010-01-22 02:54:33 +00002318# ac_fn_cxx_try_compile LINENO
2319# ----------------------------
2320# Try to compile conftest.$ac_ext, and return whether this succeeded.
2321ac_fn_cxx_try_compile ()
2322{
2323 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2324 rm -f conftest.$ac_objext
2325 if { { ac_try="$ac_compile"
2326case "(($ac_try" in
2327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2328 *) ac_try_echo=$ac_try;;
2329esac
2330eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2331$as_echo "$ac_try_echo"; } >&5
2332 (eval "$ac_compile") 2>conftest.err
2333 ac_status=$?
2334 if test -s conftest.err; then
2335 grep -v '^ *+' conftest.err >conftest.er1
2336 cat conftest.er1 >&5
2337 mv -f conftest.er1 conftest.err
2338 fi
2339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2340 test $ac_status = 0; } && {
2341 test -z "$ac_cxx_werror_flag" ||
2342 test ! -s conftest.err
2343 } && test -s conftest.$ac_objext; then :
2344 ac_retval=0
2345else
2346 $as_echo "$as_me: failed program was:" >&5
2347sed 's/^/| /' conftest.$ac_ext >&5
2348
2349 ac_retval=1
2350fi
cristyda16f162011-02-19 23:52:17 +00002351 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002352 as_fn_set_status $ac_retval
2353
2354} # ac_fn_cxx_try_compile
2355
cristy8b350f62009-11-15 23:12:43 +00002356# ac_fn_c_try_link LINENO
2357# -----------------------
2358# Try to link conftest.$ac_ext, and return whether this succeeded.
2359ac_fn_c_try_link ()
2360{
2361 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362 rm -f conftest.$ac_objext conftest$ac_exeext
2363 if { { ac_try="$ac_link"
2364case "(($ac_try" in
2365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2366 *) ac_try_echo=$ac_try;;
2367esac
2368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2369$as_echo "$ac_try_echo"; } >&5
2370 (eval "$ac_link") 2>conftest.err
2371 ac_status=$?
2372 if test -s conftest.err; then
2373 grep -v '^ *+' conftest.err >conftest.er1
2374 cat conftest.er1 >&5
2375 mv -f conftest.er1 conftest.err
2376 fi
2377 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2378 test $ac_status = 0; } && {
2379 test -z "$ac_c_werror_flag" ||
2380 test ! -s conftest.err
2381 } && test -s conftest$ac_exeext && {
2382 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002383 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002384 }; then :
2385 ac_retval=0
2386else
2387 $as_echo "$as_me: failed program was:" >&5
2388sed 's/^/| /' conftest.$ac_ext >&5
2389
2390 ac_retval=1
2391fi
2392 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2393 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2394 # interfere with the next link command; also delete a directory that is
2395 # left behind by Apple's compiler. We do this before executing the actions.
2396 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002397 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002398 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002399
2400} # ac_fn_c_try_link
2401
cristy73bd4a52010-10-05 11:24:23 +00002402# ac_fn_c_check_func LINENO FUNC VAR
2403# ----------------------------------
2404# Tests whether FUNC exists, setting the cache variable VAR accordingly
2405ac_fn_c_check_func ()
2406{
2407 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2409$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002410if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002411 $as_echo_n "(cached) " >&6
2412else
2413 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2414/* end confdefs.h. */
2415/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2417#define $2 innocuous_$2
2418
2419/* System header to define __stub macros and hopefully few prototypes,
2420 which can conflict with char $2 (); below.
2421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2422 <limits.h> exists even on freestanding compilers. */
2423
2424#ifdef __STDC__
2425# include <limits.h>
2426#else
2427# include <assert.h>
2428#endif
2429
2430#undef $2
2431
2432/* Override any GCC internal prototype to avoid an error.
2433 Use char because int might match the return type of a GCC
2434 builtin and then its argument prototype would still apply. */
2435#ifdef __cplusplus
2436extern "C"
2437#endif
2438char $2 ();
2439/* The GNU C library defines this for functions which it implements
2440 to always fail with ENOSYS. Some functions are actually named
2441 something starting with __ and the normal name is an alias. */
2442#if defined __stub_$2 || defined __stub___$2
2443choke me
2444#endif
2445
2446int
2447main ()
2448{
2449return $2 ();
2450 ;
2451 return 0;
2452}
2453_ACEOF
2454if ac_fn_c_try_link "$LINENO"; then :
2455 eval "$3=yes"
2456else
2457 eval "$3=no"
2458fi
2459rm -f core conftest.err conftest.$ac_objext \
2460 conftest$ac_exeext conftest.$ac_ext
2461fi
2462eval ac_res=\$$3
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2464$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002465 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002466
2467} # ac_fn_c_check_func
2468
2469# ac_fn_cxx_try_cpp LINENO
2470# ------------------------
2471# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2472ac_fn_cxx_try_cpp ()
2473{
2474 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2475 if { { ac_try="$ac_cpp conftest.$ac_ext"
2476case "(($ac_try" in
2477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2478 *) ac_try_echo=$ac_try;;
2479esac
2480eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2481$as_echo "$ac_try_echo"; } >&5
2482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2483 ac_status=$?
2484 if test -s conftest.err; then
2485 grep -v '^ *+' conftest.err >conftest.er1
2486 cat conftest.er1 >&5
2487 mv -f conftest.er1 conftest.err
2488 fi
2489 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002490 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002491 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2492 test ! -s conftest.err
2493 }; then :
2494 ac_retval=0
2495else
2496 $as_echo "$as_me: failed program was:" >&5
2497sed 's/^/| /' conftest.$ac_ext >&5
2498
2499 ac_retval=1
2500fi
cristyda16f162011-02-19 23:52:17 +00002501 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002502 as_fn_set_status $ac_retval
2503
2504} # ac_fn_cxx_try_cpp
2505
2506# ac_fn_cxx_try_link LINENO
2507# -------------------------
2508# Try to link conftest.$ac_ext, and return whether this succeeded.
2509ac_fn_cxx_try_link ()
2510{
2511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2512 rm -f conftest.$ac_objext conftest$ac_exeext
2513 if { { ac_try="$ac_link"
2514case "(($ac_try" in
2515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2516 *) ac_try_echo=$ac_try;;
2517esac
2518eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2519$as_echo "$ac_try_echo"; } >&5
2520 (eval "$ac_link") 2>conftest.err
2521 ac_status=$?
2522 if test -s conftest.err; then
2523 grep -v '^ *+' conftest.err >conftest.er1
2524 cat conftest.er1 >&5
2525 mv -f conftest.er1 conftest.err
2526 fi
2527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2528 test $ac_status = 0; } && {
2529 test -z "$ac_cxx_werror_flag" ||
2530 test ! -s conftest.err
2531 } && test -s conftest$ac_exeext && {
2532 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002533 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002534 }; then :
2535 ac_retval=0
2536else
2537 $as_echo "$as_me: failed program was:" >&5
2538sed 's/^/| /' conftest.$ac_ext >&5
2539
2540 ac_retval=1
2541fi
2542 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2543 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2544 # interfere with the next link command; also delete a directory that is
2545 # left behind by Apple's compiler. We do this before executing the actions.
2546 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002547 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002548 as_fn_set_status $ac_retval
2549
2550} # ac_fn_cxx_try_link
2551
cristy98dddb52010-11-04 00:30:15 +00002552# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2553# ---------------------------------------------
2554# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2555# accordingly.
cristy73bd4a52010-10-05 11:24:23 +00002556ac_fn_c_check_decl ()
2557{
2558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristy98dddb52010-11-04 00:30:15 +00002559 as_decl_name=`echo $2|sed 's/ *(.*//'`
2560 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2562$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002563if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002564 $as_echo_n "(cached) " >&6
2565else
2566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2567/* end confdefs.h. */
2568$4
2569int
2570main ()
2571{
cristy98dddb52010-11-04 00:30:15 +00002572#ifndef $as_decl_name
2573#ifdef __cplusplus
2574 (void) $as_decl_use;
2575#else
2576 (void) $as_decl_name;
2577#endif
cristy73bd4a52010-10-05 11:24:23 +00002578#endif
2579
2580 ;
2581 return 0;
2582}
2583_ACEOF
2584if ac_fn_c_try_compile "$LINENO"; then :
2585 eval "$3=yes"
2586else
2587 eval "$3=no"
2588fi
2589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2590fi
2591eval ac_res=\$$3
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2593$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002594 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002595
2596} # ac_fn_c_check_decl
2597
cristy8b350f62009-11-15 23:12:43 +00002598# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2599# -------------------------------------------
2600# Tests whether TYPE exists after having included INCLUDES, setting cache
2601# variable VAR accordingly.
2602ac_fn_c_check_type ()
2603{
2604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2606$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002607if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002608 $as_echo_n "(cached) " >&6
2609else
2610 eval "$3=no"
2611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2612/* end confdefs.h. */
2613$4
2614int
2615main ()
2616{
2617if (sizeof ($2))
2618 return 0;
2619 ;
2620 return 0;
2621}
2622_ACEOF
2623if ac_fn_c_try_compile "$LINENO"; then :
2624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2625/* end confdefs.h. */
2626$4
2627int
2628main ()
2629{
2630if (sizeof (($2)))
2631 return 0;
2632 ;
2633 return 0;
2634}
2635_ACEOF
2636if ac_fn_c_try_compile "$LINENO"; then :
2637
2638else
2639 eval "$3=yes"
2640fi
2641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2642fi
2643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2644fi
2645eval ac_res=\$$3
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2647$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002648 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002649
2650} # ac_fn_c_check_type
2651
cristy92703d82010-04-26 00:18:18 +00002652# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2653# ----------------------------------------------------
2654# Tries to find if the field MEMBER exists in type AGGR, after including
2655# INCLUDES, setting cache variable VAR accordingly.
2656ac_fn_c_check_member ()
2657{
2658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2660$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002661if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002662 $as_echo_n "(cached) " >&6
2663else
2664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2665/* end confdefs.h. */
2666$5
2667int
2668main ()
2669{
2670static $2 ac_aggr;
2671if (ac_aggr.$3)
2672return 0;
2673 ;
2674 return 0;
2675}
2676_ACEOF
2677if ac_fn_c_try_compile "$LINENO"; then :
2678 eval "$4=yes"
2679else
2680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2681/* end confdefs.h. */
2682$5
2683int
2684main ()
2685{
2686static $2 ac_aggr;
2687if (sizeof ac_aggr.$3)
2688return 0;
2689 ;
2690 return 0;
2691}
2692_ACEOF
2693if ac_fn_c_try_compile "$LINENO"; then :
2694 eval "$4=yes"
2695else
2696 eval "$4=no"
2697fi
2698rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2699fi
2700rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2701fi
2702eval ac_res=\$$4
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2704$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002706
2707} # ac_fn_c_check_member
2708
cristy501c8042011-05-26 17:46:28 +00002709# ac_fn_c_find_intX_t LINENO BITS VAR
2710# -----------------------------------
2711# Finds a signed integer type with width BITS, setting cache variable VAR
2712# accordingly.
2713ac_fn_c_find_intX_t ()
2714{
2715 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2717$as_echo_n "checking for int$2_t... " >&6; }
2718if eval \${$3+:} false; then :
2719 $as_echo_n "(cached) " >&6
2720else
2721 eval "$3=no"
2722 # Order is important - never check a type that is potentially smaller
2723 # than half of the expected target width.
2724 for ac_type in int$2_t 'int' 'long int' \
2725 'long long int' 'short int' 'signed char'; do
2726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2727/* end confdefs.h. */
2728$ac_includes_default
2729 enum { N = $2 / 2 - 1 };
2730int
2731main ()
2732{
2733static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002734test_array [0] = 0;
2735return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002736
2737 ;
2738 return 0;
2739}
2740_ACEOF
2741if ac_fn_c_try_compile "$LINENO"; then :
2742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2743/* end confdefs.h. */
2744$ac_includes_default
2745 enum { N = $2 / 2 - 1 };
2746int
2747main ()
2748{
2749static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2750 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002751test_array [0] = 0;
2752return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002753
2754 ;
2755 return 0;
2756}
2757_ACEOF
2758if ac_fn_c_try_compile "$LINENO"; then :
2759
2760else
2761 case $ac_type in #(
2762 int$2_t) :
2763 eval "$3=yes" ;; #(
2764 *) :
2765 eval "$3=\$ac_type" ;;
2766esac
2767fi
2768rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2769fi
2770rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2771 if eval test \"x\$"$3"\" = x"no"; then :
2772
2773else
2774 break
2775fi
2776 done
2777fi
2778eval ac_res=\$$3
2779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2780$as_echo "$ac_res" >&6; }
2781 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2782
2783} # ac_fn_c_find_intX_t
2784
2785# ac_fn_c_find_uintX_t LINENO BITS VAR
2786# ------------------------------------
2787# Finds an unsigned integer type with width BITS, setting cache variable VAR
2788# accordingly.
2789ac_fn_c_find_uintX_t ()
2790{
2791 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2793$as_echo_n "checking for uint$2_t... " >&6; }
2794if eval \${$3+:} false; then :
2795 $as_echo_n "(cached) " >&6
2796else
2797 eval "$3=no"
2798 # Order is important - never check a type that is potentially smaller
2799 # than half of the expected target width.
2800 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2801 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2803/* end confdefs.h. */
2804$ac_includes_default
2805int
2806main ()
2807{
2808static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002809test_array [0] = 0;
2810return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002811
2812 ;
2813 return 0;
2814}
2815_ACEOF
2816if ac_fn_c_try_compile "$LINENO"; then :
2817 case $ac_type in #(
2818 uint$2_t) :
2819 eval "$3=yes" ;; #(
2820 *) :
2821 eval "$3=\$ac_type" ;;
2822esac
2823fi
2824rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2825 if eval test \"x\$"$3"\" = x"no"; then :
2826
2827else
2828 break
2829fi
2830 done
2831fi
2832eval ac_res=\$$3
2833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2834$as_echo "$ac_res" >&6; }
2835 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2836
2837} # ac_fn_c_find_uintX_t
2838
cristy8b350f62009-11-15 23:12:43 +00002839# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2840# --------------------------------------------
2841# Tries to find the compile-time value of EXPR in a program that includes
2842# INCLUDES, setting VAR accordingly. Returns whether the value could be
2843# computed
2844ac_fn_c_compute_int ()
2845{
2846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2847 if test "$cross_compiling" = yes; then
2848 # Depending upon the size, compute the lo and hi bounds.
2849cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2850/* end confdefs.h. */
2851$4
2852int
2853main ()
2854{
2855static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002856test_array [0] = 0;
2857return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002858
2859 ;
2860 return 0;
2861}
2862_ACEOF
2863if ac_fn_c_try_compile "$LINENO"; then :
2864 ac_lo=0 ac_mid=0
2865 while :; do
2866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2867/* end confdefs.h. */
2868$4
2869int
2870main ()
2871{
2872static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002873test_array [0] = 0;
2874return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002875
2876 ;
2877 return 0;
2878}
2879_ACEOF
2880if ac_fn_c_try_compile "$LINENO"; then :
2881 ac_hi=$ac_mid; break
2882else
2883 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2884 if test $ac_lo -le $ac_mid; then
2885 ac_lo= ac_hi=
2886 break
2887 fi
2888 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2889fi
2890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2891 done
2892else
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894/* end confdefs.h. */
2895$4
2896int
2897main ()
2898{
2899static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002900test_array [0] = 0;
2901return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002902
2903 ;
2904 return 0;
2905}
2906_ACEOF
2907if ac_fn_c_try_compile "$LINENO"; then :
2908 ac_hi=-1 ac_mid=-1
2909 while :; do
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911/* end confdefs.h. */
2912$4
2913int
2914main ()
2915{
2916static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002917test_array [0] = 0;
2918return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002919
2920 ;
2921 return 0;
2922}
2923_ACEOF
2924if ac_fn_c_try_compile "$LINENO"; then :
2925 ac_lo=$ac_mid; break
2926else
2927 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2928 if test $ac_mid -le $ac_hi; then
2929 ac_lo= ac_hi=
2930 break
2931 fi
2932 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2933fi
2934rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2935 done
2936else
2937 ac_lo= ac_hi=
2938fi
2939rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2940fi
2941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942# Binary search between lo and hi bounds.
2943while test "x$ac_lo" != "x$ac_hi"; do
2944 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2946/* end confdefs.h. */
2947$4
2948int
2949main ()
2950{
2951static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002952test_array [0] = 0;
2953return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002954
2955 ;
2956 return 0;
2957}
2958_ACEOF
2959if ac_fn_c_try_compile "$LINENO"; then :
2960 ac_hi=$ac_mid
2961else
2962 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2963fi
2964rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2965done
2966case $ac_lo in #((
2967?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2968'') ac_retval=1 ;;
2969esac
2970 else
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972/* end confdefs.h. */
2973$4
2974static long int longval () { return $2; }
2975static unsigned long int ulongval () { return $2; }
2976#include <stdio.h>
2977#include <stdlib.h>
2978int
2979main ()
2980{
2981
2982 FILE *f = fopen ("conftest.val", "w");
2983 if (! f)
2984 return 1;
2985 if (($2) < 0)
2986 {
2987 long int i = longval ();
2988 if (i != ($2))
2989 return 1;
2990 fprintf (f, "%ld", i);
2991 }
2992 else
2993 {
2994 unsigned long int i = ulongval ();
2995 if (i != ($2))
2996 return 1;
2997 fprintf (f, "%lu", i);
2998 }
2999 /* Do not output a trailing newline, as this causes \r\n confusion
3000 on some platforms. */
3001 return ferror (f) || fclose (f) != 0;
3002
3003 ;
3004 return 0;
3005}
3006_ACEOF
3007if ac_fn_c_try_run "$LINENO"; then :
3008 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
3009else
3010 ac_retval=1
3011fi
3012rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3013 conftest.$ac_objext conftest.beam conftest.$ac_ext
3014rm -f conftest.val
3015
3016 fi
cristyda16f162011-02-19 23:52:17 +00003017 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00003018 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00003019
3020} # ac_fn_c_compute_int
3021
3022# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
3023# ---------------------------------------------------------
3024# Tests whether HEADER exists, giving a warning if it cannot be compiled using
3025# the include files in INCLUDES and setting the cache variable VAR
3026# accordingly.
3027ac_fn_cxx_check_header_mongrel ()
3028{
3029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003030 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3032$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003033if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003034 $as_echo_n "(cached) " >&6
3035fi
3036eval ac_res=\$$3
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3038$as_echo "$ac_res" >&6; }
3039else
3040 # Is the header compilable?
3041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3042$as_echo_n "checking $2 usability... " >&6; }
3043cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3044/* end confdefs.h. */
3045$4
3046#include <$2>
3047_ACEOF
3048if ac_fn_cxx_try_compile "$LINENO"; then :
3049 ac_header_compiler=yes
3050else
3051 ac_header_compiler=no
3052fi
3053rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3054{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3055$as_echo "$ac_header_compiler" >&6; }
3056
3057# Is the header present?
3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3059$as_echo_n "checking $2 presence... " >&6; }
3060cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3061/* end confdefs.h. */
3062#include <$2>
3063_ACEOF
3064if ac_fn_cxx_try_cpp "$LINENO"; then :
3065 ac_header_preproc=yes
3066else
3067 ac_header_preproc=no
3068fi
cristyda16f162011-02-19 23:52:17 +00003069rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3071$as_echo "$ac_header_preproc" >&6; }
3072
3073# So? What about this header?
3074case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3075 yes:no: )
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3077$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3079$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3080 ;;
3081 no:yes:* )
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3083$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3085$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3087$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3089$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3091$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003092( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003093## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003094## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003095 ) | sed "s/^/$as_me: WARNING: /" >&2
3096 ;;
3097esac
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3099$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003100if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003101 $as_echo_n "(cached) " >&6
3102else
3103 eval "$3=\$ac_header_compiler"
3104fi
3105eval ac_res=\$$3
3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3107$as_echo "$ac_res" >&6; }
3108fi
cristyda16f162011-02-19 23:52:17 +00003109 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003110
3111} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003112cat >config.log <<_ACEOF
3113This file contains any messages produced by compilers while
3114running configure, to aid debugging if configure makes a mistake.
3115
cristy29eb34e2011-10-16 00:46:08 +00003116It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003117generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003118
3119 $ $0 $@
3120
3121_ACEOF
3122exec 5>>config.log
3123{
3124cat <<_ASUNAME
3125## --------- ##
3126## Platform. ##
3127## --------- ##
3128
3129hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3130uname -m = `(uname -m) 2>/dev/null || echo unknown`
3131uname -r = `(uname -r) 2>/dev/null || echo unknown`
3132uname -s = `(uname -s) 2>/dev/null || echo unknown`
3133uname -v = `(uname -v) 2>/dev/null || echo unknown`
3134
3135/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3136/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3137
3138/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3139/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3140/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3141/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3142/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3143/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3144/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3145
3146_ASUNAME
3147
3148as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3149for as_dir in $PATH
3150do
3151 IFS=$as_save_IFS
3152 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003153 $as_echo "PATH: $as_dir"
3154 done
cristy3ed852e2009-09-05 21:47:34 +00003155IFS=$as_save_IFS
3156
3157} >&5
3158
3159cat >&5 <<_ACEOF
3160
3161
3162## ----------- ##
3163## Core tests. ##
3164## ----------- ##
3165
3166_ACEOF
3167
3168
3169# Keep a trace of the command line.
3170# Strip out --no-create and --no-recursion so they do not pile up.
3171# Strip out --silent because we don't want to record it for future runs.
3172# Also quote any args containing shell meta-characters.
3173# Make two passes to allow for proper duplicate-argument suppression.
3174ac_configure_args=
3175ac_configure_args0=
3176ac_configure_args1=
3177ac_must_keep_next=false
3178for ac_pass in 1 2
3179do
3180 for ac_arg
3181 do
3182 case $ac_arg in
3183 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3184 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3185 | -silent | --silent | --silen | --sile | --sil)
3186 continue ;;
3187 *\'*)
3188 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3189 esac
3190 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003191 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003192 2)
cristy8b350f62009-11-15 23:12:43 +00003193 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003194 if test $ac_must_keep_next = true; then
3195 ac_must_keep_next=false # Got value, back to normal.
3196 else
3197 case $ac_arg in
3198 *=* | --config-cache | -C | -disable-* | --disable-* \
3199 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3200 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3201 | -with-* | --with-* | -without-* | --without-* | --x)
3202 case "$ac_configure_args0 " in
3203 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3204 esac
3205 ;;
3206 -* ) ac_must_keep_next=true ;;
3207 esac
3208 fi
cristy8b350f62009-11-15 23:12:43 +00003209 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003210 ;;
3211 esac
3212 done
3213done
cristy8b350f62009-11-15 23:12:43 +00003214{ ac_configure_args0=; unset ac_configure_args0;}
3215{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003216
3217# When interrupted or exit'd, cleanup temporary files, and complete
3218# config.log. We remove comments because anyway the quotes in there
3219# would cause problems or look ugly.
3220# WARNING: Use '\'' to represent an apostrophe within the trap.
3221# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3222trap 'exit_status=$?
3223 # Save into config.log some information that might help in debugging.
3224 {
3225 echo
3226
cristy98dddb52010-11-04 00:30:15 +00003227 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003228## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003229## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003230 echo
3231 # The following way of writing the cache mishandles newlines in values,
3232(
3233 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3234 eval ac_val=\$$ac_var
3235 case $ac_val in #(
3236 *${as_nl}*)
3237 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003238 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003239$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3240 esac
3241 case $ac_var in #(
3242 _ | IFS | as_nl) ;; #(
3243 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003244 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003245 esac ;;
3246 esac
3247 done
3248 (set) 2>&1 |
3249 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3250 *${as_nl}ac_space=\ *)
3251 sed -n \
3252 "s/'\''/'\''\\\\'\'''\''/g;
3253 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3254 ;; #(
3255 *)
3256 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3257 ;;
3258 esac |
3259 sort
3260)
3261 echo
3262
cristy98dddb52010-11-04 00:30:15 +00003263 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003264## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003265## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003266 echo
3267 for ac_var in $ac_subst_vars
3268 do
3269 eval ac_val=\$$ac_var
3270 case $ac_val in
3271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3272 esac
3273 $as_echo "$ac_var='\''$ac_val'\''"
3274 done | sort
3275 echo
3276
3277 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003278 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003279## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003280## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003281 echo
3282 for ac_var in $ac_subst_files
3283 do
3284 eval ac_val=\$$ac_var
3285 case $ac_val in
3286 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3287 esac
3288 $as_echo "$ac_var='\''$ac_val'\''"
3289 done | sort
3290 echo
3291 fi
3292
3293 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003294 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003295## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003296## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003297 echo
3298 cat confdefs.h
3299 echo
3300 fi
3301 test "$ac_signal" != 0 &&
3302 $as_echo "$as_me: caught signal $ac_signal"
3303 $as_echo "$as_me: exit $exit_status"
3304 } >&5
3305 rm -f core *.core core.conftest.* &&
3306 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3307 exit $exit_status
3308' 0
3309for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003310 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003311done
3312ac_signal=0
3313
3314# confdefs.h avoids OS command line length limits that DEFS can exceed.
3315rm -f -r conftest* confdefs.h
3316
cristy8b350f62009-11-15 23:12:43 +00003317$as_echo "/* confdefs.h */" > confdefs.h
3318
cristy3ed852e2009-09-05 21:47:34 +00003319# Predefined preprocessor variables.
3320
3321cat >>confdefs.h <<_ACEOF
3322#define PACKAGE_NAME "$PACKAGE_NAME"
3323_ACEOF
3324
cristy3ed852e2009-09-05 21:47:34 +00003325cat >>confdefs.h <<_ACEOF
3326#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3327_ACEOF
3328
cristy3ed852e2009-09-05 21:47:34 +00003329cat >>confdefs.h <<_ACEOF
3330#define PACKAGE_VERSION "$PACKAGE_VERSION"
3331_ACEOF
3332
cristy3ed852e2009-09-05 21:47:34 +00003333cat >>confdefs.h <<_ACEOF
3334#define PACKAGE_STRING "$PACKAGE_STRING"
3335_ACEOF
3336
cristy3ed852e2009-09-05 21:47:34 +00003337cat >>confdefs.h <<_ACEOF
3338#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3339_ACEOF
3340
cristy8b350f62009-11-15 23:12:43 +00003341cat >>confdefs.h <<_ACEOF
3342#define PACKAGE_URL "$PACKAGE_URL"
3343_ACEOF
3344
cristy3ed852e2009-09-05 21:47:34 +00003345
3346# Let the site file select an alternate cache file if it wants to.
3347# Prefer an explicitly selected file to automatically selected ones.
3348ac_site_file1=NONE
3349ac_site_file2=NONE
3350if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003351 # We do not want a PATH search for config.site.
3352 case $CONFIG_SITE in #((
3353 -*) ac_site_file1=./$CONFIG_SITE;;
3354 */*) ac_site_file1=$CONFIG_SITE;;
3355 *) ac_site_file1=./$CONFIG_SITE;;
3356 esac
cristy3ed852e2009-09-05 21:47:34 +00003357elif test "x$prefix" != xNONE; then
3358 ac_site_file1=$prefix/share/config.site
3359 ac_site_file2=$prefix/etc/config.site
3360else
3361 ac_site_file1=$ac_default_prefix/share/config.site
3362 ac_site_file2=$ac_default_prefix/etc/config.site
3363fi
3364for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3365do
3366 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003367 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003369$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3370 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003371 . "$ac_site_file" \
3372 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "failed to load site script $ac_site_file
3375See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003376 fi
3377done
3378
3379if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003380 # Some versions of bash will fail to source /dev/null (special files
3381 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3382 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003383 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003384$as_echo "$as_me: loading cache $cache_file" >&6;}
3385 case $cache_file in
3386 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3387 *) . "./$cache_file";;
3388 esac
3389 fi
3390else
cristy8b350f62009-11-15 23:12:43 +00003391 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003392$as_echo "$as_me: creating cache $cache_file" >&6;}
3393 >$cache_file
3394fi
3395
cristycd4c5312009-11-22 01:19:08 +00003396as_fn_append ac_header_list " stdlib.h"
3397as_fn_append ac_header_list " unistd.h"
3398as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003399# Check that the precious variables saved in the cache have kept the same
3400# value.
3401ac_cache_corrupted=false
3402for ac_var in $ac_precious_vars; do
3403 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3404 eval ac_new_set=\$ac_env_${ac_var}_set
3405 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3406 eval ac_new_val=\$ac_env_${ac_var}_value
3407 case $ac_old_set,$ac_new_set in
3408 set,)
cristy8b350f62009-11-15 23:12:43 +00003409 { $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 +00003410$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3411 ac_cache_corrupted=: ;;
3412 ,set)
cristy8b350f62009-11-15 23:12:43 +00003413 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003414$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3415 ac_cache_corrupted=: ;;
3416 ,);;
3417 *)
3418 if test "x$ac_old_val" != "x$ac_new_val"; then
3419 # differences in whitespace do not lead to failure.
3420 ac_old_val_w=`echo x $ac_old_val`
3421 ac_new_val_w=`echo x $ac_new_val`
3422 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003424$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3425 ac_cache_corrupted=:
3426 else
cristy8b350f62009-11-15 23:12:43 +00003427 { $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 +00003428$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3429 eval $ac_var=\$ac_old_val
3430 fi
cristy8b350f62009-11-15 23:12:43 +00003431 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003432$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003433 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003434$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3435 fi;;
3436 esac
3437 # Pass precious variables to config.status.
3438 if test "$ac_new_set" = set; then
3439 case $ac_new_val in
3440 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3441 *) ac_arg=$ac_var=$ac_new_val ;;
3442 esac
3443 case " $ac_configure_args " in
3444 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003445 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003446 esac
3447 fi
3448done
3449if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003450 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003451$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003452 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003453$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003454 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003455fi
cristy8b350f62009-11-15 23:12:43 +00003456## -------------------- ##
3457## Main body of script. ##
3458## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003459
3460ac_ext=c
3461ac_cpp='$CPP $CPPFLAGS'
3462ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465
3466
3467
3468ac_aux_dir=
3469for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003470 if test -f "$ac_dir/install-sh"; then
3471 ac_aux_dir=$ac_dir
3472 ac_install_sh="$ac_aux_dir/install-sh -c"
3473 break
3474 elif test -f "$ac_dir/install.sh"; then
3475 ac_aux_dir=$ac_dir
3476 ac_install_sh="$ac_aux_dir/install.sh -c"
3477 break
3478 elif test -f "$ac_dir/shtool"; then
3479 ac_aux_dir=$ac_dir
3480 ac_install_sh="$ac_aux_dir/shtool install -c"
3481 break
3482 fi
cristy3ed852e2009-09-05 21:47:34 +00003483done
3484if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003485 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003486fi
3487
3488# These three variables are undocumented and unsupported,
3489# and are intended to be withdrawn in a future Autoconf release.
3490# They can cause serious problems if a builder's source tree is in a directory
3491# whose full name contains unusual characters.
3492ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3493ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3494ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3495
3496
3497
3498
cristybc556452012-08-17 19:44:03 +00003499
cristy3ed852e2009-09-05 21:47:34 +00003500ac_config_headers="$ac_config_headers config/config.h"
3501
cristy24fc1fe2010-10-23 21:13:01 +00003502
cristy4c08aed2011-07-01 19:47:50 +00003503ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003504
cristy2df32802012-09-17 01:15:28 +00003505ac_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 +00003506
3507
3508#
3509# Save initial user-tunable values
3510#
3511USER_LIBS=$LIBS
3512for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3513 eval isset=\${$var+set}
3514 if test "$isset" = 'set'; then
3515 eval val=$`echo $var`
3516 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3517 fi
3518done
3519
3520
3521CONFIGURE_ARGS="$0 ${ac_configure_args}"
3522
3523
3524# Source file containing package/library versioning information.
3525. ${srcdir}/version.sh
3526
cristy15a88782010-01-31 23:24:49 +00003527echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003528# Make sure we can run config.sub.
3529$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003530 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003531
cristy8b350f62009-11-15 23:12:43 +00003532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003533$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003534if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003535 $as_echo_n "(cached) " >&6
3536else
3537 ac_build_alias=$build_alias
3538test "x$ac_build_alias" = x &&
3539 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3540test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003541 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003542ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003543 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003544
3545fi
cristy8b350f62009-11-15 23:12:43 +00003546{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003547$as_echo "$ac_cv_build" >&6; }
3548case $ac_cv_build in
3549*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003550*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003551esac
3552build=$ac_cv_build
3553ac_save_IFS=$IFS; IFS='-'
3554set x $ac_cv_build
3555shift
3556build_cpu=$1
3557build_vendor=$2
3558shift; shift
3559# Remember, the first character of IFS is used to create $*,
3560# except with old shells:
3561build_os=$*
3562IFS=$ac_save_IFS
3563case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3564
3565
cristy8b350f62009-11-15 23:12:43 +00003566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003567$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003568if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003569 $as_echo_n "(cached) " >&6
3570else
3571 if test "x$host_alias" = x; then
3572 ac_cv_host=$ac_cv_build
3573else
3574 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003575 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003576fi
3577
3578fi
cristy8b350f62009-11-15 23:12:43 +00003579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003580$as_echo "$ac_cv_host" >&6; }
3581case $ac_cv_host in
3582*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003583*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003584esac
3585host=$ac_cv_host
3586ac_save_IFS=$IFS; IFS='-'
3587set x $ac_cv_host
3588shift
3589host_cpu=$1
3590host_vendor=$2
3591shift; shift
3592# Remember, the first character of IFS is used to create $*,
3593# except with old shells:
3594host_os=$*
3595IFS=$ac_save_IFS
3596case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3597
3598
cristy8b350f62009-11-15 23:12:43 +00003599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003600$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003601if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003602 $as_echo_n "(cached) " >&6
3603else
3604 if test "x$target_alias" = x; then
3605 ac_cv_target=$ac_cv_host
3606else
3607 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003608 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003609fi
3610
3611fi
cristy8b350f62009-11-15 23:12:43 +00003612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003613$as_echo "$ac_cv_target" >&6; }
3614case $ac_cv_target in
3615*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003616*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003617esac
3618target=$ac_cv_target
3619ac_save_IFS=$IFS; IFS='-'
3620set x $ac_cv_target
3621shift
3622target_cpu=$1
3623target_vendor=$2
3624shift; shift
3625# Remember, the first character of IFS is used to create $*,
3626# except with old shells:
3627target_os=$*
3628IFS=$ac_save_IFS
3629case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3630
3631
3632# The aliases save the names the user supplied, while $host etc.
3633# will get canonicalized.
3634test -n "$target_alias" &&
3635 test "$program_prefix$program_suffix$program_transform_name" = \
3636 NONENONEs,x,x, &&
3637 program_prefix=${target_alias}-
3638
cristy837d6dc2010-02-27 01:16:57 +00003639
3640
3641
cristy8be34142012-06-17 14:07:18 +00003642
cristy19615b82011-04-13 20:02:01 +00003643MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003644
3645
cristy27d53d62012-07-29 23:30:07 +00003646cat >>confdefs.h <<_ACEOF
3647#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3648_ACEOF
3649
3650
cristy19615b82011-04-13 20:02:01 +00003651MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003652
3653
cristy27d53d62012-07-29 23:30:07 +00003654cat >>confdefs.h <<_ACEOF
3655#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3656_ACEOF
3657
3658
cristy19615b82011-04-13 20:02:01 +00003659MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003660
3661
cristy27d53d62012-07-29 23:30:07 +00003662cat >>confdefs.h <<_ACEOF
3663#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3664_ACEOF
3665
3666
cristy3ed852e2009-09-05 21:47:34 +00003667# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003668MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3669
3670MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3671
cristy13d4e2f2012-10-15 19:11:23 +00003672MAGICK_SVN_REVISION=9625:9627M
cristyd694ca32011-03-27 21:42:54 +00003673
cristy3ed852e2009-09-05 21:47:34 +00003674
3675
3676# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3678$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003679# Reject unsafe characters in $srcdir or the absolute working directory
3680# name. Accept space and tab only in the latter.
3681am_lf='
3682'
3683case `pwd` in
3684 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003685 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003686esac
3687case $srcdir in
3688 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003689 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003690esac
cristy3ed852e2009-09-05 21:47:34 +00003691
cristyc0890a62012-07-19 00:18:20 +00003692# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003693# arguments. Must try -L first in case configure is actually a
3694# symlink; some systems play weird games with the mod time of symlinks
3695# (eg FreeBSD returns the mod time of the symlink's containing
3696# directory).
3697if (
cristyc0890a62012-07-19 00:18:20 +00003698 am_has_slept=no
3699 for am_try in 1 2; do
3700 echo "timestamp, slept: $am_has_slept" > conftest.file
3701 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3702 if test "$*" = "X"; then
3703 # -L didn't work.
3704 set X `ls -t "$srcdir/configure" conftest.file`
3705 fi
3706 if test "$*" != "X $srcdir/configure conftest.file" \
3707 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003708
cristyc0890a62012-07-19 00:18:20 +00003709 # If neither matched, then we have a broken ls. This can happen
3710 # if, for instance, CONFIG_SHELL is bash and it inherits a
3711 # broken ls alias from the environment. This has actually
3712 # happened. Such a system could not be considered "sane".
3713 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3714 alias in your environment" "$LINENO" 5
3715 fi
3716 if test "$2" = conftest.file || test $am_try -eq 2; then
3717 break
3718 fi
3719 # Just in case.
3720 sleep 1
3721 am_has_slept=yes
3722 done
cristy73bd4a52010-10-05 11:24:23 +00003723 test "$2" = conftest.file
3724 )
3725then
3726 # Ok.
3727 :
3728else
cristy98dddb52010-11-04 00:30:15 +00003729 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003730Check your system clock" "$LINENO" 5
3731fi
3732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3733$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003734# If we didn't sleep, we still need to ensure time stamps of config.status and
3735# generated files are strictly newer.
3736am_sleep_pid=
3737if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3738 ( sleep 1 ) &
3739 am_sleep_pid=$!
3740fi
cristy73bd4a52010-10-05 11:24:23 +00003741
cristyc0890a62012-07-19 00:18:20 +00003742rm -f conftest.file
3743
3744
3745am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003746
3747# Find a good install program. We prefer a C program (faster),
3748# so one script is as good as another. But avoid the broken or
3749# incompatible versions:
3750# SysV /etc/install, /usr/sbin/install
3751# SunOS /usr/etc/install
3752# IRIX /sbin/install
3753# AIX /bin/install
3754# AmigaOS /C/install, which installs bootblocks on floppy discs
3755# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3756# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3757# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3758# OS/2's system install, which has a completely different semantic
3759# ./install, which can be erroneously created by make from ./install.sh.
3760# Reject install programs that cannot install multiple files.
3761{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3762$as_echo_n "checking for a BSD-compatible install... " >&6; }
3763if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003764if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003765 $as_echo_n "(cached) " >&6
3766else
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768for as_dir in $PATH
3769do
3770 IFS=$as_save_IFS
3771 test -z "$as_dir" && as_dir=.
3772 # Account for people who put trailing slashes in PATH elements.
3773case $as_dir/ in #((
3774 ./ | .// | /[cC]/* | \
3775 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3776 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3777 /usr/ucb/* ) ;;
3778 *)
3779 # OSF1 and SCO ODT 3.0 have their own names for install.
3780 # Don't use installbsd from OSF since it installs stuff as root
3781 # by default.
3782 for ac_prog in ginstall scoinst install; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003784 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003785 if test $ac_prog = install &&
3786 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3787 # AIX install. It has an incompatible calling convention.
3788 :
3789 elif test $ac_prog = install &&
3790 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3791 # program-specific install script used by HP pwplus--don't use.
3792 :
3793 else
3794 rm -rf conftest.one conftest.two conftest.dir
3795 echo one > conftest.one
3796 echo two > conftest.two
3797 mkdir conftest.dir
3798 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3799 test -s conftest.one && test -s conftest.two &&
3800 test -s conftest.dir/conftest.one &&
3801 test -s conftest.dir/conftest.two
3802 then
3803 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3804 break 3
3805 fi
3806 fi
3807 fi
3808 done
3809 done
3810 ;;
3811esac
3812
3813 done
3814IFS=$as_save_IFS
3815
3816rm -rf conftest.one conftest.two conftest.dir
3817
3818fi
3819 if test "${ac_cv_path_install+set}" = set; then
3820 INSTALL=$ac_cv_path_install
3821 else
3822 # As a last resort, use the slow shell script. Don't cache a
3823 # value for INSTALL within a source directory, because that will
3824 # break other packages using the cache if that directory is
3825 # removed, or if the value is a relative name.
3826 INSTALL=$ac_install_sh
3827 fi
3828fi
3829{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3830$as_echo "$INSTALL" >&6; }
3831
3832# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3833# It thinks the first close brace ends the variable substitution.
3834test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3835
3836test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3837
3838test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3839
3840test "$program_prefix" != NONE &&
3841 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3842# Use a double $ so make ignores it.
3843test "$program_suffix" != NONE &&
3844 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3845# Double any \ or $.
3846# By default was `s,x,x', remove it if useless.
3847ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3848program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3849
3850# expand $ac_aux_dir to an absolute path
3851am_aux_dir=`cd $ac_aux_dir && pwd`
3852
3853if test x"${MISSING+set}" != xset; then
3854 case $am_aux_dir in
3855 *\ * | *\ *)
3856 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3857 *)
3858 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3859 esac
3860fi
3861# Use eval to expand $SHELL
3862if eval "$MISSING --run true"; then
3863 am_missing_run="$MISSING --run "
3864else
3865 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3867$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003868fi
3869
3870if test x"${install_sh}" != xset; then
3871 case $am_aux_dir in
3872 *\ * | *\ *)
3873 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3874 *)
3875 install_sh="\${SHELL} $am_aux_dir/install-sh"
3876 esac
3877fi
3878
cristyc0890a62012-07-19 00:18:20 +00003879# Installed binaries are usually stripped using 'strip' when the user
3880# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003881# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003882# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003883if test "$cross_compiling" != no; then
3884 if test -n "$ac_tool_prefix"; then
3885 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3886set dummy ${ac_tool_prefix}strip; ac_word=$2
3887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3888$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003889if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003890 $as_echo_n "(cached) " >&6
3891else
3892 if test -n "$STRIP"; then
3893 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3894else
3895as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3896for as_dir in $PATH
3897do
3898 IFS=$as_save_IFS
3899 test -z "$as_dir" && as_dir=.
3900 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003901 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003902 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3904 break 2
3905 fi
3906done
3907 done
3908IFS=$as_save_IFS
3909
3910fi
3911fi
3912STRIP=$ac_cv_prog_STRIP
3913if test -n "$STRIP"; then
3914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3915$as_echo "$STRIP" >&6; }
3916else
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3918$as_echo "no" >&6; }
3919fi
3920
3921
3922fi
3923if test -z "$ac_cv_prog_STRIP"; then
3924 ac_ct_STRIP=$STRIP
3925 # Extract the first word of "strip", so it can be a program name with args.
3926set dummy strip; ac_word=$2
3927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003929if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003930 $as_echo_n "(cached) " >&6
3931else
3932 if test -n "$ac_ct_STRIP"; then
3933 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3934else
3935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3936for as_dir in $PATH
3937do
3938 IFS=$as_save_IFS
3939 test -z "$as_dir" && as_dir=.
3940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003942 ac_cv_prog_ac_ct_STRIP="strip"
3943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3944 break 2
3945 fi
3946done
3947 done
3948IFS=$as_save_IFS
3949
3950fi
3951fi
3952ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3953if test -n "$ac_ct_STRIP"; then
3954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3955$as_echo "$ac_ct_STRIP" >&6; }
3956else
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3958$as_echo "no" >&6; }
3959fi
3960
3961 if test "x$ac_ct_STRIP" = x; then
3962 STRIP=":"
3963 else
3964 case $cross_compiling:$ac_tool_warned in
3965yes:)
3966{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3967$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3968ac_tool_warned=yes ;;
3969esac
3970 STRIP=$ac_ct_STRIP
3971 fi
3972else
3973 STRIP="$ac_cv_prog_STRIP"
3974fi
3975
3976fi
3977INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3978
3979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3980$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3981if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003982 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003983 $as_echo_n "(cached) " >&6
3984else
3985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3986for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3987do
3988 IFS=$as_save_IFS
3989 test -z "$as_dir" && as_dir=.
3990 for ac_prog in mkdir gmkdir; do
3991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003992 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003993 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3994 'mkdir (GNU coreutils) '* | \
3995 'mkdir (coreutils) '* | \
3996 'mkdir (fileutils) '4.1*)
3997 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3998 break 3;;
3999 esac
4000 done
4001 done
4002 done
4003IFS=$as_save_IFS
4004
4005fi
4006
4007 test -d ./--version && rmdir ./--version
4008 if test "${ac_cv_path_mkdir+set}" = set; then
4009 MKDIR_P="$ac_cv_path_mkdir -p"
4010 else
4011 # As a last resort, use the slow shell script. Don't cache a
4012 # value for MKDIR_P within a source directory, because that will
4013 # break other packages using the cache if that directory is
4014 # removed, or if the value is a relative name.
4015 MKDIR_P="$ac_install_sh -d"
4016 fi
4017fi
4018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4019$as_echo "$MKDIR_P" >&6; }
4020
cristy73bd4a52010-10-05 11:24:23 +00004021for ac_prog in gawk mawk nawk awk
4022do
4023 # Extract the first word of "$ac_prog", so it can be a program name with args.
4024set dummy $ac_prog; ac_word=$2
4025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004027if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004028 $as_echo_n "(cached) " >&6
4029else
4030 if test -n "$AWK"; then
4031 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4032else
4033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4034for as_dir in $PATH
4035do
4036 IFS=$as_save_IFS
4037 test -z "$as_dir" && as_dir=.
4038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004040 ac_cv_prog_AWK="$ac_prog"
4041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4042 break 2
4043 fi
4044done
4045 done
4046IFS=$as_save_IFS
4047
4048fi
4049fi
4050AWK=$ac_cv_prog_AWK
4051if test -n "$AWK"; then
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4053$as_echo "$AWK" >&6; }
4054else
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4056$as_echo "no" >&6; }
4057fi
4058
4059
4060 test -n "$AWK" && break
4061done
4062
4063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4064$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4065set x ${MAKE-make}
4066ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004067if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004068 $as_echo_n "(cached) " >&6
4069else
4070 cat >conftest.make <<\_ACEOF
4071SHELL = /bin/sh
4072all:
4073 @echo '@@@%%%=$(MAKE)=@@@%%%'
4074_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004075# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004076case `${MAKE-make} -f conftest.make 2>/dev/null` in
4077 *@@@%%%=?*=@@@%%%*)
4078 eval ac_cv_prog_make_${ac_make}_set=yes;;
4079 *)
4080 eval ac_cv_prog_make_${ac_make}_set=no;;
4081esac
4082rm -f conftest.make
4083fi
4084if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4086$as_echo "yes" >&6; }
4087 SET_MAKE=
4088else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4090$as_echo "no" >&6; }
4091 SET_MAKE="MAKE=${MAKE-make}"
4092fi
4093
4094rm -rf .tst 2>/dev/null
4095mkdir .tst 2>/dev/null
4096if test -d .tst; then
4097 am__leading_dot=.
4098else
4099 am__leading_dot=_
4100fi
4101rmdir .tst 2>/dev/null
4102
cristya448bd22011-10-14 12:38:13 +00004103# Check whether --enable-silent-rules was given.
4104if test "${enable_silent_rules+set}" = set; then :
4105 enableval=$enable_silent_rules;
4106fi
4107
cristyc0890a62012-07-19 00:18:20 +00004108case $enable_silent_rules in # (((
4109 yes) AM_DEFAULT_VERBOSITY=0;;
4110 no) AM_DEFAULT_VERBOSITY=1;;
4111 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004112esac
cristyc3fb77b2012-02-06 01:49:41 +00004113am_make=${MAKE-make}
4114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4115$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4116if ${am_cv_make_support_nested_variables+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118else
4119 if $as_echo 'TRUE=$(BAR$(V))
4120BAR0=false
4121BAR1=true
4122V=1
4123am__doit:
4124 @$(TRUE)
4125.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4126 am_cv_make_support_nested_variables=yes
4127else
4128 am_cv_make_support_nested_variables=no
4129fi
4130fi
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4132$as_echo "$am_cv_make_support_nested_variables" >&6; }
4133if test $am_cv_make_support_nested_variables = yes; then
4134 AM_V='$(V)'
4135 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4136else
4137 AM_V=$AM_DEFAULT_VERBOSITY
4138 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4139fi
cristya448bd22011-10-14 12:38:13 +00004140AM_BACKSLASH='\'
4141
cristy73bd4a52010-10-05 11:24:23 +00004142if test "`cd $srcdir && pwd`" != "`pwd`"; then
4143 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4144 # is not polluted with repeated "-I."
4145 am__isrc=' -I$(srcdir)'
4146 # test to see if srcdir already configured
4147 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004148 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004149 fi
4150fi
4151
4152# test whether we have cygpath
4153if test -z "$CYGPATH_W"; then
4154 if (cygpath --version) >/dev/null 2>/dev/null; then
4155 CYGPATH_W='cygpath -w'
4156 else
4157 CYGPATH_W=echo
4158 fi
4159fi
4160
4161
4162# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004163 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004164 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004165
4166
cristya448bd22011-10-14 12:38:13 +00004167cat >>confdefs.h <<_ACEOF
4168#define PACKAGE "$PACKAGE"
4169_ACEOF
4170
4171
4172cat >>confdefs.h <<_ACEOF
4173#define VERSION "$VERSION"
4174_ACEOF
4175
cristy73bd4a52010-10-05 11:24:23 +00004176# Some tools Automake needs.
4177
4178ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4179
4180
4181AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4182
4183
4184AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4185
4186
4187AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4188
4189
4190MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4191
cristyc0890a62012-07-19 00:18:20 +00004192# For better backward compatibility. To be removed once Automake 1.9.x
4193# dies out for good. For more background, see:
4194# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4195# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4196mkdir_p='$(MKDIR_P)'
4197
cristy73bd4a52010-10-05 11:24:23 +00004198# We need awk for the "check" target. The system "awk" is bad on
4199# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004200# Always define AMTAR for backward compatibility. Yes, it's still used
4201# in the wild :-( We should find a proper way to deprecate it ...
4202AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004203
cristyc3fb77b2012-02-06 01:49:41 +00004204am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004205
4206
4207
4208
4209
cristy3ed852e2009-09-05 21:47:34 +00004210
4211# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004212# Check whether --enable-silent-rules was given.
4213if test "${enable_silent_rules+set}" = set; then :
4214 enableval=$enable_silent_rules;
4215fi
4216
cristyc0890a62012-07-19 00:18:20 +00004217case $enable_silent_rules in # (((
4218 yes) AM_DEFAULT_VERBOSITY=0;;
4219 no) AM_DEFAULT_VERBOSITY=1;;
4220 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004221esac
cristyc3fb77b2012-02-06 01:49:41 +00004222am_make=${MAKE-make}
4223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4224$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4225if ${am_cv_make_support_nested_variables+:} false; then :
4226 $as_echo_n "(cached) " >&6
4227else
4228 if $as_echo 'TRUE=$(BAR$(V))
4229BAR0=false
4230BAR1=true
4231V=1
4232am__doit:
4233 @$(TRUE)
4234.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4235 am_cv_make_support_nested_variables=yes
4236else
4237 am_cv_make_support_nested_variables=no
4238fi
4239fi
4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4241$as_echo "$am_cv_make_support_nested_variables" >&6; }
4242if test $am_cv_make_support_nested_variables = yes; then
4243 AM_V='$(V)'
4244 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4245else
4246 AM_V=$AM_DEFAULT_VERBOSITY
4247 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4248fi
cristy73bd4a52010-10-05 11:24:23 +00004249AM_BACKSLASH='\'
4250
cristy3ed852e2009-09-05 21:47:34 +00004251
4252MAGICK_LIB_VERSION="0x"
4253if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4254 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4255fi
4256MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4257if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4258 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4259fi
4260MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4261if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4262 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4263fi
4264MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4265
4266
4267# Definition used to define MagickLibVersionText in version.h
4268MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4269
4270
4271# Definition used to define MagickLibVersionNumber in version.h
4272MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4273
4274
4275# Regenerate config.status if ChangeLog or version.sh is updated.
4276CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4277
4278
4279PERLMAINCC=$CC
4280
4281MAGICK_CFLAGS=''
4282MAGICK_CPPFLAGS=$CPPFLAGS_USER
4283MAGICK_PCFLAGS=$CPPFLAGS_USER
4284MAGICK_LDFLAGS=''
4285MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004286MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004287
4288#
4289# Evaluate shell variable equivalents to Makefile directory variables
4290#
4291if test "x$prefix" = xNONE; then
4292 prefix=$ac_default_prefix
4293fi
4294# Let make expand exec_prefix.
4295if test "x$exec_prefix" = xNONE; then
4296 exec_prefix='${prefix}'
4297fi
4298
4299#
4300eval "eval PREFIX_DIR=${prefix}"
4301
4302eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4303
4304eval "eval BIN_DIR=$bindir"
4305
4306eval "eval SBIN_DIR=$sbindir"
4307
4308eval "eval LIBEXEC_DIR=$libexecdir"
4309
4310eval "eval DATA_DIR=$datadir"
4311
cristy4e65ec22012-04-08 01:33:27 +00004312eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004313
cristy3ed852e2009-09-05 21:47:34 +00004314eval "eval SYSCONF_DIR=$sysconfdir"
4315
4316eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4317
4318eval "eval LOCALSTATE_DIR=$localstatedir"
4319
4320eval "eval LIB_DIR=$libdir"
4321
4322eval "eval INCLUDE_DIR=$includedir"
4323
4324eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4325
4326eval "eval INFO_DIR=$infodir"
4327
4328eval "eval MAN_DIR=$mandir"
4329
4330
4331# Get full paths to source and build directories
4332srcdirfull="`cd $srcdir && pwd`"
4333builddir="`pwd`"
4334
4335#
4336# Compute variables useful for running uninstalled software.
4337#
4338MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4339MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4340MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4341MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4342DIRSEP=':'
4343case "${build_os}" in
4344 mingw* )
4345 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4346 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4347 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4348 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4349 DIRSEP=';'
4350 ;;
4351esac
4352case "${host_os}" in
4353 mingw* )
4354 DIRSEP=';'
4355 ;;
4356esac
4357
4358
4359
4360
4361
4362
cristya0b81c32010-01-22 02:54:33 +00004363
4364#
4365# Enable OS features.
4366#
cristy73bd4a52010-10-05 11:24:23 +00004367DEPDIR="${am__leading_dot}deps"
4368
4369ac_config_commands="$ac_config_commands depfiles"
4370
4371
4372am_make=${MAKE-make}
4373cat > confinc << 'END'
4374am__doit:
4375 @echo this is the am__doit target
4376.PHONY: am__doit
4377END
4378# If we don't find an include directive, just comment out the code.
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4380$as_echo_n "checking for style of include used by $am_make... " >&6; }
4381am__include="#"
4382am__quote=
4383_am_result=none
4384# First try GNU make style include.
4385echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004386# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004387case `$am_make -s -f confmf 2> /dev/null` in #(
4388*the\ am__doit\ target*)
4389 am__include=include
4390 am__quote=
4391 _am_result=GNU
4392 ;;
4393esac
4394# Now try BSD make style include.
4395if test "$am__include" = "#"; then
4396 echo '.include "confinc"' > confmf
4397 case `$am_make -s -f confmf 2> /dev/null` in #(
4398 *the\ am__doit\ target*)
4399 am__include=.include
4400 am__quote="\""
4401 _am_result=BSD
4402 ;;
4403 esac
4404fi
4405
4406
4407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4408$as_echo "$_am_result" >&6; }
4409rm -f confinc confmf
4410
4411# Check whether --enable-dependency-tracking was given.
4412if test "${enable_dependency_tracking+set}" = set; then :
4413 enableval=$enable_dependency_tracking;
4414fi
4415
4416if test "x$enable_dependency_tracking" != xno; then
4417 am_depcomp="$ac_aux_dir/depcomp"
4418 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004419 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004420fi
4421 if test "x$enable_dependency_tracking" != xno; then
4422 AMDEP_TRUE=
4423 AMDEP_FALSE='#'
4424else
4425 AMDEP_TRUE='#'
4426 AMDEP_FALSE=
4427fi
4428
4429
cristy3ed852e2009-09-05 21:47:34 +00004430ac_ext=c
4431ac_cpp='$CPP $CPPFLAGS'
4432ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4433ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4434ac_compiler_gnu=$ac_cv_c_compiler_gnu
4435if test -n "$ac_tool_prefix"; then
4436 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4437set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004440if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004441 $as_echo_n "(cached) " >&6
4442else
4443 if test -n "$CC"; then
4444 ac_cv_prog_CC="$CC" # Let the user override the test.
4445else
4446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4447for as_dir in $PATH
4448do
4449 IFS=$as_save_IFS
4450 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004451 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004452 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004453 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004455 break 2
4456 fi
4457done
cristy8b350f62009-11-15 23:12:43 +00004458 done
cristy3ed852e2009-09-05 21:47:34 +00004459IFS=$as_save_IFS
4460
4461fi
4462fi
4463CC=$ac_cv_prog_CC
4464if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004466$as_echo "$CC" >&6; }
4467else
cristy8b350f62009-11-15 23:12:43 +00004468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004469$as_echo "no" >&6; }
4470fi
4471
4472
4473fi
4474if test -z "$ac_cv_prog_CC"; then
4475 ac_ct_CC=$CC
4476 # Extract the first word of "gcc", so it can be a program name with args.
4477set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004480if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004481 $as_echo_n "(cached) " >&6
4482else
4483 if test -n "$ac_ct_CC"; then
4484 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4485else
4486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4487for as_dir in $PATH
4488do
4489 IFS=$as_save_IFS
4490 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004491 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004492 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004493 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004494 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004495 break 2
4496 fi
4497done
cristy8b350f62009-11-15 23:12:43 +00004498 done
cristy3ed852e2009-09-05 21:47:34 +00004499IFS=$as_save_IFS
4500
4501fi
4502fi
4503ac_ct_CC=$ac_cv_prog_ac_ct_CC
4504if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004506$as_echo "$ac_ct_CC" >&6; }
4507else
cristy8b350f62009-11-15 23:12:43 +00004508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004509$as_echo "no" >&6; }
4510fi
4511
4512 if test "x$ac_ct_CC" = x; then
4513 CC=""
4514 else
4515 case $cross_compiling:$ac_tool_warned in
4516yes:)
cristy8b350f62009-11-15 23:12:43 +00004517{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4519ac_tool_warned=yes ;;
4520esac
4521 CC=$ac_ct_CC
4522 fi
4523else
4524 CC="$ac_cv_prog_CC"
4525fi
4526
4527if test -z "$CC"; then
4528 if test -n "$ac_tool_prefix"; then
4529 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4530set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004533if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004534 $as_echo_n "(cached) " >&6
4535else
4536 if test -n "$CC"; then
4537 ac_cv_prog_CC="$CC" # Let the user override the test.
4538else
4539as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4540for as_dir in $PATH
4541do
4542 IFS=$as_save_IFS
4543 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004544 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004545 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004546 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004547 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004548 break 2
4549 fi
4550done
cristy8b350f62009-11-15 23:12:43 +00004551 done
cristy3ed852e2009-09-05 21:47:34 +00004552IFS=$as_save_IFS
4553
4554fi
4555fi
4556CC=$ac_cv_prog_CC
4557if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004559$as_echo "$CC" >&6; }
4560else
cristy8b350f62009-11-15 23:12:43 +00004561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004562$as_echo "no" >&6; }
4563fi
4564
4565
4566 fi
4567fi
4568if test -z "$CC"; then
4569 # Extract the first word of "cc", so it can be a program name with args.
4570set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004572$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004573if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004574 $as_echo_n "(cached) " >&6
4575else
4576 if test -n "$CC"; then
4577 ac_cv_prog_CC="$CC" # Let the user override the test.
4578else
4579 ac_prog_rejected=no
4580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4581for as_dir in $PATH
4582do
4583 IFS=$as_save_IFS
4584 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004587 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4588 ac_prog_rejected=yes
4589 continue
4590 fi
4591 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004592 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004593 break 2
4594 fi
4595done
cristy8b350f62009-11-15 23:12:43 +00004596 done
cristy3ed852e2009-09-05 21:47:34 +00004597IFS=$as_save_IFS
4598
4599if test $ac_prog_rejected = yes; then
4600 # We found a bogon in the path, so make sure we never use it.
4601 set dummy $ac_cv_prog_CC
4602 shift
4603 if test $# != 0; then
4604 # We chose a different compiler from the bogus one.
4605 # However, it has the same basename, so the bogon will be chosen
4606 # first if we set CC to just the basename; use the full file name.
4607 shift
4608 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4609 fi
4610fi
4611fi
4612fi
4613CC=$ac_cv_prog_CC
4614if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004616$as_echo "$CC" >&6; }
4617else
cristy8b350f62009-11-15 23:12:43 +00004618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004619$as_echo "no" >&6; }
4620fi
4621
4622
4623fi
4624if test -z "$CC"; then
4625 if test -n "$ac_tool_prefix"; then
4626 for ac_prog in cl.exe
4627 do
4628 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4629set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004630{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004632if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004633 $as_echo_n "(cached) " >&6
4634else
4635 if test -n "$CC"; then
4636 ac_cv_prog_CC="$CC" # Let the user override the test.
4637else
4638as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639for as_dir in $PATH
4640do
4641 IFS=$as_save_IFS
4642 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004643 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004645 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004647 break 2
4648 fi
4649done
cristy8b350f62009-11-15 23:12:43 +00004650 done
cristy3ed852e2009-09-05 21:47:34 +00004651IFS=$as_save_IFS
4652
4653fi
4654fi
4655CC=$ac_cv_prog_CC
4656if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004658$as_echo "$CC" >&6; }
4659else
cristy8b350f62009-11-15 23:12:43 +00004660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004661$as_echo "no" >&6; }
4662fi
4663
4664
4665 test -n "$CC" && break
4666 done
4667fi
4668if test -z "$CC"; then
4669 ac_ct_CC=$CC
4670 for ac_prog in cl.exe
4671do
4672 # Extract the first word of "$ac_prog", so it can be a program name with args.
4673set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004676if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004677 $as_echo_n "(cached) " >&6
4678else
4679 if test -n "$ac_ct_CC"; then
4680 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4681else
4682as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4683for as_dir in $PATH
4684do
4685 IFS=$as_save_IFS
4686 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004687 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004689 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004691 break 2
4692 fi
4693done
cristy8b350f62009-11-15 23:12:43 +00004694 done
cristy3ed852e2009-09-05 21:47:34 +00004695IFS=$as_save_IFS
4696
4697fi
4698fi
4699ac_ct_CC=$ac_cv_prog_ac_ct_CC
4700if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004702$as_echo "$ac_ct_CC" >&6; }
4703else
cristy8b350f62009-11-15 23:12:43 +00004704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705$as_echo "no" >&6; }
4706fi
4707
4708
4709 test -n "$ac_ct_CC" && break
4710done
4711
4712 if test "x$ac_ct_CC" = x; then
4713 CC=""
4714 else
4715 case $cross_compiling:$ac_tool_warned in
4716yes:)
cristy8b350f62009-11-15 23:12:43 +00004717{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004718$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4719ac_tool_warned=yes ;;
4720esac
4721 CC=$ac_ct_CC
4722 fi
4723fi
4724
4725fi
4726
4727
cristy8b350f62009-11-15 23:12:43 +00004728test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004729$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004730as_fn_error $? "no acceptable C compiler found in \$PATH
4731See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004732
4733# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004734$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004735set X $ac_compile
4736ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004737for ac_option in --version -v -V -qversion; do
4738 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004739case "(($ac_try" in
4740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4741 *) ac_try_echo=$ac_try;;
4742esac
cristy8b350f62009-11-15 23:12:43 +00004743eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4744$as_echo "$ac_try_echo"; } >&5
4745 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004746 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004747 if test -s conftest.err; then
4748 sed '10a\
4749... rest of stderr output deleted ...
4750 10q' conftest.err >conftest.er1
4751 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004752 fi
cristycd4c5312009-11-22 01:19:08 +00004753 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4755 test $ac_status = 0; }
4756done
cristy3ed852e2009-09-05 21:47:34 +00004757
cristy8b350f62009-11-15 23:12:43 +00004758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004759/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004760
cristy3ed852e2009-09-05 21:47:34 +00004761int
4762main ()
4763{
4764
4765 ;
4766 return 0;
4767}
4768_ACEOF
4769ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004770ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004771# Try to create an executable without -o first, disregard a.out.
4772# It will help us diagnose broken compilers, and finding out an intuition
4773# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4775$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004776ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4777
4778# The possible output files:
4779ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4780
4781ac_rmfiles=
4782for ac_file in $ac_files
4783do
4784 case $ac_file in
4785 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4786 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4787 esac
4788done
4789rm -f $ac_rmfiles
4790
cristy8b350f62009-11-15 23:12:43 +00004791if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004792case "(($ac_try" in
4793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4794 *) ac_try_echo=$ac_try;;
4795esac
cristy8b350f62009-11-15 23:12:43 +00004796eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4797$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004798 (eval "$ac_link_default") 2>&5
4799 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004800 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4801 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004802 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4803# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4804# in a Makefile. We should not override ac_cv_exeext if it was cached,
4805# so that the user can short-circuit this test for compilers unknown to
4806# Autoconf.
4807for ac_file in $ac_files ''
4808do
4809 test -f "$ac_file" || continue
4810 case $ac_file in
4811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4812 ;;
4813 [ab].out )
4814 # We found the default executable, but exeext='' is most
4815 # certainly right.
4816 break;;
4817 *.* )
cristy8b350f62009-11-15 23:12:43 +00004818 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004819 then :; else
4820 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4821 fi
4822 # We set ac_cv_exeext here because the later test for it is not
4823 # safe: cross compilers may not add the suffix if given an `-o'
4824 # argument, so we may need to know it at that point already.
4825 # Even if this section looks crufty: it has the advantage of
4826 # actually working.
4827 break;;
4828 * )
4829 break;;
4830 esac
4831done
4832test "$ac_cv_exeext" = no && ac_cv_exeext=
4833
4834else
4835 ac_file=''
4836fi
cristy8b350f62009-11-15 23:12:43 +00004837if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4839$as_echo "no" >&6; }
4840$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004841sed 's/^/| /' conftest.$ac_ext >&5
4842
cristy8b350f62009-11-15 23:12:43 +00004843{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004845as_fn_error 77 "C compiler cannot create executables
4846See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004847else
4848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4849$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004850fi
cristycd4c5312009-11-22 01:19:08 +00004851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4852$as_echo_n "checking for C compiler default output file name... " >&6; }
4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4854$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004855ac_exeext=$ac_cv_exeext
4856
cristycd4c5312009-11-22 01:19:08 +00004857rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004858ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004860$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004861if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004862case "(($ac_try" in
4863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4864 *) ac_try_echo=$ac_try;;
4865esac
cristy8b350f62009-11-15 23:12:43 +00004866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4867$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004868 (eval "$ac_link") 2>&5
4869 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4871 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004872 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4873# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4874# work properly (i.e., refer to `conftest.exe'), while it won't with
4875# `rm'.
4876for ac_file in conftest.exe conftest conftest.*; do
4877 test -f "$ac_file" || continue
4878 case $ac_file in
4879 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4880 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4881 break;;
4882 * ) break;;
4883 esac
4884done
4885else
cristy8b350f62009-11-15 23:12:43 +00004886 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004887$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004888as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4889See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004890fi
cristycd4c5312009-11-22 01:19:08 +00004891rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004893$as_echo "$ac_cv_exeext" >&6; }
4894
4895rm -f conftest.$ac_ext
4896EXEEXT=$ac_cv_exeext
4897ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004898cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4899/* end confdefs.h. */
4900#include <stdio.h>
4901int
4902main ()
4903{
4904FILE *f = fopen ("conftest.out", "w");
4905 return ferror (f) || fclose (f) != 0;
4906
4907 ;
4908 return 0;
4909}
4910_ACEOF
4911ac_clean_files="$ac_clean_files conftest.out"
4912# Check that the compiler produces executables we can run. If not, either
4913# the compiler is broken, or we cross compile.
4914{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4915$as_echo_n "checking whether we are cross compiling... " >&6; }
4916if test "$cross_compiling" != yes; then
4917 { { ac_try="$ac_link"
4918case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921esac
4922eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4923$as_echo "$ac_try_echo"; } >&5
4924 (eval "$ac_link") 2>&5
4925 ac_status=$?
4926 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4927 test $ac_status = 0; }
4928 if { ac_try='./conftest$ac_cv_exeext'
4929 { { case "(($ac_try" in
4930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4931 *) ac_try_echo=$ac_try;;
4932esac
4933eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4934$as_echo "$ac_try_echo"; } >&5
4935 (eval "$ac_try") 2>&5
4936 ac_status=$?
4937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4938 test $ac_status = 0; }; }; then
4939 cross_compiling=no
4940 else
4941 if test "$cross_compiling" = maybe; then
4942 cross_compiling=yes
4943 else
4944 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4945$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004946as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004947If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004948See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004949 fi
4950 fi
4951fi
4952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4953$as_echo "$cross_compiling" >&6; }
4954
4955rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4956ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004958$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004959if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004960 $as_echo_n "(cached) " >&6
4961else
cristy8b350f62009-11-15 23:12:43 +00004962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004963/* end confdefs.h. */
4964
4965int
4966main ()
4967{
4968
4969 ;
4970 return 0;
4971}
4972_ACEOF
4973rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004974if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004975case "(($ac_try" in
4976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4977 *) ac_try_echo=$ac_try;;
4978esac
cristy8b350f62009-11-15 23:12:43 +00004979eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4980$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004981 (eval "$ac_compile") 2>&5
4982 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4984 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004985 for ac_file in conftest.o conftest.obj conftest.*; do
4986 test -f "$ac_file" || continue;
4987 case $ac_file in
4988 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4989 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4990 break;;
4991 esac
4992done
4993else
4994 $as_echo "$as_me: failed program was:" >&5
4995sed 's/^/| /' conftest.$ac_ext >&5
4996
cristy8b350f62009-11-15 23:12:43 +00004997{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004999as_fn_error $? "cannot compute suffix of object files: cannot compile
5000See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00005001fi
cristy3ed852e2009-09-05 21:47:34 +00005002rm -f conftest.$ac_cv_objext conftest.$ac_ext
5003fi
cristy8b350f62009-11-15 23:12:43 +00005004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00005005$as_echo "$ac_cv_objext" >&6; }
5006OBJEXT=$ac_cv_objext
5007ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00005008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00005009$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005010if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005011 $as_echo_n "(cached) " >&6
5012else
cristy8b350f62009-11-15 23:12:43 +00005013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005014/* end confdefs.h. */
5015
5016int
5017main ()
5018{
5019#ifndef __GNUC__
5020 choke me
5021#endif
5022
5023 ;
5024 return 0;
5025}
5026_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005027if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005028 ac_compiler_gnu=yes
5029else
cristy8b350f62009-11-15 23:12:43 +00005030 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005031fi
cristy3ed852e2009-09-05 21:47:34 +00005032rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5033ac_cv_c_compiler_gnu=$ac_compiler_gnu
5034
5035fi
cristy8b350f62009-11-15 23:12:43 +00005036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005037$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5038if test $ac_compiler_gnu = yes; then
5039 GCC=yes
5040else
5041 GCC=
5042fi
5043ac_test_CFLAGS=${CFLAGS+set}
5044ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005046$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005047if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005048 $as_echo_n "(cached) " >&6
5049else
5050 ac_save_c_werror_flag=$ac_c_werror_flag
5051 ac_c_werror_flag=yes
5052 ac_cv_prog_cc_g=no
5053 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005055/* end confdefs.h. */
5056
5057int
5058main ()
5059{
5060
5061 ;
5062 return 0;
5063}
5064_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005065if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005066 ac_cv_prog_cc_g=yes
5067else
cristy8b350f62009-11-15 23:12:43 +00005068 CFLAGS=""
5069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005070/* end confdefs.h. */
5071
5072int
5073main ()
5074{
5075
5076 ;
5077 return 0;
5078}
5079_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005080if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005081
cristy8b350f62009-11-15 23:12:43 +00005082else
5083 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005084 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005086/* end confdefs.h. */
5087
5088int
5089main ()
5090{
5091
5092 ;
5093 return 0;
5094}
5095_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005096if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005097 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005098fi
cristy3ed852e2009-09-05 21:47:34 +00005099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5100fi
cristy3ed852e2009-09-05 21:47:34 +00005101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5102fi
cristy3ed852e2009-09-05 21:47:34 +00005103rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5104 ac_c_werror_flag=$ac_save_c_werror_flag
5105fi
cristy8b350f62009-11-15 23:12:43 +00005106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005107$as_echo "$ac_cv_prog_cc_g" >&6; }
5108if test "$ac_test_CFLAGS" = set; then
5109 CFLAGS=$ac_save_CFLAGS
5110elif test $ac_cv_prog_cc_g = yes; then
5111 if test "$GCC" = yes; then
5112 CFLAGS="-g -O2"
5113 else
5114 CFLAGS="-g"
5115 fi
5116else
5117 if test "$GCC" = yes; then
5118 CFLAGS="-O2"
5119 else
5120 CFLAGS=
5121 fi
5122fi
cristy8b350f62009-11-15 23:12:43 +00005123{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005124$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005125if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005126 $as_echo_n "(cached) " >&6
5127else
5128 ac_cv_prog_cc_c89=no
5129ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005130cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005131/* end confdefs.h. */
5132#include <stdarg.h>
5133#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005134struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005135/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5136struct buf { int x; };
5137FILE * (*rcsopen) (struct buf *, struct stat *, int);
5138static char *e (p, i)
5139 char **p;
5140 int i;
5141{
5142 return p[i];
5143}
5144static char *f (char * (*g) (char **, int), char **p, ...)
5145{
5146 char *s;
5147 va_list v;
5148 va_start (v,p);
5149 s = g (p, va_arg (v,int));
5150 va_end (v);
5151 return s;
5152}
5153
5154/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5155 function prototypes and stuff, but not '\xHH' hex character constants.
5156 These don't provoke an error unfortunately, instead are silently treated
5157 as 'x'. The following induces an error, until -std is added to get
5158 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5159 array size at least. It's necessary to write '\x00'==0 to get something
5160 that's true only with -std. */
5161int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5162
5163/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5164 inside strings and character constants. */
5165#define FOO(x) 'x'
5166int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5167
5168int test (int i, double x);
5169struct s1 {int (*f) (int a);};
5170struct s2 {int (*f) (double a);};
5171int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5172int argc;
5173char **argv;
5174int
5175main ()
5176{
5177return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5178 ;
5179 return 0;
5180}
5181_ACEOF
5182for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5183 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5184do
5185 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005186 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005187 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005188fi
cristy3ed852e2009-09-05 21:47:34 +00005189rm -f core conftest.err conftest.$ac_objext
5190 test "x$ac_cv_prog_cc_c89" != "xno" && break
5191done
5192rm -f conftest.$ac_ext
5193CC=$ac_save_CC
5194
5195fi
5196# AC_CACHE_VAL
5197case "x$ac_cv_prog_cc_c89" in
5198 x)
cristy8b350f62009-11-15 23:12:43 +00005199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005200$as_echo "none needed" >&6; } ;;
5201 xno)
cristy8b350f62009-11-15 23:12:43 +00005202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005203$as_echo "unsupported" >&6; } ;;
5204 *)
5205 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005207$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5208esac
cristy8b350f62009-11-15 23:12:43 +00005209if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005210
cristy8b350f62009-11-15 23:12:43 +00005211fi
cristy3ed852e2009-09-05 21:47:34 +00005212
5213ac_ext=c
5214ac_cpp='$CPP $CPPFLAGS'
5215ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5216ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5217ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005218
cristy73bd4a52010-10-05 11:24:23 +00005219depcc="$CC" am_compiler_list=
5220
5221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5222$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005223if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005224 $as_echo_n "(cached) " >&6
5225else
5226 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5227 # We make a subdir and do the tests there. Otherwise we can end up
5228 # making bogus files that we don't know about and never remove. For
5229 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005230 # making a dummy file named 'D' -- because '-MD' means "put the output
5231 # in D".
cristy7247bba2012-02-05 16:37:27 +00005232 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005233 mkdir conftest.dir
5234 # Copy depcomp to subdir because otherwise we won't find it if we're
5235 # using a relative directory.
5236 cp "$am_depcomp" conftest.dir
5237 cd conftest.dir
5238 # We will build objects and dependencies in a subdirectory because
5239 # it helps to detect inapplicable dependency modes. For instance
5240 # both Tru64's cc and ICC support -MD to output dependencies as a
5241 # side effect of compilation, but ICC will put the dependencies in
5242 # the current directory while Tru64 will put them in the object
5243 # directory.
5244 mkdir sub
5245
5246 am_cv_CC_dependencies_compiler_type=none
5247 if test "$am_compiler_list" = ""; then
5248 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5249 fi
5250 am__universal=false
5251 case " $depcc " in #(
5252 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5253 esac
5254
5255 for depmode in $am_compiler_list; do
5256 # Setup a source with many dependencies, because some compilers
5257 # like to wrap large dependency lists on column 80 (with \), and
5258 # we should not choose a depcomp mode which is confused by this.
5259 #
5260 # We need to recreate these files for each test, as the compiler may
5261 # overwrite some of them when testing with obscure command lines.
5262 # This happens at least with the AIX C compiler.
5263 : > sub/conftest.c
5264 for i in 1 2 3 4 5 6; do
5265 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005266 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5267 # Solaris 10 /bin/sh.
5268 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005269 done
5270 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5271
cristyc0890a62012-07-19 00:18:20 +00005272 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005273 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005274 # handle '-M -o', and we need to detect this. Also, some Intel
5275 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005276 am__obj=sub/conftest.${OBJEXT-o}
5277 am__minus_obj="-o $am__obj"
5278 case $depmode in
5279 gcc)
5280 # This depmode causes a compiler race in universal mode.
5281 test "$am__universal" = false || continue
5282 ;;
5283 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005284 # After this tag, mechanisms are not by side-effect, so they'll
5285 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005286 if test "x$enable_dependency_tracking" = xyes; then
5287 continue
5288 else
5289 break
5290 fi
5291 ;;
cristy7247bba2012-02-05 16:37:27 +00005292 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005293 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005294 # not run yet. These depmodes are late enough in the game, and
5295 # so weak that their functioning should not be impacted.
5296 am__obj=conftest.${OBJEXT-o}
5297 am__minus_obj=
5298 ;;
5299 none) break ;;
5300 esac
5301 if depmode=$depmode \
5302 source=sub/conftest.c object=$am__obj \
5303 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5304 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5305 >/dev/null 2>conftest.err &&
5306 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5307 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5308 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5309 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5310 # icc doesn't choke on unknown options, it will just issue warnings
5311 # or remarks (even with -Werror). So we grep stderr for any message
5312 # that says an option was ignored or not supported.
5313 # When given -MP, icc 7.0 and 7.1 complain thusly:
5314 # icc: Command line warning: ignoring option '-M'; no argument required
5315 # The diagnosis changed in icc 8.0:
5316 # icc: Command line remark: option '-MP' not supported
5317 if (grep 'ignoring option' conftest.err ||
5318 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5319 am_cv_CC_dependencies_compiler_type=$depmode
5320 break
5321 fi
5322 fi
5323 done
5324
5325 cd ..
5326 rm -rf conftest.dir
5327else
5328 am_cv_CC_dependencies_compiler_type=none
5329fi
5330
5331fi
5332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5333$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5334CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5335
5336 if
5337 test "x$enable_dependency_tracking" != xno \
5338 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5339 am__fastdepCC_TRUE=
5340 am__fastdepCC_FALSE='#'
5341else
5342 am__fastdepCC_TRUE='#'
5343 am__fastdepCC_FALSE=
5344fi
5345
5346
cristy3ed852e2009-09-05 21:47:34 +00005347
cristya0b81c32010-01-22 02:54:33 +00005348ac_ext=c
5349ac_cpp='$CPP $CPPFLAGS'
5350ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5351ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5352ac_compiler_gnu=$ac_cv_c_compiler_gnu
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5354$as_echo_n "checking how to run the C preprocessor... " >&6; }
5355# On Suns, sometimes $CPP names a directory.
5356if test -n "$CPP" && test -d "$CPP"; then
5357 CPP=
5358fi
5359if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005360 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005361 $as_echo_n "(cached) " >&6
5362else
5363 # Double quotes because CPP needs to be expanded
5364 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5365 do
5366 ac_preproc_ok=false
5367for ac_c_preproc_warn_flag in '' yes
5368do
5369 # Use a header file that comes with gcc, so configuring glibc
5370 # with a fresh cross-compiler works.
5371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5372 # <limits.h> exists even on freestanding compilers.
5373 # On the NeXT, cc -E runs the code through the compiler's parser,
5374 # not just through cpp. "Syntax error" is here to catch this case.
5375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5376/* end confdefs.h. */
5377#ifdef __STDC__
5378# include <limits.h>
5379#else
5380# include <assert.h>
5381#endif
5382 Syntax error
5383_ACEOF
5384if ac_fn_c_try_cpp "$LINENO"; then :
5385
5386else
5387 # Broken: fails on valid input.
5388continue
5389fi
cristyda16f162011-02-19 23:52:17 +00005390rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005391
5392 # OK, works on sane cases. Now check whether nonexistent headers
5393 # can be detected and how.
5394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5395/* end confdefs.h. */
5396#include <ac_nonexistent.h>
5397_ACEOF
5398if ac_fn_c_try_cpp "$LINENO"; then :
5399 # Broken: success on invalid input.
5400continue
5401else
5402 # Passes both tests.
5403ac_preproc_ok=:
5404break
5405fi
cristyda16f162011-02-19 23:52:17 +00005406rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005407
5408done
5409# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005410rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005411if $ac_preproc_ok; then :
5412 break
5413fi
5414
5415 done
5416 ac_cv_prog_CPP=$CPP
5417
5418fi
5419 CPP=$ac_cv_prog_CPP
5420else
5421 ac_cv_prog_CPP=$CPP
5422fi
5423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5424$as_echo "$CPP" >&6; }
5425ac_preproc_ok=false
5426for ac_c_preproc_warn_flag in '' yes
5427do
5428 # Use a header file that comes with gcc, so configuring glibc
5429 # with a fresh cross-compiler works.
5430 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5431 # <limits.h> exists even on freestanding compilers.
5432 # On the NeXT, cc -E runs the code through the compiler's parser,
5433 # not just through cpp. "Syntax error" is here to catch this case.
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435/* end confdefs.h. */
5436#ifdef __STDC__
5437# include <limits.h>
5438#else
5439# include <assert.h>
5440#endif
5441 Syntax error
5442_ACEOF
5443if ac_fn_c_try_cpp "$LINENO"; then :
5444
5445else
5446 # Broken: fails on valid input.
5447continue
5448fi
cristyda16f162011-02-19 23:52:17 +00005449rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005450
5451 # OK, works on sane cases. Now check whether nonexistent headers
5452 # can be detected and how.
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454/* end confdefs.h. */
5455#include <ac_nonexistent.h>
5456_ACEOF
5457if ac_fn_c_try_cpp "$LINENO"; then :
5458 # Broken: success on invalid input.
5459continue
5460else
5461 # Passes both tests.
5462ac_preproc_ok=:
5463break
5464fi
cristyda16f162011-02-19 23:52:17 +00005465rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005466
5467done
5468# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005469rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005470if $ac_preproc_ok; then :
5471
5472else
5473 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5474$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005475as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5476See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005477fi
5478
5479ac_ext=c
5480ac_cpp='$CPP $CPPFLAGS'
5481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5483ac_compiler_gnu=$ac_cv_c_compiler_gnu
5484
5485
5486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5487$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005488if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005489 $as_echo_n "(cached) " >&6
5490else
5491 if test -z "$GREP"; then
5492 ac_path_GREP_found=false
5493 # Loop through the user's path and test for each of PROGNAME-LIST
5494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5495for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5496do
5497 IFS=$as_save_IFS
5498 test -z "$as_dir" && as_dir=.
5499 for ac_prog in grep ggrep; do
5500 for ac_exec_ext in '' $ac_executable_extensions; do
5501 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005502 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005503# Check for GNU ac_path_GREP and select it if it is found.
5504 # Check for GNU $ac_path_GREP
5505case `"$ac_path_GREP" --version 2>&1` in
5506*GNU*)
5507 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5508*)
5509 ac_count=0
5510 $as_echo_n 0123456789 >"conftest.in"
5511 while :
5512 do
5513 cat "conftest.in" "conftest.in" >"conftest.tmp"
5514 mv "conftest.tmp" "conftest.in"
5515 cp "conftest.in" "conftest.nl"
5516 $as_echo 'GREP' >> "conftest.nl"
5517 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5518 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5519 as_fn_arith $ac_count + 1 && ac_count=$as_val
5520 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5521 # Best one so far, save it but keep looking for a better one
5522 ac_cv_path_GREP="$ac_path_GREP"
5523 ac_path_GREP_max=$ac_count
5524 fi
5525 # 10*(2^10) chars as input seems more than enough
5526 test $ac_count -gt 10 && break
5527 done
5528 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5529esac
5530
5531 $ac_path_GREP_found && break 3
5532 done
5533 done
5534 done
5535IFS=$as_save_IFS
5536 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005537 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005538 fi
5539else
5540 ac_cv_path_GREP=$GREP
5541fi
5542
5543fi
5544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5545$as_echo "$ac_cv_path_GREP" >&6; }
5546 GREP="$ac_cv_path_GREP"
5547
5548
5549{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5550$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005551if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005552 $as_echo_n "(cached) " >&6
5553else
5554 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5555 then ac_cv_path_EGREP="$GREP -E"
5556 else
5557 if test -z "$EGREP"; then
5558 ac_path_EGREP_found=false
5559 # Loop through the user's path and test for each of PROGNAME-LIST
5560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5561for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5562do
5563 IFS=$as_save_IFS
5564 test -z "$as_dir" && as_dir=.
5565 for ac_prog in egrep; do
5566 for ac_exec_ext in '' $ac_executable_extensions; do
5567 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005568 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005569# Check for GNU ac_path_EGREP and select it if it is found.
5570 # Check for GNU $ac_path_EGREP
5571case `"$ac_path_EGREP" --version 2>&1` in
5572*GNU*)
5573 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5574*)
5575 ac_count=0
5576 $as_echo_n 0123456789 >"conftest.in"
5577 while :
5578 do
5579 cat "conftest.in" "conftest.in" >"conftest.tmp"
5580 mv "conftest.tmp" "conftest.in"
5581 cp "conftest.in" "conftest.nl"
5582 $as_echo 'EGREP' >> "conftest.nl"
5583 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5584 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5585 as_fn_arith $ac_count + 1 && ac_count=$as_val
5586 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5587 # Best one so far, save it but keep looking for a better one
5588 ac_cv_path_EGREP="$ac_path_EGREP"
5589 ac_path_EGREP_max=$ac_count
5590 fi
5591 # 10*(2^10) chars as input seems more than enough
5592 test $ac_count -gt 10 && break
5593 done
5594 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5595esac
5596
5597 $ac_path_EGREP_found && break 3
5598 done
5599 done
5600 done
5601IFS=$as_save_IFS
5602 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005603 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005604 fi
5605else
5606 ac_cv_path_EGREP=$EGREP
5607fi
5608
5609 fi
5610fi
5611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5612$as_echo "$ac_cv_path_EGREP" >&6; }
5613 EGREP="$ac_cv_path_EGREP"
5614
5615
5616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5617$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005618if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005619 $as_echo_n "(cached) " >&6
5620else
5621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5622/* end confdefs.h. */
5623#include <stdlib.h>
5624#include <stdarg.h>
5625#include <string.h>
5626#include <float.h>
5627
5628int
5629main ()
5630{
5631
5632 ;
5633 return 0;
5634}
5635_ACEOF
5636if ac_fn_c_try_compile "$LINENO"; then :
5637 ac_cv_header_stdc=yes
5638else
5639 ac_cv_header_stdc=no
5640fi
5641rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642
5643if test $ac_cv_header_stdc = yes; then
5644 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5646/* end confdefs.h. */
5647#include <string.h>
5648
5649_ACEOF
5650if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5651 $EGREP "memchr" >/dev/null 2>&1; then :
5652
5653else
5654 ac_cv_header_stdc=no
5655fi
5656rm -f conftest*
5657
5658fi
5659
5660if test $ac_cv_header_stdc = yes; then
5661 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5663/* end confdefs.h. */
5664#include <stdlib.h>
5665
5666_ACEOF
5667if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5668 $EGREP "free" >/dev/null 2>&1; then :
5669
5670else
5671 ac_cv_header_stdc=no
5672fi
5673rm -f conftest*
5674
5675fi
5676
5677if test $ac_cv_header_stdc = yes; then
5678 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5679 if test "$cross_compiling" = yes; then :
5680 :
5681else
5682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5683/* end confdefs.h. */
5684#include <ctype.h>
5685#include <stdlib.h>
5686#if ((' ' & 0x0FF) == 0x020)
5687# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5688# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5689#else
5690# define ISLOWER(c) \
5691 (('a' <= (c) && (c) <= 'i') \
5692 || ('j' <= (c) && (c) <= 'r') \
5693 || ('s' <= (c) && (c) <= 'z'))
5694# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5695#endif
5696
5697#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5698int
5699main ()
5700{
5701 int i;
5702 for (i = 0; i < 256; i++)
5703 if (XOR (islower (i), ISLOWER (i))
5704 || toupper (i) != TOUPPER (i))
5705 return 2;
5706 return 0;
5707}
5708_ACEOF
5709if ac_fn_c_try_run "$LINENO"; then :
5710
5711else
5712 ac_cv_header_stdc=no
5713fi
5714rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5715 conftest.$ac_objext conftest.beam conftest.$ac_ext
5716fi
5717
5718fi
5719fi
5720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5721$as_echo "$ac_cv_header_stdc" >&6; }
5722if test $ac_cv_header_stdc = yes; then
5723
5724$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5725
5726fi
5727
5728# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5729for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5730 inttypes.h stdint.h unistd.h
5731do :
5732 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5733ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5734"
cristy98dddb52010-11-04 00:30:15 +00005735if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005736 cat >>confdefs.h <<_ACEOF
5737#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5738_ACEOF
5739
5740fi
5741
5742done
5743
5744
5745
5746 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 +00005747if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005748 MINIX=yes
5749else
5750 MINIX=
5751fi
5752
5753
5754 if test "$MINIX" = yes; then
5755
5756$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5757
5758
5759$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5760
5761
5762$as_echo "#define _MINIX 1" >>confdefs.h
5763
5764 fi
5765
5766
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5768$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005769if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005770 $as_echo_n "(cached) " >&6
5771else
5772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5773/* end confdefs.h. */
5774
cristy14fefe52012-05-21 00:59:18 +00005775# define __EXTENSIONS__ 1
5776 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005777int
5778main ()
5779{
5780
5781 ;
5782 return 0;
5783}
5784_ACEOF
5785if ac_fn_c_try_compile "$LINENO"; then :
5786 ac_cv_safe_to_define___extensions__=yes
5787else
5788 ac_cv_safe_to_define___extensions__=no
5789fi
5790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5791fi
5792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5793$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5794 test $ac_cv_safe_to_define___extensions__ = yes &&
5795 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5796
5797 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5798
5799 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5800
5801 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5802
5803 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5804
5805
5806
5807# Check for programs
5808ac_ext=c
5809ac_cpp='$CPP $CPPFLAGS'
5810ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5811ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5812ac_compiler_gnu=$ac_cv_c_compiler_gnu
5813if test -n "$ac_tool_prefix"; then
5814 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5815set dummy ${ac_tool_prefix}gcc; ac_word=$2
5816{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5817$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005818if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005819 $as_echo_n "(cached) " >&6
5820else
5821 if test -n "$CC"; then
5822 ac_cv_prog_CC="$CC" # Let the user override the test.
5823else
5824as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5825for as_dir in $PATH
5826do
5827 IFS=$as_save_IFS
5828 test -z "$as_dir" && as_dir=.
5829 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005830 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005831 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5832 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5833 break 2
5834 fi
5835done
5836 done
5837IFS=$as_save_IFS
5838
5839fi
5840fi
5841CC=$ac_cv_prog_CC
5842if test -n "$CC"; then
5843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5844$as_echo "$CC" >&6; }
5845else
5846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5847$as_echo "no" >&6; }
5848fi
5849
5850
5851fi
5852if test -z "$ac_cv_prog_CC"; then
5853 ac_ct_CC=$CC
5854 # Extract the first word of "gcc", so it can be a program name with args.
5855set dummy gcc; ac_word=$2
5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5857$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005858if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005859 $as_echo_n "(cached) " >&6
5860else
5861 if test -n "$ac_ct_CC"; then
5862 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5863else
5864as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5865for as_dir in $PATH
5866do
5867 IFS=$as_save_IFS
5868 test -z "$as_dir" && as_dir=.
5869 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005870 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005871 ac_cv_prog_ac_ct_CC="gcc"
5872 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5873 break 2
5874 fi
5875done
5876 done
5877IFS=$as_save_IFS
5878
5879fi
5880fi
5881ac_ct_CC=$ac_cv_prog_ac_ct_CC
5882if test -n "$ac_ct_CC"; then
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5884$as_echo "$ac_ct_CC" >&6; }
5885else
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5887$as_echo "no" >&6; }
5888fi
5889
5890 if test "x$ac_ct_CC" = x; then
5891 CC=""
5892 else
5893 case $cross_compiling:$ac_tool_warned in
5894yes:)
5895{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5896$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5897ac_tool_warned=yes ;;
5898esac
5899 CC=$ac_ct_CC
5900 fi
5901else
5902 CC="$ac_cv_prog_CC"
5903fi
5904
5905if test -z "$CC"; then
5906 if test -n "$ac_tool_prefix"; then
5907 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5908set dummy ${ac_tool_prefix}cc; ac_word=$2
5909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005911if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005912 $as_echo_n "(cached) " >&6
5913else
5914 if test -n "$CC"; then
5915 ac_cv_prog_CC="$CC" # Let the user override the test.
5916else
5917as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5918for as_dir in $PATH
5919do
5920 IFS=$as_save_IFS
5921 test -z "$as_dir" && as_dir=.
5922 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005923 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005924 ac_cv_prog_CC="${ac_tool_prefix}cc"
5925 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5926 break 2
5927 fi
5928done
5929 done
5930IFS=$as_save_IFS
5931
5932fi
5933fi
5934CC=$ac_cv_prog_CC
5935if test -n "$CC"; then
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5937$as_echo "$CC" >&6; }
5938else
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5940$as_echo "no" >&6; }
5941fi
5942
5943
5944 fi
5945fi
5946if test -z "$CC"; then
5947 # Extract the first word of "cc", so it can be a program name with args.
5948set dummy cc; ac_word=$2
5949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005951if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005952 $as_echo_n "(cached) " >&6
5953else
5954 if test -n "$CC"; then
5955 ac_cv_prog_CC="$CC" # Let the user override the test.
5956else
5957 ac_prog_rejected=no
5958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5959for as_dir in $PATH
5960do
5961 IFS=$as_save_IFS
5962 test -z "$as_dir" && as_dir=.
5963 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005965 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5966 ac_prog_rejected=yes
5967 continue
5968 fi
5969 ac_cv_prog_CC="cc"
5970 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5971 break 2
5972 fi
5973done
5974 done
5975IFS=$as_save_IFS
5976
5977if test $ac_prog_rejected = yes; then
5978 # We found a bogon in the path, so make sure we never use it.
5979 set dummy $ac_cv_prog_CC
5980 shift
5981 if test $# != 0; then
5982 # We chose a different compiler from the bogus one.
5983 # However, it has the same basename, so the bogon will be chosen
5984 # first if we set CC to just the basename; use the full file name.
5985 shift
5986 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5987 fi
5988fi
5989fi
5990fi
5991CC=$ac_cv_prog_CC
5992if test -n "$CC"; then
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5994$as_echo "$CC" >&6; }
5995else
5996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5997$as_echo "no" >&6; }
5998fi
5999
6000
6001fi
6002if test -z "$CC"; then
6003 if test -n "$ac_tool_prefix"; then
6004 for ac_prog in cl.exe
6005 do
6006 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6007set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6009$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006010if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006011 $as_echo_n "(cached) " >&6
6012else
6013 if test -n "$CC"; then
6014 ac_cv_prog_CC="$CC" # Let the user override the test.
6015else
6016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6017for as_dir in $PATH
6018do
6019 IFS=$as_save_IFS
6020 test -z "$as_dir" && as_dir=.
6021 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006023 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6025 break 2
6026 fi
6027done
6028 done
6029IFS=$as_save_IFS
6030
6031fi
6032fi
6033CC=$ac_cv_prog_CC
6034if test -n "$CC"; then
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6036$as_echo "$CC" >&6; }
6037else
6038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6039$as_echo "no" >&6; }
6040fi
6041
6042
6043 test -n "$CC" && break
6044 done
6045fi
6046if test -z "$CC"; then
6047 ac_ct_CC=$CC
6048 for ac_prog in cl.exe
6049do
6050 # Extract the first word of "$ac_prog", so it can be a program name with args.
6051set dummy $ac_prog; ac_word=$2
6052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6053$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006054if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006055 $as_echo_n "(cached) " >&6
6056else
6057 if test -n "$ac_ct_CC"; then
6058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6059else
6060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6061for as_dir in $PATH
6062do
6063 IFS=$as_save_IFS
6064 test -z "$as_dir" && as_dir=.
6065 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006067 ac_cv_prog_ac_ct_CC="$ac_prog"
6068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6069 break 2
6070 fi
6071done
6072 done
6073IFS=$as_save_IFS
6074
6075fi
6076fi
6077ac_ct_CC=$ac_cv_prog_ac_ct_CC
6078if test -n "$ac_ct_CC"; then
6079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6080$as_echo "$ac_ct_CC" >&6; }
6081else
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6083$as_echo "no" >&6; }
6084fi
6085
6086
6087 test -n "$ac_ct_CC" && break
6088done
6089
6090 if test "x$ac_ct_CC" = x; then
6091 CC=""
6092 else
6093 case $cross_compiling:$ac_tool_warned in
6094yes:)
6095{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6096$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6097ac_tool_warned=yes ;;
6098esac
6099 CC=$ac_ct_CC
6100 fi
6101fi
6102
6103fi
6104
6105
6106test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6107$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006108as_fn_error $? "no acceptable C compiler found in \$PATH
6109See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006110
6111# Provide some information about the compiler.
6112$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6113set X $ac_compile
6114ac_compiler=$2
6115for ac_option in --version -v -V -qversion; do
6116 { { ac_try="$ac_compiler $ac_option >&5"
6117case "(($ac_try" in
6118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6119 *) ac_try_echo=$ac_try;;
6120esac
6121eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6122$as_echo "$ac_try_echo"; } >&5
6123 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6124 ac_status=$?
6125 if test -s conftest.err; then
6126 sed '10a\
6127... rest of stderr output deleted ...
6128 10q' conftest.err >conftest.er1
6129 cat conftest.er1 >&5
6130 fi
6131 rm -f conftest.er1 conftest.err
6132 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6133 test $ac_status = 0; }
6134done
6135
6136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6137$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006138if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006139 $as_echo_n "(cached) " >&6
6140else
6141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6142/* end confdefs.h. */
6143
6144int
6145main ()
6146{
6147#ifndef __GNUC__
6148 choke me
6149#endif
6150
6151 ;
6152 return 0;
6153}
6154_ACEOF
6155if ac_fn_c_try_compile "$LINENO"; then :
6156 ac_compiler_gnu=yes
6157else
6158 ac_compiler_gnu=no
6159fi
6160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6161ac_cv_c_compiler_gnu=$ac_compiler_gnu
6162
6163fi
6164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6165$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6166if test $ac_compiler_gnu = yes; then
6167 GCC=yes
6168else
6169 GCC=
6170fi
6171ac_test_CFLAGS=${CFLAGS+set}
6172ac_save_CFLAGS=$CFLAGS
6173{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6174$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006175if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006176 $as_echo_n "(cached) " >&6
6177else
6178 ac_save_c_werror_flag=$ac_c_werror_flag
6179 ac_c_werror_flag=yes
6180 ac_cv_prog_cc_g=no
6181 CFLAGS="-g"
6182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6183/* end confdefs.h. */
6184
6185int
6186main ()
6187{
6188
6189 ;
6190 return 0;
6191}
6192_ACEOF
6193if ac_fn_c_try_compile "$LINENO"; then :
6194 ac_cv_prog_cc_g=yes
6195else
6196 CFLAGS=""
6197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6198/* end confdefs.h. */
6199
6200int
6201main ()
6202{
6203
6204 ;
6205 return 0;
6206}
6207_ACEOF
6208if ac_fn_c_try_compile "$LINENO"; then :
6209
6210else
6211 ac_c_werror_flag=$ac_save_c_werror_flag
6212 CFLAGS="-g"
6213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6214/* end confdefs.h. */
6215
6216int
6217main ()
6218{
6219
6220 ;
6221 return 0;
6222}
6223_ACEOF
6224if ac_fn_c_try_compile "$LINENO"; then :
6225 ac_cv_prog_cc_g=yes
6226fi
6227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6228fi
6229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6230fi
6231rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6232 ac_c_werror_flag=$ac_save_c_werror_flag
6233fi
6234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6235$as_echo "$ac_cv_prog_cc_g" >&6; }
6236if test "$ac_test_CFLAGS" = set; then
6237 CFLAGS=$ac_save_CFLAGS
6238elif test $ac_cv_prog_cc_g = yes; then
6239 if test "$GCC" = yes; then
6240 CFLAGS="-g -O2"
6241 else
6242 CFLAGS="-g"
6243 fi
6244else
6245 if test "$GCC" = yes; then
6246 CFLAGS="-O2"
6247 else
6248 CFLAGS=
6249 fi
6250fi
6251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6252$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006253if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006254 $as_echo_n "(cached) " >&6
6255else
6256 ac_cv_prog_cc_c89=no
6257ac_save_CC=$CC
6258cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6259/* end confdefs.h. */
6260#include <stdarg.h>
6261#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006262struct stat;
cristya0b81c32010-01-22 02:54:33 +00006263/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6264struct buf { int x; };
6265FILE * (*rcsopen) (struct buf *, struct stat *, int);
6266static char *e (p, i)
6267 char **p;
6268 int i;
6269{
6270 return p[i];
6271}
6272static char *f (char * (*g) (char **, int), char **p, ...)
6273{
6274 char *s;
6275 va_list v;
6276 va_start (v,p);
6277 s = g (p, va_arg (v,int));
6278 va_end (v);
6279 return s;
6280}
6281
6282/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6283 function prototypes and stuff, but not '\xHH' hex character constants.
6284 These don't provoke an error unfortunately, instead are silently treated
6285 as 'x'. The following induces an error, until -std is added to get
6286 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6287 array size at least. It's necessary to write '\x00'==0 to get something
6288 that's true only with -std. */
6289int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6290
6291/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6292 inside strings and character constants. */
6293#define FOO(x) 'x'
6294int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6295
6296int test (int i, double x);
6297struct s1 {int (*f) (int a);};
6298struct s2 {int (*f) (double a);};
6299int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6300int argc;
6301char **argv;
6302int
6303main ()
6304{
6305return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6306 ;
6307 return 0;
6308}
6309_ACEOF
6310for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6311 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6312do
6313 CC="$ac_save_CC $ac_arg"
6314 if ac_fn_c_try_compile "$LINENO"; then :
6315 ac_cv_prog_cc_c89=$ac_arg
6316fi
6317rm -f core conftest.err conftest.$ac_objext
6318 test "x$ac_cv_prog_cc_c89" != "xno" && break
6319done
6320rm -f conftest.$ac_ext
6321CC=$ac_save_CC
6322
6323fi
6324# AC_CACHE_VAL
6325case "x$ac_cv_prog_cc_c89" in
6326 x)
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6328$as_echo "none needed" >&6; } ;;
6329 xno)
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6331$as_echo "unsupported" >&6; } ;;
6332 *)
6333 CC="$CC $ac_cv_prog_cc_c89"
6334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6335$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6336esac
6337if test "x$ac_cv_prog_cc_c89" != xno; then :
6338
6339fi
6340
6341ac_ext=c
6342ac_cpp='$CPP $CPPFLAGS'
6343ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6344ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6345ac_compiler_gnu=$ac_cv_c_compiler_gnu
6346
cristy73bd4a52010-10-05 11:24:23 +00006347depcc="$CC" am_compiler_list=
6348
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6350$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006351if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006352 $as_echo_n "(cached) " >&6
6353else
6354 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6355 # We make a subdir and do the tests there. Otherwise we can end up
6356 # making bogus files that we don't know about and never remove. For
6357 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006358 # making a dummy file named 'D' -- because '-MD' means "put the output
6359 # in D".
cristy7247bba2012-02-05 16:37:27 +00006360 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006361 mkdir conftest.dir
6362 # Copy depcomp to subdir because otherwise we won't find it if we're
6363 # using a relative directory.
6364 cp "$am_depcomp" conftest.dir
6365 cd conftest.dir
6366 # We will build objects and dependencies in a subdirectory because
6367 # it helps to detect inapplicable dependency modes. For instance
6368 # both Tru64's cc and ICC support -MD to output dependencies as a
6369 # side effect of compilation, but ICC will put the dependencies in
6370 # the current directory while Tru64 will put them in the object
6371 # directory.
6372 mkdir sub
6373
6374 am_cv_CC_dependencies_compiler_type=none
6375 if test "$am_compiler_list" = ""; then
6376 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6377 fi
6378 am__universal=false
6379 case " $depcc " in #(
6380 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6381 esac
6382
6383 for depmode in $am_compiler_list; do
6384 # Setup a source with many dependencies, because some compilers
6385 # like to wrap large dependency lists on column 80 (with \), and
6386 # we should not choose a depcomp mode which is confused by this.
6387 #
6388 # We need to recreate these files for each test, as the compiler may
6389 # overwrite some of them when testing with obscure command lines.
6390 # This happens at least with the AIX C compiler.
6391 : > sub/conftest.c
6392 for i in 1 2 3 4 5 6; do
6393 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006394 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6395 # Solaris 10 /bin/sh.
6396 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006397 done
6398 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6399
cristyc0890a62012-07-19 00:18:20 +00006400 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006401 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006402 # handle '-M -o', and we need to detect this. Also, some Intel
6403 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006404 am__obj=sub/conftest.${OBJEXT-o}
6405 am__minus_obj="-o $am__obj"
6406 case $depmode in
6407 gcc)
6408 # This depmode causes a compiler race in universal mode.
6409 test "$am__universal" = false || continue
6410 ;;
6411 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006412 # After this tag, mechanisms are not by side-effect, so they'll
6413 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006414 if test "x$enable_dependency_tracking" = xyes; then
6415 continue
6416 else
6417 break
6418 fi
6419 ;;
cristy7247bba2012-02-05 16:37:27 +00006420 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006421 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006422 # not run yet. These depmodes are late enough in the game, and
6423 # so weak that their functioning should not be impacted.
6424 am__obj=conftest.${OBJEXT-o}
6425 am__minus_obj=
6426 ;;
6427 none) break ;;
6428 esac
6429 if depmode=$depmode \
6430 source=sub/conftest.c object=$am__obj \
6431 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6432 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6433 >/dev/null 2>conftest.err &&
6434 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6435 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6436 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6437 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6438 # icc doesn't choke on unknown options, it will just issue warnings
6439 # or remarks (even with -Werror). So we grep stderr for any message
6440 # that says an option was ignored or not supported.
6441 # When given -MP, icc 7.0 and 7.1 complain thusly:
6442 # icc: Command line warning: ignoring option '-M'; no argument required
6443 # The diagnosis changed in icc 8.0:
6444 # icc: Command line remark: option '-MP' not supported
6445 if (grep 'ignoring option' conftest.err ||
6446 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6447 am_cv_CC_dependencies_compiler_type=$depmode
6448 break
6449 fi
6450 fi
6451 done
6452
6453 cd ..
6454 rm -rf conftest.dir
6455else
6456 am_cv_CC_dependencies_compiler_type=none
6457fi
6458
6459fi
6460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6461$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6462CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6463
6464 if
6465 test "x$enable_dependency_tracking" != xno \
6466 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6467 am__fastdepCC_TRUE=
6468 am__fastdepCC_FALSE='#'
6469else
6470 am__fastdepCC_TRUE='#'
6471 am__fastdepCC_FALSE=
6472fi
6473
6474
cristy95646052009-11-28 23:05:30 +00006475ac_ext=cpp
6476ac_cpp='$CXXCPP $CPPFLAGS'
6477ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6480if test -z "$CXX"; then
6481 if test -n "$CCC"; then
6482 CXX=$CCC
6483 else
6484 if test -n "$ac_tool_prefix"; then
6485 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6486 do
6487 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6488set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6490$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006491if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006492 $as_echo_n "(cached) " >&6
6493else
6494 if test -n "$CXX"; then
6495 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6496else
6497as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6498for as_dir in $PATH
6499do
6500 IFS=$as_save_IFS
6501 test -z "$as_dir" && as_dir=.
6502 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006504 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6506 break 2
6507 fi
6508done
6509 done
6510IFS=$as_save_IFS
6511
6512fi
6513fi
6514CXX=$ac_cv_prog_CXX
6515if test -n "$CXX"; then
6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6517$as_echo "$CXX" >&6; }
6518else
6519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6520$as_echo "no" >&6; }
6521fi
6522
6523
6524 test -n "$CXX" && break
6525 done
6526fi
6527if test -z "$CXX"; then
6528 ac_ct_CXX=$CXX
6529 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6530do
6531 # Extract the first word of "$ac_prog", so it can be a program name with args.
6532set dummy $ac_prog; ac_word=$2
6533{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6534$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006535if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006536 $as_echo_n "(cached) " >&6
6537else
6538 if test -n "$ac_ct_CXX"; then
6539 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6540else
6541as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6542for as_dir in $PATH
6543do
6544 IFS=$as_save_IFS
6545 test -z "$as_dir" && as_dir=.
6546 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006547 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006548 ac_cv_prog_ac_ct_CXX="$ac_prog"
6549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6550 break 2
6551 fi
6552done
6553 done
6554IFS=$as_save_IFS
6555
6556fi
6557fi
6558ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6559if test -n "$ac_ct_CXX"; then
6560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6561$as_echo "$ac_ct_CXX" >&6; }
6562else
6563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6564$as_echo "no" >&6; }
6565fi
6566
6567
6568 test -n "$ac_ct_CXX" && break
6569done
6570
6571 if test "x$ac_ct_CXX" = x; then
6572 CXX="g++"
6573 else
6574 case $cross_compiling:$ac_tool_warned in
6575yes:)
6576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6578ac_tool_warned=yes ;;
6579esac
6580 CXX=$ac_ct_CXX
6581 fi
6582fi
6583
6584 fi
6585fi
6586# Provide some information about the compiler.
6587$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6588set X $ac_compile
6589ac_compiler=$2
6590for ac_option in --version -v -V -qversion; do
6591 { { ac_try="$ac_compiler $ac_option >&5"
6592case "(($ac_try" in
6593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594 *) ac_try_echo=$ac_try;;
6595esac
6596eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6597$as_echo "$ac_try_echo"; } >&5
6598 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6599 ac_status=$?
6600 if test -s conftest.err; then
6601 sed '10a\
6602... rest of stderr output deleted ...
6603 10q' conftest.err >conftest.er1
6604 cat conftest.er1 >&5
6605 fi
6606 rm -f conftest.er1 conftest.err
6607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6608 test $ac_status = 0; }
6609done
6610
6611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6612$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006613if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006614 $as_echo_n "(cached) " >&6
6615else
6616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6617/* end confdefs.h. */
6618
6619int
6620main ()
6621{
6622#ifndef __GNUC__
6623 choke me
6624#endif
6625
6626 ;
6627 return 0;
6628}
6629_ACEOF
6630if ac_fn_cxx_try_compile "$LINENO"; then :
6631 ac_compiler_gnu=yes
6632else
6633 ac_compiler_gnu=no
6634fi
6635rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6637
6638fi
6639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6640$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6641if test $ac_compiler_gnu = yes; then
6642 GXX=yes
6643else
6644 GXX=
6645fi
6646ac_test_CXXFLAGS=${CXXFLAGS+set}
6647ac_save_CXXFLAGS=$CXXFLAGS
6648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6649$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006650if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006651 $as_echo_n "(cached) " >&6
6652else
6653 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6654 ac_cxx_werror_flag=yes
6655 ac_cv_prog_cxx_g=no
6656 CXXFLAGS="-g"
6657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6658/* end confdefs.h. */
6659
6660int
6661main ()
6662{
6663
6664 ;
6665 return 0;
6666}
6667_ACEOF
6668if ac_fn_cxx_try_compile "$LINENO"; then :
6669 ac_cv_prog_cxx_g=yes
6670else
6671 CXXFLAGS=""
6672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6673/* end confdefs.h. */
6674
6675int
6676main ()
6677{
6678
6679 ;
6680 return 0;
6681}
6682_ACEOF
6683if ac_fn_cxx_try_compile "$LINENO"; then :
6684
6685else
6686 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6687 CXXFLAGS="-g"
6688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6689/* end confdefs.h. */
6690
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699if ac_fn_cxx_try_compile "$LINENO"; then :
6700 ac_cv_prog_cxx_g=yes
6701fi
6702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705fi
6706rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6707 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6708fi
6709{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6710$as_echo "$ac_cv_prog_cxx_g" >&6; }
6711if test "$ac_test_CXXFLAGS" = set; then
6712 CXXFLAGS=$ac_save_CXXFLAGS
6713elif test $ac_cv_prog_cxx_g = yes; then
6714 if test "$GXX" = yes; then
6715 CXXFLAGS="-g -O2"
6716 else
6717 CXXFLAGS="-g"
6718 fi
6719else
6720 if test "$GXX" = yes; then
6721 CXXFLAGS="-O2"
6722 else
6723 CXXFLAGS=
6724 fi
6725fi
6726ac_ext=c
6727ac_cpp='$CPP $CPPFLAGS'
6728ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6729ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6730ac_compiler_gnu=$ac_cv_c_compiler_gnu
6731
cristy73bd4a52010-10-05 11:24:23 +00006732depcc="$CXX" am_compiler_list=
6733
6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6735$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006736if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006737 $as_echo_n "(cached) " >&6
6738else
6739 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6740 # We make a subdir and do the tests there. Otherwise we can end up
6741 # making bogus files that we don't know about and never remove. For
6742 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006743 # making a dummy file named 'D' -- because '-MD' means "put the output
6744 # in D".
cristy7247bba2012-02-05 16:37:27 +00006745 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006746 mkdir conftest.dir
6747 # Copy depcomp to subdir because otherwise we won't find it if we're
6748 # using a relative directory.
6749 cp "$am_depcomp" conftest.dir
6750 cd conftest.dir
6751 # We will build objects and dependencies in a subdirectory because
6752 # it helps to detect inapplicable dependency modes. For instance
6753 # both Tru64's cc and ICC support -MD to output dependencies as a
6754 # side effect of compilation, but ICC will put the dependencies in
6755 # the current directory while Tru64 will put them in the object
6756 # directory.
6757 mkdir sub
6758
6759 am_cv_CXX_dependencies_compiler_type=none
6760 if test "$am_compiler_list" = ""; then
6761 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6762 fi
6763 am__universal=false
6764 case " $depcc " in #(
6765 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6766 esac
6767
6768 for depmode in $am_compiler_list; do
6769 # Setup a source with many dependencies, because some compilers
6770 # like to wrap large dependency lists on column 80 (with \), and
6771 # we should not choose a depcomp mode which is confused by this.
6772 #
6773 # We need to recreate these files for each test, as the compiler may
6774 # overwrite some of them when testing with obscure command lines.
6775 # This happens at least with the AIX C compiler.
6776 : > sub/conftest.c
6777 for i in 1 2 3 4 5 6; do
6778 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006779 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6780 # Solaris 10 /bin/sh.
6781 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006782 done
6783 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6784
cristyc0890a62012-07-19 00:18:20 +00006785 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006786 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006787 # handle '-M -o', and we need to detect this. Also, some Intel
6788 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006789 am__obj=sub/conftest.${OBJEXT-o}
6790 am__minus_obj="-o $am__obj"
6791 case $depmode in
6792 gcc)
6793 # This depmode causes a compiler race in universal mode.
6794 test "$am__universal" = false || continue
6795 ;;
6796 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006797 # After this tag, mechanisms are not by side-effect, so they'll
6798 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006799 if test "x$enable_dependency_tracking" = xyes; then
6800 continue
6801 else
6802 break
6803 fi
6804 ;;
cristy7247bba2012-02-05 16:37:27 +00006805 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006806 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006807 # not run yet. These depmodes are late enough in the game, and
6808 # so weak that their functioning should not be impacted.
6809 am__obj=conftest.${OBJEXT-o}
6810 am__minus_obj=
6811 ;;
6812 none) break ;;
6813 esac
6814 if depmode=$depmode \
6815 source=sub/conftest.c object=$am__obj \
6816 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6817 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6818 >/dev/null 2>conftest.err &&
6819 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6820 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6821 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6822 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6823 # icc doesn't choke on unknown options, it will just issue warnings
6824 # or remarks (even with -Werror). So we grep stderr for any message
6825 # that says an option was ignored or not supported.
6826 # When given -MP, icc 7.0 and 7.1 complain thusly:
6827 # icc: Command line warning: ignoring option '-M'; no argument required
6828 # The diagnosis changed in icc 8.0:
6829 # icc: Command line remark: option '-MP' not supported
6830 if (grep 'ignoring option' conftest.err ||
6831 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6832 am_cv_CXX_dependencies_compiler_type=$depmode
6833 break
6834 fi
6835 fi
6836 done
6837
6838 cd ..
6839 rm -rf conftest.dir
6840else
6841 am_cv_CXX_dependencies_compiler_type=none
6842fi
6843
6844fi
6845{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6846$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6847CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6848
6849 if
6850 test "x$enable_dependency_tracking" != xno \
6851 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6852 am__fastdepCXX_TRUE=
6853 am__fastdepCXX_FALSE='#'
6854else
6855 am__fastdepCXX_TRUE='#'
6856 am__fastdepCXX_FALSE=
6857fi
6858
6859
cristy8b350f62009-11-15 23:12:43 +00006860 case $ac_cv_prog_cc_stdc in #(
6861 no) :
6862 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6863 *) :
6864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006865$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006866if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006867 $as_echo_n "(cached) " >&6
6868else
6869 ac_cv_prog_cc_c99=no
6870ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006871cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006872/* end confdefs.h. */
6873#include <stdarg.h>
6874#include <stdbool.h>
6875#include <stdlib.h>
6876#include <wchar.h>
6877#include <stdio.h>
6878
6879// Check varargs macros. These examples are taken from C99 6.10.3.5.
6880#define debug(...) fprintf (stderr, __VA_ARGS__)
6881#define showlist(...) puts (#__VA_ARGS__)
6882#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6883static void
6884test_varargs_macros (void)
6885{
6886 int x = 1234;
6887 int y = 5678;
6888 debug ("Flag");
6889 debug ("X = %d\n", x);
6890 showlist (The first, second, and third items.);
6891 report (x>y, "x is %d but y is %d", x, y);
6892}
6893
6894// Check long long types.
6895#define BIG64 18446744073709551615ull
6896#define BIG32 4294967295ul
6897#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6898#if !BIG_OK
6899 your preprocessor is broken;
6900#endif
6901#if BIG_OK
6902#else
6903 your preprocessor is broken;
6904#endif
6905static long long int bignum = -9223372036854775807LL;
6906static unsigned long long int ubignum = BIG64;
6907
6908struct incomplete_array
6909{
6910 int datasize;
6911 double data[];
6912};
6913
6914struct named_init {
6915 int number;
6916 const wchar_t *name;
6917 double average;
6918};
6919
6920typedef const char *ccp;
6921
6922static inline int
6923test_restrict (ccp restrict text)
6924{
6925 // See if C++-style comments work.
6926 // Iterate through items via the restricted pointer.
6927 // Also check for declarations in for loops.
6928 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6929 continue;
6930 return 0;
6931}
6932
6933// Check varargs and va_copy.
6934static void
6935test_varargs (const char *format, ...)
6936{
6937 va_list args;
6938 va_start (args, format);
6939 va_list args_copy;
6940 va_copy (args_copy, args);
6941
6942 const char *str;
6943 int number;
6944 float fnumber;
6945
6946 while (*format)
6947 {
6948 switch (*format++)
6949 {
6950 case 's': // string
6951 str = va_arg (args_copy, const char *);
6952 break;
6953 case 'd': // int
6954 number = va_arg (args_copy, int);
6955 break;
6956 case 'f': // float
6957 fnumber = va_arg (args_copy, double);
6958 break;
6959 default:
6960 break;
6961 }
6962 }
6963 va_end (args_copy);
6964 va_end (args);
6965}
6966
6967int
6968main ()
6969{
6970
6971 // Check bool.
6972 _Bool success = false;
6973
6974 // Check restrict.
6975 if (test_restrict ("String literal") == 0)
6976 success = true;
6977 char *restrict newvar = "Another string";
6978
6979 // Check varargs.
6980 test_varargs ("s, d' f .", "string", 65, 34.234);
6981 test_varargs_macros ();
6982
6983 // Check flexible array members.
6984 struct incomplete_array *ia =
6985 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6986 ia->datasize = 10;
6987 for (int i = 0; i < ia->datasize; ++i)
6988 ia->data[i] = i * 1.234;
6989
6990 // Check named initializers.
6991 struct named_init ni = {
6992 .number = 34,
6993 .name = L"Test wide string",
6994 .average = 543.34343,
6995 };
6996
6997 ni.number = 58;
6998
6999 int dynamic_array[ni.number];
7000 dynamic_array[ni.number - 1] = 543;
7001
7002 // work around unused variable warnings
7003 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7004 || dynamic_array[ni.number - 1] != 543);
7005
7006 ;
7007 return 0;
7008}
7009_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007010for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00007011do
7012 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007013 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007014 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007015fi
cristy3ed852e2009-09-05 21:47:34 +00007016rm -f core conftest.err conftest.$ac_objext
7017 test "x$ac_cv_prog_cc_c99" != "xno" && break
7018done
7019rm -f conftest.$ac_ext
7020CC=$ac_save_CC
7021
7022fi
7023# AC_CACHE_VAL
7024case "x$ac_cv_prog_cc_c99" in
7025 x)
cristy8b350f62009-11-15 23:12:43 +00007026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007027$as_echo "none needed" >&6; } ;;
7028 xno)
cristy8b350f62009-11-15 23:12:43 +00007029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007030$as_echo "unsupported" >&6; } ;;
7031 *)
7032 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007034$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7035esac
cristy8b350f62009-11-15 23:12:43 +00007036if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007037 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7038else
cristy8b350f62009-11-15 23:12:43 +00007039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007040$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007041if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007042 $as_echo_n "(cached) " >&6
7043else
7044 ac_cv_prog_cc_c89=no
7045ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007046cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007047/* end confdefs.h. */
7048#include <stdarg.h>
7049#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007050struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007051/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7052struct buf { int x; };
7053FILE * (*rcsopen) (struct buf *, struct stat *, int);
7054static char *e (p, i)
7055 char **p;
7056 int i;
7057{
7058 return p[i];
7059}
7060static char *f (char * (*g) (char **, int), char **p, ...)
7061{
7062 char *s;
7063 va_list v;
7064 va_start (v,p);
7065 s = g (p, va_arg (v,int));
7066 va_end (v);
7067 return s;
7068}
7069
7070/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7071 function prototypes and stuff, but not '\xHH' hex character constants.
7072 These don't provoke an error unfortunately, instead are silently treated
7073 as 'x'. The following induces an error, until -std is added to get
7074 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7075 array size at least. It's necessary to write '\x00'==0 to get something
7076 that's true only with -std. */
7077int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7078
7079/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7080 inside strings and character constants. */
7081#define FOO(x) 'x'
7082int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7083
7084int test (int i, double x);
7085struct s1 {int (*f) (int a);};
7086struct s2 {int (*f) (double a);};
7087int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7088int argc;
7089char **argv;
7090int
7091main ()
7092{
7093return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7094 ;
7095 return 0;
7096}
7097_ACEOF
7098for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7099 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7100do
7101 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007102 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007103 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007104fi
cristy3ed852e2009-09-05 21:47:34 +00007105rm -f core conftest.err conftest.$ac_objext
7106 test "x$ac_cv_prog_cc_c89" != "xno" && break
7107done
7108rm -f conftest.$ac_ext
7109CC=$ac_save_CC
7110
7111fi
7112# AC_CACHE_VAL
7113case "x$ac_cv_prog_cc_c89" in
7114 x)
cristy8b350f62009-11-15 23:12:43 +00007115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007116$as_echo "none needed" >&6; } ;;
7117 xno)
cristy8b350f62009-11-15 23:12:43 +00007118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007119$as_echo "unsupported" >&6; } ;;
7120 *)
7121 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007123$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7124esac
cristy8b350f62009-11-15 23:12:43 +00007125if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007126 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7127else
7128 ac_cv_prog_cc_stdc=no
7129fi
7130
cristy3ed852e2009-09-05 21:47:34 +00007131fi
cristy3ed852e2009-09-05 21:47:34 +00007132 ;;
7133esac
cristy8b350f62009-11-15 23:12:43 +00007134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007135$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007136 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007137 $as_echo_n "(cached) " >&6
7138fi
7139
cristy8b350f62009-11-15 23:12:43 +00007140 case $ac_cv_prog_cc_stdc in #(
7141 no) :
7142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7143$as_echo "unsupported" >&6; } ;; #(
7144 '') :
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7146$as_echo "none needed" >&6; } ;; #(
7147 *) :
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007149$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7150esac
7151
cristy3ed852e2009-09-05 21:47:34 +00007152ac_ext=c
7153ac_cpp='$CPP $CPPFLAGS'
7154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7156ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007157{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007158$as_echo_n "checking how to run the C preprocessor... " >&6; }
7159# On Suns, sometimes $CPP names a directory.
7160if test -n "$CPP" && test -d "$CPP"; then
7161 CPP=
7162fi
7163if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007164 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007165 $as_echo_n "(cached) " >&6
7166else
7167 # Double quotes because CPP needs to be expanded
7168 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7169 do
7170 ac_preproc_ok=false
7171for ac_c_preproc_warn_flag in '' yes
7172do
7173 # Use a header file that comes with gcc, so configuring glibc
7174 # with a fresh cross-compiler works.
7175 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7176 # <limits.h> exists even on freestanding compilers.
7177 # On the NeXT, cc -E runs the code through the compiler's parser,
7178 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007180/* end confdefs.h. */
7181#ifdef __STDC__
7182# include <limits.h>
7183#else
7184# include <assert.h>
7185#endif
7186 Syntax error
7187_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007188if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007189
cristy8b350f62009-11-15 23:12:43 +00007190else
cristy3ed852e2009-09-05 21:47:34 +00007191 # Broken: fails on valid input.
7192continue
7193fi
cristyda16f162011-02-19 23:52:17 +00007194rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007195
7196 # OK, works on sane cases. Now check whether nonexistent headers
7197 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007199/* end confdefs.h. */
7200#include <ac_nonexistent.h>
7201_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007202if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007203 # Broken: success on invalid input.
7204continue
7205else
cristy3ed852e2009-09-05 21:47:34 +00007206 # Passes both tests.
7207ac_preproc_ok=:
7208break
7209fi
cristyda16f162011-02-19 23:52:17 +00007210rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007211
7212done
7213# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007214rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007215if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007216 break
7217fi
7218
7219 done
7220 ac_cv_prog_CPP=$CPP
7221
7222fi
7223 CPP=$ac_cv_prog_CPP
7224else
7225 ac_cv_prog_CPP=$CPP
7226fi
cristy8b350f62009-11-15 23:12:43 +00007227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007228$as_echo "$CPP" >&6; }
7229ac_preproc_ok=false
7230for ac_c_preproc_warn_flag in '' yes
7231do
7232 # Use a header file that comes with gcc, so configuring glibc
7233 # with a fresh cross-compiler works.
7234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7235 # <limits.h> exists even on freestanding compilers.
7236 # On the NeXT, cc -E runs the code through the compiler's parser,
7237 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007239/* end confdefs.h. */
7240#ifdef __STDC__
7241# include <limits.h>
7242#else
7243# include <assert.h>
7244#endif
7245 Syntax error
7246_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007247if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007248
cristy8b350f62009-11-15 23:12:43 +00007249else
cristy3ed852e2009-09-05 21:47:34 +00007250 # Broken: fails on valid input.
7251continue
7252fi
cristyda16f162011-02-19 23:52:17 +00007253rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007254
7255 # OK, works on sane cases. Now check whether nonexistent headers
7256 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007258/* end confdefs.h. */
7259#include <ac_nonexistent.h>
7260_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007261if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007262 # Broken: success on invalid input.
7263continue
7264else
cristy3ed852e2009-09-05 21:47:34 +00007265 # Passes both tests.
7266ac_preproc_ok=:
7267break
7268fi
cristyda16f162011-02-19 23:52:17 +00007269rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007270
7271done
7272# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007273rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007274if $ac_preproc_ok; then :
7275
cristy3ed852e2009-09-05 21:47:34 +00007276else
cristy8b350f62009-11-15 23:12:43 +00007277 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007278$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007279as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7280See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007281fi
7282
7283ac_ext=c
7284ac_cpp='$CPP $CPPFLAGS'
7285ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7286ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7287ac_compiler_gnu=$ac_cv_c_compiler_gnu
7288
cristy73bd4a52010-10-05 11:24:23 +00007289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7290$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007291if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007292 $as_echo_n "(cached) " >&6
7293else
7294 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7295 for ac_i in 1 2 3 4 5 6 7; do
7296 ac_script="$ac_script$as_nl$ac_script"
7297 done
7298 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7299 { ac_script=; unset ac_script;}
7300 if test -z "$SED"; then
7301 ac_path_SED_found=false
7302 # Loop through the user's path and test for each of PROGNAME-LIST
7303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7304for as_dir in $PATH
7305do
7306 IFS=$as_save_IFS
7307 test -z "$as_dir" && as_dir=.
7308 for ac_prog in sed gsed; do
7309 for ac_exec_ext in '' $ac_executable_extensions; do
7310 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007311 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007312# Check for GNU ac_path_SED and select it if it is found.
7313 # Check for GNU $ac_path_SED
7314case `"$ac_path_SED" --version 2>&1` in
7315*GNU*)
7316 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7317*)
7318 ac_count=0
7319 $as_echo_n 0123456789 >"conftest.in"
7320 while :
7321 do
7322 cat "conftest.in" "conftest.in" >"conftest.tmp"
7323 mv "conftest.tmp" "conftest.in"
7324 cp "conftest.in" "conftest.nl"
7325 $as_echo '' >> "conftest.nl"
7326 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7327 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7328 as_fn_arith $ac_count + 1 && ac_count=$as_val
7329 if test $ac_count -gt ${ac_path_SED_max-0}; then
7330 # Best one so far, save it but keep looking for a better one
7331 ac_cv_path_SED="$ac_path_SED"
7332 ac_path_SED_max=$ac_count
7333 fi
7334 # 10*(2^10) chars as input seems more than enough
7335 test $ac_count -gt 10 && break
7336 done
7337 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7338esac
7339
7340 $ac_path_SED_found && break 3
7341 done
7342 done
7343 done
7344IFS=$as_save_IFS
7345 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007346 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007347 fi
7348else
7349 ac_cv_path_SED=$SED
7350fi
7351
7352fi
7353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7354$as_echo "$ac_cv_path_SED" >&6; }
7355 SED="$ac_cv_path_SED"
7356 rm -f conftest.sed
7357
7358test -z "$SED" && SED=sed
7359Xsed="$SED -e 1s/^X//"
7360
7361
7362
7363
7364
7365
7366
7367
7368
7369
7370
7371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7372$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007373if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007374 $as_echo_n "(cached) " >&6
7375else
7376 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7377 then ac_cv_path_FGREP="$GREP -F"
7378 else
7379 if test -z "$FGREP"; then
7380 ac_path_FGREP_found=false
7381 # Loop through the user's path and test for each of PROGNAME-LIST
7382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7383for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7384do
7385 IFS=$as_save_IFS
7386 test -z "$as_dir" && as_dir=.
7387 for ac_prog in fgrep; do
7388 for ac_exec_ext in '' $ac_executable_extensions; do
7389 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007390 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007391# Check for GNU ac_path_FGREP and select it if it is found.
7392 # Check for GNU $ac_path_FGREP
7393case `"$ac_path_FGREP" --version 2>&1` in
7394*GNU*)
7395 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7396*)
7397 ac_count=0
7398 $as_echo_n 0123456789 >"conftest.in"
7399 while :
7400 do
7401 cat "conftest.in" "conftest.in" >"conftest.tmp"
7402 mv "conftest.tmp" "conftest.in"
7403 cp "conftest.in" "conftest.nl"
7404 $as_echo 'FGREP' >> "conftest.nl"
7405 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7406 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7407 as_fn_arith $ac_count + 1 && ac_count=$as_val
7408 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7409 # Best one so far, save it but keep looking for a better one
7410 ac_cv_path_FGREP="$ac_path_FGREP"
7411 ac_path_FGREP_max=$ac_count
7412 fi
7413 # 10*(2^10) chars as input seems more than enough
7414 test $ac_count -gt 10 && break
7415 done
7416 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7417esac
7418
7419 $ac_path_FGREP_found && break 3
7420 done
7421 done
7422 done
7423IFS=$as_save_IFS
7424 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007425 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007426 fi
7427else
7428 ac_cv_path_FGREP=$FGREP
7429fi
7430
7431 fi
7432fi
7433{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7434$as_echo "$ac_cv_path_FGREP" >&6; }
7435 FGREP="$ac_cv_path_FGREP"
7436
7437
7438test -z "$GREP" && GREP=grep
7439
7440
7441
7442
7443
7444
7445
7446
7447
7448
7449
7450
7451
7452
7453
7454
7455
cristy0c60a692010-11-04 01:09:47 +00007456ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7457ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7458ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7459
7460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7461$as_echo_n "checking how to print strings... " >&6; }
7462# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007463if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007464 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7465 ECHO='print -r --'
7466elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7467 ECHO='printf %s\n'
7468else
7469 # Use this function as a fallback that always works.
7470 func_fallback_echo ()
7471 {
7472 eval 'cat <<_LTECHO_EOF
7473$1
7474_LTECHO_EOF'
7475 }
7476 ECHO='func_fallback_echo'
7477fi
7478
7479# func_echo_all arg...
7480# Invoke $ECHO with all args, space-separated.
7481func_echo_all ()
7482{
7483 $ECHO ""
7484}
7485
7486case "$ECHO" in
7487 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7488$as_echo "printf" >&6; } ;;
7489 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7490$as_echo "print -r" >&6; } ;;
7491 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7492$as_echo "cat" >&6; } ;;
7493esac
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
cristy73bd4a52010-10-05 11:24:23 +00007508
7509
7510# Check whether --with-gnu-ld was given.
7511if test "${with_gnu_ld+set}" = set; then :
7512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7513else
7514 with_gnu_ld=no
7515fi
7516
7517ac_prog=ld
7518if test "$GCC" = yes; then
7519 # Check if gcc -print-prog-name=ld gives a path.
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7521$as_echo_n "checking for ld used by $CC... " >&6; }
7522 case $host in
7523 *-*-mingw*)
7524 # gcc leaves a trailing carriage return which upsets mingw
7525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7526 *)
7527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7528 esac
7529 case $ac_prog in
7530 # Accept absolute paths.
7531 [\\/]* | ?:[\\/]*)
7532 re_direlt='/[^/][^/]*/\.\./'
7533 # Canonicalize the pathname of ld
7534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7537 done
7538 test -z "$LD" && LD="$ac_prog"
7539 ;;
7540 "")
7541 # If it fails, then pretend we aren't using GCC.
7542 ac_prog=ld
7543 ;;
7544 *)
7545 # If it is relative, then search for the first ld in PATH.
7546 with_gnu_ld=unknown
7547 ;;
7548 esac
7549elif test "$with_gnu_ld" = yes; then
7550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7551$as_echo_n "checking for GNU ld... " >&6; }
7552else
7553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7554$as_echo_n "checking for non-GNU ld... " >&6; }
7555fi
cristyda16f162011-02-19 23:52:17 +00007556if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007557 $as_echo_n "(cached) " >&6
7558else
7559 if test -z "$LD"; then
7560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7561 for ac_dir in $PATH; do
7562 IFS="$lt_save_ifs"
7563 test -z "$ac_dir" && ac_dir=.
7564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7565 lt_cv_path_LD="$ac_dir/$ac_prog"
7566 # Check to see if the program is GNU ld. I'd rather use --version,
7567 # but apparently some variants of GNU ld only accept -v.
7568 # Break only if it was the GNU/non-GNU ld that we prefer.
7569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7570 *GNU* | *'with BFD'*)
7571 test "$with_gnu_ld" != no && break
7572 ;;
7573 *)
7574 test "$with_gnu_ld" != yes && break
7575 ;;
7576 esac
7577 fi
7578 done
7579 IFS="$lt_save_ifs"
7580else
7581 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7582fi
7583fi
7584
7585LD="$lt_cv_path_LD"
7586if test -n "$LD"; then
7587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7588$as_echo "$LD" >&6; }
7589else
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7591$as_echo "no" >&6; }
7592fi
cristy98dddb52010-11-04 00:30:15 +00007593test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7595$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007596if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007597 $as_echo_n "(cached) " >&6
7598else
7599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7600case `$LD -v 2>&1 </dev/null` in
7601*GNU* | *'with BFD'*)
7602 lt_cv_prog_gnu_ld=yes
7603 ;;
7604*)
7605 lt_cv_prog_gnu_ld=no
7606 ;;
7607esac
7608fi
7609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7610$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7611with_gnu_ld=$lt_cv_prog_gnu_ld
7612
7613
7614
7615
7616
7617
7618
7619
7620
cristy3ed852e2009-09-05 21:47:34 +00007621
cristy837d6dc2010-02-27 01:16:57 +00007622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7623$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007624if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007625 $as_echo_n "(cached) " >&6
7626else
7627 ac_cv_prog_cc_c99=no
7628ac_save_CC=$CC
7629cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7630/* end confdefs.h. */
7631#include <stdarg.h>
7632#include <stdbool.h>
7633#include <stdlib.h>
7634#include <wchar.h>
7635#include <stdio.h>
7636
7637// Check varargs macros. These examples are taken from C99 6.10.3.5.
7638#define debug(...) fprintf (stderr, __VA_ARGS__)
7639#define showlist(...) puts (#__VA_ARGS__)
7640#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7641static void
7642test_varargs_macros (void)
7643{
7644 int x = 1234;
7645 int y = 5678;
7646 debug ("Flag");
7647 debug ("X = %d\n", x);
7648 showlist (The first, second, and third items.);
7649 report (x>y, "x is %d but y is %d", x, y);
7650}
7651
7652// Check long long types.
7653#define BIG64 18446744073709551615ull
7654#define BIG32 4294967295ul
7655#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7656#if !BIG_OK
7657 your preprocessor is broken;
7658#endif
7659#if BIG_OK
7660#else
7661 your preprocessor is broken;
7662#endif
7663static long long int bignum = -9223372036854775807LL;
7664static unsigned long long int ubignum = BIG64;
7665
7666struct incomplete_array
7667{
7668 int datasize;
7669 double data[];
7670};
7671
7672struct named_init {
7673 int number;
7674 const wchar_t *name;
7675 double average;
7676};
7677
7678typedef const char *ccp;
7679
7680static inline int
7681test_restrict (ccp restrict text)
7682{
7683 // See if C++-style comments work.
7684 // Iterate through items via the restricted pointer.
7685 // Also check for declarations in for loops.
7686 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7687 continue;
7688 return 0;
7689}
7690
7691// Check varargs and va_copy.
7692static void
7693test_varargs (const char *format, ...)
7694{
7695 va_list args;
7696 va_start (args, format);
7697 va_list args_copy;
7698 va_copy (args_copy, args);
7699
7700 const char *str;
7701 int number;
7702 float fnumber;
7703
7704 while (*format)
7705 {
7706 switch (*format++)
7707 {
7708 case 's': // string
7709 str = va_arg (args_copy, const char *);
7710 break;
7711 case 'd': // int
7712 number = va_arg (args_copy, int);
7713 break;
7714 case 'f': // float
7715 fnumber = va_arg (args_copy, double);
7716 break;
7717 default:
7718 break;
7719 }
7720 }
7721 va_end (args_copy);
7722 va_end (args);
7723}
7724
7725int
7726main ()
7727{
7728
7729 // Check bool.
7730 _Bool success = false;
7731
7732 // Check restrict.
7733 if (test_restrict ("String literal") == 0)
7734 success = true;
7735 char *restrict newvar = "Another string";
7736
7737 // Check varargs.
7738 test_varargs ("s, d' f .", "string", 65, 34.234);
7739 test_varargs_macros ();
7740
7741 // Check flexible array members.
7742 struct incomplete_array *ia =
7743 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7744 ia->datasize = 10;
7745 for (int i = 0; i < ia->datasize; ++i)
7746 ia->data[i] = i * 1.234;
7747
7748 // Check named initializers.
7749 struct named_init ni = {
7750 .number = 34,
7751 .name = L"Test wide string",
7752 .average = 543.34343,
7753 };
7754
7755 ni.number = 58;
7756
7757 int dynamic_array[ni.number];
7758 dynamic_array[ni.number - 1] = 543;
7759
7760 // work around unused variable warnings
7761 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7762 || dynamic_array[ni.number - 1] != 543);
7763
7764 ;
7765 return 0;
7766}
7767_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007768for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007769do
7770 CC="$ac_save_CC $ac_arg"
7771 if ac_fn_c_try_compile "$LINENO"; then :
7772 ac_cv_prog_cc_c99=$ac_arg
7773fi
7774rm -f core conftest.err conftest.$ac_objext
7775 test "x$ac_cv_prog_cc_c99" != "xno" && break
7776done
7777rm -f conftest.$ac_ext
7778CC=$ac_save_CC
7779
7780fi
7781# AC_CACHE_VAL
7782case "x$ac_cv_prog_cc_c99" in
7783 x)
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7785$as_echo "none needed" >&6; } ;;
7786 xno)
7787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7788$as_echo "unsupported" >&6; } ;;
7789 *)
7790 CC="$CC $ac_cv_prog_cc_c99"
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7792$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7793esac
7794if test "x$ac_cv_prog_cc_c99" != xno; then :
7795
7796fi
7797
7798
cristy73bd4a52010-10-05 11:24:23 +00007799if test "x$CC" != xcc; then
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7801$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7802else
7803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7804$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7805fi
7806set dummy $CC; ac_cc=`$as_echo "$2" |
7807 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007808if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007809 $as_echo_n "(cached) " >&6
7810else
cristy73bd4a52010-10-05 11:24:23 +00007811 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7812/* end confdefs.h. */
7813
7814int
7815main ()
7816{
7817
7818 ;
7819 return 0;
7820}
7821_ACEOF
7822# Make sure it works both with $CC and with simple cc.
7823# We do the test twice because some compilers refuse to overwrite an
7824# existing .o file with -o, though they will create one.
7825ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7826rm -f conftest2.*
7827if { { case "(($ac_try" in
7828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7829 *) ac_try_echo=$ac_try;;
7830esac
7831eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7832$as_echo "$ac_try_echo"; } >&5
7833 (eval "$ac_try") 2>&5
7834 ac_status=$?
7835 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7836 test $ac_status = 0; } &&
7837 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7839 *) ac_try_echo=$ac_try;;
7840esac
7841eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7842$as_echo "$ac_try_echo"; } >&5
7843 (eval "$ac_try") 2>&5
7844 ac_status=$?
7845 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7846 test $ac_status = 0; };
7847then
7848 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7849 if test "x$CC" != xcc; then
7850 # Test first that cc exists at all.
7851 if { ac_try='cc -c conftest.$ac_ext >&5'
7852 { { case "(($ac_try" in
7853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7854 *) ac_try_echo=$ac_try;;
7855esac
7856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7857$as_echo "$ac_try_echo"; } >&5
7858 (eval "$ac_try") 2>&5
7859 ac_status=$?
7860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7861 test $ac_status = 0; }; }; then
7862 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7863 rm -f conftest2.*
7864 if { { case "(($ac_try" in
7865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7866 *) ac_try_echo=$ac_try;;
7867esac
7868eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7869$as_echo "$ac_try_echo"; } >&5
7870 (eval "$ac_try") 2>&5
7871 ac_status=$?
7872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7873 test $ac_status = 0; } &&
7874 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877esac
7878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7879$as_echo "$ac_try_echo"; } >&5
7880 (eval "$ac_try") 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; };
7884 then
7885 # cc works too.
7886 :
7887 else
7888 # cc exists but doesn't like -o.
7889 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7890 fi
7891 fi
7892 fi
7893else
7894 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7895fi
7896rm -f core conftest*
7897
7898fi
7899if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7901$as_echo "yes" >&6; }
7902else
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7904$as_echo "no" >&6; }
7905
7906$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7907
7908fi
7909
7910# FIXME: we rely on the cache variable name because
7911# there is no other way.
7912set dummy $CC
7913am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7914eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7915if test "$am_t" != yes; then
7916 # Losing compiler, so override with the script.
7917 # FIXME: It is wrong to rewrite CC.
7918 # But if we don't then we get into trouble of one sort or another.
7919 # A longer-term fix would be to have automake use am__CC in this case,
7920 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7921 CC="$am_aux_dir/compile $CC"
7922fi
7923
7924
7925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7926$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007927if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007928 $as_echo_n "(cached) " >&6
7929else
7930 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007931 ac_ext=c
7932ac_cpp='$CPP $CPPFLAGS'
7933ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7934ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7935ac_compiler_gnu=$ac_cv_c_compiler_gnu
7936
7937 ac_save_CFLAGS="$CFLAGS"
7938for 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" #
7939do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7941/* end confdefs.h. */
7942
7943int
7944main ()
7945{
cristy24fc1fe2010-10-23 21:13:01 +00007946
cristy73bd4a52010-10-05 11:24:23 +00007947 ;
7948 return 0;
7949}
7950_ACEOF
7951if ac_fn_c_try_compile "$LINENO"; then :
7952 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7953fi
7954rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955done
7956 CFLAGS="$ac_save_CFLAGS"
7957 ac_ext=c
7958ac_cpp='$CPP $CPPFLAGS'
7959ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7960ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7961ac_compiler_gnu=$ac_cv_c_compiler_gnu
7962
7963
7964fi
7965{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7966$as_echo "$ac_cv_cflags_warn_all" >&6; }
7967case ".$ac_cv_cflags_warn_all" in
7968 .ok|.ok,*) ;;
7969 .|.no|.no,*)
7970 ;;
7971 *)
7972 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7973 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7974 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7975 ac_status=$?
7976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7977 test $ac_status = 0; }
7978 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7979 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7980 ac_status=$?
7981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7982 test $ac_status = 0; }
7983 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7984 fi
7985 ;;
nicolas6237c462010-10-05 06:11:49 +00007986esac
cristy3ed852e2009-09-05 21:47:34 +00007987
cristy568c2d42012-07-27 01:41:20 +00007988{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7989$as_echo_n "checking for C compiler vendor... " >&6; }
7990if ${ax_cv_c_compiler_vendor+:} false; then :
7991 $as_echo_n "(cached) " >&6
7992else
7993 # note: don't check for gcc first since some other compilers define __GNUC__
7994 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7995 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7996 pathscale: __PATHCC__,__PATHSCALE__
7997 clang: __clang__
7998 gnu: __GNUC__
7999 sun: __SUNPRO_C,__SUNPRO_CC
8000 hp: __HP_cc,__HP_aCC
8001 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
8002 borland: __BORLANDC__,__TURBOC__
8003 comeau: __COMO__
8004 cray: _CRAYC
8005 kai: __KCC
8006 lcc: __LCC__
8007 sgi: __sgi,sgi
8008 microsoft: _MSC_VER
8009 metrowerks: __MWERKS__
8010 watcom: __WATCOMC__
8011 portland: __PGI
8012 unknown: UNKNOWN"
8013 for ventest in $vendors; do
8014 case $ventest in
8015 *:) vendor=$ventest; continue ;;
8016 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
8017 esac
8018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8019/* end confdefs.h. */
8020
8021int
8022main ()
8023{
8024
8025 #if !($vencpp)
8026 thisisanerror;
8027 #endif
8028
8029 ;
8030 return 0;
8031}
8032_ACEOF
8033if ac_fn_c_try_compile "$LINENO"; then :
8034 break
8035fi
8036rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8037 done
8038 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8039
8040fi
8041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8042$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8043
cristya0b81c32010-01-22 02:54:33 +00008044
8045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8046$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8047set x ${MAKE-make}
8048ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008049if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008050 $as_echo_n "(cached) " >&6
8051else
8052 cat >conftest.make <<\_ACEOF
8053SHELL = /bin/sh
8054all:
8055 @echo '@@@%%%=$(MAKE)=@@@%%%'
8056_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008057# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008058case `${MAKE-make} -f conftest.make 2>/dev/null` in
8059 *@@@%%%=?*=@@@%%%*)
8060 eval ac_cv_prog_make_${ac_make}_set=yes;;
8061 *)
8062 eval ac_cv_prog_make_${ac_make}_set=no;;
8063esac
8064rm -f conftest.make
8065fi
8066if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8068$as_echo "yes" >&6; }
8069 SET_MAKE=
8070else
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8072$as_echo "no" >&6; }
8073 SET_MAKE="MAKE=${MAKE-make}"
8074fi
8075
cristy8b350f62009-11-15 23:12:43 +00008076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008077$as_echo_n "checking whether ln -s works... " >&6; }
8078LN_S=$as_ln_s
8079if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008081$as_echo "yes" >&6; }
8082else
cristy8b350f62009-11-15 23:12:43 +00008083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008084$as_echo "no, using $LN_S" >&6; }
8085fi
8086
cristybc556452012-08-17 19:44:03 +00008087for ac_prog in gawk mawk nawk awk
8088do
8089 # Extract the first word of "$ac_prog", so it can be a program name with args.
8090set dummy $ac_prog; ac_word=$2
8091{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092$as_echo_n "checking for $ac_word... " >&6; }
8093if ${ac_cv_prog_AWK+:} false; then :
8094 $as_echo_n "(cached) " >&6
8095else
8096 if test -n "$AWK"; then
8097 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8098else
8099as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100for as_dir in $PATH
8101do
8102 IFS=$as_save_IFS
8103 test -z "$as_dir" && as_dir=.
8104 for ac_exec_ext in '' $ac_executable_extensions; do
8105 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8106 ac_cv_prog_AWK="$ac_prog"
8107 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108 break 2
8109 fi
8110done
8111 done
8112IFS=$as_save_IFS
8113
8114fi
8115fi
8116AWK=$ac_cv_prog_AWK
8117if test -n "$AWK"; then
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8119$as_echo "$AWK" >&6; }
8120else
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122$as_echo "no" >&6; }
8123fi
8124
8125
8126 test -n "$AWK" && break
8127done
8128
cristy73bd4a52010-10-05 11:24:23 +00008129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8130$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8131
8132# Check whether --with-dmalloc was given.
8133if test "${with_dmalloc+set}" = set; then :
8134 withval=$with_dmalloc; if test "$withval" = yes; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8136$as_echo "yes" >&6; }
8137
8138$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8139
8140 LIBS="$LIBS -ldmalloc"
8141 LDFLAGS="$LDFLAGS -g"
8142else
8143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8144$as_echo "no" >&6; }
8145fi
8146else
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8148$as_echo "no" >&6; }
8149fi
8150
8151
8152
8153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8154$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008155if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008156 $as_echo_n "(cached) " >&6
8157else
8158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8159/* end confdefs.h. */
8160#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008161 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008162 static void
8163 foo(void) {
8164 exit(1);
8165 }
8166
8167int
8168main ()
8169{
8170
8171 ;
8172 return 0;
8173}
8174_ACEOF
8175if ac_fn_c_try_compile "$LINENO"; then :
8176 ax_cv___attribute__=yes
8177else
8178 ax_cv___attribute__=no
8179
8180fi
8181rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8182
8183fi
8184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8185$as_echo "$ax_cv___attribute__" >&6; }
8186 if test "$ax_cv___attribute__" = "yes"; then
8187
8188$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8189
8190 fi
8191
8192
8193
cristy37110d62012-03-01 18:38:20 +00008194
8195
8196# Check whether --with-gcc-arch was given.
8197if test "${with_gcc_arch+set}" = set; then :
8198 withval=$with_gcc_arch; ax_gcc_arch=$withval
8199else
cristya32d1812012-03-02 19:24:21 +00008200 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008201fi
8202
8203
8204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8205$as_echo_n "checking for gcc architecture flag... " >&6; }
8206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8207$as_echo "" >&6; }
8208if ${ax_cv_gcc_archflag+:} false; then :
8209 $as_echo_n "(cached) " >&6
8210else
8211
8212ax_cv_gcc_archflag="unknown"
8213
8214if test "$GCC" = yes; then
8215
8216if test "x$ax_gcc_arch" = xyes; then
8217ax_gcc_arch=""
8218if test "$cross_compiling" = no; then
8219case $host_cpu in
8220 i[3456]86*|x86_64*) # use cpuid codes
8221
8222ac_ext=c
8223ac_cpp='$CPP $CPPFLAGS'
8224ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8225ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8226ac_compiler_gnu=$ac_cv_c_compiler_gnu
8227
8228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8229$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8230if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8231 $as_echo_n "(cached) " >&6
8232else
8233 if test "$cross_compiling" = yes; then :
8234 ax_cv_gcc_x86_cpuid_0=unknown
8235else
8236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8237/* end confdefs.h. */
8238#include <stdio.h>
8239int
8240main ()
8241{
8242
8243 int op = 0, eax, ebx, ecx, edx;
8244 FILE *f;
8245 __asm__("cpuid"
8246 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8247 : "a" (op));
8248 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8249 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8250 fclose(f);
8251 return 0;
8252
8253 ;
8254 return 0;
8255}
8256_ACEOF
8257if ac_fn_c_try_run "$LINENO"; then :
8258 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8259else
8260 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8261fi
8262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8263 conftest.$ac_objext conftest.beam conftest.$ac_ext
8264fi
8265
8266fi
8267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8268$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8269ac_ext=c
8270ac_cpp='$CPP $CPPFLAGS'
8271ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8272ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8273ac_compiler_gnu=$ac_cv_c_compiler_gnu
8274
8275
8276
8277ac_ext=c
8278ac_cpp='$CPP $CPPFLAGS'
8279ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8280ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8281ac_compiler_gnu=$ac_cv_c_compiler_gnu
8282
8283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8284$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8285if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8286 $as_echo_n "(cached) " >&6
8287else
8288 if test "$cross_compiling" = yes; then :
8289 ax_cv_gcc_x86_cpuid_1=unknown
8290else
8291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8292/* end confdefs.h. */
8293#include <stdio.h>
8294int
8295main ()
8296{
8297
8298 int op = 1, eax, ebx, ecx, edx;
8299 FILE *f;
8300 __asm__("cpuid"
8301 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8302 : "a" (op));
8303 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8304 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8305 fclose(f);
8306 return 0;
8307
8308 ;
8309 return 0;
8310}
8311_ACEOF
8312if ac_fn_c_try_run "$LINENO"; then :
8313 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8314else
8315 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8316fi
8317rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8318 conftest.$ac_objext conftest.beam conftest.$ac_ext
8319fi
8320
8321fi
8322{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8323$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8324ac_ext=c
8325ac_cpp='$CPP $CPPFLAGS'
8326ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8327ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8328ac_compiler_gnu=$ac_cv_c_compiler_gnu
8329
8330
8331 case $ax_cv_gcc_x86_cpuid_0 in
8332 *:756e6547:*:*) # Intel
8333 case $ax_cv_gcc_x86_cpuid_1 in
8334 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8335 *5??:*:*:*) ax_gcc_arch=pentium ;;
8336 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8337 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8338 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8339 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8340 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8341 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8342 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8343 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8344 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8345 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8346 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8347 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8348 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8349 case $host_cpu in
8350 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8351 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8352 esac ;;
8353 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8354 esac ;;
8355 *:68747541:*:*) # AMD
8356 case $ax_cv_gcc_x86_cpuid_1 in
8357 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8358 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8359 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8360 *60?:*:*:*) ax_gcc_arch=k7 ;;
8361 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8362 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8363 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8364 *6[68a]?:*:*:*)
8365
8366ac_ext=c
8367ac_cpp='$CPP $CPPFLAGS'
8368ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8369ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8370ac_compiler_gnu=$ac_cv_c_compiler_gnu
8371
8372{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8373$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8374if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8375 $as_echo_n "(cached) " >&6
8376else
8377 if test "$cross_compiling" = yes; then :
8378 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8379else
8380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8381/* end confdefs.h. */
8382#include <stdio.h>
8383int
8384main ()
8385{
8386
8387 int op = 0x80000006, eax, ebx, ecx, edx;
8388 FILE *f;
8389 __asm__("cpuid"
8390 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8391 : "a" (op));
8392 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8393 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8394 fclose(f);
8395 return 0;
8396
8397 ;
8398 return 0;
8399}
8400_ACEOF
8401if ac_fn_c_try_run "$LINENO"; then :
8402 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8403else
8404 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8405fi
8406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8407 conftest.$ac_objext conftest.beam conftest.$ac_ext
8408fi
8409
8410fi
8411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8412$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8413ac_ext=c
8414ac_cpp='$CPP $CPPFLAGS'
8415ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8416ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8417ac_compiler_gnu=$ac_cv_c_compiler_gnu
8418
8419 # L2 cache size
8420 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8421 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8422 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8423 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8424 esac ;;
8425 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8426 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8427 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8428 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8429 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8430 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8431 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8432 esac ;;
8433 *:746e6543:*:*) # IDT
8434 case $ax_cv_gcc_x86_cpuid_1 in
8435 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8436 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8437 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8438 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8439 esac ;;
8440 esac
8441 if test x"$ax_gcc_arch" = x; then # fallback
8442 case $host_cpu in
8443 i586*) ax_gcc_arch=pentium ;;
8444 i686*) ax_gcc_arch=pentiumpro ;;
8445 esac
8446 fi
8447 ;;
8448
8449 sparc*)
8450 # Extract the first word of "prtdiag", so it can be a program name with args.
8451set dummy prtdiag; ac_word=$2
8452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8453$as_echo_n "checking for $ac_word... " >&6; }
8454if ${ac_cv_path_PRTDIAG+:} false; then :
8455 $as_echo_n "(cached) " >&6
8456else
8457 case $PRTDIAG in
8458 [\\/]* | ?:[\\/]*)
8459 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8460 ;;
8461 *)
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8464for as_dir in $as_dummy
8465do
8466 IFS=$as_save_IFS
8467 test -z "$as_dir" && as_dir=.
8468 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008470 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8472 break 2
8473 fi
8474done
8475 done
8476IFS=$as_save_IFS
8477
8478 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8479 ;;
8480esac
8481fi
8482PRTDIAG=$ac_cv_path_PRTDIAG
8483if test -n "$PRTDIAG"; then
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8485$as_echo "$PRTDIAG" >&6; }
8486else
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8488$as_echo "no" >&6; }
8489fi
8490
8491
8492 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`
8493 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8494 case $cputype in
8495 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8496 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8497 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8498 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8499 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8500 *cypress*) ax_gcc_arch=cypress ;;
8501 esac ;;
8502
8503 alphaev5) ax_gcc_arch=ev5 ;;
8504 alphaev56) ax_gcc_arch=ev56 ;;
8505 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8506 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8507 alphaev6) ax_gcc_arch=ev6 ;;
8508 alphaev67) ax_gcc_arch=ev67 ;;
8509 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8510 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8511 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8512 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8513
8514 powerpc*)
8515 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`
8516 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8517 case $cputype in
8518 *750*) ax_gcc_arch="750 G3" ;;
8519 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8520 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8521 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8522 *970*) ax_gcc_arch="970 G5 power4";;
8523 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8524 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8525 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8526 *) ax_gcc_arch=$cputype ;;
8527 esac
8528 ax_gcc_arch="$ax_gcc_arch powerpc"
8529 ;;
8530esac
8531fi # not cross-compiling
8532fi # guess arch
8533
8534if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8535for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008536 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008537 flags="-mtune=$arch"
8538 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8539 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8540 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8541 else
8542 flags="-march=$arch -mcpu=$arch -m$arch"
8543 fi
8544 for flag in $flags; do
8545 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8547$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8548if eval \${$as_CACHEVAR+:} false; then :
8549 $as_echo_n "(cached) " >&6
8550else
8551
8552 ax_check_save_flags=$CFLAGS
8553 CFLAGS="$CFLAGS $flag"
8554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8555/* end confdefs.h. */
8556
8557int
8558main ()
8559{
8560
8561 ;
8562 return 0;
8563}
8564_ACEOF
8565if ac_fn_c_try_compile "$LINENO"; then :
8566 eval "$as_CACHEVAR=yes"
8567else
8568 eval "$as_CACHEVAR=no"
8569fi
8570rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8571 CFLAGS=$ax_check_save_flags
8572fi
8573eval ac_res=\$$as_CACHEVAR
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8575$as_echo "$ac_res" >&6; }
8576if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8577 ax_cv_gcc_archflag=$flag; break
8578else
8579 :
8580fi
8581
8582 done
8583 test "x$ax_cv_gcc_archflag" = xunknown || break
8584done
8585fi
8586
8587fi # $GCC=yes
8588
8589fi
8590
8591{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8592$as_echo_n "checking for gcc architecture flag... " >&6; }
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8594$as_echo "$ax_cv_gcc_archflag" >&6; }
8595if test "x$ax_cv_gcc_archflag" = xunknown; then
8596 :
8597else
8598 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8599fi
8600
8601
8602
cristy73bd4a52010-10-05 11:24:23 +00008603if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8604 if test -n "$ac_tool_prefix"; then
8605 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8606set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8608$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008609if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008610 $as_echo_n "(cached) " >&6
8611else
8612 case $PKG_CONFIG in
8613 [\\/]* | ?:[\\/]*)
8614 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8615 ;;
8616 *)
8617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8618for as_dir in $PATH
8619do
8620 IFS=$as_save_IFS
8621 test -z "$as_dir" && as_dir=.
8622 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008624 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 break 2
8627 fi
8628done
8629 done
8630IFS=$as_save_IFS
8631
8632 ;;
8633esac
8634fi
8635PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8636if test -n "$PKG_CONFIG"; then
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8638$as_echo "$PKG_CONFIG" >&6; }
8639else
8640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8641$as_echo "no" >&6; }
8642fi
8643
8644
8645fi
8646if test -z "$ac_cv_path_PKG_CONFIG"; then
8647 ac_pt_PKG_CONFIG=$PKG_CONFIG
8648 # Extract the first word of "pkg-config", so it can be a program name with args.
8649set dummy pkg-config; ac_word=$2
8650{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8651$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008652if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008653 $as_echo_n "(cached) " >&6
8654else
8655 case $ac_pt_PKG_CONFIG in
8656 [\\/]* | ?:[\\/]*)
8657 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8658 ;;
8659 *)
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661for as_dir in $PATH
8662do
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008667 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8670 fi
8671done
8672 done
8673IFS=$as_save_IFS
8674
8675 ;;
8676esac
8677fi
8678ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8679if test -n "$ac_pt_PKG_CONFIG"; then
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8681$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8682else
8683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8684$as_echo "no" >&6; }
8685fi
8686
8687 if test "x$ac_pt_PKG_CONFIG" = x; then
8688 PKG_CONFIG=""
8689 else
8690 case $cross_compiling:$ac_tool_warned in
8691yes:)
8692{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8693$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8694ac_tool_warned=yes ;;
8695esac
8696 PKG_CONFIG=$ac_pt_PKG_CONFIG
8697 fi
8698else
8699 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8700fi
8701
8702fi
8703if test -n "$PKG_CONFIG"; then
8704 _pkg_min_version=0.9.0
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8706$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8707 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8709$as_echo "yes" >&6; }
8710 else
8711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8712$as_echo "no" >&6; }
8713 PKG_CONFIG=""
8714 fi
8715
8716fi
cristy3ed852e2009-09-05 21:47:34 +00008717
8718#
cristy3ed852e2009-09-05 21:47:34 +00008719# Enable run-time checking.
8720#
8721# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008722if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008723 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8724else
8725 enable_bounds_checking='no'
8726fi
8727
8728
8729if test "$enable_bounds_checking" = yes; then
8730
cristy8b350f62009-11-15 23:12:43 +00008731$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008732
8733fi
8734
8735#
8736# Tests for Windows
8737#
8738
8739
8740
8741GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008742native_win32_build='no'
8743cygwin_build='no'
8744case "${host_os}" in
8745 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008746 cygwin_build='yes'
8747 GDI32_LIBS='-lgdi32'
8748 ;;
8749 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008750 native_win32_build='yes'
8751 GDI32_LIBS='-lgdi32'
8752 ;;
8753esac
8754if test "${GDI32_LIBS}x" != 'x'; then
8755
cristy8b350f62009-11-15 23:12:43 +00008756$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008757
8758fi
8759
cristy73bd4a52010-10-05 11:24:23 +00008760 if test "${GDI32_LIBS}x" != 'x' ; then
8761 WINGDI32_DELEGATE_TRUE=
8762 WINGDI32_DELEGATE_FALSE='#'
8763else
8764 WINGDI32_DELEGATE_TRUE='#'
8765 WINGDI32_DELEGATE_FALSE=
8766fi
8767
8768 if test "${native_win32_build}" = 'yes' ; then
8769 WIN32_NATIVE_BUILD_TRUE=
8770 WIN32_NATIVE_BUILD_FALSE='#'
8771else
8772 WIN32_NATIVE_BUILD_TRUE='#'
8773 WIN32_NATIVE_BUILD_FALSE=
8774fi
8775
8776 if test "${cygwin_build}" = 'yes' ; then
8777 CYGWIN_BUILD_TRUE=
8778 CYGWIN_BUILD_FALSE='#'
8779else
8780 CYGWIN_BUILD_TRUE='#'
8781 CYGWIN_BUILD_FALSE=
8782fi
8783
8784 if test "x${CC}" = 'xcl.exe' ; then
8785 USING_CL_TRUE=
8786 USING_CL_FALSE='#'
8787else
8788 USING_CL_TRUE='#'
8789 USING_CL_FALSE=
8790fi
8791
cristy3ed852e2009-09-05 21:47:34 +00008792
8793WinPathScript="${srcdirfull}/winpath.sh"
8794
8795
8796#
8797# Compiler flags tweaks
8798#
8799if test "${GCC}" != "yes"; then
8800 case "${host}" in
8801 *-*-hpux* )
8802 # aCC: HP ANSI C++ B3910B A.03.34
8803 CFLAGS="${CFLAGS} -Wp,-H30000"
8804 if test -n "${CXXFLAGS}"; then
8805 CXXFLAGS='-AA'
8806 else
8807 CXXFLAGS="${CXXFLAGS} -AA"
8808 fi
8809 ;;
8810 *-dec-osf5.* )
8811 # Compaq alphaev68-dec-osf5.1 compiler
8812 if test -n "${CXXFLAGS}"; then
8813 CXXFLAGS='-std strict_ansi -noimplicit_include'
8814 else
8815 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8816 fi
8817 esac
8818fi
8819
8820# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008822$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008823if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008824 $as_echo_n "(cached) " >&6
8825else
8826
8827im_cv_ld_lazyload='none'
8828case "${host}" in
8829 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8830 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8831 im_cv_ld_lazyload='-Wl,-zlazyload'
8832 fi
8833 ;;
8834esac
8835
8836fi
cristy8b350f62009-11-15 23:12:43 +00008837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008838$as_echo "$im_cv_ld_lazyload" >&6; }
8839if test "${im_cv_ld_lazyload}" != 'none' ; then
8840 if test -z "${LDFLAGS}" ; then
8841 LDFLAGS="${im_cv_ld_lazyload}"
8842 else
8843 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8844 fi
8845fi
8846
8847case "$host" in
8848*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008849 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008850if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008851 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8852else
8853 build_osxuniversal=no
8854fi
8855
8856
8857 if test "${build_osxuniversal}" != no ; then
8858 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008859 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008860Please re-run configure with these options:
8861 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008862 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008863 fi
8864 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8865 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8866 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8867 fi
8868 ;;
8869esac
8870
cristy0151ae12011-10-28 16:32:29 +00008871#
8872# ARCH specific include directory
8873#
8874
cristy670aa3c2011-11-03 00:54:00 +00008875# Check whether --with-includearch-dir was given.
8876if test "${with_includearch_dir+set}" = set; then :
8877 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008878else
cristy670aa3c2011-11-03 00:54:00 +00008879 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008880fi
8881
8882
cristy670aa3c2011-11-03 00:54:00 +00008883eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008884
cristy0151ae12011-10-28 16:32:29 +00008885
8886#
8887# ARCH specific configuration directory
8888#
8889
cristy670aa3c2011-11-03 00:54:00 +00008890# Check whether --with-sharearch-dir was given.
8891if test "${with_sharearch_dir+set}" = set; then :
8892 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008893else
cristy408ebcd2011-11-14 01:36:57 +00008894 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008895fi
8896
8897
cristy670aa3c2011-11-03 00:54:00 +00008898eval "eval SHAREARCH_DIR=$sharearch_dir"
8899SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008900
cristy0151ae12011-10-28 16:32:29 +00008901
8902#
cristy3ed852e2009-09-05 21:47:34 +00008903# Enable support for threads
8904
8905# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008906if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008907 withval=$with_threads; with_threads=$withval
8908else
8909 with_threads='yes'
8910fi
8911
8912
8913have_threads=no
8914if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008915
8916
cristy73bd4a52010-10-05 11:24:23 +00008917ac_ext=c
8918ac_cpp='$CPP $CPPFLAGS'
8919ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8920ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8921ac_compiler_gnu=$ac_cv_c_compiler_gnu
8922
8923ax_pthread_ok=no
8924
8925# We used to check for pthread.h first, but this fails if pthread.h
8926# requires special compiler flags (e.g. on True64 or Sequent).
8927# It gets checked for in the link test anyway.
8928
8929# First of all, check if the user has set any of the PTHREAD_LIBS,
8930# etcetera environment variables, and if threads linking works using
8931# them:
8932if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8933 save_CFLAGS="$CFLAGS"
8934 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8935 save_LIBS="$LIBS"
8936 LIBS="$PTHREAD_LIBS $LIBS"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8938$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8940/* end confdefs.h. */
8941
8942/* Override any GCC internal prototype to avoid an error.
8943 Use char because int might match the return type of a GCC
8944 builtin and then its argument prototype would still apply. */
8945#ifdef __cplusplus
8946extern "C"
8947#endif
8948char pthread_join ();
8949int
8950main ()
8951{
8952return pthread_join ();
8953 ;
8954 return 0;
8955}
8956_ACEOF
8957if ac_fn_c_try_link "$LINENO"; then :
8958 ax_pthread_ok=yes
8959fi
8960rm -f core conftest.err conftest.$ac_objext \
8961 conftest$ac_exeext conftest.$ac_ext
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
8963$as_echo "$ax_pthread_ok" >&6; }
8964 if test x"$ax_pthread_ok" = xno; then
8965 PTHREAD_LIBS=""
8966 PTHREAD_CFLAGS=""
8967 fi
8968 LIBS="$save_LIBS"
8969 CFLAGS="$save_CFLAGS"
8970fi
8971
8972# We must check for the threads library under a number of different
8973# names; the ordering is very important because some systems
8974# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
8975# libraries is broken (non-POSIX).
8976
8977# Create a list of thread flags to try. Items starting with a "-" are
8978# C compiler flags, and other items are library names, except for "none"
8979# which indicates that we try without any flags at all, and "pthread-config"
8980# which is a program returning the flags for the Pth emulation library.
8981
cristy18307f12011-12-30 01:20:16 +00008982ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00008983
8984# The ordering *is* (sometimes) important. Some notes on the
8985# individual items follow:
8986
8987# pthreads: AIX (must check this before -lpthread)
8988# none: in case threads are in libc; should be tried before -Kthread and
8989# other compiler flags to prevent continual compiler warnings
8990# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
8991# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
8992# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
8993# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
8994# -pthreads: Solaris/gcc
8995# -mthreads: Mingw32/gcc, Lynx/gcc
8996# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
8997# doesn't hurt to check since this sometimes defines pthreads too;
8998# also defines -D_REENTRANT)
8999# ... -mt is also the pthreads flag for HP/aCC
9000# pthread: Linux, etcetera
9001# --thread-safe: KAI C++
9002# pthread-config: use pthread-config program (for GNU Pth library)
9003
9004case "${host_cpu}-${host_os}" in
9005 *solaris*)
9006
9007 # On Solaris (at least, for some versions), libc contains stubbed
9008 # (non-functional) versions of the pthreads routines, so link-based
9009 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9010 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9011 # a function called by this macro, so we could check for that, but
9012 # who knows whether they'll stub that too in a future libc.) So,
9013 # we'll just look for -pthreads and -lpthread first:
9014
9015 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9016 ;;
9017
cristya316db12011-10-24 00:49:45 +00009018 *-darwin*)
9019 ax_pthread_flags="-pthread $ax_pthread_flags"
9020 ;;
cristy73bd4a52010-10-05 11:24:23 +00009021esac
9022
9023if test x"$ax_pthread_ok" = xno; then
9024for flag in $ax_pthread_flags; do
9025
9026 case $flag in
9027 none)
9028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9029$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9030 ;;
9031
9032 -*)
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9034$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9035 PTHREAD_CFLAGS="$flag"
9036 ;;
9037
cristya316db12011-10-24 00:49:45 +00009038 pthread-config)
9039 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009040set dummy pthread-config; ac_word=$2
9041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9042$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009043if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009044 $as_echo_n "(cached) " >&6
9045else
9046 if test -n "$ax_pthread_config"; then
9047 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9048else
9049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9050for as_dir in $PATH
9051do
9052 IFS=$as_save_IFS
9053 test -z "$as_dir" && as_dir=.
9054 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009055 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009056 ac_cv_prog_ax_pthread_config="yes"
9057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9058 break 2
9059 fi
9060done
9061 done
9062IFS=$as_save_IFS
9063
9064 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9065fi
9066fi
9067ax_pthread_config=$ac_cv_prog_ax_pthread_config
9068if test -n "$ax_pthread_config"; then
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9070$as_echo "$ax_pthread_config" >&6; }
9071else
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9073$as_echo "no" >&6; }
9074fi
9075
9076
cristya316db12011-10-24 00:49:45 +00009077 if test x"$ax_pthread_config" = xno; then continue; fi
9078 PTHREAD_CFLAGS="`pthread-config --cflags`"
9079 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9080 ;;
cristy73bd4a52010-10-05 11:24:23 +00009081
9082 *)
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9084$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9085 PTHREAD_LIBS="-l$flag"
9086 ;;
9087 esac
9088
9089 save_LIBS="$LIBS"
9090 save_CFLAGS="$CFLAGS"
9091 LIBS="$PTHREAD_LIBS $LIBS"
9092 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9093
9094 # Check for various functions. We must include pthread.h,
9095 # since some functions may be macros. (On the Sequent, we
9096 # need a special flag -Kthread to make this header compile.)
9097 # We check for pthread_join because it is in -lpthread on IRIX
9098 # while pthread_create is in libc. We check for pthread_attr_init
9099 # due to DEC craziness with -lpthreads. We check for
9100 # pthread_cleanup_push because it is one of the few pthread
9101 # functions on Solaris that doesn't have a non-functional libc stub.
9102 # We try pthread_create on general principles.
9103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9104/* end confdefs.h. */
9105#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009106 static void routine(void *a) { a = 0; }
9107 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009108int
9109main ()
9110{
9111pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009112 pthread_create(&th, 0, start_routine, 0);
9113 pthread_join(th, 0);
9114 pthread_attr_init(&attr);
9115 pthread_cleanup_push(routine, 0);
9116 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009117 ;
9118 return 0;
9119}
9120_ACEOF
9121if ac_fn_c_try_link "$LINENO"; then :
9122 ax_pthread_ok=yes
9123fi
9124rm -f core conftest.err conftest.$ac_objext \
9125 conftest$ac_exeext conftest.$ac_ext
9126
9127 LIBS="$save_LIBS"
9128 CFLAGS="$save_CFLAGS"
9129
9130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9131$as_echo "$ax_pthread_ok" >&6; }
9132 if test "x$ax_pthread_ok" = xyes; then
9133 break;
9134 fi
9135
9136 PTHREAD_LIBS=""
9137 PTHREAD_CFLAGS=""
9138done
9139fi
9140
9141# Various other checks:
9142if test "x$ax_pthread_ok" = xyes; then
9143 save_LIBS="$LIBS"
9144 LIBS="$PTHREAD_LIBS $LIBS"
9145 save_CFLAGS="$CFLAGS"
9146 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9147
9148 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009150$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009151 attr_name=unknown
9152 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009154/* end confdefs.h. */
9155#include <pthread.h>
9156int
9157main ()
9158{
cristya316db12011-10-24 00:49:45 +00009159int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009160 ;
9161 return 0;
9162}
9163_ACEOF
9164if ac_fn_c_try_link "$LINENO"; then :
9165 attr_name=$attr; break
9166fi
9167rm -f core conftest.err conftest.$ac_objext \
9168 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009169 done
cristy73bd4a52010-10-05 11:24:23 +00009170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9171$as_echo "$attr_name" >&6; }
9172 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9173
9174cat >>confdefs.h <<_ACEOF
9175#define PTHREAD_CREATE_JOINABLE $attr_name
9176_ACEOF
9177
9178 fi
9179
9180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9181$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9182 flag=no
9183 case "${host_cpu}-${host_os}" in
9184 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9185 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9186 esac
9187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9188$as_echo "${flag}" >&6; }
9189 if test "x$flag" != xno; then
9190 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9191 fi
9192
cristya316db12011-10-24 00:49:45 +00009193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9194$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9195if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9196 $as_echo_n "(cached) " >&6
9197else
9198
9199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9200/* end confdefs.h. */
9201
9202 #include <pthread.h>
9203int
9204main ()
9205{
9206int i = PTHREAD_PRIO_INHERIT;
9207 ;
9208 return 0;
9209}
9210_ACEOF
9211if ac_fn_c_try_link "$LINENO"; then :
9212 ax_cv_PTHREAD_PRIO_INHERIT=yes
9213else
9214 ax_cv_PTHREAD_PRIO_INHERIT=no
9215fi
9216rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
9218
9219fi
9220{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9221$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9222 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9223
9224$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9225
9226fi
9227
cristy73bd4a52010-10-05 11:24:23 +00009228 LIBS="$save_LIBS"
9229 CFLAGS="$save_CFLAGS"
9230
9231 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009232 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009233 for ac_prog in xlc_r cc_r
9234do
9235 # Extract the first word of "$ac_prog", so it can be a program name with args.
9236set dummy $ac_prog; ac_word=$2
9237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9238$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009239if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009240 $as_echo_n "(cached) " >&6
9241else
9242 if test -n "$PTHREAD_CC"; then
9243 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9244else
9245as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9246for as_dir in $PATH
9247do
9248 IFS=$as_save_IFS
9249 test -z "$as_dir" && as_dir=.
9250 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009251 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009252 ac_cv_prog_PTHREAD_CC="$ac_prog"
9253 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9254 break 2
9255 fi
9256done
9257 done
9258IFS=$as_save_IFS
9259
9260fi
9261fi
9262PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9263if test -n "$PTHREAD_CC"; then
9264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9265$as_echo "$PTHREAD_CC" >&6; }
9266else
9267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9268$as_echo "no" >&6; }
9269fi
9270
9271
9272 test -n "$PTHREAD_CC" && break
9273done
9274test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9275
9276 else
9277 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009278 fi
cristy73bd4a52010-10-05 11:24:23 +00009279else
9280 PTHREAD_CC="$CC"
9281fi
9282
9283
9284
9285
9286
9287# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9288if test x"$ax_pthread_ok" = xyes; then
9289
9290$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9291
9292 :
9293else
9294 ax_pthread_ok=no
9295
9296fi
9297ac_ext=c
9298ac_cpp='$CPP $CPPFLAGS'
9299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9301ac_compiler_gnu=$ac_cv_c_compiler_gnu
9302
9303
cristy7acf8fb2010-09-23 19:58:53 +00009304 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009305 have_threads=yes
9306 DEF_THREAD="$PTHREAD_CFLAGS"
9307 CFLAGS="$CFLAGS $DEF_THREAD"
9308 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9309 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009310 { $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 +00009311$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9312 CC="$PTHREAD_CC"
9313 fi
cristy55bf91c2010-09-24 00:29:41 +00009314
9315$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9316
cristy3ed852e2009-09-05 21:47:34 +00009317 fi
9318fi
9319
9320# Enable support for OpenMP
9321if test "$have_threads" != 'yes'; then
9322 ac_cv_prog_c_openmp=unsupported
9323fi
9324
9325 OPENMP_CFLAGS=
9326 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009327if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009328 enableval=$enable_openmp;
9329fi
9330
9331 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009333$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009334if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009335 $as_echo_n "(cached) " >&6
9336else
cristy8b350f62009-11-15 23:12:43 +00009337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9338/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009339
9340#ifndef _OPENMP
9341 choke me
9342#endif
9343#include <omp.h>
9344int main () { return omp_get_num_threads (); }
9345
9346_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009347if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009348 ac_cv_prog_c_openmp='none needed'
9349else
cristy8b350f62009-11-15 23:12:43 +00009350 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009351 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9352 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009353 ac_save_CFLAGS=$CFLAGS
9354 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9356/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009357
9358#ifndef _OPENMP
9359 choke me
9360#endif
9361#include <omp.h>
9362int main () { return omp_get_num_threads (); }
9363
9364_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009365if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009366 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009367fi
cristy8b350f62009-11-15 23:12:43 +00009368rm -f core conftest.err conftest.$ac_objext \
9369 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009370 CFLAGS=$ac_save_CFLAGS
9371 if test "$ac_cv_prog_c_openmp" != unsupported; then
9372 break
9373 fi
9374 done
9375fi
cristy8b350f62009-11-15 23:12:43 +00009376rm -f core conftest.err conftest.$ac_objext \
9377 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009378fi
cristy8b350f62009-11-15 23:12:43 +00009379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009380$as_echo "$ac_cv_prog_c_openmp" >&6; }
9381 case $ac_cv_prog_c_openmp in #(
9382 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009383 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009384 *)
cristy8b350f62009-11-15 23:12:43 +00009385 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009386 esac
9387 fi
9388
9389
9390CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9391MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9392
cristy391f1ce2010-09-09 17:23:28 +00009393if test "$enable_openmp" != no; then
9394 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9395 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9396 fi
9397fi
cristy3ed852e2009-09-05 21:47:34 +00009398
cristy736173a2009-09-20 21:18:22 +00009399# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009400
9401
cristy73bd4a52010-10-05 11:24:23 +00009402ac_ext=c
9403ac_cpp='$CPP $CPPFLAGS'
9404ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9405ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9406ac_compiler_gnu=$ac_cv_c_compiler_gnu
9407
9408ax_pthread_ok=no
9409
9410# We used to check for pthread.h first, but this fails if pthread.h
9411# requires special compiler flags (e.g. on True64 or Sequent).
9412# It gets checked for in the link test anyway.
9413
9414# First of all, check if the user has set any of the PTHREAD_LIBS,
9415# etcetera environment variables, and if threads linking works using
9416# them:
9417if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9418 save_CFLAGS="$CFLAGS"
9419 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9420 save_LIBS="$LIBS"
9421 LIBS="$PTHREAD_LIBS $LIBS"
9422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9423$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9425/* end confdefs.h. */
9426
9427/* Override any GCC internal prototype to avoid an error.
9428 Use char because int might match the return type of a GCC
9429 builtin and then its argument prototype would still apply. */
9430#ifdef __cplusplus
9431extern "C"
9432#endif
9433char pthread_join ();
9434int
9435main ()
9436{
9437return pthread_join ();
9438 ;
9439 return 0;
9440}
9441_ACEOF
9442if ac_fn_c_try_link "$LINENO"; then :
9443 ax_pthread_ok=yes
9444fi
9445rm -f core conftest.err conftest.$ac_objext \
9446 conftest$ac_exeext conftest.$ac_ext
9447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9448$as_echo "$ax_pthread_ok" >&6; }
9449 if test x"$ax_pthread_ok" = xno; then
9450 PTHREAD_LIBS=""
9451 PTHREAD_CFLAGS=""
9452 fi
9453 LIBS="$save_LIBS"
9454 CFLAGS="$save_CFLAGS"
9455fi
9456
9457# We must check for the threads library under a number of different
9458# names; the ordering is very important because some systems
9459# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9460# libraries is broken (non-POSIX).
9461
9462# Create a list of thread flags to try. Items starting with a "-" are
9463# C compiler flags, and other items are library names, except for "none"
9464# which indicates that we try without any flags at all, and "pthread-config"
9465# which is a program returning the flags for the Pth emulation library.
9466
cristy18307f12011-12-30 01:20:16 +00009467ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009468
9469# The ordering *is* (sometimes) important. Some notes on the
9470# individual items follow:
9471
9472# pthreads: AIX (must check this before -lpthread)
9473# none: in case threads are in libc; should be tried before -Kthread and
9474# other compiler flags to prevent continual compiler warnings
9475# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9476# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9477# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9478# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9479# -pthreads: Solaris/gcc
9480# -mthreads: Mingw32/gcc, Lynx/gcc
9481# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9482# doesn't hurt to check since this sometimes defines pthreads too;
9483# also defines -D_REENTRANT)
9484# ... -mt is also the pthreads flag for HP/aCC
9485# pthread: Linux, etcetera
9486# --thread-safe: KAI C++
9487# pthread-config: use pthread-config program (for GNU Pth library)
9488
9489case "${host_cpu}-${host_os}" in
9490 *solaris*)
9491
9492 # On Solaris (at least, for some versions), libc contains stubbed
9493 # (non-functional) versions of the pthreads routines, so link-based
9494 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9495 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9496 # a function called by this macro, so we could check for that, but
9497 # who knows whether they'll stub that too in a future libc.) So,
9498 # we'll just look for -pthreads and -lpthread first:
9499
9500 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9501 ;;
9502
cristya316db12011-10-24 00:49:45 +00009503 *-darwin*)
9504 ax_pthread_flags="-pthread $ax_pthread_flags"
9505 ;;
cristy73bd4a52010-10-05 11:24:23 +00009506esac
9507
9508if test x"$ax_pthread_ok" = xno; then
9509for flag in $ax_pthread_flags; do
9510
9511 case $flag in
9512 none)
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9514$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9515 ;;
9516
9517 -*)
9518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9519$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9520 PTHREAD_CFLAGS="$flag"
9521 ;;
9522
cristya316db12011-10-24 00:49:45 +00009523 pthread-config)
9524 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009525set dummy pthread-config; ac_word=$2
9526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9527$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009528if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009529 $as_echo_n "(cached) " >&6
9530else
9531 if test -n "$ax_pthread_config"; then
9532 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9533else
9534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9535for as_dir in $PATH
9536do
9537 IFS=$as_save_IFS
9538 test -z "$as_dir" && as_dir=.
9539 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009541 ac_cv_prog_ax_pthread_config="yes"
9542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9543 break 2
9544 fi
9545done
9546 done
9547IFS=$as_save_IFS
9548
9549 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9550fi
9551fi
9552ax_pthread_config=$ac_cv_prog_ax_pthread_config
9553if test -n "$ax_pthread_config"; then
9554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9555$as_echo "$ax_pthread_config" >&6; }
9556else
9557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9558$as_echo "no" >&6; }
9559fi
9560
9561
cristya316db12011-10-24 00:49:45 +00009562 if test x"$ax_pthread_config" = xno; then continue; fi
9563 PTHREAD_CFLAGS="`pthread-config --cflags`"
9564 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9565 ;;
cristy73bd4a52010-10-05 11:24:23 +00009566
9567 *)
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9569$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9570 PTHREAD_LIBS="-l$flag"
9571 ;;
9572 esac
9573
9574 save_LIBS="$LIBS"
9575 save_CFLAGS="$CFLAGS"
9576 LIBS="$PTHREAD_LIBS $LIBS"
9577 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9578
9579 # Check for various functions. We must include pthread.h,
9580 # since some functions may be macros. (On the Sequent, we
9581 # need a special flag -Kthread to make this header compile.)
9582 # We check for pthread_join because it is in -lpthread on IRIX
9583 # while pthread_create is in libc. We check for pthread_attr_init
9584 # due to DEC craziness with -lpthreads. We check for
9585 # pthread_cleanup_push because it is one of the few pthread
9586 # functions on Solaris that doesn't have a non-functional libc stub.
9587 # We try pthread_create on general principles.
9588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9589/* end confdefs.h. */
9590#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009591 static void routine(void *a) { a = 0; }
9592 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009593int
9594main ()
9595{
9596pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009597 pthread_create(&th, 0, start_routine, 0);
9598 pthread_join(th, 0);
9599 pthread_attr_init(&attr);
9600 pthread_cleanup_push(routine, 0);
9601 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009602 ;
9603 return 0;
9604}
9605_ACEOF
9606if ac_fn_c_try_link "$LINENO"; then :
9607 ax_pthread_ok=yes
9608fi
9609rm -f core conftest.err conftest.$ac_objext \
9610 conftest$ac_exeext conftest.$ac_ext
9611
9612 LIBS="$save_LIBS"
9613 CFLAGS="$save_CFLAGS"
9614
9615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9616$as_echo "$ax_pthread_ok" >&6; }
9617 if test "x$ax_pthread_ok" = xyes; then
9618 break;
9619 fi
9620
9621 PTHREAD_LIBS=""
9622 PTHREAD_CFLAGS=""
9623done
9624fi
9625
9626# Various other checks:
9627if test "x$ax_pthread_ok" = xyes; then
9628 save_LIBS="$LIBS"
9629 LIBS="$PTHREAD_LIBS $LIBS"
9630 save_CFLAGS="$CFLAGS"
9631 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9632
9633 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009635$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009636 attr_name=unknown
9637 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009639/* end confdefs.h. */
9640#include <pthread.h>
9641int
9642main ()
9643{
cristya316db12011-10-24 00:49:45 +00009644int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009645 ;
9646 return 0;
9647}
9648_ACEOF
9649if ac_fn_c_try_link "$LINENO"; then :
9650 attr_name=$attr; break
9651fi
9652rm -f core conftest.err conftest.$ac_objext \
9653 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009654 done
cristy73bd4a52010-10-05 11:24:23 +00009655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9656$as_echo "$attr_name" >&6; }
9657 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9658
9659cat >>confdefs.h <<_ACEOF
9660#define PTHREAD_CREATE_JOINABLE $attr_name
9661_ACEOF
9662
9663 fi
9664
9665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9666$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9667 flag=no
9668 case "${host_cpu}-${host_os}" in
9669 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9670 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9671 esac
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9673$as_echo "${flag}" >&6; }
9674 if test "x$flag" != xno; then
9675 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9676 fi
9677
cristya316db12011-10-24 00:49:45 +00009678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9679$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9680if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9681 $as_echo_n "(cached) " >&6
9682else
9683
9684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9685/* end confdefs.h. */
9686
9687 #include <pthread.h>
9688int
9689main ()
9690{
9691int i = PTHREAD_PRIO_INHERIT;
9692 ;
9693 return 0;
9694}
9695_ACEOF
9696if ac_fn_c_try_link "$LINENO"; then :
9697 ax_cv_PTHREAD_PRIO_INHERIT=yes
9698else
9699 ax_cv_PTHREAD_PRIO_INHERIT=no
9700fi
9701rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
9703
9704fi
9705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9706$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9707 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9708
9709$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9710
9711fi
9712
cristy73bd4a52010-10-05 11:24:23 +00009713 LIBS="$save_LIBS"
9714 CFLAGS="$save_CFLAGS"
9715
9716 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009717 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009718 for ac_prog in xlc_r cc_r
9719do
9720 # Extract the first word of "$ac_prog", so it can be a program name with args.
9721set dummy $ac_prog; ac_word=$2
9722{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9723$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009724if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009725 $as_echo_n "(cached) " >&6
9726else
9727 if test -n "$PTHREAD_CC"; then
9728 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9729else
9730as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9731for as_dir in $PATH
9732do
9733 IFS=$as_save_IFS
9734 test -z "$as_dir" && as_dir=.
9735 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009737 ac_cv_prog_PTHREAD_CC="$ac_prog"
9738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9739 break 2
9740 fi
9741done
9742 done
9743IFS=$as_save_IFS
9744
9745fi
9746fi
9747PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9748if test -n "$PTHREAD_CC"; then
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9750$as_echo "$PTHREAD_CC" >&6; }
9751else
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9753$as_echo "no" >&6; }
9754fi
9755
9756
9757 test -n "$PTHREAD_CC" && break
9758done
9759test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9760
9761 else
9762 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009763 fi
cristy73bd4a52010-10-05 11:24:23 +00009764else
9765 PTHREAD_CC="$CC"
9766fi
9767
9768
9769
9770
9771
9772# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9773if test x"$ax_pthread_ok" = xyes; then
9774
9775$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9776
9777 :
9778else
9779 ax_pthread_ok=no
9780
9781fi
9782ac_ext=c
9783ac_cpp='$CPP $CPPFLAGS'
9784ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9785ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9786ac_compiler_gnu=$ac_cv_c_compiler_gnu
9787
9788
9789
9790# Check whether --enable-opencl was given.
9791if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009792 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009793else
cristy48794642012-09-02 15:19:08 +00009794 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009795fi
9796
9797
cristy48794642012-09-02 15:19:08 +00009798if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009799 ac_ext=c
9800ac_cpp='$CPP $CPPFLAGS'
9801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9803ac_compiler_gnu=$ac_cv_c_compiler_gnu
9804
cristy75314cc2012-09-15 23:08:29 +00009805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9806$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9807if ${ax_cv_c_compiler_ms+:} false; then :
9808 $as_echo_n "(cached) " >&6
9809else
9810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9811/* end confdefs.h. */
9812
9813int
9814main ()
9815{
9816#ifndef _MSC_VER
9817 choke me
9818#endif
9819
9820 ;
9821 return 0;
9822}
9823_ACEOF
9824if ac_fn_c_try_compile "$LINENO"; then :
9825 ax_compiler_ms=yes
9826else
9827 ax_compiler_ms=no
9828fi
9829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9830ax_cv_c_compiler_ms=$ax_compiler_ms
9831
9832fi
9833{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9834$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009835 if test X$ax_compiler_ms = Xno; then :
9836 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9837fi
9838
9839 ax_save_CPPFLAGS=$CPPFLAGS
9840 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9841 for ac_header in CL/cl.h OpenCL/cl.h
9842do :
9843 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9844ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009845if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009846 cat >>confdefs.h <<_ACEOF
9847#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9848_ACEOF
9849
9850fi
9851
9852done
9853
9854 CPPFLAGS=$ax_save_CPPFLAGS
9855
9856 for ac_header in windows.h
9857do :
9858 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009859if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009860 cat >>confdefs.h <<_ACEOF
9861#define HAVE_WINDOWS_H 1
9862_ACEOF
9863
9864fi
9865
9866done
9867
9868
9869
9870
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9872$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009873if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009874 $as_echo_n "(cached) " >&6
9875else
9876 ax_cv_check_cl_libcl=no
9877 case $host_cpu in
9878 x86_64) ax_check_cl_libdir=lib64 ;;
9879 *) ax_check_cl_libdir=lib ;;
9880 esac
9881 ax_save_CPPFLAGS=$CPPFLAGS
9882 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9883 ax_save_LIBS=$LIBS
9884 LIBS=""
9885 ax_check_libs="-lOpenCL -lCL -lclparser"
9886 for ax_lib in $ax_check_libs; do
9887 if test X$ax_compiler_ms = Xyes; then :
9888 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9889else
9890 ax_try_lib=$ax_lib
9891fi
9892 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9894/* end confdefs.h. */
9895
9896 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9897 # include <windows.h>
9898 # endif
9899 # ifdef HAVE_CL_CL_H
9900 # include <CL/cl.h>
9901 # elif defined(HAVE_OPENCL_CL_H)
9902 # include <OpenCL/cl.h>
9903 # else
9904 # error no CL.h
9905 # endif
9906int
9907main ()
9908{
9909clCreateContextFromType(0,0,0,0,0)
9910 ;
9911 return 0;
9912}
9913_ACEOF
9914if ac_fn_c_try_link "$LINENO"; then :
9915 ax_cv_check_cl_libcl=$ax_try_lib; break
9916else
9917 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"
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919/* end confdefs.h. */
9920
9921 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9922 # include <windows.h>
9923 # endif
9924 # ifdef HAVE_CL_CL_H
9925 # include <CL/cl.h>
9926 # elif defined(HAVE_OPENCL_CL_H)
9927 # include <OpenCL/cl.h>
9928 # else
9929 # error no CL.h
9930 # endif
9931int
9932main ()
9933{
9934clCreateContextFromType(0,0,0,0,0)
9935 ;
9936 return 0;
9937}
9938_ACEOF
9939if ac_fn_c_try_link "$LINENO"; then :
9940 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9941else
cristy78c5a0c2010-12-04 20:00:59 +00009942 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 +00009943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9944/* end confdefs.h. */
9945
9946 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9947 # include <windows.h>
9948 # endif
9949 # ifdef HAVE_CL_CL_H
9950 # include <CL/cl.h>
9951 # elif defined(HAVE_OPENCL_CL_H)
9952 # include <OpenCL/cl.h>
9953 # else
9954 # error no CL.h
9955 # endif
9956int
9957main ()
9958{
9959clCreateContextFromType(0,0,0,0,0)
9960 ;
9961 return 0;
9962}
9963_ACEOF
9964if ac_fn_c_try_link "$LINENO"; then :
9965 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
9966fi
9967rm -f core conftest.err conftest.$ac_objext \
9968 conftest$ac_exeext conftest.$ac_ext
9969fi
9970rm -f core conftest.err conftest.$ac_objext \
9971 conftest$ac_exeext conftest.$ac_ext
9972fi
9973rm -f core conftest.err conftest.$ac_objext \
9974 conftest$ac_exeext conftest.$ac_ext
9975 done
9976
cristyc3f8b8e2011-12-22 14:55:16 +00009977 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +00009978 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +00009979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9980/* end confdefs.h. */
9981
9982 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9983 # include <windows.h>
9984 # endif
9985 # ifdef HAVE_CL_CL_H
9986 # include <CL/cl.h>
9987 # elif defined(HAVE_OPENCL_CL_H)
9988 # include <OpenCL/cl.h>
9989 # else
9990 # error no CL.h
9991 # endif
9992int
9993main ()
9994{
9995clCreateContextFromType(0,0,0,0,0)
9996 ;
9997 return 0;
9998}
9999_ACEOF
10000if ac_fn_c_try_link "$LINENO"; then :
10001 ax_cv_check_cl_libcl=$LIBS
10002fi
10003rm -f core conftest.err conftest.$ac_objext \
10004 conftest$ac_exeext conftest.$ac_ext
10005fi
10006
10007 LIBS=$ax_save_LIBS
10008 CPPFLAGS=$ax_save_CPPFLAGS
10009fi
10010{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10011$as_echo "$ax_cv_check_cl_libcl" >&6; }
10012
10013 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10014 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10015else
10016 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10017$as_echo "#define _OPENCL 1" >>confdefs.h
10018
10019fi
10020 ac_ext=c
10021ac_cpp='$CPP $CPPFLAGS'
10022ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10023ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10024ac_compiler_gnu=$ac_cv_c_compiler_gnu
10025
10026fi
10027
10028
10029
10030
cristyc7083c12009-10-14 03:16:55 +000010031CFLAGS="$CL_CFLAGS $CFLAGS"
10032LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010033
cristy391f1ce2010-09-09 17:23:28 +000010034if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010035 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010036 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10037 fi
cristyfd9dcd42010-08-08 18:07:02 +000010038fi
cristy2e8b51d2009-10-17 18:26:15 +000010039
cristy3ed852e2009-09-05 21:47:34 +000010040########
10041#
10042# Check for large file support
10043#
10044########
10045# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010046if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010047 enableval=$enable_largefile;
10048fi
10049
10050if test "$enable_largefile" != no; then
10051
cristy8b350f62009-11-15 23:12:43 +000010052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010053$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010054if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010055 $as_echo_n "(cached) " >&6
10056else
10057 ac_cv_sys_largefile_CC=no
10058 if test "$GCC" != yes; then
10059 ac_save_CC=$CC
10060 while :; do
10061 # IRIX 6.2 and later do not support large files by default,
10062 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010064/* end confdefs.h. */
10065#include <sys/types.h>
10066 /* Check that off_t can represent 2**63 - 1 correctly.
10067 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10068 since some C++ compilers masquerading as C compilers
10069 incorrectly reject 9223372036854775807. */
10070#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10071 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10072 && LARGE_OFF_T % 2147483647 == 1)
10073 ? 1 : -1];
10074int
10075main ()
10076{
10077
10078 ;
10079 return 0;
10080}
10081_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010082 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010083 break
cristy3ed852e2009-09-05 21:47:34 +000010084fi
cristy3ed852e2009-09-05 21:47:34 +000010085rm -f core conftest.err conftest.$ac_objext
10086 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010087 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010088 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010089fi
cristy3ed852e2009-09-05 21:47:34 +000010090rm -f core conftest.err conftest.$ac_objext
10091 break
10092 done
10093 CC=$ac_save_CC
10094 rm -f conftest.$ac_ext
10095 fi
10096fi
cristy8b350f62009-11-15 23:12:43 +000010097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010098$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10099 if test "$ac_cv_sys_largefile_CC" != no; then
10100 CC=$CC$ac_cv_sys_largefile_CC
10101 fi
10102
cristy8b350f62009-11-15 23:12:43 +000010103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010104$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010105if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010106 $as_echo_n "(cached) " >&6
10107else
10108 while :; do
cristy8b350f62009-11-15 23:12:43 +000010109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010110/* end confdefs.h. */
10111#include <sys/types.h>
10112 /* Check that off_t can represent 2**63 - 1 correctly.
10113 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10114 since some C++ compilers masquerading as C compilers
10115 incorrectly reject 9223372036854775807. */
10116#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10117 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10118 && LARGE_OFF_T % 2147483647 == 1)
10119 ? 1 : -1];
10120int
10121main ()
10122{
10123
10124 ;
10125 return 0;
10126}
10127_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010128if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010129 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010130fi
cristy3ed852e2009-09-05 21:47:34 +000010131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010133/* end confdefs.h. */
10134#define _FILE_OFFSET_BITS 64
10135#include <sys/types.h>
10136 /* Check that off_t can represent 2**63 - 1 correctly.
10137 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10138 since some C++ compilers masquerading as C compilers
10139 incorrectly reject 9223372036854775807. */
10140#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10141 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10142 && LARGE_OFF_T % 2147483647 == 1)
10143 ? 1 : -1];
10144int
10145main ()
10146{
10147
10148 ;
10149 return 0;
10150}
10151_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010152if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010153 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010154fi
cristy3ed852e2009-09-05 21:47:34 +000010155rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10156 ac_cv_sys_file_offset_bits=unknown
10157 break
10158done
10159fi
cristy8b350f62009-11-15 23:12:43 +000010160{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010161$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10162case $ac_cv_sys_file_offset_bits in #(
10163 no | unknown) ;;
10164 *)
10165cat >>confdefs.h <<_ACEOF
10166#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10167_ACEOF
10168;;
10169esac
10170rm -rf conftest*
10171 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010173$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010174if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010175 $as_echo_n "(cached) " >&6
10176else
10177 while :; do
cristy8b350f62009-11-15 23:12:43 +000010178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010179/* end confdefs.h. */
10180#include <sys/types.h>
10181 /* Check that off_t can represent 2**63 - 1 correctly.
10182 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10183 since some C++ compilers masquerading as C compilers
10184 incorrectly reject 9223372036854775807. */
10185#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10186 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10187 && LARGE_OFF_T % 2147483647 == 1)
10188 ? 1 : -1];
10189int
10190main ()
10191{
10192
10193 ;
10194 return 0;
10195}
10196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010197if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010198 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010199fi
cristy3ed852e2009-09-05 21:47:34 +000010200rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010202/* end confdefs.h. */
10203#define _LARGE_FILES 1
10204#include <sys/types.h>
10205 /* Check that off_t can represent 2**63 - 1 correctly.
10206 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10207 since some C++ compilers masquerading as C compilers
10208 incorrectly reject 9223372036854775807. */
10209#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10210 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10211 && LARGE_OFF_T % 2147483647 == 1)
10212 ? 1 : -1];
10213int
10214main ()
10215{
10216
10217 ;
10218 return 0;
10219}
10220_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010221if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010222 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010223fi
cristy3ed852e2009-09-05 21:47:34 +000010224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 ac_cv_sys_large_files=unknown
10226 break
10227done
10228fi
cristy8b350f62009-11-15 23:12:43 +000010229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010230$as_echo "$ac_cv_sys_large_files" >&6; }
10231case $ac_cv_sys_large_files in #(
10232 no | unknown) ;;
10233 *)
10234cat >>confdefs.h <<_ACEOF
10235#define _LARGE_FILES $ac_cv_sys_large_files
10236_ACEOF
10237;;
10238esac
10239rm -rf conftest*
10240 fi
cristy14fefe52012-05-21 00:59:18 +000010241
10242
cristy3ed852e2009-09-05 21:47:34 +000010243fi
10244
cristy8b350f62009-11-15 23:12:43 +000010245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010246$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010247if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010248 $as_echo_n "(cached) " >&6
10249else
10250 while :; do
cristy8b350f62009-11-15 23:12:43 +000010251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010252/* end confdefs.h. */
10253#include <sys/types.h> /* for off_t */
10254 #include <stdio.h>
10255int
10256main ()
10257{
10258int (*fp) (FILE *, off_t, int) = fseeko;
10259 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10260 ;
10261 return 0;
10262}
10263_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010264if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010265 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010266fi
cristy8b350f62009-11-15 23:12:43 +000010267rm -f core conftest.err conftest.$ac_objext \
10268 conftest$ac_exeext conftest.$ac_ext
10269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010270/* end confdefs.h. */
10271#define _LARGEFILE_SOURCE 1
10272#include <sys/types.h> /* for off_t */
10273 #include <stdio.h>
10274int
10275main ()
10276{
10277int (*fp) (FILE *, off_t, int) = fseeko;
10278 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10279 ;
10280 return 0;
10281}
10282_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010283if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010284 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010285fi
cristy8b350f62009-11-15 23:12:43 +000010286rm -f core conftest.err conftest.$ac_objext \
10287 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010288 ac_cv_sys_largefile_source=unknown
10289 break
10290done
10291fi
cristy8b350f62009-11-15 23:12:43 +000010292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010293$as_echo "$ac_cv_sys_largefile_source" >&6; }
10294case $ac_cv_sys_largefile_source in #(
10295 no | unknown) ;;
10296 *)
10297cat >>confdefs.h <<_ACEOF
10298#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10299_ACEOF
10300;;
10301esac
10302rm -rf conftest*
10303
10304# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10305# in glibc 2.1.3, but that breaks too many other things.
10306# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10307if test $ac_cv_sys_largefile_source != unknown; then
10308
cristy8b350f62009-11-15 23:12:43 +000010309$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010310
10311fi
10312
10313LFS_CPPFLAGS=''
10314if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010315 case $ac_cv_sys_file_offset_bits in
10316 no)
10317 # nothing to do here as the host supports LFS fine
10318 ;;
10319 unknown)
cristy8b350f62009-11-15 23:12:43 +000010320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010321$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010322 if test "$cross_compiling" = yes; then :
10323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010324$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010325as_fn_error $? "cannot run test program while cross compiling
10326See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010327else
cristy8b350f62009-11-15 23:12:43 +000010328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10329/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010330#include <unistd.h>
10331 main () {
10332 exit(!(sizeof(off_t) == 8));
10333 }
cristyda16f162011-02-19 23:52:17 +000010334int
10335main ()
10336{
10337
10338 ;
10339 return 0;
10340}
cristy3ed852e2009-09-05 21:47:34 +000010341_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010342if ac_fn_c_try_run "$LINENO"; then :
10343 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010344
cristy09b53e12011-10-14 12:47:22 +000010345 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10346$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010347else
cristy09b53e12011-10-14 12:47:22 +000010348 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10349$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010350fi
cristy8b350f62009-11-15 23:12:43 +000010351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10352 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010353fi
10354
cristyc1e0cc12011-09-21 16:41:16 +000010355 ;;
10356 *)
10357 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10358 ;;
10359 esac
cristy3ed852e2009-09-05 21:47:34 +000010360 if test "$ac_cv_sys_large_files" != 'no'; then
10361 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10362 fi
10363 if test "$ac_cv_sys_largefile_source" != 'no'; then
10364 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10365 fi
10366fi
10367
10368
cristy3ed852e2009-09-05 21:47:34 +000010369# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010370enable_dlopen=yes
10371
10372
10373
10374case `pwd` in
10375 *\ * | *\ *)
10376 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10377$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10378esac
10379
10380
10381
cristy99bd5232011-12-07 14:38:20 +000010382macro_version='2.4.2'
10383macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010384
10385
10386
10387
10388
10389
10390
10391
10392
10393
10394
10395
10396
10397ltmain="$ac_aux_dir/ltmain.sh"
10398
cristy0c60a692010-11-04 01:09:47 +000010399# Backslashify metacharacters that are still active within
10400# double-quoted strings.
10401sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10402
10403# Same as above, but do not quote variable references.
10404double_quote_subst='s/\(["`\\]\)/\\\1/g'
10405
10406# Sed substitution to delay expansion of an escaped shell variable in a
10407# double_quote_subst'ed string.
10408delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10409
10410# Sed substitution to delay expansion of an escaped single quote.
10411delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10412
10413# Sed substitution to avoid accidental globbing in evaled expressions
10414no_glob_subst='s/\*/\\\*/g'
10415
cristy73bd4a52010-10-05 11:24:23 +000010416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10417$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010418if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010419 $as_echo_n "(cached) " >&6
10420else
10421 if test -n "$NM"; then
10422 # Let the user override the test.
10423 lt_cv_path_NM="$NM"
10424else
10425 lt_nm_to_check="${ac_tool_prefix}nm"
10426 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10427 lt_nm_to_check="$lt_nm_to_check nm"
10428 fi
10429 for lt_tmp_nm in $lt_nm_to_check; do
10430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10431 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10432 IFS="$lt_save_ifs"
10433 test -z "$ac_dir" && ac_dir=.
10434 tmp_nm="$ac_dir/$lt_tmp_nm"
10435 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10436 # Check to see if the nm accepts a BSD-compat flag.
10437 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10438 # nm: unknown option "B" ignored
10439 # Tru64's nm complains that /dev/null is an invalid object file
10440 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10441 */dev/null* | *'Invalid file or object type'*)
10442 lt_cv_path_NM="$tmp_nm -B"
10443 break
10444 ;;
10445 *)
10446 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10447 */dev/null*)
10448 lt_cv_path_NM="$tmp_nm -p"
10449 break
10450 ;;
10451 *)
10452 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10453 continue # so that we can try to find one that supports BSD flags
10454 ;;
10455 esac
10456 ;;
10457 esac
10458 fi
10459 done
10460 IFS="$lt_save_ifs"
10461 done
10462 : ${lt_cv_path_NM=no}
10463fi
10464fi
10465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10466$as_echo "$lt_cv_path_NM" >&6; }
10467if test "$lt_cv_path_NM" != "no"; then
10468 NM="$lt_cv_path_NM"
10469else
10470 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010471 if test -n "$DUMPBIN"; then :
10472 # Let the user override the test.
10473 else
10474 if test -n "$ac_tool_prefix"; then
10475 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010476 do
10477 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10478set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10479{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10480$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010481if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010482 $as_echo_n "(cached) " >&6
10483else
10484 if test -n "$DUMPBIN"; then
10485 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10486else
10487as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10488for as_dir in $PATH
10489do
10490 IFS=$as_save_IFS
10491 test -z "$as_dir" && as_dir=.
10492 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010493 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010494 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10495 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10496 break 2
10497 fi
10498done
10499 done
10500IFS=$as_save_IFS
10501
10502fi
10503fi
10504DUMPBIN=$ac_cv_prog_DUMPBIN
10505if test -n "$DUMPBIN"; then
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10507$as_echo "$DUMPBIN" >&6; }
10508else
10509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10510$as_echo "no" >&6; }
10511fi
10512
10513
10514 test -n "$DUMPBIN" && break
10515 done
10516fi
10517if test -z "$DUMPBIN"; then
10518 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010519 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010520do
10521 # Extract the first word of "$ac_prog", so it can be a program name with args.
10522set dummy $ac_prog; ac_word=$2
10523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10524$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010525if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010526 $as_echo_n "(cached) " >&6
10527else
10528 if test -n "$ac_ct_DUMPBIN"; then
10529 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10530else
10531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10532for as_dir in $PATH
10533do
10534 IFS=$as_save_IFS
10535 test -z "$as_dir" && as_dir=.
10536 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010538 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10540 break 2
10541 fi
10542done
10543 done
10544IFS=$as_save_IFS
10545
10546fi
10547fi
10548ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10549if test -n "$ac_ct_DUMPBIN"; then
10550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10551$as_echo "$ac_ct_DUMPBIN" >&6; }
10552else
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10554$as_echo "no" >&6; }
10555fi
10556
10557
10558 test -n "$ac_ct_DUMPBIN" && break
10559done
10560
10561 if test "x$ac_ct_DUMPBIN" = x; then
10562 DUMPBIN=":"
10563 else
10564 case $cross_compiling:$ac_tool_warned in
10565yes:)
10566{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10567$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10568ac_tool_warned=yes ;;
10569esac
10570 DUMPBIN=$ac_ct_DUMPBIN
10571 fi
10572fi
10573
cristy0c60a692010-11-04 01:09:47 +000010574 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10575 *COFF*)
10576 DUMPBIN="$DUMPBIN -symbols"
10577 ;;
10578 *)
10579 DUMPBIN=:
10580 ;;
10581 esac
10582 fi
cristy73bd4a52010-10-05 11:24:23 +000010583
10584 if test "$DUMPBIN" != ":"; then
10585 NM="$DUMPBIN"
10586 fi
10587fi
10588test -z "$NM" && NM=nm
10589
10590
10591
10592
10593
10594
10595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10596$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010597if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010598 $as_echo_n "(cached) " >&6
10599else
10600 lt_cv_nm_interface="BSD nm"
10601 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010602 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010603 (eval "$ac_compile" 2>conftest.err)
10604 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010605 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010606 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10607 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010608 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010609 cat conftest.out >&5
10610 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10611 lt_cv_nm_interface="MS dumpbin"
10612 fi
10613 rm -f conftest*
10614fi
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10616$as_echo "$lt_cv_nm_interface" >&6; }
10617
10618# find the maximum length of command line arguments
10619{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10620$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010621if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010622 $as_echo_n "(cached) " >&6
10623else
10624 i=0
10625 teststring="ABCD"
10626
10627 case $build_os in
10628 msdosdjgpp*)
10629 # On DJGPP, this test can blow up pretty badly due to problems in libc
10630 # (any single argument exceeding 2000 bytes causes a buffer overrun
10631 # during glob expansion). Even if it were fixed, the result of this
10632 # check would be larger than it should be.
10633 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10634 ;;
10635
10636 gnu*)
10637 # Under GNU Hurd, this test is not required because there is
10638 # no limit to the length of command line arguments.
10639 # Libtool will interpret -1 as no limit whatsoever
10640 lt_cv_sys_max_cmd_len=-1;
10641 ;;
10642
10643 cygwin* | mingw* | cegcc*)
10644 # On Win9x/ME, this test blows up -- it succeeds, but takes
10645 # about 5 minutes as the teststring grows exponentially.
10646 # Worse, since 9x/ME are not pre-emptively multitasking,
10647 # you end up with a "frozen" computer, even though with patience
10648 # the test eventually succeeds (with a max line length of 256k).
10649 # Instead, let's just punt: use the minimum linelength reported by
10650 # all of the supported platforms: 8192 (on NT/2K/XP).
10651 lt_cv_sys_max_cmd_len=8192;
10652 ;;
10653
cristy0c60a692010-11-04 01:09:47 +000010654 mint*)
10655 # On MiNT this can take a long time and run out of memory.
10656 lt_cv_sys_max_cmd_len=8192;
10657 ;;
10658
cristy73bd4a52010-10-05 11:24:23 +000010659 amigaos*)
10660 # On AmigaOS with pdksh, this test takes hours, literally.
10661 # So we just punt and use a minimum line length of 8192.
10662 lt_cv_sys_max_cmd_len=8192;
10663 ;;
10664
10665 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10666 # This has been around since 386BSD, at least. Likely further.
10667 if test -x /sbin/sysctl; then
10668 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10669 elif test -x /usr/sbin/sysctl; then
10670 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10671 else
10672 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10673 fi
10674 # And add a safety zone
10675 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10676 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10677 ;;
10678
10679 interix*)
10680 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10681 lt_cv_sys_max_cmd_len=196608
10682 ;;
10683
cristy99bd5232011-12-07 14:38:20 +000010684 os2*)
10685 # The test takes a long time on OS/2.
10686 lt_cv_sys_max_cmd_len=8192
10687 ;;
10688
cristy73bd4a52010-10-05 11:24:23 +000010689 osf*)
10690 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10691 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10692 # nice to cause kernel panics so lets avoid the loop below.
10693 # First set a reasonable default.
10694 lt_cv_sys_max_cmd_len=16384
10695 #
10696 if test -x /sbin/sysconfig; then
10697 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10698 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10699 esac
10700 fi
10701 ;;
10702 sco3.2v5*)
10703 lt_cv_sys_max_cmd_len=102400
10704 ;;
10705 sysv5* | sco5v6* | sysv4.2uw2*)
10706 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10707 if test -n "$kargmax"; then
10708 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10709 else
10710 lt_cv_sys_max_cmd_len=32768
10711 fi
10712 ;;
10713 *)
10714 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10715 if test -n "$lt_cv_sys_max_cmd_len"; then
10716 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10717 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10718 else
10719 # Make teststring a little bigger before we do anything with it.
10720 # a 1K string should be a reasonable start.
10721 for i in 1 2 3 4 5 6 7 8 ; do
10722 teststring=$teststring$teststring
10723 done
10724 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10725 # If test is not a shell built-in, we'll probably end up computing a
10726 # maximum length that is only half of the actual maximum length, but
10727 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010728 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010729 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010730 test $i != 17 # 1/2 MB should be enough
10731 do
10732 i=`expr $i + 1`
10733 teststring=$teststring$teststring
10734 done
10735 # Only check the string length outside the loop.
10736 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10737 teststring=
10738 # Add a significant safety factor because C++ compilers can tack on
10739 # massive amounts of additional arguments before passing them to the
10740 # linker. It appears as though 1/2 is a usable value.
10741 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10742 fi
10743 ;;
10744 esac
10745
10746fi
10747
10748if test -n $lt_cv_sys_max_cmd_len ; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10750$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10751else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10753$as_echo "none" >&6; }
10754fi
10755max_cmd_len=$lt_cv_sys_max_cmd_len
10756
10757
10758
10759
10760
10761
10762: ${CP="cp -f"}
10763: ${MV="mv -f"}
10764: ${RM="rm -f"}
10765
10766{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10767$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10768# Try some XSI features
10769xsi_shell=no
10770( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010771 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10772 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010773 && eval 'test $(( 1 + 1 )) -eq 2 \
10774 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10775 && xsi_shell=yes
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10777$as_echo "$xsi_shell" >&6; }
10778
10779
10780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10781$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10782lt_shell_append=no
10783( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10784 >/dev/null 2>&1 \
10785 && lt_shell_append=yes
10786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10787$as_echo "$lt_shell_append" >&6; }
10788
10789
10790if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10791 lt_unset=unset
10792else
10793 lt_unset=false
10794fi
10795
10796
10797
10798
10799
10800# test EBCDIC or ASCII
10801case `echo X|tr X '\101'` in
10802 A) # ASCII based system
10803 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10804 lt_SP2NL='tr \040 \012'
10805 lt_NL2SP='tr \015\012 \040\040'
10806 ;;
10807 *) # EBCDIC based system
10808 lt_SP2NL='tr \100 \n'
10809 lt_NL2SP='tr \r\n \100\100'
10810 ;;
10811esac
10812
10813
10814
10815
10816
10817
10818
10819
10820
cristyda16f162011-02-19 23:52:17 +000010821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10822$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10823if ${lt_cv_to_host_file_cmd+:} false; then :
10824 $as_echo_n "(cached) " >&6
10825else
10826 case $host in
10827 *-*-mingw* )
10828 case $build in
10829 *-*-mingw* ) # actually msys
10830 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10831 ;;
10832 *-*-cygwin* )
10833 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10834 ;;
10835 * ) # otherwise, assume *nix
10836 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10837 ;;
10838 esac
10839 ;;
10840 *-*-cygwin* )
10841 case $build in
10842 *-*-mingw* ) # actually msys
10843 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10844 ;;
10845 *-*-cygwin* )
10846 lt_cv_to_host_file_cmd=func_convert_file_noop
10847 ;;
10848 * ) # otherwise, assume *nix
10849 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10850 ;;
10851 esac
10852 ;;
10853 * ) # unhandled hosts (and "normal" native builds)
10854 lt_cv_to_host_file_cmd=func_convert_file_noop
10855 ;;
10856esac
10857
10858fi
10859
10860to_host_file_cmd=$lt_cv_to_host_file_cmd
10861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10862$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10863
10864
10865
10866
10867
10868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10869$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10870if ${lt_cv_to_tool_file_cmd+:} false; then :
10871 $as_echo_n "(cached) " >&6
10872else
10873 #assume ordinary cross tools, or native build.
10874lt_cv_to_tool_file_cmd=func_convert_file_noop
10875case $host in
10876 *-*-mingw* )
10877 case $build in
10878 *-*-mingw* ) # actually msys
10879 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10880 ;;
10881 esac
10882 ;;
10883esac
10884
10885fi
10886
10887to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10889$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10890
10891
10892
10893
10894
cristy73bd4a52010-10-05 11:24:23 +000010895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10896$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010897if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010898 $as_echo_n "(cached) " >&6
10899else
10900 lt_cv_ld_reload_flag='-r'
10901fi
10902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10903$as_echo "$lt_cv_ld_reload_flag" >&6; }
10904reload_flag=$lt_cv_ld_reload_flag
10905case $reload_flag in
10906"" | " "*) ;;
10907*) reload_flag=" $reload_flag" ;;
10908esac
10909reload_cmds='$LD$reload_flag -o $output$reload_objs'
10910case $host_os in
cristyda16f162011-02-19 23:52:17 +000010911 cygwin* | mingw* | pw32* | cegcc*)
10912 if test "$GCC" != yes; then
10913 reload_cmds=false
10914 fi
10915 ;;
cristy73bd4a52010-10-05 11:24:23 +000010916 darwin*)
10917 if test "$GCC" = yes; then
10918 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10919 else
10920 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10921 fi
10922 ;;
10923esac
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933if test -n "$ac_tool_prefix"; then
10934 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10935set dummy ${ac_tool_prefix}objdump; ac_word=$2
10936{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10937$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010938if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010939 $as_echo_n "(cached) " >&6
10940else
10941 if test -n "$OBJDUMP"; then
10942 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10943else
10944as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10945for as_dir in $PATH
10946do
10947 IFS=$as_save_IFS
10948 test -z "$as_dir" && as_dir=.
10949 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010951 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10953 break 2
10954 fi
10955done
10956 done
10957IFS=$as_save_IFS
10958
10959fi
10960fi
10961OBJDUMP=$ac_cv_prog_OBJDUMP
10962if test -n "$OBJDUMP"; then
10963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
10964$as_echo "$OBJDUMP" >&6; }
10965else
10966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10967$as_echo "no" >&6; }
10968fi
10969
10970
10971fi
10972if test -z "$ac_cv_prog_OBJDUMP"; then
10973 ac_ct_OBJDUMP=$OBJDUMP
10974 # Extract the first word of "objdump", so it can be a program name with args.
10975set dummy objdump; ac_word=$2
10976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10977$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010978if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010979 $as_echo_n "(cached) " >&6
10980else
10981 if test -n "$ac_ct_OBJDUMP"; then
10982 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10983else
10984as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10985for as_dir in $PATH
10986do
10987 IFS=$as_save_IFS
10988 test -z "$as_dir" && as_dir=.
10989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010991 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10993 break 2
10994 fi
10995done
10996 done
10997IFS=$as_save_IFS
10998
10999fi
11000fi
11001ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11002if test -n "$ac_ct_OBJDUMP"; then
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11004$as_echo "$ac_ct_OBJDUMP" >&6; }
11005else
11006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11007$as_echo "no" >&6; }
11008fi
11009
11010 if test "x$ac_ct_OBJDUMP" = x; then
11011 OBJDUMP="false"
11012 else
11013 case $cross_compiling:$ac_tool_warned in
11014yes:)
11015{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11016$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11017ac_tool_warned=yes ;;
11018esac
11019 OBJDUMP=$ac_ct_OBJDUMP
11020 fi
11021else
11022 OBJDUMP="$ac_cv_prog_OBJDUMP"
11023fi
11024
11025test -z "$OBJDUMP" && OBJDUMP=objdump
11026
11027
11028
11029
11030
11031
11032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11033$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011034if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011035 $as_echo_n "(cached) " >&6
11036else
11037 lt_cv_file_magic_cmd='$MAGIC_CMD'
11038lt_cv_file_magic_test_file=
11039lt_cv_deplibs_check_method='unknown'
11040# Need to set the preceding variable on all platforms that support
11041# interlibrary dependencies.
11042# 'none' -- dependencies not supported.
11043# `unknown' -- same as none, but documents that we really don't know.
11044# 'pass_all' -- all dependencies passed with no checks.
11045# 'test_compile' -- check by making test program.
11046# 'file_magic [[regex]]' -- check by looking for files in library path
11047# which responds to the $file_magic_cmd with a given extended regex.
11048# If you have `file' or equivalent on your system and you're not sure
11049# whether `pass_all' will *always* work, you probably want this one.
11050
11051case $host_os in
11052aix[4-9]*)
11053 lt_cv_deplibs_check_method=pass_all
11054 ;;
11055
11056beos*)
11057 lt_cv_deplibs_check_method=pass_all
11058 ;;
11059
11060bsdi[45]*)
11061 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11062 lt_cv_file_magic_cmd='/usr/bin/file -L'
11063 lt_cv_file_magic_test_file=/shlib/libc.so
11064 ;;
11065
11066cygwin*)
11067 # func_win32_libid is a shell function defined in ltmain.sh
11068 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11069 lt_cv_file_magic_cmd='func_win32_libid'
11070 ;;
11071
11072mingw* | pw32*)
11073 # Base MSYS/MinGW do not provide the 'file' command needed by
11074 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11075 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011076 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11077 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011078 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11079 lt_cv_file_magic_cmd='func_win32_libid'
11080 else
cristy0c60a692010-11-04 01:09:47 +000011081 # Keep this pattern in sync with the one in func_win32_libid.
11082 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 +000011083 lt_cv_file_magic_cmd='$OBJDUMP -f'
11084 fi
11085 ;;
11086
cristy0c60a692010-11-04 01:09:47 +000011087cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011088 # use the weaker test based on 'objdump'. See mingw*.
11089 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11090 lt_cv_file_magic_cmd='$OBJDUMP -f'
11091 ;;
11092
11093darwin* | rhapsody*)
11094 lt_cv_deplibs_check_method=pass_all
11095 ;;
11096
11097freebsd* | dragonfly*)
11098 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11099 case $host_cpu in
11100 i*86 )
11101 # Not sure whether the presence of OpenBSD here was a mistake.
11102 # Let's accept both of them until this is cleared up.
11103 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11104 lt_cv_file_magic_cmd=/usr/bin/file
11105 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11106 ;;
11107 esac
11108 else
11109 lt_cv_deplibs_check_method=pass_all
11110 fi
11111 ;;
11112
11113gnu*)
11114 lt_cv_deplibs_check_method=pass_all
11115 ;;
11116
cristy0c60a692010-11-04 01:09:47 +000011117haiku*)
11118 lt_cv_deplibs_check_method=pass_all
11119 ;;
11120
cristy73bd4a52010-10-05 11:24:23 +000011121hpux10.20* | hpux11*)
11122 lt_cv_file_magic_cmd=/usr/bin/file
11123 case $host_cpu in
11124 ia64*)
11125 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11126 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11127 ;;
11128 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011129 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 +000011130 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11131 ;;
11132 *)
cristy0c60a692010-11-04 01:09:47 +000011133 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 +000011134 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11135 ;;
11136 esac
11137 ;;
11138
11139interix[3-9]*)
11140 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11141 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11142 ;;
11143
11144irix5* | irix6* | nonstopux*)
11145 case $LD in
11146 *-32|*"-32 ") libmagic=32-bit;;
11147 *-n32|*"-n32 ") libmagic=N32;;
11148 *-64|*"-64 ") libmagic=64-bit;;
11149 *) libmagic=never-match;;
11150 esac
11151 lt_cv_deplibs_check_method=pass_all
11152 ;;
11153
cristy99bd5232011-12-07 14:38:20 +000011154# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011155linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011156 lt_cv_deplibs_check_method=pass_all
11157 ;;
11158
11159netbsd*)
11160 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11161 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11162 else
11163 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11164 fi
11165 ;;
11166
11167newos6*)
11168 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11169 lt_cv_file_magic_cmd=/usr/bin/file
11170 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11171 ;;
11172
11173*nto* | *qnx*)
11174 lt_cv_deplibs_check_method=pass_all
11175 ;;
11176
11177openbsd*)
11178 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11179 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11180 else
11181 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11182 fi
11183 ;;
11184
11185osf3* | osf4* | osf5*)
11186 lt_cv_deplibs_check_method=pass_all
11187 ;;
11188
11189rdos*)
11190 lt_cv_deplibs_check_method=pass_all
11191 ;;
11192
11193solaris*)
11194 lt_cv_deplibs_check_method=pass_all
11195 ;;
11196
11197sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11198 lt_cv_deplibs_check_method=pass_all
11199 ;;
11200
11201sysv4 | sysv4.3*)
11202 case $host_vendor in
11203 motorola)
11204 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]'
11205 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11206 ;;
11207 ncr)
11208 lt_cv_deplibs_check_method=pass_all
11209 ;;
11210 sequent)
11211 lt_cv_file_magic_cmd='/bin/file'
11212 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11213 ;;
11214 sni)
11215 lt_cv_file_magic_cmd='/bin/file'
11216 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11217 lt_cv_file_magic_test_file=/lib/libc.so
11218 ;;
11219 siemens)
11220 lt_cv_deplibs_check_method=pass_all
11221 ;;
11222 pc)
11223 lt_cv_deplibs_check_method=pass_all
11224 ;;
11225 esac
11226 ;;
11227
11228tpf*)
11229 lt_cv_deplibs_check_method=pass_all
11230 ;;
11231esac
11232
11233fi
11234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11235$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011236
11237file_magic_glob=
11238want_nocaseglob=no
11239if test "$build" = "$host"; then
11240 case $host_os in
11241 mingw* | pw32*)
11242 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11243 want_nocaseglob=yes
11244 else
11245 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11246 fi
11247 ;;
11248 esac
11249fi
11250
cristy73bd4a52010-10-05 11:24:23 +000011251file_magic_cmd=$lt_cv_file_magic_cmd
11252deplibs_check_method=$lt_cv_deplibs_check_method
11253test -z "$deplibs_check_method" && deplibs_check_method=unknown
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
cristyda16f162011-02-19 23:52:17 +000011266
11267
11268
11269
11270
11271
11272
11273
11274
11275
cristy73bd4a52010-10-05 11:24:23 +000011276if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011277 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11278set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011279{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11280$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011281if ${ac_cv_prog_DLLTOOL+:} false; then :
11282 $as_echo_n "(cached) " >&6
11283else
11284 if test -n "$DLLTOOL"; then
11285 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11286else
11287as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11288for as_dir in $PATH
11289do
11290 IFS=$as_save_IFS
11291 test -z "$as_dir" && as_dir=.
11292 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011294 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11296 break 2
11297 fi
11298done
11299 done
11300IFS=$as_save_IFS
11301
11302fi
11303fi
11304DLLTOOL=$ac_cv_prog_DLLTOOL
11305if test -n "$DLLTOOL"; then
11306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11307$as_echo "$DLLTOOL" >&6; }
11308else
11309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11310$as_echo "no" >&6; }
11311fi
11312
11313
11314fi
11315if test -z "$ac_cv_prog_DLLTOOL"; then
11316 ac_ct_DLLTOOL=$DLLTOOL
11317 # Extract the first word of "dlltool", so it can be a program name with args.
11318set dummy dlltool; ac_word=$2
11319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11320$as_echo_n "checking for $ac_word... " >&6; }
11321if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11322 $as_echo_n "(cached) " >&6
11323else
11324 if test -n "$ac_ct_DLLTOOL"; then
11325 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11326else
11327as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11328for as_dir in $PATH
11329do
11330 IFS=$as_save_IFS
11331 test -z "$as_dir" && as_dir=.
11332 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011334 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11336 break 2
11337 fi
11338done
11339 done
11340IFS=$as_save_IFS
11341
11342fi
11343fi
11344ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11345if test -n "$ac_ct_DLLTOOL"; then
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11347$as_echo "$ac_ct_DLLTOOL" >&6; }
11348else
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11350$as_echo "no" >&6; }
11351fi
11352
11353 if test "x$ac_ct_DLLTOOL" = x; then
11354 DLLTOOL="false"
11355 else
11356 case $cross_compiling:$ac_tool_warned in
11357yes:)
11358{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11359$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11360ac_tool_warned=yes ;;
11361esac
11362 DLLTOOL=$ac_ct_DLLTOOL
11363 fi
11364else
11365 DLLTOOL="$ac_cv_prog_DLLTOOL"
11366fi
11367
11368test -z "$DLLTOOL" && DLLTOOL=dlltool
11369
11370
11371
11372
11373
11374
11375
11376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11377$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11378if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11379 $as_echo_n "(cached) " >&6
11380else
11381 lt_cv_sharedlib_from_linklib_cmd='unknown'
11382
11383case $host_os in
11384cygwin* | mingw* | pw32* | cegcc*)
11385 # two different shell functions defined in ltmain.sh
11386 # decide which to use based on capabilities of $DLLTOOL
11387 case `$DLLTOOL --help 2>&1` in
11388 *--identify-strict*)
11389 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11390 ;;
11391 *)
11392 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11393 ;;
11394 esac
11395 ;;
11396*)
11397 # fallback: assume linklib IS sharedlib
11398 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11399 ;;
11400esac
11401
11402fi
11403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11404$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11405sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11406test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11407
11408
11409
11410
11411
11412
11413
11414if test -n "$ac_tool_prefix"; then
11415 for ac_prog in ar
11416 do
11417 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11418set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11420$as_echo_n "checking for $ac_word... " >&6; }
11421if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011422 $as_echo_n "(cached) " >&6
11423else
11424 if test -n "$AR"; then
11425 ac_cv_prog_AR="$AR" # Let the user override the test.
11426else
11427as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11428for as_dir in $PATH
11429do
11430 IFS=$as_save_IFS
11431 test -z "$as_dir" && as_dir=.
11432 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011433 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011434 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11436 break 2
11437 fi
11438done
11439 done
11440IFS=$as_save_IFS
11441
11442fi
11443fi
11444AR=$ac_cv_prog_AR
11445if test -n "$AR"; then
11446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11447$as_echo "$AR" >&6; }
11448else
11449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11450$as_echo "no" >&6; }
11451fi
11452
11453
cristyda16f162011-02-19 23:52:17 +000011454 test -n "$AR" && break
11455 done
cristy73bd4a52010-10-05 11:24:23 +000011456fi
cristyda16f162011-02-19 23:52:17 +000011457if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011458 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011459 for ac_prog in ar
11460do
11461 # Extract the first word of "$ac_prog", so it can be a program name with args.
11462set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11464$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011465if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011466 $as_echo_n "(cached) " >&6
11467else
11468 if test -n "$ac_ct_AR"; then
11469 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11470else
11471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11472for as_dir in $PATH
11473do
11474 IFS=$as_save_IFS
11475 test -z "$as_dir" && as_dir=.
11476 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011478 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11480 break 2
11481 fi
11482done
11483 done
11484IFS=$as_save_IFS
11485
11486fi
11487fi
11488ac_ct_AR=$ac_cv_prog_ac_ct_AR
11489if test -n "$ac_ct_AR"; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11491$as_echo "$ac_ct_AR" >&6; }
11492else
11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11494$as_echo "no" >&6; }
11495fi
11496
cristyda16f162011-02-19 23:52:17 +000011497
11498 test -n "$ac_ct_AR" && break
11499done
11500
cristy73bd4a52010-10-05 11:24:23 +000011501 if test "x$ac_ct_AR" = x; then
11502 AR="false"
11503 else
11504 case $cross_compiling:$ac_tool_warned in
11505yes:)
11506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11508ac_tool_warned=yes ;;
11509esac
11510 AR=$ac_ct_AR
11511 fi
cristy73bd4a52010-10-05 11:24:23 +000011512fi
11513
cristyda16f162011-02-19 23:52:17 +000011514: ${AR=ar}
11515: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011516
11517
11518
11519
11520
11521
11522
11523
11524
11525
11526
cristyda16f162011-02-19 23:52:17 +000011527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11528$as_echo_n "checking for archiver @FILE support... " >&6; }
11529if ${lt_cv_ar_at_file+:} false; then :
11530 $as_echo_n "(cached) " >&6
11531else
11532 lt_cv_ar_at_file=no
11533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11534/* end confdefs.h. */
11535
11536int
11537main ()
11538{
11539
11540 ;
11541 return 0;
11542}
11543_ACEOF
11544if ac_fn_c_try_compile "$LINENO"; then :
11545 echo conftest.$ac_objext > conftest.lst
11546 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11547 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11548 (eval $lt_ar_try) 2>&5
11549 ac_status=$?
11550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11551 test $ac_status = 0; }
11552 if test "$ac_status" -eq 0; then
11553 # Ensure the archiver fails upon bogus file names.
11554 rm -f conftest.$ac_objext libconftest.a
11555 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11556 (eval $lt_ar_try) 2>&5
11557 ac_status=$?
11558 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11559 test $ac_status = 0; }
11560 if test "$ac_status" -ne 0; then
11561 lt_cv_ar_at_file=@
11562 fi
11563 fi
11564 rm -f conftest.* libconftest.a
11565
11566fi
11567rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11568
11569fi
11570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11571$as_echo "$lt_cv_ar_at_file" >&6; }
11572
11573if test "x$lt_cv_ar_at_file" = xno; then
11574 archiver_list_spec=
11575else
11576 archiver_list_spec=$lt_cv_ar_at_file
11577fi
11578
11579
11580
11581
11582
11583
11584
cristy73bd4a52010-10-05 11:24:23 +000011585if test -n "$ac_tool_prefix"; then
11586 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11587set dummy ${ac_tool_prefix}strip; ac_word=$2
11588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011590if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011591 $as_echo_n "(cached) " >&6
11592else
11593 if test -n "$STRIP"; then
11594 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11595else
11596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11597for as_dir in $PATH
11598do
11599 IFS=$as_save_IFS
11600 test -z "$as_dir" && as_dir=.
11601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011603 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11605 break 2
11606 fi
11607done
11608 done
11609IFS=$as_save_IFS
11610
11611fi
11612fi
11613STRIP=$ac_cv_prog_STRIP
11614if test -n "$STRIP"; then
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11616$as_echo "$STRIP" >&6; }
11617else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619$as_echo "no" >&6; }
11620fi
11621
11622
11623fi
11624if test -z "$ac_cv_prog_STRIP"; then
11625 ac_ct_STRIP=$STRIP
11626 # Extract the first word of "strip", so it can be a program name with args.
11627set dummy strip; ac_word=$2
11628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011630if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011631 $as_echo_n "(cached) " >&6
11632else
11633 if test -n "$ac_ct_STRIP"; then
11634 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11635else
11636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11637for as_dir in $PATH
11638do
11639 IFS=$as_save_IFS
11640 test -z "$as_dir" && as_dir=.
11641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011643 ac_cv_prog_ac_ct_STRIP="strip"
11644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11645 break 2
11646 fi
11647done
11648 done
11649IFS=$as_save_IFS
11650
11651fi
11652fi
11653ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11654if test -n "$ac_ct_STRIP"; then
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11656$as_echo "$ac_ct_STRIP" >&6; }
11657else
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11659$as_echo "no" >&6; }
11660fi
11661
11662 if test "x$ac_ct_STRIP" = x; then
11663 STRIP=":"
11664 else
11665 case $cross_compiling:$ac_tool_warned in
11666yes:)
11667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11669ac_tool_warned=yes ;;
11670esac
11671 STRIP=$ac_ct_STRIP
11672 fi
11673else
11674 STRIP="$ac_cv_prog_STRIP"
11675fi
11676
11677test -z "$STRIP" && STRIP=:
11678
11679
11680
11681
11682
11683
11684if test -n "$ac_tool_prefix"; then
11685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11686set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11688$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011689if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011690 $as_echo_n "(cached) " >&6
11691else
11692 if test -n "$RANLIB"; then
11693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11694else
11695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11696for as_dir in $PATH
11697do
11698 IFS=$as_save_IFS
11699 test -z "$as_dir" && as_dir=.
11700 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11704 break 2
11705 fi
11706done
11707 done
11708IFS=$as_save_IFS
11709
11710fi
11711fi
11712RANLIB=$ac_cv_prog_RANLIB
11713if test -n "$RANLIB"; then
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11715$as_echo "$RANLIB" >&6; }
11716else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718$as_echo "no" >&6; }
11719fi
11720
11721
11722fi
11723if test -z "$ac_cv_prog_RANLIB"; then
11724 ac_ct_RANLIB=$RANLIB
11725 # Extract the first word of "ranlib", so it can be a program name with args.
11726set dummy ranlib; ac_word=$2
11727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11728$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011729if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011730 $as_echo_n "(cached) " >&6
11731else
11732 if test -n "$ac_ct_RANLIB"; then
11733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11734else
11735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11736for as_dir in $PATH
11737do
11738 IFS=$as_save_IFS
11739 test -z "$as_dir" && as_dir=.
11740 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011741 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011742 ac_cv_prog_ac_ct_RANLIB="ranlib"
11743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11744 break 2
11745 fi
11746done
11747 done
11748IFS=$as_save_IFS
11749
11750fi
11751fi
11752ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11753if test -n "$ac_ct_RANLIB"; then
11754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11755$as_echo "$ac_ct_RANLIB" >&6; }
11756else
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11758$as_echo "no" >&6; }
11759fi
11760
11761 if test "x$ac_ct_RANLIB" = x; then
11762 RANLIB=":"
11763 else
11764 case $cross_compiling:$ac_tool_warned in
11765yes:)
11766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11768ac_tool_warned=yes ;;
11769esac
11770 RANLIB=$ac_ct_RANLIB
11771 fi
11772else
11773 RANLIB="$ac_cv_prog_RANLIB"
11774fi
11775
11776test -z "$RANLIB" && RANLIB=:
11777
11778
11779
11780
11781
11782
11783# Determine commands to create old-style static archives.
11784old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11785old_postinstall_cmds='chmod 644 $oldlib'
11786old_postuninstall_cmds=
11787
11788if test -n "$RANLIB"; then
11789 case $host_os in
11790 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011791 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011792 ;;
11793 *)
cristy99bd5232011-12-07 14:38:20 +000011794 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011795 ;;
11796 esac
cristy99bd5232011-12-07 14:38:20 +000011797 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011798fi
11799
cristy0c60a692010-11-04 01:09:47 +000011800case $host_os in
11801 darwin*)
11802 lock_old_archive_extraction=yes ;;
11803 *)
11804 lock_old_archive_extraction=no ;;
11805esac
11806
11807
11808
11809
11810
11811
cristy73bd4a52010-10-05 11:24:23 +000011812
11813
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# If no C compiler was specified, use CC.
11846LTCC=${LTCC-"$CC"}
11847
11848# If no C compiler flags were specified, use CFLAGS.
11849LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11850
11851# Allow CC to be a program name with arguments.
11852compiler=$CC
11853
11854
11855# Check for command to grab the raw symbol name followed by C symbol from nm.
11856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11857$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011858if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011859 $as_echo_n "(cached) " >&6
11860else
11861
11862# These are sane defaults that work on at least a few old systems.
11863# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11864
11865# Character class describing NM global symbol codes.
11866symcode='[BCDEGRST]'
11867
11868# Regexp to match symbols that can be accessed directly from C.
11869sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11870
11871# Define system-specific variables.
11872case $host_os in
11873aix*)
11874 symcode='[BCDT]'
11875 ;;
11876cygwin* | mingw* | pw32* | cegcc*)
11877 symcode='[ABCDGISTW]'
11878 ;;
11879hpux*)
11880 if test "$host_cpu" = ia64; then
11881 symcode='[ABCDEGRST]'
11882 fi
11883 ;;
11884irix* | nonstopux*)
11885 symcode='[BCDEGRST]'
11886 ;;
11887osf*)
11888 symcode='[BCDEGQRST]'
11889 ;;
11890solaris*)
11891 symcode='[BDRT]'
11892 ;;
11893sco3.2v5*)
11894 symcode='[DT]'
11895 ;;
11896sysv4.2uw2*)
11897 symcode='[DT]'
11898 ;;
11899sysv5* | sco5v6* | unixware* | OpenUNIX*)
11900 symcode='[ABDT]'
11901 ;;
11902sysv4)
11903 symcode='[DFNSTU]'
11904 ;;
11905esac
11906
11907# If we're using GNU nm, then use its standard symbol codes.
11908case `$NM -V 2>&1` in
11909*GNU* | *'with BFD'*)
11910 symcode='[ABCDGIRSTW]' ;;
11911esac
11912
11913# Transform an extracted symbol line into a proper C declaration.
11914# Some systems (esp. on ia64) link data and code symbols differently,
11915# so use this general approach.
11916lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11917
11918# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011919lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11920lt_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 +000011921
11922# Handle CRLF in mingw tool chain
11923opt_cr=
11924case $build_os in
11925mingw*)
11926 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11927 ;;
11928esac
11929
11930# Try without a prefix underscore, then with it.
11931for ac_symprfx in "" "_"; do
11932
11933 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11934 symxfrm="\\1 $ac_symprfx\\2 \\2"
11935
11936 # Write the raw and C identifiers.
11937 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11938 # Fake it for dumpbin and say T for any non-static function
11939 # and D for any global variable.
11940 # Also find C++ and __fastcall symbols from MSVC++,
11941 # which start with @ or ?.
11942 lt_cv_sys_global_symbol_pipe="$AWK '"\
11943" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011944" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011945" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11946" \$ 0!~/External *\|/{next};"\
11947" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11948" {if(hide[section]) next};"\
11949" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11950" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
11951" s[1]~/^[@?]/{print s[1], s[1]; next};"\
11952" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
11953" ' prfx=^$ac_symprfx"
11954 else
11955 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11956 fi
cristyda16f162011-02-19 23:52:17 +000011957 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000011958
11959 # Check to see that the pipe works correctly.
11960 pipe_works=no
11961
11962 rm -f conftest*
11963 cat > conftest.$ac_ext <<_LT_EOF
11964#ifdef __cplusplus
11965extern "C" {
11966#endif
11967char nm_test_var;
11968void nm_test_func(void);
11969void nm_test_func(void){}
11970#ifdef __cplusplus
11971}
11972#endif
11973int main(){nm_test_var='a';nm_test_func();return(0);}
11974_LT_EOF
11975
11976 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11977 (eval $ac_compile) 2>&5
11978 ac_status=$?
11979 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11980 test $ac_status = 0; }; then
11981 # Now try to grab the symbols.
11982 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000011983 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
11984 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000011985 ac_status=$?
11986 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11987 test $ac_status = 0; } && test -s "$nlist"; then
11988 # Try sorting and uniquifying the output.
11989 if sort "$nlist" | uniq > "$nlist"T; then
11990 mv -f "$nlist"T "$nlist"
11991 else
11992 rm -f "$nlist"T
11993 fi
11994
11995 # Make sure that we snagged all the symbols we need.
11996 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
11997 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
11998 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000011999/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12000#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12001/* DATA imports from DLLs on WIN32 con't be const, because runtime
12002 relocations are performed -- see ld's documentation on pseudo-relocs. */
12003# define LT_DLSYM_CONST
12004#elif defined(__osf__)
12005/* This system does not cope well with relocations in const data. */
12006# define LT_DLSYM_CONST
12007#else
12008# define LT_DLSYM_CONST const
12009#endif
12010
cristy73bd4a52010-10-05 11:24:23 +000012011#ifdef __cplusplus
12012extern "C" {
12013#endif
12014
12015_LT_EOF
12016 # Now generate the symbol file.
12017 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12018
12019 cat <<_LT_EOF >> conftest.$ac_ext
12020
12021/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012022LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012023 const char *name;
12024 void *address;
12025}
12026lt__PROGRAM__LTX_preloaded_symbols[] =
12027{
12028 { "@PROGRAM@", (void *) 0 },
12029_LT_EOF
12030 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12031 cat <<\_LT_EOF >> conftest.$ac_ext
12032 {0, (void *) 0}
12033};
12034
12035/* This works around a problem in FreeBSD linker */
12036#ifdef FREEBSD_WORKAROUND
12037static const void *lt_preloaded_setup() {
12038 return lt__PROGRAM__LTX_preloaded_symbols;
12039}
12040#endif
12041
12042#ifdef __cplusplus
12043}
12044#endif
12045_LT_EOF
12046 # Now try linking the two files.
12047 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012048 lt_globsym_save_LIBS=$LIBS
12049 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012050 LIBS="conftstm.$ac_objext"
12051 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12053 (eval $ac_link) 2>&5
12054 ac_status=$?
12055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12056 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12057 pipe_works=yes
12058 fi
cristyda16f162011-02-19 23:52:17 +000012059 LIBS=$lt_globsym_save_LIBS
12060 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012061 else
12062 echo "cannot find nm_test_func in $nlist" >&5
12063 fi
12064 else
12065 echo "cannot find nm_test_var in $nlist" >&5
12066 fi
12067 else
12068 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12069 fi
12070 else
12071 echo "$progname: failed program was:" >&5
12072 cat conftest.$ac_ext >&5
12073 fi
12074 rm -rf conftest* conftst*
12075
12076 # Do not use the global_symbol_pipe unless it works.
12077 if test "$pipe_works" = yes; then
12078 break
12079 else
12080 lt_cv_sys_global_symbol_pipe=
12081 fi
12082done
12083
12084fi
12085
12086if test -z "$lt_cv_sys_global_symbol_pipe"; then
12087 lt_cv_sys_global_symbol_to_cdecl=
12088fi
12089if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12091$as_echo "failed" >&6; }
12092else
12093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12094$as_echo "ok" >&6; }
12095fi
12096
cristyda16f162011-02-19 23:52:17 +000012097# Response file support.
12098if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12099 nm_file_list_spec='@'
12100elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12101 nm_file_list_spec='@'
12102fi
cristy73bd4a52010-10-05 11:24:23 +000012103
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116
12117
12118
12119
12120
12121
12122
12123
cristyda16f162011-02-19 23:52:17 +000012124
12125
12126
12127
12128
12129
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12131$as_echo_n "checking for sysroot... " >&6; }
12132
12133# Check whether --with-sysroot was given.
12134if test "${with_sysroot+set}" = set; then :
12135 withval=$with_sysroot;
12136else
12137 with_sysroot=no
12138fi
12139
12140
12141lt_sysroot=
12142case ${with_sysroot} in #(
12143 yes)
12144 if test "$GCC" = yes; then
12145 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12146 fi
12147 ;; #(
12148 /*)
12149 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12150 ;; #(
12151 no|'')
12152 ;; #(
12153 *)
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12155$as_echo "${with_sysroot}" >&6; }
12156 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12157 ;;
12158esac
12159
12160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12161$as_echo "${lt_sysroot:-no}" >&6; }
12162
12163
12164
12165
12166
cristy73bd4a52010-10-05 11:24:23 +000012167# Check whether --enable-libtool-lock was given.
12168if test "${enable_libtool_lock+set}" = set; then :
12169 enableval=$enable_libtool_lock;
12170fi
12171
12172test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12173
12174# Some flags need to be propagated to the compiler or linker for good
12175# libtool support.
12176case $host in
12177ia64-*-hpux*)
12178 # Find out which ABI we are using.
12179 echo 'int i;' > conftest.$ac_ext
12180 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12181 (eval $ac_compile) 2>&5
12182 ac_status=$?
12183 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12184 test $ac_status = 0; }; then
12185 case `/usr/bin/file conftest.$ac_objext` in
12186 *ELF-32*)
12187 HPUX_IA64_MODE="32"
12188 ;;
12189 *ELF-64*)
12190 HPUX_IA64_MODE="64"
12191 ;;
12192 esac
12193 fi
12194 rm -rf conftest*
12195 ;;
12196*-*-irix6*)
12197 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012198 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12200 (eval $ac_compile) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; }; then
12204 if test "$lt_cv_prog_gnu_ld" = yes; then
12205 case `/usr/bin/file conftest.$ac_objext` in
12206 *32-bit*)
12207 LD="${LD-ld} -melf32bsmip"
12208 ;;
12209 *N32*)
12210 LD="${LD-ld} -melf32bmipn32"
12211 ;;
12212 *64-bit*)
12213 LD="${LD-ld} -melf64bmip"
12214 ;;
12215 esac
12216 else
12217 case `/usr/bin/file conftest.$ac_objext` in
12218 *32-bit*)
12219 LD="${LD-ld} -32"
12220 ;;
12221 *N32*)
12222 LD="${LD-ld} -n32"
12223 ;;
12224 *64-bit*)
12225 LD="${LD-ld} -64"
12226 ;;
12227 esac
12228 fi
12229 fi
12230 rm -rf conftest*
12231 ;;
12232
12233x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12234s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12235 # Find out which ABI we are using.
12236 echo 'int i;' > conftest.$ac_ext
12237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12238 (eval $ac_compile) 2>&5
12239 ac_status=$?
12240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12241 test $ac_status = 0; }; then
12242 case `/usr/bin/file conftest.o` in
12243 *32-bit*)
12244 case $host in
12245 x86_64-*kfreebsd*-gnu)
12246 LD="${LD-ld} -m elf_i386_fbsd"
12247 ;;
12248 x86_64-*linux*)
12249 LD="${LD-ld} -m elf_i386"
12250 ;;
12251 ppc64-*linux*|powerpc64-*linux*)
12252 LD="${LD-ld} -m elf32ppclinux"
12253 ;;
12254 s390x-*linux*)
12255 LD="${LD-ld} -m elf_s390"
12256 ;;
12257 sparc64-*linux*)
12258 LD="${LD-ld} -m elf32_sparc"
12259 ;;
12260 esac
12261 ;;
12262 *64-bit*)
12263 case $host in
12264 x86_64-*kfreebsd*-gnu)
12265 LD="${LD-ld} -m elf_x86_64_fbsd"
12266 ;;
12267 x86_64-*linux*)
12268 LD="${LD-ld} -m elf_x86_64"
12269 ;;
12270 ppc*-*linux*|powerpc*-*linux*)
12271 LD="${LD-ld} -m elf64ppc"
12272 ;;
12273 s390*-*linux*|s390*-*tpf*)
12274 LD="${LD-ld} -m elf64_s390"
12275 ;;
12276 sparc*-*linux*)
12277 LD="${LD-ld} -m elf64_sparc"
12278 ;;
12279 esac
12280 ;;
12281 esac
12282 fi
12283 rm -rf conftest*
12284 ;;
12285
12286*-*-sco3.2v5*)
12287 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12288 SAVE_CFLAGS="$CFLAGS"
12289 CFLAGS="$CFLAGS -belf"
12290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12291$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012292if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012293 $as_echo_n "(cached) " >&6
12294else
12295 ac_ext=c
12296ac_cpp='$CPP $CPPFLAGS'
12297ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12298ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12299ac_compiler_gnu=$ac_cv_c_compiler_gnu
12300
12301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h. */
12303
12304int
12305main ()
12306{
12307
12308 ;
12309 return 0;
12310}
12311_ACEOF
12312if ac_fn_c_try_link "$LINENO"; then :
12313 lt_cv_cc_needs_belf=yes
12314else
12315 lt_cv_cc_needs_belf=no
12316fi
12317rm -f core conftest.err conftest.$ac_objext \
12318 conftest$ac_exeext conftest.$ac_ext
12319 ac_ext=c
12320ac_cpp='$CPP $CPPFLAGS'
12321ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12322ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12323ac_compiler_gnu=$ac_cv_c_compiler_gnu
12324
12325fi
12326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12327$as_echo "$lt_cv_cc_needs_belf" >&6; }
12328 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12329 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12330 CFLAGS="$SAVE_CFLAGS"
12331 fi
12332 ;;
cristy99bd5232011-12-07 14:38:20 +000012333*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012334 # Find out which ABI we are using.
12335 echo 'int i;' > conftest.$ac_ext
12336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12337 (eval $ac_compile) 2>&5
12338 ac_status=$?
12339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12340 test $ac_status = 0; }; then
12341 case `/usr/bin/file conftest.o` in
12342 *64-bit*)
12343 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012344 yes*)
12345 case $host in
12346 i?86-*-solaris*)
12347 LD="${LD-ld} -m elf_x86_64"
12348 ;;
12349 sparc*-*-solaris*)
12350 LD="${LD-ld} -m elf64_sparc"
12351 ;;
12352 esac
12353 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12354 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12355 LD="${LD-ld}_sol2"
12356 fi
12357 ;;
cristy73bd4a52010-10-05 11:24:23 +000012358 *)
12359 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12360 LD="${LD-ld} -64"
12361 fi
12362 ;;
12363 esac
12364 ;;
12365 esac
12366 fi
12367 rm -rf conftest*
12368 ;;
12369esac
12370
12371need_locks="$enable_libtool_lock"
12372
cristyda16f162011-02-19 23:52:17 +000012373if test -n "$ac_tool_prefix"; then
12374 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12375set dummy ${ac_tool_prefix}mt; ac_word=$2
12376{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12377$as_echo_n "checking for $ac_word... " >&6; }
12378if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12379 $as_echo_n "(cached) " >&6
12380else
12381 if test -n "$MANIFEST_TOOL"; then
12382 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12383else
12384as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12385for as_dir in $PATH
12386do
12387 IFS=$as_save_IFS
12388 test -z "$as_dir" && as_dir=.
12389 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012390 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012391 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12393 break 2
12394 fi
12395done
12396 done
12397IFS=$as_save_IFS
12398
12399fi
12400fi
12401MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12402if test -n "$MANIFEST_TOOL"; then
12403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12404$as_echo "$MANIFEST_TOOL" >&6; }
12405else
12406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12407$as_echo "no" >&6; }
12408fi
12409
12410
12411fi
12412if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12413 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12414 # Extract the first word of "mt", so it can be a program name with args.
12415set dummy mt; ac_word=$2
12416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12417$as_echo_n "checking for $ac_word... " >&6; }
12418if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12419 $as_echo_n "(cached) " >&6
12420else
12421 if test -n "$ac_ct_MANIFEST_TOOL"; then
12422 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12423else
12424as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12425for as_dir in $PATH
12426do
12427 IFS=$as_save_IFS
12428 test -z "$as_dir" && as_dir=.
12429 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012430 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012431 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12433 break 2
12434 fi
12435done
12436 done
12437IFS=$as_save_IFS
12438
12439fi
12440fi
12441ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12442if test -n "$ac_ct_MANIFEST_TOOL"; then
12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12444$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12445else
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12447$as_echo "no" >&6; }
12448fi
12449
12450 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12451 MANIFEST_TOOL=":"
12452 else
12453 case $cross_compiling:$ac_tool_warned in
12454yes:)
12455{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12456$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12457ac_tool_warned=yes ;;
12458esac
12459 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12460 fi
12461else
12462 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12463fi
12464
12465test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12467$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12468if ${lt_cv_path_mainfest_tool+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470else
12471 lt_cv_path_mainfest_tool=no
12472 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12473 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12474 cat conftest.err >&5
12475 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12476 lt_cv_path_mainfest_tool=yes
12477 fi
12478 rm -f conftest*
12479fi
12480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12481$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12482if test "x$lt_cv_path_mainfest_tool" != xyes; then
12483 MANIFEST_TOOL=:
12484fi
12485
12486
12487
12488
12489
cristy73bd4a52010-10-05 11:24:23 +000012490
12491 case $host_os in
12492 rhapsody* | darwin*)
12493 if test -n "$ac_tool_prefix"; then
12494 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12495set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12496{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12497$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012498if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012499 $as_echo_n "(cached) " >&6
12500else
12501 if test -n "$DSYMUTIL"; then
12502 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12503else
12504as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12505for as_dir in $PATH
12506do
12507 IFS=$as_save_IFS
12508 test -z "$as_dir" && as_dir=.
12509 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012511 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12513 break 2
12514 fi
12515done
12516 done
12517IFS=$as_save_IFS
12518
12519fi
12520fi
12521DSYMUTIL=$ac_cv_prog_DSYMUTIL
12522if test -n "$DSYMUTIL"; then
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12524$as_echo "$DSYMUTIL" >&6; }
12525else
12526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12527$as_echo "no" >&6; }
12528fi
12529
12530
12531fi
12532if test -z "$ac_cv_prog_DSYMUTIL"; then
12533 ac_ct_DSYMUTIL=$DSYMUTIL
12534 # Extract the first word of "dsymutil", so it can be a program name with args.
12535set dummy dsymutil; ac_word=$2
12536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12537$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012538if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012539 $as_echo_n "(cached) " >&6
12540else
12541 if test -n "$ac_ct_DSYMUTIL"; then
12542 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12543else
12544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12545for as_dir in $PATH
12546do
12547 IFS=$as_save_IFS
12548 test -z "$as_dir" && as_dir=.
12549 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012551 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12553 break 2
12554 fi
12555done
12556 done
12557IFS=$as_save_IFS
12558
12559fi
12560fi
12561ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12562if test -n "$ac_ct_DSYMUTIL"; then
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12564$as_echo "$ac_ct_DSYMUTIL" >&6; }
12565else
12566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12567$as_echo "no" >&6; }
12568fi
12569
12570 if test "x$ac_ct_DSYMUTIL" = x; then
12571 DSYMUTIL=":"
12572 else
12573 case $cross_compiling:$ac_tool_warned in
12574yes:)
12575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12577ac_tool_warned=yes ;;
12578esac
12579 DSYMUTIL=$ac_ct_DSYMUTIL
12580 fi
12581else
12582 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12583fi
12584
12585 if test -n "$ac_tool_prefix"; then
12586 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12587set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12588{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12589$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012590if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012591 $as_echo_n "(cached) " >&6
12592else
12593 if test -n "$NMEDIT"; then
12594 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12595else
12596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12597for as_dir in $PATH
12598do
12599 IFS=$as_save_IFS
12600 test -z "$as_dir" && as_dir=.
12601 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012602 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012603 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12605 break 2
12606 fi
12607done
12608 done
12609IFS=$as_save_IFS
12610
12611fi
12612fi
12613NMEDIT=$ac_cv_prog_NMEDIT
12614if test -n "$NMEDIT"; then
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12616$as_echo "$NMEDIT" >&6; }
12617else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12619$as_echo "no" >&6; }
12620fi
12621
12622
12623fi
12624if test -z "$ac_cv_prog_NMEDIT"; then
12625 ac_ct_NMEDIT=$NMEDIT
12626 # Extract the first word of "nmedit", so it can be a program name with args.
12627set dummy nmedit; ac_word=$2
12628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12629$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012630if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012631 $as_echo_n "(cached) " >&6
12632else
12633 if test -n "$ac_ct_NMEDIT"; then
12634 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12635else
12636as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12637for as_dir in $PATH
12638do
12639 IFS=$as_save_IFS
12640 test -z "$as_dir" && as_dir=.
12641 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012642 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012643 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12644 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12645 break 2
12646 fi
12647done
12648 done
12649IFS=$as_save_IFS
12650
12651fi
12652fi
12653ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12654if test -n "$ac_ct_NMEDIT"; then
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12656$as_echo "$ac_ct_NMEDIT" >&6; }
12657else
12658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12659$as_echo "no" >&6; }
12660fi
12661
12662 if test "x$ac_ct_NMEDIT" = x; then
12663 NMEDIT=":"
12664 else
12665 case $cross_compiling:$ac_tool_warned in
12666yes:)
12667{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12668$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12669ac_tool_warned=yes ;;
12670esac
12671 NMEDIT=$ac_ct_NMEDIT
12672 fi
12673else
12674 NMEDIT="$ac_cv_prog_NMEDIT"
12675fi
12676
12677 if test -n "$ac_tool_prefix"; then
12678 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12679set dummy ${ac_tool_prefix}lipo; ac_word=$2
12680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12681$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012682if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012683 $as_echo_n "(cached) " >&6
12684else
12685 if test -n "$LIPO"; then
12686 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12687else
12688as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12689for as_dir in $PATH
12690do
12691 IFS=$as_save_IFS
12692 test -z "$as_dir" && as_dir=.
12693 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012694 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012695 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12696 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12697 break 2
12698 fi
12699done
12700 done
12701IFS=$as_save_IFS
12702
12703fi
12704fi
12705LIPO=$ac_cv_prog_LIPO
12706if test -n "$LIPO"; then
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12708$as_echo "$LIPO" >&6; }
12709else
12710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12711$as_echo "no" >&6; }
12712fi
12713
12714
12715fi
12716if test -z "$ac_cv_prog_LIPO"; then
12717 ac_ct_LIPO=$LIPO
12718 # Extract the first word of "lipo", so it can be a program name with args.
12719set dummy lipo; ac_word=$2
12720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12721$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012722if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012723 $as_echo_n "(cached) " >&6
12724else
12725 if test -n "$ac_ct_LIPO"; then
12726 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12727else
12728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12729for as_dir in $PATH
12730do
12731 IFS=$as_save_IFS
12732 test -z "$as_dir" && as_dir=.
12733 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012735 ac_cv_prog_ac_ct_LIPO="lipo"
12736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12737 break 2
12738 fi
12739done
12740 done
12741IFS=$as_save_IFS
12742
12743fi
12744fi
12745ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12746if test -n "$ac_ct_LIPO"; then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12748$as_echo "$ac_ct_LIPO" >&6; }
12749else
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12751$as_echo "no" >&6; }
12752fi
12753
12754 if test "x$ac_ct_LIPO" = x; then
12755 LIPO=":"
12756 else
12757 case $cross_compiling:$ac_tool_warned in
12758yes:)
12759{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12760$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12761ac_tool_warned=yes ;;
12762esac
12763 LIPO=$ac_ct_LIPO
12764 fi
12765else
12766 LIPO="$ac_cv_prog_LIPO"
12767fi
12768
12769 if test -n "$ac_tool_prefix"; then
12770 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12771set dummy ${ac_tool_prefix}otool; ac_word=$2
12772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12773$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012774if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012775 $as_echo_n "(cached) " >&6
12776else
12777 if test -n "$OTOOL"; then
12778 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12779else
12780as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12781for as_dir in $PATH
12782do
12783 IFS=$as_save_IFS
12784 test -z "$as_dir" && as_dir=.
12785 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012786 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012787 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12788 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12789 break 2
12790 fi
12791done
12792 done
12793IFS=$as_save_IFS
12794
12795fi
12796fi
12797OTOOL=$ac_cv_prog_OTOOL
12798if test -n "$OTOOL"; then
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12800$as_echo "$OTOOL" >&6; }
12801else
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12803$as_echo "no" >&6; }
12804fi
12805
12806
12807fi
12808if test -z "$ac_cv_prog_OTOOL"; then
12809 ac_ct_OTOOL=$OTOOL
12810 # Extract the first word of "otool", so it can be a program name with args.
12811set dummy otool; ac_word=$2
12812{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12813$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012814if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012815 $as_echo_n "(cached) " >&6
12816else
12817 if test -n "$ac_ct_OTOOL"; then
12818 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12819else
12820as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12821for as_dir in $PATH
12822do
12823 IFS=$as_save_IFS
12824 test -z "$as_dir" && as_dir=.
12825 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012826 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012827 ac_cv_prog_ac_ct_OTOOL="otool"
12828 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12829 break 2
12830 fi
12831done
12832 done
12833IFS=$as_save_IFS
12834
12835fi
12836fi
12837ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12838if test -n "$ac_ct_OTOOL"; then
12839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12840$as_echo "$ac_ct_OTOOL" >&6; }
12841else
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12843$as_echo "no" >&6; }
12844fi
12845
12846 if test "x$ac_ct_OTOOL" = x; then
12847 OTOOL=":"
12848 else
12849 case $cross_compiling:$ac_tool_warned in
12850yes:)
12851{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12852$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12853ac_tool_warned=yes ;;
12854esac
12855 OTOOL=$ac_ct_OTOOL
12856 fi
12857else
12858 OTOOL="$ac_cv_prog_OTOOL"
12859fi
12860
12861 if test -n "$ac_tool_prefix"; then
12862 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12863set dummy ${ac_tool_prefix}otool64; ac_word=$2
12864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12865$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012866if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012867 $as_echo_n "(cached) " >&6
12868else
12869 if test -n "$OTOOL64"; then
12870 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12871else
12872as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12873for as_dir in $PATH
12874do
12875 IFS=$as_save_IFS
12876 test -z "$as_dir" && as_dir=.
12877 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012879 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12881 break 2
12882 fi
12883done
12884 done
12885IFS=$as_save_IFS
12886
12887fi
12888fi
12889OTOOL64=$ac_cv_prog_OTOOL64
12890if test -n "$OTOOL64"; then
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12892$as_echo "$OTOOL64" >&6; }
12893else
12894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12895$as_echo "no" >&6; }
12896fi
12897
12898
12899fi
12900if test -z "$ac_cv_prog_OTOOL64"; then
12901 ac_ct_OTOOL64=$OTOOL64
12902 # Extract the first word of "otool64", so it can be a program name with args.
12903set dummy otool64; ac_word=$2
12904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12905$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012906if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012907 $as_echo_n "(cached) " >&6
12908else
12909 if test -n "$ac_ct_OTOOL64"; then
12910 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12911else
12912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12913for as_dir in $PATH
12914do
12915 IFS=$as_save_IFS
12916 test -z "$as_dir" && as_dir=.
12917 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012918 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012919 ac_cv_prog_ac_ct_OTOOL64="otool64"
12920 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12921 break 2
12922 fi
12923done
12924 done
12925IFS=$as_save_IFS
12926
12927fi
12928fi
12929ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12930if test -n "$ac_ct_OTOOL64"; then
12931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12932$as_echo "$ac_ct_OTOOL64" >&6; }
12933else
12934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12935$as_echo "no" >&6; }
12936fi
12937
12938 if test "x$ac_ct_OTOOL64" = x; then
12939 OTOOL64=":"
12940 else
12941 case $cross_compiling:$ac_tool_warned in
12942yes:)
12943{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12944$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12945ac_tool_warned=yes ;;
12946esac
12947 OTOOL64=$ac_ct_OTOOL64
12948 fi
12949else
12950 OTOOL64="$ac_cv_prog_OTOOL64"
12951fi
12952
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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
12980$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012981if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012982 $as_echo_n "(cached) " >&6
12983else
12984 lt_cv_apple_cc_single_mod=no
12985 if test -z "${LT_MULTI_MODULE}"; then
12986 # By default we will add the -single_module flag. You can override
12987 # by either setting the environment variable LT_MULTI_MODULE
12988 # non-empty at configure time, or by adding -multi_module to the
12989 # link flags.
12990 rm -rf libconftest.dylib*
12991 echo "int foo(void){return 1;}" > conftest.c
12992 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12993-dynamiclib -Wl,-single_module conftest.c" >&5
12994 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
12995 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
12996 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000012997 # If there is a non-empty error log, and "single_module"
12998 # appears in it, assume the flag caused a linker warning
12999 if test -s conftest.err && $GREP single_module conftest.err; then
13000 cat conftest.err >&5
13001 # Otherwise, if the output was created with a 0 exit code from
13002 # the compiler, it worked.
13003 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013004 lt_cv_apple_cc_single_mod=yes
13005 else
13006 cat conftest.err >&5
13007 fi
13008 rm -rf libconftest.dylib*
13009 rm -f conftest.*
13010 fi
13011fi
13012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13013$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013014
cristy73bd4a52010-10-05 11:24:23 +000013015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13016$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013017if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013018 $as_echo_n "(cached) " >&6
13019else
13020 lt_cv_ld_exported_symbols_list=no
13021 save_LDFLAGS=$LDFLAGS
13022 echo "_main" > conftest.sym
13023 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13025/* end confdefs.h. */
13026
13027int
13028main ()
13029{
13030
13031 ;
13032 return 0;
13033}
13034_ACEOF
13035if ac_fn_c_try_link "$LINENO"; then :
13036 lt_cv_ld_exported_symbols_list=yes
13037else
13038 lt_cv_ld_exported_symbols_list=no
13039fi
13040rm -f core conftest.err conftest.$ac_objext \
13041 conftest$ac_exeext conftest.$ac_ext
13042 LDFLAGS="$save_LDFLAGS"
13043
13044fi
13045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13046$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013047
cristy0c60a692010-11-04 01:09:47 +000013048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13049$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013050if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013051 $as_echo_n "(cached) " >&6
13052else
13053 lt_cv_ld_force_load=no
13054 cat > conftest.c << _LT_EOF
13055int forced_loaded() { return 2;}
13056_LT_EOF
13057 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13058 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13059 echo "$AR cru libconftest.a conftest.o" >&5
13060 $AR cru libconftest.a conftest.o 2>&5
13061 echo "$RANLIB libconftest.a" >&5
13062 $RANLIB libconftest.a 2>&5
13063 cat > conftest.c << _LT_EOF
13064int main() { return 0;}
13065_LT_EOF
13066 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13067 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13068 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013069 if test -s conftest.err && $GREP force_load conftest.err; then
13070 cat conftest.err >&5
13071 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013072 lt_cv_ld_force_load=yes
13073 else
13074 cat conftest.err >&5
13075 fi
13076 rm -f conftest.err libconftest.a conftest conftest.c
13077 rm -rf conftest.dSYM
13078
13079fi
13080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13081$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013082 case $host_os in
13083 rhapsody* | darwin1.[012])
13084 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13085 darwin1.*)
13086 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13087 darwin*) # darwin 5.x on
13088 # if running on 10.5 or later, the deployment target defaults
13089 # to the OS version, if on x86, and 10.4, the deployment
13090 # target defaults to 10.4. Don't you love it?
13091 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13092 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13093 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13094 10.[012]*)
13095 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13096 10.*)
13097 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13098 esac
13099 ;;
13100 esac
13101 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13102 _lt_dar_single_mod='$single_module'
13103 fi
13104 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13105 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13106 else
13107 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13108 fi
cristy0c60a692010-11-04 01:09:47 +000013109 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013110 _lt_dsymutil='~$DSYMUTIL $lib || :'
13111 else
13112 _lt_dsymutil=
13113 fi
13114 ;;
13115 esac
13116
13117for ac_header in dlfcn.h
13118do :
13119 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13120"
cristyda16f162011-02-19 23:52:17 +000013121if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013122 cat >>confdefs.h <<_ACEOF
13123#define HAVE_DLFCN_H 1
13124_ACEOF
13125
13126fi
13127
13128done
13129
13130
13131
cristy73bd4a52010-10-05 11:24:23 +000013132
cristyda16f162011-02-19 23:52:17 +000013133func_stripname_cnf ()
13134{
13135 case ${2} in
13136 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13137 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13138 esac
13139} # func_stripname_cnf
13140
13141
13142
cristy73bd4a52010-10-05 11:24:23 +000013143
13144
13145# Set options
13146enable_win32_dll=yes
13147
13148case $host in
cristy0c60a692010-11-04 01:09:47 +000013149*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013150 if test -n "$ac_tool_prefix"; then
13151 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13152set dummy ${ac_tool_prefix}as; ac_word=$2
13153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13154$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013155if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013156 $as_echo_n "(cached) " >&6
13157else
13158 if test -n "$AS"; then
13159 ac_cv_prog_AS="$AS" # Let the user override the test.
13160else
13161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13162for as_dir in $PATH
13163do
13164 IFS=$as_save_IFS
13165 test -z "$as_dir" && as_dir=.
13166 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013167 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013168 ac_cv_prog_AS="${ac_tool_prefix}as"
13169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13170 break 2
13171 fi
13172done
13173 done
13174IFS=$as_save_IFS
13175
13176fi
13177fi
13178AS=$ac_cv_prog_AS
13179if test -n "$AS"; then
13180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13181$as_echo "$AS" >&6; }
13182else
13183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13184$as_echo "no" >&6; }
13185fi
13186
13187
13188fi
13189if test -z "$ac_cv_prog_AS"; then
13190 ac_ct_AS=$AS
13191 # Extract the first word of "as", so it can be a program name with args.
13192set dummy as; ac_word=$2
13193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13194$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013195if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013196 $as_echo_n "(cached) " >&6
13197else
13198 if test -n "$ac_ct_AS"; then
13199 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13200else
13201as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13202for as_dir in $PATH
13203do
13204 IFS=$as_save_IFS
13205 test -z "$as_dir" && as_dir=.
13206 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013207 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013208 ac_cv_prog_ac_ct_AS="as"
13209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13210 break 2
13211 fi
13212done
13213 done
13214IFS=$as_save_IFS
13215
13216fi
13217fi
13218ac_ct_AS=$ac_cv_prog_ac_ct_AS
13219if test -n "$ac_ct_AS"; then
13220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13221$as_echo "$ac_ct_AS" >&6; }
13222else
13223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13224$as_echo "no" >&6; }
13225fi
13226
13227 if test "x$ac_ct_AS" = x; then
13228 AS="false"
13229 else
13230 case $cross_compiling:$ac_tool_warned in
13231yes:)
13232{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13233$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13234ac_tool_warned=yes ;;
13235esac
13236 AS=$ac_ct_AS
13237 fi
13238else
13239 AS="$ac_cv_prog_AS"
13240fi
13241
13242 if test -n "$ac_tool_prefix"; then
13243 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13244set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13246$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013247if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013248 $as_echo_n "(cached) " >&6
13249else
13250 if test -n "$DLLTOOL"; then
13251 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13252else
13253as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13254for as_dir in $PATH
13255do
13256 IFS=$as_save_IFS
13257 test -z "$as_dir" && as_dir=.
13258 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013259 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013260 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13262 break 2
13263 fi
13264done
13265 done
13266IFS=$as_save_IFS
13267
13268fi
13269fi
13270DLLTOOL=$ac_cv_prog_DLLTOOL
13271if test -n "$DLLTOOL"; then
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13273$as_echo "$DLLTOOL" >&6; }
13274else
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13276$as_echo "no" >&6; }
13277fi
13278
13279
13280fi
13281if test -z "$ac_cv_prog_DLLTOOL"; then
13282 ac_ct_DLLTOOL=$DLLTOOL
13283 # Extract the first word of "dlltool", so it can be a program name with args.
13284set dummy dlltool; ac_word=$2
13285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13286$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013287if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013288 $as_echo_n "(cached) " >&6
13289else
13290 if test -n "$ac_ct_DLLTOOL"; then
13291 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13292else
13293as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13294for as_dir in $PATH
13295do
13296 IFS=$as_save_IFS
13297 test -z "$as_dir" && as_dir=.
13298 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013299 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013300 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13301 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13302 break 2
13303 fi
13304done
13305 done
13306IFS=$as_save_IFS
13307
13308fi
13309fi
13310ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13311if test -n "$ac_ct_DLLTOOL"; then
13312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13313$as_echo "$ac_ct_DLLTOOL" >&6; }
13314else
13315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13316$as_echo "no" >&6; }
13317fi
13318
13319 if test "x$ac_ct_DLLTOOL" = x; then
13320 DLLTOOL="false"
13321 else
13322 case $cross_compiling:$ac_tool_warned in
13323yes:)
13324{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13325$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13326ac_tool_warned=yes ;;
13327esac
13328 DLLTOOL=$ac_ct_DLLTOOL
13329 fi
13330else
13331 DLLTOOL="$ac_cv_prog_DLLTOOL"
13332fi
13333
13334 if test -n "$ac_tool_prefix"; then
13335 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13336set dummy ${ac_tool_prefix}objdump; ac_word=$2
13337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013339if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013340 $as_echo_n "(cached) " >&6
13341else
13342 if test -n "$OBJDUMP"; then
13343 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13344else
13345as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13346for as_dir in $PATH
13347do
13348 IFS=$as_save_IFS
13349 test -z "$as_dir" && as_dir=.
13350 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013352 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13354 break 2
13355 fi
13356done
13357 done
13358IFS=$as_save_IFS
13359
13360fi
13361fi
13362OBJDUMP=$ac_cv_prog_OBJDUMP
13363if test -n "$OBJDUMP"; then
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13365$as_echo "$OBJDUMP" >&6; }
13366else
13367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13368$as_echo "no" >&6; }
13369fi
13370
13371
13372fi
13373if test -z "$ac_cv_prog_OBJDUMP"; then
13374 ac_ct_OBJDUMP=$OBJDUMP
13375 # Extract the first word of "objdump", so it can be a program name with args.
13376set dummy objdump; ac_word=$2
13377{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13378$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013379if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013380 $as_echo_n "(cached) " >&6
13381else
13382 if test -n "$ac_ct_OBJDUMP"; then
13383 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13384else
13385as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13386for as_dir in $PATH
13387do
13388 IFS=$as_save_IFS
13389 test -z "$as_dir" && as_dir=.
13390 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013391 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013392 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13393 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13394 break 2
13395 fi
13396done
13397 done
13398IFS=$as_save_IFS
13399
13400fi
13401fi
13402ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13403if test -n "$ac_ct_OBJDUMP"; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13405$as_echo "$ac_ct_OBJDUMP" >&6; }
13406else
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13408$as_echo "no" >&6; }
13409fi
13410
13411 if test "x$ac_ct_OBJDUMP" = x; then
13412 OBJDUMP="false"
13413 else
13414 case $cross_compiling:$ac_tool_warned in
13415yes:)
13416{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13417$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13418ac_tool_warned=yes ;;
13419esac
13420 OBJDUMP=$ac_ct_OBJDUMP
13421 fi
13422else
13423 OBJDUMP="$ac_cv_prog_OBJDUMP"
13424fi
13425
13426 ;;
13427esac
13428
13429test -z "$AS" && AS=as
13430
13431
13432
13433
13434
13435test -z "$DLLTOOL" && DLLTOOL=dlltool
13436
13437
13438
13439
13440
13441test -z "$OBJDUMP" && OBJDUMP=objdump
13442
13443
13444
13445
13446
13447
13448
13449
13450
13451 # Check whether --enable-shared was given.
13452if test "${enable_shared+set}" = set; then :
13453 enableval=$enable_shared; p=${PACKAGE-default}
13454 case $enableval in
13455 yes) enable_shared=yes ;;
13456 no) enable_shared=no ;;
13457 *)
13458 enable_shared=no
13459 # Look at the argument we got. We use all the common list separators.
13460 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13461 for pkg in $enableval; do
13462 IFS="$lt_save_ifs"
13463 if test "X$pkg" = "X$p"; then
13464 enable_shared=yes
13465 fi
13466 done
13467 IFS="$lt_save_ifs"
13468 ;;
13469 esac
13470else
13471 enable_shared=yes
13472fi
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482 # Check whether --enable-static was given.
13483if test "${enable_static+set}" = set; then :
13484 enableval=$enable_static; p=${PACKAGE-default}
13485 case $enableval in
13486 yes) enable_static=yes ;;
13487 no) enable_static=no ;;
13488 *)
13489 enable_static=no
13490 # Look at the argument we got. We use all the common list separators.
13491 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13492 for pkg in $enableval; do
13493 IFS="$lt_save_ifs"
13494 if test "X$pkg" = "X$p"; then
13495 enable_static=yes
13496 fi
13497 done
13498 IFS="$lt_save_ifs"
13499 ;;
13500 esac
13501else
13502 enable_static=yes
13503fi
13504
13505
13506
13507
13508
13509
13510
13511
13512
13513
13514# Check whether --with-pic was given.
13515if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013516 withval=$with_pic; lt_p=${PACKAGE-default}
13517 case $withval in
13518 yes|no) pic_mode=$withval ;;
13519 *)
13520 pic_mode=default
13521 # Look at the argument we got. We use all the common list separators.
13522 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13523 for lt_pkg in $withval; do
13524 IFS="$lt_save_ifs"
13525 if test "X$lt_pkg" = "X$lt_p"; then
13526 pic_mode=yes
13527 fi
13528 done
13529 IFS="$lt_save_ifs"
13530 ;;
13531 esac
cristy73bd4a52010-10-05 11:24:23 +000013532else
13533 pic_mode=default
13534fi
13535
13536
13537test -z "$pic_mode" && pic_mode=default
13538
13539
13540
13541
13542
13543
13544
13545 # Check whether --enable-fast-install was given.
13546if test "${enable_fast_install+set}" = set; then :
13547 enableval=$enable_fast_install; p=${PACKAGE-default}
13548 case $enableval in
13549 yes) enable_fast_install=yes ;;
13550 no) enable_fast_install=no ;;
13551 *)
13552 enable_fast_install=no
13553 # Look at the argument we got. We use all the common list separators.
13554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13555 for pkg in $enableval; do
13556 IFS="$lt_save_ifs"
13557 if test "X$pkg" = "X$p"; then
13558 enable_fast_install=yes
13559 fi
13560 done
13561 IFS="$lt_save_ifs"
13562 ;;
13563 esac
13564else
13565 enable_fast_install=yes
13566fi
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576
13577
13578# This can be used to rebuild libtool when needed
13579LIBTOOL_DEPS="$ltmain"
13580
13581# Always use our own libtool.
13582LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
cristy0c60a692010-11-04 01:09:47 +000013608
cristy99bd5232011-12-07 14:38:20 +000013609
13610
13611
13612
cristy73bd4a52010-10-05 11:24:23 +000013613test -z "$LN_S" && LN_S="ln -s"
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628if test -n "${ZSH_VERSION+set}" ; then
13629 setopt NO_GLOB_SUBST
13630fi
13631
13632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13633$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013634if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013635 $as_echo_n "(cached) " >&6
13636else
13637 rm -f .libs 2>/dev/null
13638mkdir .libs 2>/dev/null
13639if test -d .libs; then
13640 lt_cv_objdir=.libs
13641else
13642 # MS-DOS does not allow filenames that begin with a dot.
13643 lt_cv_objdir=_libs
13644fi
13645rmdir .libs 2>/dev/null
13646fi
13647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13648$as_echo "$lt_cv_objdir" >&6; }
13649objdir=$lt_cv_objdir
13650
13651
13652
13653
13654
13655cat >>confdefs.h <<_ACEOF
13656#define LT_OBJDIR "$lt_cv_objdir/"
13657_ACEOF
13658
13659
13660
13661
cristy73bd4a52010-10-05 11:24:23 +000013662case $host_os in
13663aix3*)
13664 # AIX sometimes has problems with the GCC collect2 program. For some
13665 # reason, if we set the COLLECT_NAMES environment variable, the problems
13666 # vanish in a puff of smoke.
13667 if test "X${COLLECT_NAMES+set}" != Xset; then
13668 COLLECT_NAMES=
13669 export COLLECT_NAMES
13670 fi
13671 ;;
13672esac
13673
cristy73bd4a52010-10-05 11:24:23 +000013674# Global variables:
13675ofile=libtool
13676can_build_shared=yes
13677
13678# All known linkers require a `.a' archive for static linking (except MSVC,
13679# which needs '.lib').
13680libext=a
13681
13682with_gnu_ld="$lt_cv_prog_gnu_ld"
13683
13684old_CC="$CC"
13685old_CFLAGS="$CFLAGS"
13686
13687# Set sane defaults for various variables
13688test -z "$CC" && CC=cc
13689test -z "$LTCC" && LTCC=$CC
13690test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13691test -z "$LD" && LD=ld
13692test -z "$ac_objext" && ac_objext=o
13693
13694for cc_temp in $compiler""; do
13695 case $cc_temp in
13696 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13697 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13698 \-*) ;;
13699 *) break;;
13700 esac
13701done
cristy0c60a692010-11-04 01:09:47 +000013702cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013703
13704
13705# Only perform the check for file, if the check method requires it
13706test -z "$MAGIC_CMD" && MAGIC_CMD=file
13707case $deplibs_check_method in
13708file_magic*)
13709 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13711$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013712if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013713 $as_echo_n "(cached) " >&6
13714else
13715 case $MAGIC_CMD in
13716[\\/*] | ?:[\\/]*)
13717 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13718 ;;
13719*)
13720 lt_save_MAGIC_CMD="$MAGIC_CMD"
13721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13722 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13723 for ac_dir in $ac_dummy; do
13724 IFS="$lt_save_ifs"
13725 test -z "$ac_dir" && ac_dir=.
13726 if test -f $ac_dir/${ac_tool_prefix}file; then
13727 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13728 if test -n "$file_magic_test_file"; then
13729 case $deplibs_check_method in
13730 "file_magic "*)
13731 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13732 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13733 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13734 $EGREP "$file_magic_regex" > /dev/null; then
13735 :
13736 else
13737 cat <<_LT_EOF 1>&2
13738
13739*** Warning: the command libtool uses to detect shared libraries,
13740*** $file_magic_cmd, produces output that libtool cannot recognize.
13741*** The result is that libtool may fail to recognize shared libraries
13742*** as such. This will affect the creation of libtool libraries that
13743*** depend on shared libraries, but programs linked with such libtool
13744*** libraries will work regardless of this problem. Nevertheless, you
13745*** may want to report the problem to your system manager and/or to
13746*** bug-libtool@gnu.org
13747
13748_LT_EOF
13749 fi ;;
13750 esac
13751 fi
13752 break
13753 fi
13754 done
13755 IFS="$lt_save_ifs"
13756 MAGIC_CMD="$lt_save_MAGIC_CMD"
13757 ;;
13758esac
13759fi
13760
13761MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13762if test -n "$MAGIC_CMD"; then
13763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13764$as_echo "$MAGIC_CMD" >&6; }
13765else
13766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13767$as_echo "no" >&6; }
13768fi
13769
13770
13771
13772
13773
13774if test -z "$lt_cv_path_MAGIC_CMD"; then
13775 if test -n "$ac_tool_prefix"; then
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13777$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013778if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013779 $as_echo_n "(cached) " >&6
13780else
13781 case $MAGIC_CMD in
13782[\\/*] | ?:[\\/]*)
13783 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13784 ;;
13785*)
13786 lt_save_MAGIC_CMD="$MAGIC_CMD"
13787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13788 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13789 for ac_dir in $ac_dummy; do
13790 IFS="$lt_save_ifs"
13791 test -z "$ac_dir" && ac_dir=.
13792 if test -f $ac_dir/file; then
13793 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13794 if test -n "$file_magic_test_file"; then
13795 case $deplibs_check_method in
13796 "file_magic "*)
13797 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13798 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13799 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13800 $EGREP "$file_magic_regex" > /dev/null; then
13801 :
13802 else
13803 cat <<_LT_EOF 1>&2
13804
13805*** Warning: the command libtool uses to detect shared libraries,
13806*** $file_magic_cmd, produces output that libtool cannot recognize.
13807*** The result is that libtool may fail to recognize shared libraries
13808*** as such. This will affect the creation of libtool libraries that
13809*** depend on shared libraries, but programs linked with such libtool
13810*** libraries will work regardless of this problem. Nevertheless, you
13811*** may want to report the problem to your system manager and/or to
13812*** bug-libtool@gnu.org
13813
13814_LT_EOF
13815 fi ;;
13816 esac
13817 fi
13818 break
13819 fi
13820 done
13821 IFS="$lt_save_ifs"
13822 MAGIC_CMD="$lt_save_MAGIC_CMD"
13823 ;;
13824esac
13825fi
13826
13827MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13828if test -n "$MAGIC_CMD"; then
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13830$as_echo "$MAGIC_CMD" >&6; }
13831else
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13833$as_echo "no" >&6; }
13834fi
13835
13836
13837 else
13838 MAGIC_CMD=:
13839 fi
13840fi
13841
13842 fi
13843 ;;
13844esac
13845
13846# Use C for the default configuration in the libtool script
13847
13848lt_save_CC="$CC"
13849ac_ext=c
13850ac_cpp='$CPP $CPPFLAGS'
13851ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13852ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13853ac_compiler_gnu=$ac_cv_c_compiler_gnu
13854
13855
13856# Source file extension for C test sources.
13857ac_ext=c
13858
13859# Object file extension for compiled C test sources.
13860objext=o
13861objext=$objext
13862
13863# Code to be used in simple compile tests
13864lt_simple_compile_test_code="int some_variable = 0;"
13865
13866# Code to be used in simple link tests
13867lt_simple_link_test_code='int main(){return(0);}'
13868
13869
13870
13871
13872
13873
13874
13875# If no C compiler was specified, use CC.
13876LTCC=${LTCC-"$CC"}
13877
13878# If no C compiler flags were specified, use CFLAGS.
13879LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13880
13881# Allow CC to be a program name with arguments.
13882compiler=$CC
13883
13884# Save the default compiler, since it gets overwritten when the other
13885# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13886compiler_DEFAULT=$CC
13887
13888# save warnings/boilerplate of simple test code
13889ac_outfile=conftest.$ac_objext
13890echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13891eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13892_lt_compiler_boilerplate=`cat conftest.err`
13893$RM conftest*
13894
13895ac_outfile=conftest.$ac_objext
13896echo "$lt_simple_link_test_code" >conftest.$ac_ext
13897eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13898_lt_linker_boilerplate=`cat conftest.err`
13899$RM -r conftest*
13900
13901
13902## CAVEAT EMPTOR:
13903## There is no encapsulation within the following macros, do not change
13904## the running order or otherwise move them around unless you know exactly
13905## what you are doing...
13906if test -n "$compiler"; then
13907
13908lt_prog_compiler_no_builtin_flag=
13909
13910if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013911 case $cc_basename in
13912 nvcc*)
13913 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13914 *)
13915 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13916 esac
cristy73bd4a52010-10-05 11:24:23 +000013917
13918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13919$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013920if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013921 $as_echo_n "(cached) " >&6
13922else
13923 lt_cv_prog_compiler_rtti_exceptions=no
13924 ac_outfile=conftest.$ac_objext
13925 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13926 lt_compiler_flag="-fno-rtti -fno-exceptions"
13927 # Insert the option either (1) after the last *FLAGS variable, or
13928 # (2) before a word containing "conftest.", or (3) at the end.
13929 # Note that $ac_compile itself does not contain backslashes and begins
13930 # with a dollar sign (not a hyphen), so the echo should work correctly.
13931 # The option is referenced via a variable to avoid confusing sed.
13932 lt_compile=`echo "$ac_compile" | $SED \
13933 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13934 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13935 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013936 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013937 (eval "$lt_compile" 2>conftest.err)
13938 ac_status=$?
13939 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013941 if (exit $ac_status) && test -s "$ac_outfile"; then
13942 # The compiler can only warn and ignore the option if not recognized
13943 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013944 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013945 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13946 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13947 lt_cv_prog_compiler_rtti_exceptions=yes
13948 fi
13949 fi
13950 $RM conftest*
13951
13952fi
13953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
13954$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
13955
13956if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
13957 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
13958else
13959 :
13960fi
13961
13962fi
13963
13964
13965
13966
13967
13968
13969 lt_prog_compiler_wl=
13970lt_prog_compiler_pic=
13971lt_prog_compiler_static=
13972
cristy73bd4a52010-10-05 11:24:23 +000013973
13974 if test "$GCC" = yes; then
13975 lt_prog_compiler_wl='-Wl,'
13976 lt_prog_compiler_static='-static'
13977
13978 case $host_os in
13979 aix*)
13980 # All AIX code is PIC.
13981 if test "$host_cpu" = ia64; then
13982 # AIX 5 now supports IA64 processor
13983 lt_prog_compiler_static='-Bstatic'
13984 fi
13985 ;;
13986
13987 amigaos*)
13988 case $host_cpu in
13989 powerpc)
13990 # see comment about AmigaOS4 .so support
13991 lt_prog_compiler_pic='-fPIC'
13992 ;;
13993 m68k)
13994 # FIXME: we need at least 68020 code to build shared libraries, but
13995 # adding the `-m68020' flag to GCC prevents building anything better,
13996 # like `-m68040'.
13997 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
13998 ;;
13999 esac
14000 ;;
14001
14002 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14003 # PIC is the default for these OSes.
14004 ;;
14005
14006 mingw* | cygwin* | pw32* | os2* | cegcc*)
14007 # This hack is so that the source file can tell whether it is being
14008 # built for inclusion in a dll (and should export symbols for example).
14009 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14010 # (--disable-auto-import) libraries
14011 lt_prog_compiler_pic='-DDLL_EXPORT'
14012 ;;
14013
14014 darwin* | rhapsody*)
14015 # PIC is the default on this platform
14016 # Common symbols not allowed in MH_DYLIB files
14017 lt_prog_compiler_pic='-fno-common'
14018 ;;
14019
cristy0c60a692010-11-04 01:09:47 +000014020 haiku*)
14021 # PIC is the default for Haiku.
14022 # The "-static" flag exists, but is broken.
14023 lt_prog_compiler_static=
14024 ;;
14025
cristy73bd4a52010-10-05 11:24:23 +000014026 hpux*)
14027 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14028 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14029 # sets the default TLS model and affects inlining.
14030 case $host_cpu in
14031 hppa*64*)
14032 # +Z the default
14033 ;;
14034 *)
14035 lt_prog_compiler_pic='-fPIC'
14036 ;;
14037 esac
14038 ;;
14039
14040 interix[3-9]*)
14041 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14042 # Instead, we relocate shared libraries at runtime.
14043 ;;
14044
14045 msdosdjgpp*)
14046 # Just because we use GCC doesn't mean we suddenly get shared libraries
14047 # on systems that don't support them.
14048 lt_prog_compiler_can_build_shared=no
14049 enable_shared=no
14050 ;;
14051
14052 *nto* | *qnx*)
14053 # QNX uses GNU C++, but need to define -shared option too, otherwise
14054 # it will coredump.
14055 lt_prog_compiler_pic='-fPIC -shared'
14056 ;;
14057
14058 sysv4*MP*)
14059 if test -d /usr/nec; then
14060 lt_prog_compiler_pic=-Kconform_pic
14061 fi
14062 ;;
14063
14064 *)
14065 lt_prog_compiler_pic='-fPIC'
14066 ;;
14067 esac
cristy0c60a692010-11-04 01:09:47 +000014068
14069 case $cc_basename in
14070 nvcc*) # Cuda Compiler Driver 2.2
14071 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014072 if test -n "$lt_prog_compiler_pic"; then
14073 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14074 fi
cristy0c60a692010-11-04 01:09:47 +000014075 ;;
14076 esac
cristy73bd4a52010-10-05 11:24:23 +000014077 else
14078 # PORTME Check for flag to pass linker flags through the system compiler.
14079 case $host_os in
14080 aix*)
14081 lt_prog_compiler_wl='-Wl,'
14082 if test "$host_cpu" = ia64; then
14083 # AIX 5 now supports IA64 processor
14084 lt_prog_compiler_static='-Bstatic'
14085 else
14086 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14087 fi
14088 ;;
14089
14090 mingw* | cygwin* | pw32* | os2* | cegcc*)
14091 # This hack is so that the source file can tell whether it is being
14092 # built for inclusion in a dll (and should export symbols for example).
14093 lt_prog_compiler_pic='-DDLL_EXPORT'
14094 ;;
14095
14096 hpux9* | hpux10* | hpux11*)
14097 lt_prog_compiler_wl='-Wl,'
14098 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14099 # not for PA HP-UX.
14100 case $host_cpu in
14101 hppa*64*|ia64*)
14102 # +Z the default
14103 ;;
14104 *)
14105 lt_prog_compiler_pic='+Z'
14106 ;;
14107 esac
14108 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14109 lt_prog_compiler_static='${wl}-a ${wl}archive'
14110 ;;
14111
14112 irix5* | irix6* | nonstopux*)
14113 lt_prog_compiler_wl='-Wl,'
14114 # PIC (with -KPIC) is the default.
14115 lt_prog_compiler_static='-non_shared'
14116 ;;
14117
cristy0c60a692010-11-04 01:09:47 +000014118 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014119 case $cc_basename in
14120 # old Intel for x86_64 which still supported -KPIC.
14121 ecc*)
14122 lt_prog_compiler_wl='-Wl,'
14123 lt_prog_compiler_pic='-KPIC'
14124 lt_prog_compiler_static='-static'
14125 ;;
14126 # icc used to be incompatible with GCC.
14127 # ICC 10 doesn't accept -KPIC any more.
14128 icc* | ifort*)
14129 lt_prog_compiler_wl='-Wl,'
14130 lt_prog_compiler_pic='-fPIC'
14131 lt_prog_compiler_static='-static'
14132 ;;
14133 # Lahey Fortran 8.1.
14134 lf95*)
14135 lt_prog_compiler_wl='-Wl,'
14136 lt_prog_compiler_pic='--shared'
14137 lt_prog_compiler_static='--static'
14138 ;;
cristyda16f162011-02-19 23:52:17 +000014139 nagfor*)
14140 # NAG Fortran compiler
14141 lt_prog_compiler_wl='-Wl,-Wl,,'
14142 lt_prog_compiler_pic='-PIC'
14143 lt_prog_compiler_static='-Bstatic'
14144 ;;
cristy0c60a692010-11-04 01:09:47 +000014145 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014146 # Portland Group compilers (*not* the Pentium gcc compiler,
14147 # which looks to be a dead project)
14148 lt_prog_compiler_wl='-Wl,'
14149 lt_prog_compiler_pic='-fpic'
14150 lt_prog_compiler_static='-Bstatic'
14151 ;;
14152 ccc*)
14153 lt_prog_compiler_wl='-Wl,'
14154 # All Alpha code is PIC.
14155 lt_prog_compiler_static='-non_shared'
14156 ;;
cristy0c60a692010-11-04 01:09:47 +000014157 xl* | bgxl* | bgf* | mpixl*)
14158 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014159 lt_prog_compiler_wl='-Wl,'
14160 lt_prog_compiler_pic='-qpic'
14161 lt_prog_compiler_static='-qstaticlink'
14162 ;;
14163 *)
14164 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014165 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014166 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14167 lt_prog_compiler_pic='-KPIC'
14168 lt_prog_compiler_static='-Bstatic'
14169 lt_prog_compiler_wl=''
14170 ;;
cristy99bd5232011-12-07 14:38:20 +000014171 *Sun\ F* | *Sun*Fortran*)
14172 lt_prog_compiler_pic='-KPIC'
14173 lt_prog_compiler_static='-Bstatic'
14174 lt_prog_compiler_wl='-Qoption ld '
14175 ;;
cristy73bd4a52010-10-05 11:24:23 +000014176 *Sun\ C*)
14177 # Sun C 5.9
14178 lt_prog_compiler_pic='-KPIC'
14179 lt_prog_compiler_static='-Bstatic'
14180 lt_prog_compiler_wl='-Wl,'
14181 ;;
cristy99bd5232011-12-07 14:38:20 +000014182 *Intel*\ [CF]*Compiler*)
14183 lt_prog_compiler_wl='-Wl,'
14184 lt_prog_compiler_pic='-fPIC'
14185 lt_prog_compiler_static='-static'
14186 ;;
14187 *Portland\ Group*)
14188 lt_prog_compiler_wl='-Wl,'
14189 lt_prog_compiler_pic='-fpic'
14190 lt_prog_compiler_static='-Bstatic'
14191 ;;
cristy73bd4a52010-10-05 11:24:23 +000014192 esac
14193 ;;
14194 esac
14195 ;;
14196
14197 newsos6)
14198 lt_prog_compiler_pic='-KPIC'
14199 lt_prog_compiler_static='-Bstatic'
14200 ;;
14201
14202 *nto* | *qnx*)
14203 # QNX uses GNU C++, but need to define -shared option too, otherwise
14204 # it will coredump.
14205 lt_prog_compiler_pic='-fPIC -shared'
14206 ;;
14207
14208 osf3* | osf4* | osf5*)
14209 lt_prog_compiler_wl='-Wl,'
14210 # All OSF/1 code is PIC.
14211 lt_prog_compiler_static='-non_shared'
14212 ;;
14213
14214 rdos*)
14215 lt_prog_compiler_static='-non_shared'
14216 ;;
14217
14218 solaris*)
14219 lt_prog_compiler_pic='-KPIC'
14220 lt_prog_compiler_static='-Bstatic'
14221 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014222 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014223 lt_prog_compiler_wl='-Qoption ld ';;
14224 *)
14225 lt_prog_compiler_wl='-Wl,';;
14226 esac
14227 ;;
14228
14229 sunos4*)
14230 lt_prog_compiler_wl='-Qoption ld '
14231 lt_prog_compiler_pic='-PIC'
14232 lt_prog_compiler_static='-Bstatic'
14233 ;;
14234
14235 sysv4 | sysv4.2uw2* | sysv4.3*)
14236 lt_prog_compiler_wl='-Wl,'
14237 lt_prog_compiler_pic='-KPIC'
14238 lt_prog_compiler_static='-Bstatic'
14239 ;;
14240
14241 sysv4*MP*)
14242 if test -d /usr/nec ;then
14243 lt_prog_compiler_pic='-Kconform_pic'
14244 lt_prog_compiler_static='-Bstatic'
14245 fi
14246 ;;
14247
14248 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14249 lt_prog_compiler_wl='-Wl,'
14250 lt_prog_compiler_pic='-KPIC'
14251 lt_prog_compiler_static='-Bstatic'
14252 ;;
14253
14254 unicos*)
14255 lt_prog_compiler_wl='-Wl,'
14256 lt_prog_compiler_can_build_shared=no
14257 ;;
14258
14259 uts4*)
14260 lt_prog_compiler_pic='-pic'
14261 lt_prog_compiler_static='-Bstatic'
14262 ;;
14263
14264 *)
14265 lt_prog_compiler_can_build_shared=no
14266 ;;
14267 esac
14268 fi
14269
14270case $host_os in
14271 # For platforms which do not support PIC, -DPIC is meaningless:
14272 *djgpp*)
14273 lt_prog_compiler_pic=
14274 ;;
14275 *)
14276 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14277 ;;
14278esac
cristy73bd4a52010-10-05 11:24:23 +000014279
cristyda16f162011-02-19 23:52:17 +000014280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14281$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14282if ${lt_cv_prog_compiler_pic+:} false; then :
14283 $as_echo_n "(cached) " >&6
14284else
14285 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14286fi
14287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14288$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14289lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014290
14291#
14292# Check to make sure the PIC flag actually works.
14293#
14294if test -n "$lt_prog_compiler_pic"; then
14295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14296$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014297if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014298 $as_echo_n "(cached) " >&6
14299else
14300 lt_cv_prog_compiler_pic_works=no
14301 ac_outfile=conftest.$ac_objext
14302 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14303 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14304 # Insert the option either (1) after the last *FLAGS variable, or
14305 # (2) before a word containing "conftest.", or (3) at the end.
14306 # Note that $ac_compile itself does not contain backslashes and begins
14307 # with a dollar sign (not a hyphen), so the echo should work correctly.
14308 # The option is referenced via a variable to avoid confusing sed.
14309 lt_compile=`echo "$ac_compile" | $SED \
14310 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14311 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14312 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014313 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014314 (eval "$lt_compile" 2>conftest.err)
14315 ac_status=$?
14316 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014318 if (exit $ac_status) && test -s "$ac_outfile"; then
14319 # The compiler can only warn and ignore the option if not recognized
14320 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014321 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014322 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14323 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14324 lt_cv_prog_compiler_pic_works=yes
14325 fi
14326 fi
14327 $RM conftest*
14328
14329fi
14330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14331$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14332
14333if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14334 case $lt_prog_compiler_pic in
14335 "" | " "*) ;;
14336 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14337 esac
14338else
14339 lt_prog_compiler_pic=
14340 lt_prog_compiler_can_build_shared=no
14341fi
14342
14343fi
14344
14345
14346
14347
14348
14349
cristyda16f162011-02-19 23:52:17 +000014350
14351
14352
14353
14354
cristy73bd4a52010-10-05 11:24:23 +000014355#
14356# Check to make sure the static flag actually works.
14357#
14358wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14359{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14360$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014361if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014362 $as_echo_n "(cached) " >&6
14363else
14364 lt_cv_prog_compiler_static_works=no
14365 save_LDFLAGS="$LDFLAGS"
14366 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14367 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14368 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14369 # The linker can only warn and ignore the option if not recognized
14370 # So say no if there are warnings
14371 if test -s conftest.err; then
14372 # Append any errors to the config.log.
14373 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014374 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014375 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14376 if diff conftest.exp conftest.er2 >/dev/null; then
14377 lt_cv_prog_compiler_static_works=yes
14378 fi
14379 else
14380 lt_cv_prog_compiler_static_works=yes
14381 fi
14382 fi
14383 $RM -r conftest*
14384 LDFLAGS="$save_LDFLAGS"
14385
14386fi
14387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14388$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14389
14390if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14391 :
14392else
14393 lt_prog_compiler_static=
14394fi
14395
14396
14397
14398
14399
14400
14401
14402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14403$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014404if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014405 $as_echo_n "(cached) " >&6
14406else
14407 lt_cv_prog_compiler_c_o=no
14408 $RM -r conftest 2>/dev/null
14409 mkdir conftest
14410 cd conftest
14411 mkdir out
14412 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14413
14414 lt_compiler_flag="-o out/conftest2.$ac_objext"
14415 # Insert the option either (1) after the last *FLAGS variable, or
14416 # (2) before a word containing "conftest.", or (3) at the end.
14417 # Note that $ac_compile itself does not contain backslashes and begins
14418 # with a dollar sign (not a hyphen), so the echo should work correctly.
14419 lt_compile=`echo "$ac_compile" | $SED \
14420 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14421 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14422 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014423 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014424 (eval "$lt_compile" 2>out/conftest.err)
14425 ac_status=$?
14426 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014428 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14429 then
14430 # The compiler can only warn and ignore the option if not recognized
14431 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014432 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014433 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14434 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14435 lt_cv_prog_compiler_c_o=yes
14436 fi
14437 fi
14438 chmod u+w . 2>&5
14439 $RM conftest*
14440 # SGI C++ compiler will create directory out/ii_files/ for
14441 # template instantiation
14442 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14443 $RM out/* && rmdir out
14444 cd ..
14445 $RM -r conftest
14446 $RM conftest*
14447
14448fi
14449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14450$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14451
14452
14453
14454
14455
14456
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14458$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014459if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014460 $as_echo_n "(cached) " >&6
14461else
14462 lt_cv_prog_compiler_c_o=no
14463 $RM -r conftest 2>/dev/null
14464 mkdir conftest
14465 cd conftest
14466 mkdir out
14467 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14468
14469 lt_compiler_flag="-o out/conftest2.$ac_objext"
14470 # Insert the option either (1) after the last *FLAGS variable, or
14471 # (2) before a word containing "conftest.", or (3) at the end.
14472 # Note that $ac_compile itself does not contain backslashes and begins
14473 # with a dollar sign (not a hyphen), so the echo should work correctly.
14474 lt_compile=`echo "$ac_compile" | $SED \
14475 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14476 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14477 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014478 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014479 (eval "$lt_compile" 2>out/conftest.err)
14480 ac_status=$?
14481 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014483 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14484 then
14485 # The compiler can only warn and ignore the option if not recognized
14486 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014487 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014488 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14489 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14490 lt_cv_prog_compiler_c_o=yes
14491 fi
14492 fi
14493 chmod u+w . 2>&5
14494 $RM conftest*
14495 # SGI C++ compiler will create directory out/ii_files/ for
14496 # template instantiation
14497 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14498 $RM out/* && rmdir out
14499 cd ..
14500 $RM -r conftest
14501 $RM conftest*
14502
14503fi
14504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14505$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14506
14507
14508
14509
14510hard_links="nottested"
14511if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14512 # do not overwrite the value of need_locks provided by the user
14513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14514$as_echo_n "checking if we can lock with hard links... " >&6; }
14515 hard_links=yes
14516 $RM conftest*
14517 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14518 touch conftest.a
14519 ln conftest.a conftest.b 2>&5 || hard_links=no
14520 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14522$as_echo "$hard_links" >&6; }
14523 if test "$hard_links" = no; then
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14525$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14526 need_locks=warn
14527 fi
14528else
14529 need_locks=no
14530fi
14531
14532
14533
14534
14535
14536
14537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14538$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14539
14540 runpath_var=
14541 allow_undefined_flag=
14542 always_export_symbols=no
14543 archive_cmds=
14544 archive_expsym_cmds=
14545 compiler_needs_object=no
14546 enable_shared_with_static_runtimes=no
14547 export_dynamic_flag_spec=
14548 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14549 hardcode_automatic=no
14550 hardcode_direct=no
14551 hardcode_direct_absolute=no
14552 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014553 hardcode_libdir_separator=
14554 hardcode_minus_L=no
14555 hardcode_shlibpath_var=unsupported
14556 inherit_rpath=no
14557 link_all_deplibs=unknown
14558 module_cmds=
14559 module_expsym_cmds=
14560 old_archive_from_new_cmds=
14561 old_archive_from_expsyms_cmds=
14562 thread_safe_flag_spec=
14563 whole_archive_flag_spec=
14564 # include_expsyms should be a list of space-separated symbols to be *always*
14565 # included in the symbol list
14566 include_expsyms=
14567 # exclude_expsyms can be an extended regexp of symbols to exclude
14568 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14569 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14570 # as well as any symbol that contains `d'.
14571 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14572 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14573 # platforms (ab)use it in PIC code, but their linkers get confused if
14574 # the symbol is explicitly referenced. Since portable code cannot
14575 # rely on this symbol name, it's probably fine to never include it in
14576 # preloaded symbol tables.
14577 # Exclude shared library initialization/finalization symbols.
14578 extract_expsyms_cmds=
14579
14580 case $host_os in
14581 cygwin* | mingw* | pw32* | cegcc*)
14582 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14583 # When not using gcc, we currently assume that we are using
14584 # Microsoft Visual C++.
14585 if test "$GCC" != yes; then
14586 with_gnu_ld=no
14587 fi
14588 ;;
14589 interix*)
14590 # we just hope/assume this is gcc and not c89 (= MSVC++)
14591 with_gnu_ld=yes
14592 ;;
14593 openbsd*)
14594 with_gnu_ld=no
14595 ;;
14596 esac
14597
14598 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014599
14600 # On some targets, GNU ld is compatible enough with the native linker
14601 # that we're better off using the native interface for both.
14602 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014603 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014604 case $host_os in
14605 aix*)
14606 # The AIX port of GNU ld has always aspired to compatibility
14607 # with the native linker. However, as the warning in the GNU ld
14608 # block says, versions before 2.19.5* couldn't really create working
14609 # shared libraries, regardless of the interface used.
14610 case `$LD -v 2>&1` in
14611 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14612 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14613 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14614 *)
14615 lt_use_gnu_ld_interface=yes
14616 ;;
14617 esac
14618 ;;
14619 *)
14620 lt_use_gnu_ld_interface=yes
14621 ;;
14622 esac
14623 fi
14624
14625 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014626 # If archive_cmds runs LD, not CC, wlarc should be empty
14627 wlarc='${wl}'
14628
14629 # Set some defaults for GNU ld with shared library support. These
14630 # are reset later if shared libraries are not supported. Putting them
14631 # here allows them to be overridden if necessary.
14632 runpath_var=LD_RUN_PATH
14633 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14634 export_dynamic_flag_spec='${wl}--export-dynamic'
14635 # ancient GNU ld didn't support --whole-archive et. al.
14636 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14637 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14638 else
14639 whole_archive_flag_spec=
14640 fi
14641 supports_anon_versioning=no
14642 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014643 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014644 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14645 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14646 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14647 *\ 2.11.*) ;; # other 2.11 versions
14648 *) supports_anon_versioning=yes ;;
14649 esac
14650
14651 # See if GNU ld supports shared libraries.
14652 case $host_os in
14653 aix[3-9]*)
14654 # On AIX/PPC, the GNU linker is very broken
14655 if test "$host_cpu" != ia64; then
14656 ld_shlibs=no
14657 cat <<_LT_EOF 1>&2
14658
cristy0c60a692010-11-04 01:09:47 +000014659*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014660*** to be unable to reliably create shared libraries on AIX.
14661*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014662*** really care for shared libraries, you may want to install binutils
14663*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14664*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014665
14666_LT_EOF
14667 fi
14668 ;;
14669
14670 amigaos*)
14671 case $host_cpu in
14672 powerpc)
14673 # see comment about AmigaOS4 .so support
14674 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14675 archive_expsym_cmds=''
14676 ;;
14677 m68k)
14678 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)'
14679 hardcode_libdir_flag_spec='-L$libdir'
14680 hardcode_minus_L=yes
14681 ;;
14682 esac
14683 ;;
14684
14685 beos*)
14686 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14687 allow_undefined_flag=unsupported
14688 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14689 # support --undefined. This deserves some investigation. FIXME
14690 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14691 else
14692 ld_shlibs=no
14693 fi
14694 ;;
14695
14696 cygwin* | mingw* | pw32* | cegcc*)
14697 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14698 # as there is no search path for DLLs.
14699 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014700 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014701 allow_undefined_flag=unsupported
14702 always_export_symbols=no
14703 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014704 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'
14705 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 +000014706
14707 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14708 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14709 # If the export-symbols file already is a .def file (1st line
14710 # is EXPORTS), use it as is; otherwise, prepend...
14711 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14712 cp $export_symbols $output_objdir/$soname.def;
14713 else
14714 echo EXPORTS > $output_objdir/$soname.def;
14715 cat $export_symbols >> $output_objdir/$soname.def;
14716 fi~
14717 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14718 else
14719 ld_shlibs=no
14720 fi
14721 ;;
14722
cristy0c60a692010-11-04 01:09:47 +000014723 haiku*)
14724 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14725 link_all_deplibs=yes
14726 ;;
14727
cristy73bd4a52010-10-05 11:24:23 +000014728 interix[3-9]*)
14729 hardcode_direct=no
14730 hardcode_shlibpath_var=no
14731 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14732 export_dynamic_flag_spec='${wl}-E'
14733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14734 # Instead, shared libraries are loaded at an image base (0x10000000 by
14735 # default) and relocated if they conflict, which is a slow very memory
14736 # consuming and fragmenting process. To avoid this, we pick a random,
14737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14739 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14740 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'
14741 ;;
14742
cristy0c60a692010-11-04 01:09:47 +000014743 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014744 tmp_diet=no
14745 if test "$host_os" = linux-dietlibc; then
14746 case $cc_basename in
14747 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14748 esac
14749 fi
14750 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14751 && test "$tmp_diet" = no
14752 then
cristyda16f162011-02-19 23:52:17 +000014753 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014754 tmp_sharedflag='-shared'
14755 case $cc_basename,$host_cpu in
14756 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014757 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 +000014758 tmp_addflag=' $pic_flag'
14759 ;;
cristy0c60a692010-11-04 01:09:47 +000014760 pgf77* | pgf90* | pgf95* | pgfortran*)
14761 # Portland Group f77 and f90 compilers
14762 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 +000014763 tmp_addflag=' $pic_flag -Mnomain' ;;
14764 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14765 tmp_addflag=' -i_dynamic' ;;
14766 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14767 tmp_addflag=' -i_dynamic -nofor_main' ;;
14768 ifc* | ifort*) # Intel Fortran compiler
14769 tmp_addflag=' -nofor_main' ;;
14770 lf95*) # Lahey Fortran 8.1
14771 whole_archive_flag_spec=
14772 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014773 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014774 tmp_sharedflag='-qmkshrobj'
14775 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014776 nvcc*) # Cuda Compiler Driver 2.2
14777 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'
14778 compiler_needs_object=yes
14779 ;;
cristy73bd4a52010-10-05 11:24:23 +000014780 esac
14781 case `$CC -V 2>&1 | sed 5q` in
14782 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014783 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 +000014784 compiler_needs_object=yes
14785 tmp_sharedflag='-G' ;;
14786 *Sun\ F*) # Sun Fortran 8.3
14787 tmp_sharedflag='-G' ;;
14788 esac
14789 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14790
14791 if test "x$supports_anon_versioning" = xyes; then
14792 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14793 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14794 echo "local: *; };" >> $output_objdir/$libname.ver~
14795 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14796 fi
14797
14798 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014799 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014800 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14801 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014803 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014804 if test "x$supports_anon_versioning" = xyes; then
14805 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14806 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14807 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014808 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014809 fi
14810 ;;
14811 esac
14812 else
14813 ld_shlibs=no
14814 fi
14815 ;;
14816
14817 netbsd*)
14818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14819 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14820 wlarc=
14821 else
cristyda16f162011-02-19 23:52:17 +000014822 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14823 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 +000014824 fi
14825 ;;
14826
14827 solaris*)
14828 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14829 ld_shlibs=no
14830 cat <<_LT_EOF 1>&2
14831
14832*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14833*** create shared libraries on Solaris systems. Therefore, libtool
14834*** is disabling shared libraries support. We urge you to upgrade GNU
14835*** binutils to release 2.9.1 or newer. Another option is to modify
14836*** your PATH or compiler configuration so that the native linker is
14837*** used, and then restart.
14838
14839_LT_EOF
14840 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014841 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14842 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 +000014843 else
14844 ld_shlibs=no
14845 fi
14846 ;;
14847
14848 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14849 case `$LD -v 2>&1` in
14850 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14851 ld_shlibs=no
14852 cat <<_LT_EOF 1>&2
14853
14854*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14855*** reliably create shared libraries on SCO systems. Therefore, libtool
14856*** is disabling shared libraries support. We urge you to upgrade GNU
14857*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14858*** your PATH or compiler configuration so that the native linker is
14859*** used, and then restart.
14860
14861_LT_EOF
14862 ;;
14863 *)
14864 # For security reasons, it is highly recommended that you always
14865 # use absolute paths for naming shared libraries, and exclude the
14866 # DT_RUNPATH tag from executables and libraries. But doing so
14867 # requires that you compile everything twice, which is a pain.
14868 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14869 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14870 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14871 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14872 else
14873 ld_shlibs=no
14874 fi
14875 ;;
14876 esac
14877 ;;
14878
14879 sunos4*)
14880 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14881 wlarc=
14882 hardcode_direct=yes
14883 hardcode_shlibpath_var=no
14884 ;;
14885
14886 *)
14887 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014888 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14889 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 +000014890 else
14891 ld_shlibs=no
14892 fi
14893 ;;
14894 esac
14895
14896 if test "$ld_shlibs" = no; then
14897 runpath_var=
14898 hardcode_libdir_flag_spec=
14899 export_dynamic_flag_spec=
14900 whole_archive_flag_spec=
14901 fi
14902 else
14903 # PORTME fill in a description of your system's linker (not GNU ld)
14904 case $host_os in
14905 aix3*)
14906 allow_undefined_flag=unsupported
14907 always_export_symbols=yes
14908 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'
14909 # Note: this linker hardcodes the directories in LIBPATH if there
14910 # are no directories specified by -L.
14911 hardcode_minus_L=yes
14912 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14913 # Neither direct hardcoding nor static linking is supported with a
14914 # broken collect2.
14915 hardcode_direct=unsupported
14916 fi
14917 ;;
14918
14919 aix[4-9]*)
14920 if test "$host_cpu" = ia64; then
14921 # On IA64, the linker does run time linking by default, so we don't
14922 # have to do anything special.
14923 aix_use_runtimelinking=no
14924 exp_sym_flag='-Bexport'
14925 no_entry_flag=""
14926 else
14927 # If we're using GNU nm, then we don't want the "-C" option.
14928 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014929 # Also, AIX nm treats weak defined symbols like other global
14930 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014931 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014932 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 +000014933 else
14934 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'
14935 fi
14936 aix_use_runtimelinking=no
14937
14938 # Test if we are trying to use run time linking or normal
14939 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14940 # need to do runtime linking.
14941 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14942 for ld_flag in $LDFLAGS; do
14943 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14944 aix_use_runtimelinking=yes
14945 break
14946 fi
14947 done
14948 ;;
14949 esac
14950
14951 exp_sym_flag='-bexport'
14952 no_entry_flag='-bnoentry'
14953 fi
14954
14955 # When large executables or shared objects are built, AIX ld can
14956 # have problems creating the table of contents. If linking a library
14957 # or program results in "error TOC overflow" add -mminimal-toc to
14958 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14959 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14960
14961 archive_cmds=''
14962 hardcode_direct=yes
14963 hardcode_direct_absolute=yes
14964 hardcode_libdir_separator=':'
14965 link_all_deplibs=yes
14966 file_list_spec='${wl}-f,'
14967
14968 if test "$GCC" = yes; then
14969 case $host_os in aix4.[012]|aix4.[012].*)
14970 # We only want to do this on AIX 4.2 and lower, the check
14971 # below for broken collect2 doesn't work under 4.3+
14972 collect2name=`${CC} -print-prog-name=collect2`
14973 if test -f "$collect2name" &&
14974 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14975 then
14976 # We have reworked collect2
14977 :
14978 else
14979 # We have old collect2
14980 hardcode_direct=unsupported
14981 # It fails to find uninstalled libraries when the uninstalled
14982 # path is not listed in the libpath. Setting hardcode_minus_L
14983 # to unsupported forces relinking
14984 hardcode_minus_L=yes
14985 hardcode_libdir_flag_spec='-L$libdir'
14986 hardcode_libdir_separator=
14987 fi
14988 ;;
14989 esac
14990 shared_flag='-shared'
14991 if test "$aix_use_runtimelinking" = yes; then
14992 shared_flag="$shared_flag "'${wl}-G'
14993 fi
14994 else
14995 # not using gcc
14996 if test "$host_cpu" = ia64; then
14997 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14998 # chokes on -Wl,-G. The following line is correct:
14999 shared_flag='-G'
15000 else
15001 if test "$aix_use_runtimelinking" = yes; then
15002 shared_flag='${wl}-G'
15003 else
15004 shared_flag='${wl}-bM:SRE'
15005 fi
15006 fi
15007 fi
15008
15009 export_dynamic_flag_spec='${wl}-bexpall'
15010 # It seems that -bexpall does not export symbols beginning with
15011 # underscore (_), so it is better to generate a list of symbols to export.
15012 always_export_symbols=yes
15013 if test "$aix_use_runtimelinking" = yes; then
15014 # Warning - without using the other runtime loading flags (-brtl),
15015 # -berok will link without error, but may produce a broken library.
15016 allow_undefined_flag='-berok'
15017 # Determine the default libpath from the value encoded in an
15018 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015019 if test "${lt_cv_aix_libpath+set}" = set; then
15020 aix_libpath=$lt_cv_aix_libpath
15021else
15022 if ${lt_cv_aix_libpath_+:} false; then :
15023 $as_echo_n "(cached) " >&6
15024else
15025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015026/* end confdefs.h. */
15027
15028int
15029main ()
15030{
15031
15032 ;
15033 return 0;
15034}
15035_ACEOF
15036if ac_fn_c_try_link "$LINENO"; then :
15037
cristyda16f162011-02-19 23:52:17 +000015038 lt_aix_libpath_sed='
15039 /Import File Strings/,/^$/ {
15040 /^0/ {
15041 s/^0 *\([^ ]*\) *$/\1/
15042 p
15043 }
15044 }'
15045 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15046 # Check for a 64-bit object if we didn't find anything.
15047 if test -z "$lt_cv_aix_libpath_"; then
15048 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15049 fi
cristy73bd4a52010-10-05 11:24:23 +000015050fi
15051rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015053 if test -z "$lt_cv_aix_libpath_"; then
15054 lt_cv_aix_libpath_="/usr/lib:/lib"
15055 fi
15056
15057fi
15058
15059 aix_libpath=$lt_cv_aix_libpath_
15060fi
cristy73bd4a52010-10-05 11:24:23 +000015061
15062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015063 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 +000015064 else
15065 if test "$host_cpu" = ia64; then
15066 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15067 allow_undefined_flag="-z nodefs"
15068 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"
15069 else
15070 # Determine the default libpath from the value encoded in an
15071 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015072 if test "${lt_cv_aix_libpath+set}" = set; then
15073 aix_libpath=$lt_cv_aix_libpath
15074else
15075 if ${lt_cv_aix_libpath_+:} false; then :
15076 $as_echo_n "(cached) " >&6
15077else
15078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015079/* end confdefs.h. */
15080
15081int
15082main ()
15083{
15084
15085 ;
15086 return 0;
15087}
15088_ACEOF
15089if ac_fn_c_try_link "$LINENO"; then :
15090
cristyda16f162011-02-19 23:52:17 +000015091 lt_aix_libpath_sed='
15092 /Import File Strings/,/^$/ {
15093 /^0/ {
15094 s/^0 *\([^ ]*\) *$/\1/
15095 p
15096 }
15097 }'
15098 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15099 # Check for a 64-bit object if we didn't find anything.
15100 if test -z "$lt_cv_aix_libpath_"; then
15101 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15102 fi
cristy73bd4a52010-10-05 11:24:23 +000015103fi
15104rm -f core conftest.err conftest.$ac_objext \
15105 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015106 if test -z "$lt_cv_aix_libpath_"; then
15107 lt_cv_aix_libpath_="/usr/lib:/lib"
15108 fi
15109
15110fi
15111
15112 aix_libpath=$lt_cv_aix_libpath_
15113fi
cristy73bd4a52010-10-05 11:24:23 +000015114
15115 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15116 # Warning - without using the other run time loading flags,
15117 # -berok will link without error, but may produce a broken library.
15118 no_undefined_flag=' ${wl}-bernotok'
15119 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015120 if test "$with_gnu_ld" = yes; then
15121 # We only use this code for GNU lds that support --whole-archive.
15122 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15123 else
15124 # Exported symbols can be pulled into shared objects from archives
15125 whole_archive_flag_spec='$convenience'
15126 fi
cristy73bd4a52010-10-05 11:24:23 +000015127 archive_cmds_need_lc=yes
15128 # This is similar to how AIX traditionally builds its shared libraries.
15129 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'
15130 fi
15131 fi
15132 ;;
15133
15134 amigaos*)
15135 case $host_cpu in
15136 powerpc)
15137 # see comment about AmigaOS4 .so support
15138 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15139 archive_expsym_cmds=''
15140 ;;
15141 m68k)
15142 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)'
15143 hardcode_libdir_flag_spec='-L$libdir'
15144 hardcode_minus_L=yes
15145 ;;
15146 esac
15147 ;;
15148
15149 bsdi[45]*)
15150 export_dynamic_flag_spec=-rdynamic
15151 ;;
15152
15153 cygwin* | mingw* | pw32* | cegcc*)
15154 # When not using gcc, we currently assume that we are using
15155 # Microsoft Visual C++.
15156 # hardcode_libdir_flag_spec is actually meaningless, as there is
15157 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015158 case $cc_basename in
15159 cl*)
15160 # Native MSVC
15161 hardcode_libdir_flag_spec=' '
15162 allow_undefined_flag=unsupported
15163 always_export_symbols=yes
15164 file_list_spec='@'
15165 # Tell ltmain to make .lib files, not .a files.
15166 libext=lib
15167 # Tell ltmain to make .dll files, not .so files.
15168 shrext_cmds=".dll"
15169 # FIXME: Setting linknames here is a bad hack.
15170 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15171 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15172 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15173 else
15174 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15175 fi~
15176 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15177 linknames='
15178 # The linker will not automatically build a static lib if we build a DLL.
15179 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15180 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015181 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015182 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15183 # Don't use ranlib
15184 old_postinstall_cmds='chmod 644 $oldlib'
15185 postlink_cmds='lt_outputfile="@OUTPUT@"~
15186 lt_tool_outputfile="@TOOL_OUTPUT@"~
15187 case $lt_outputfile in
15188 *.exe|*.EXE) ;;
15189 *)
15190 lt_outputfile="$lt_outputfile.exe"
15191 lt_tool_outputfile="$lt_tool_outputfile.exe"
15192 ;;
15193 esac~
15194 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15195 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15196 $RM "$lt_outputfile.manifest";
15197 fi'
15198 ;;
15199 *)
15200 # Assume MSVC wrapper
15201 hardcode_libdir_flag_spec=' '
15202 allow_undefined_flag=unsupported
15203 # Tell ltmain to make .lib files, not .a files.
15204 libext=lib
15205 # Tell ltmain to make .dll files, not .so files.
15206 shrext_cmds=".dll"
15207 # FIXME: Setting linknames here is a bad hack.
15208 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15209 # The linker will automatically build a .lib file if we build a DLL.
15210 old_archive_from_new_cmds='true'
15211 # FIXME: Should let the user specify the lib program.
15212 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15213 enable_shared_with_static_runtimes=yes
15214 ;;
15215 esac
cristy73bd4a52010-10-05 11:24:23 +000015216 ;;
15217
15218 darwin* | rhapsody*)
15219
15220
15221 archive_cmds_need_lc=no
15222 hardcode_direct=no
15223 hardcode_automatic=yes
15224 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015225 if test "$lt_cv_ld_force_load" = "yes"; then
15226 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 +000015227
cristy0c60a692010-11-04 01:09:47 +000015228 else
15229 whole_archive_flag_spec=''
15230 fi
cristy73bd4a52010-10-05 11:24:23 +000015231 link_all_deplibs=yes
15232 allow_undefined_flag="$_lt_dar_allow_undefined"
15233 case $cc_basename in
15234 ifort*) _lt_dar_can_shared=yes ;;
15235 *) _lt_dar_can_shared=$GCC ;;
15236 esac
15237 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015238 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015239 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15240 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15241 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}"
15242 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}"
15243
15244 else
15245 ld_shlibs=no
15246 fi
15247
15248 ;;
15249
15250 dgux*)
15251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15252 hardcode_libdir_flag_spec='-L$libdir'
15253 hardcode_shlibpath_var=no
15254 ;;
15255
cristy73bd4a52010-10-05 11:24:23 +000015256 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15257 # support. Future versions do this automatically, but an explicit c++rt0.o
15258 # does not break anything, and helps significantly (at the cost of a little
15259 # extra space).
15260 freebsd2.2*)
15261 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15262 hardcode_libdir_flag_spec='-R$libdir'
15263 hardcode_direct=yes
15264 hardcode_shlibpath_var=no
15265 ;;
15266
15267 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015268 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015269 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15270 hardcode_direct=yes
15271 hardcode_minus_L=yes
15272 hardcode_shlibpath_var=no
15273 ;;
15274
15275 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15276 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015277 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015278 hardcode_libdir_flag_spec='-R$libdir'
15279 hardcode_direct=yes
15280 hardcode_shlibpath_var=no
15281 ;;
15282
15283 hpux9*)
15284 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015285 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 +000015286 else
15287 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'
15288 fi
15289 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15290 hardcode_libdir_separator=:
15291 hardcode_direct=yes
15292
15293 # hardcode_minus_L: Not really in the search PATH,
15294 # but as the default location of the library.
15295 hardcode_minus_L=yes
15296 export_dynamic_flag_spec='${wl}-E'
15297 ;;
15298
15299 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015300 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015301 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 +000015302 else
15303 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15304 fi
15305 if test "$with_gnu_ld" = no; then
15306 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015307 hardcode_libdir_separator=:
15308 hardcode_direct=yes
15309 hardcode_direct_absolute=yes
15310 export_dynamic_flag_spec='${wl}-E'
15311 # hardcode_minus_L: Not really in the search PATH,
15312 # but as the default location of the library.
15313 hardcode_minus_L=yes
15314 fi
15315 ;;
15316
15317 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015318 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015319 case $host_cpu in
15320 hppa*64*)
15321 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15322 ;;
15323 ia64*)
cristyda16f162011-02-19 23:52:17 +000015324 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015325 ;;
15326 *)
cristyda16f162011-02-19 23:52:17 +000015327 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 +000015328 ;;
15329 esac
15330 else
15331 case $host_cpu in
15332 hppa*64*)
15333 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15334 ;;
15335 ia64*)
15336 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15337 ;;
15338 *)
cristy0c60a692010-11-04 01:09:47 +000015339
15340 # Older versions of the 11.00 compiler do not understand -b yet
15341 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15343$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015344if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015345 $as_echo_n "(cached) " >&6
15346else
15347 lt_cv_prog_compiler__b=no
15348 save_LDFLAGS="$LDFLAGS"
15349 LDFLAGS="$LDFLAGS -b"
15350 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15351 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15352 # The linker can only warn and ignore the option if not recognized
15353 # So say no if there are warnings
15354 if test -s conftest.err; then
15355 # Append any errors to the config.log.
15356 cat conftest.err 1>&5
15357 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15358 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15359 if diff conftest.exp conftest.er2 >/dev/null; then
15360 lt_cv_prog_compiler__b=yes
15361 fi
15362 else
15363 lt_cv_prog_compiler__b=yes
15364 fi
15365 fi
15366 $RM -r conftest*
15367 LDFLAGS="$save_LDFLAGS"
15368
15369fi
15370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15371$as_echo "$lt_cv_prog_compiler__b" >&6; }
15372
15373if test x"$lt_cv_prog_compiler__b" = xyes; then
15374 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15375else
15376 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15377fi
15378
cristy73bd4a52010-10-05 11:24:23 +000015379 ;;
15380 esac
15381 fi
15382 if test "$with_gnu_ld" = no; then
15383 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15384 hardcode_libdir_separator=:
15385
15386 case $host_cpu in
15387 hppa*64*|ia64*)
15388 hardcode_direct=no
15389 hardcode_shlibpath_var=no
15390 ;;
15391 *)
15392 hardcode_direct=yes
15393 hardcode_direct_absolute=yes
15394 export_dynamic_flag_spec='${wl}-E'
15395
15396 # hardcode_minus_L: Not really in the search PATH,
15397 # but as the default location of the library.
15398 hardcode_minus_L=yes
15399 ;;
15400 esac
15401 fi
15402 ;;
15403
15404 irix5* | irix6* | nonstopux*)
15405 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015406 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 +000015407 # Try to use the -exported_symbol ld option, if it does not
15408 # work, assume that -exports_file does not work either and
15409 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015410 # This should be the same for all languages, so no per-tag cache variable.
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15412$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15413if ${lt_cv_irix_exported_symbol+:} false; then :
15414 $as_echo_n "(cached) " >&6
15415else
15416 save_LDFLAGS="$LDFLAGS"
15417 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015419/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015420int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015421_ACEOF
15422if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015423 lt_cv_irix_exported_symbol=yes
15424else
15425 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015426fi
15427rm -f core conftest.err conftest.$ac_objext \
15428 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015429 LDFLAGS="$save_LDFLAGS"
15430fi
15431{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15432$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15433 if test "$lt_cv_irix_exported_symbol" = yes; then
15434 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'
15435 fi
cristy73bd4a52010-10-05 11:24:23 +000015436 else
cristy0c60a692010-11-04 01:09:47 +000015437 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'
15438 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 +000015439 fi
15440 archive_cmds_need_lc='no'
15441 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15442 hardcode_libdir_separator=:
15443 inherit_rpath=yes
15444 link_all_deplibs=yes
15445 ;;
15446
15447 netbsd*)
15448 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15449 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15450 else
15451 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15452 fi
15453 hardcode_libdir_flag_spec='-R$libdir'
15454 hardcode_direct=yes
15455 hardcode_shlibpath_var=no
15456 ;;
15457
15458 newsos6)
15459 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15460 hardcode_direct=yes
15461 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15462 hardcode_libdir_separator=:
15463 hardcode_shlibpath_var=no
15464 ;;
15465
15466 *nto* | *qnx*)
15467 ;;
15468
15469 openbsd*)
15470 if test -f /usr/libexec/ld.so; then
15471 hardcode_direct=yes
15472 hardcode_shlibpath_var=no
15473 hardcode_direct_absolute=yes
15474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15475 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15476 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15477 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15478 export_dynamic_flag_spec='${wl}-E'
15479 else
15480 case $host_os in
15481 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15482 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15483 hardcode_libdir_flag_spec='-R$libdir'
15484 ;;
15485 *)
15486 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15487 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15488 ;;
15489 esac
15490 fi
15491 else
15492 ld_shlibs=no
15493 fi
15494 ;;
15495
15496 os2*)
15497 hardcode_libdir_flag_spec='-L$libdir'
15498 hardcode_minus_L=yes
15499 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015500 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 +000015501 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15502 ;;
15503
15504 osf3*)
15505 if test "$GCC" = yes; then
15506 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015507 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 +000015508 else
15509 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015510 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 +000015511 fi
15512 archive_cmds_need_lc='no'
15513 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15514 hardcode_libdir_separator=:
15515 ;;
15516
15517 osf4* | osf5*) # as osf3* with the addition of -msym flag
15518 if test "$GCC" = yes; then
15519 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015520 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 +000015521 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15522 else
15523 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015524 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 +000015525 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 +000015526 $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 +000015527
15528 # Both c and cxx compiler support -rpath directly
15529 hardcode_libdir_flag_spec='-rpath $libdir'
15530 fi
15531 archive_cmds_need_lc='no'
15532 hardcode_libdir_separator=:
15533 ;;
15534
15535 solaris*)
15536 no_undefined_flag=' -z defs'
15537 if test "$GCC" = yes; then
15538 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015539 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 +000015540 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 +000015541 $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 +000015542 else
15543 case `$CC -V 2>&1` in
15544 *"Compilers 5.0"*)
15545 wlarc=''
15546 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15548 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15549 ;;
15550 *)
15551 wlarc='${wl}'
15552 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15554 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15555 ;;
15556 esac
15557 fi
15558 hardcode_libdir_flag_spec='-R$libdir'
15559 hardcode_shlibpath_var=no
15560 case $host_os in
15561 solaris2.[0-5] | solaris2.[0-5].*) ;;
15562 *)
15563 # The compiler driver will combine and reorder linker options,
15564 # but understands `-z linker_flag'. GCC discards it without `$wl',
15565 # but is careful enough not to reorder.
15566 # Supported since Solaris 2.6 (maybe 2.5.1?)
15567 if test "$GCC" = yes; then
15568 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15569 else
15570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15571 fi
15572 ;;
15573 esac
15574 link_all_deplibs=yes
15575 ;;
15576
15577 sunos4*)
15578 if test "x$host_vendor" = xsequent; then
15579 # Use $CC to link under sequent, because it throws in some extra .o
15580 # files that make .init and .fini sections work.
15581 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15582 else
15583 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15584 fi
15585 hardcode_libdir_flag_spec='-L$libdir'
15586 hardcode_direct=yes
15587 hardcode_minus_L=yes
15588 hardcode_shlibpath_var=no
15589 ;;
15590
15591 sysv4)
15592 case $host_vendor in
15593 sni)
15594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15595 hardcode_direct=yes # is this really true???
15596 ;;
15597 siemens)
15598 ## LD is ld it makes a PLAMLIB
15599 ## CC just makes a GrossModule.
15600 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15601 reload_cmds='$CC -r -o $output$reload_objs'
15602 hardcode_direct=no
15603 ;;
15604 motorola)
15605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15606 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15607 ;;
15608 esac
15609 runpath_var='LD_RUN_PATH'
15610 hardcode_shlibpath_var=no
15611 ;;
15612
15613 sysv4.3*)
15614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15615 hardcode_shlibpath_var=no
15616 export_dynamic_flag_spec='-Bexport'
15617 ;;
15618
15619 sysv4*MP*)
15620 if test -d /usr/nec; then
15621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15622 hardcode_shlibpath_var=no
15623 runpath_var=LD_RUN_PATH
15624 hardcode_runpath_var=yes
15625 ld_shlibs=yes
15626 fi
15627 ;;
15628
15629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15630 no_undefined_flag='${wl}-z,text'
15631 archive_cmds_need_lc=no
15632 hardcode_shlibpath_var=no
15633 runpath_var='LD_RUN_PATH'
15634
15635 if test "$GCC" = yes; then
15636 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15637 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15638 else
15639 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15640 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15641 fi
15642 ;;
15643
15644 sysv5* | sco3.2v5* | sco5v6*)
15645 # Note: We can NOT use -z defs as we might desire, because we do not
15646 # link with -lc, and that would cause any symbols used from libc to
15647 # always be unresolved, which means just about no library would
15648 # ever link correctly. If we're not using GNU ld we use -z text
15649 # though, which does catch some bad symbols but isn't as heavy-handed
15650 # as -z defs.
15651 no_undefined_flag='${wl}-z,text'
15652 allow_undefined_flag='${wl}-z,nodefs'
15653 archive_cmds_need_lc=no
15654 hardcode_shlibpath_var=no
15655 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15656 hardcode_libdir_separator=':'
15657 link_all_deplibs=yes
15658 export_dynamic_flag_spec='${wl}-Bexport'
15659 runpath_var='LD_RUN_PATH'
15660
15661 if test "$GCC" = yes; then
15662 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15663 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15664 else
15665 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15666 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15667 fi
15668 ;;
15669
15670 uts4*)
15671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15672 hardcode_libdir_flag_spec='-L$libdir'
15673 hardcode_shlibpath_var=no
15674 ;;
15675
15676 *)
15677 ld_shlibs=no
15678 ;;
15679 esac
15680
15681 if test x$host_vendor = xsni; then
15682 case $host in
15683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15684 export_dynamic_flag_spec='${wl}-Blargedynsym'
15685 ;;
15686 esac
15687 fi
15688 fi
15689
15690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15691$as_echo "$ld_shlibs" >&6; }
15692test "$ld_shlibs" = no && can_build_shared=no
15693
15694with_gnu_ld=$with_gnu_ld
15695
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705
15706
15707
15708
15709
15710#
15711# Do we need to explicitly link libc?
15712#
15713case "x$archive_cmds_need_lc" in
15714x|xyes)
15715 # Assume -lc should be added
15716 archive_cmds_need_lc=yes
15717
15718 if test "$enable_shared" = yes && test "$GCC" = yes; then
15719 case $archive_cmds in
15720 *'~'*)
15721 # FIXME: we may have to deal with multi-command sequences.
15722 ;;
15723 '$CC '*)
15724 # Test whether the compiler implicitly links with -lc since on some
15725 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15726 # to ld, don't add -lc before -lgcc.
15727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15728$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015729if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015730 $as_echo_n "(cached) " >&6
15731else
15732 $RM conftest*
15733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015734
cristy0c60a692010-11-04 01:09:47 +000015735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015736 (eval $ac_compile) 2>&5
15737 ac_status=$?
15738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15739 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015740 soname=conftest
15741 lib=conftest
15742 libobjs=conftest.$ac_objext
15743 deplibs=
15744 wl=$lt_prog_compiler_wl
15745 pic_flag=$lt_prog_compiler_pic
15746 compiler_flags=-v
15747 linker_flags=-v
15748 verstring=
15749 output_objdir=.
15750 libname=conftest
15751 lt_save_allow_undefined_flag=$allow_undefined_flag
15752 allow_undefined_flag=
15753 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 +000015754 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15755 ac_status=$?
15756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15757 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015758 then
15759 lt_cv_archive_cmds_need_lc=no
15760 else
15761 lt_cv_archive_cmds_need_lc=yes
15762 fi
15763 allow_undefined_flag=$lt_save_allow_undefined_flag
15764 else
15765 cat conftest.err 1>&5
15766 fi
15767 $RM conftest*
15768
15769fi
15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15771$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15772 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015773 ;;
15774 esac
15775 fi
15776 ;;
15777esac
15778
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
cristy73bd4a52010-10-05 11:24:23 +000015930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15931$as_echo_n "checking dynamic linker characteristics... " >&6; }
15932
15933if test "$GCC" = yes; then
15934 case $host_os in
15935 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15936 *) lt_awk_arg="/^libraries:/" ;;
15937 esac
cristy0c60a692010-11-04 01:09:47 +000015938 case $host_os in
15939 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15940 *) lt_sed_strip_eq="s,=/,/,g" ;;
15941 esac
15942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15943 case $lt_search_path_spec in
15944 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015945 # if the path contains ";" then we assume it to be the separator
15946 # otherwise default to the standard path separator (i.e. ":") - it is
15947 # assumed that no part of a normal pathname contains ";" but that should
15948 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015949 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15950 ;;
15951 *)
15952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
15953 ;;
15954 esac
cristy73bd4a52010-10-05 11:24:23 +000015955 # Ok, now we have the path, separated by spaces, we can step through it
15956 # and add multilib dir if necessary.
15957 lt_tmp_lt_search_path_spec=
15958 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
15959 for lt_sys_path in $lt_search_path_spec; do
15960 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
15961 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
15962 else
15963 test -d "$lt_sys_path" && \
15964 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
15965 fi
15966 done
cristy0c60a692010-11-04 01:09:47 +000015967 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000015968BEGIN {RS=" "; FS="/|\n";} {
15969 lt_foo="";
15970 lt_count=0;
15971 for (lt_i = NF; lt_i > 0; lt_i--) {
15972 if ($lt_i != "" && $lt_i != ".") {
15973 if ($lt_i == "..") {
15974 lt_count++;
15975 } else {
15976 if (lt_count == 0) {
15977 lt_foo="/" $lt_i lt_foo;
15978 } else {
15979 lt_count--;
15980 }
15981 }
15982 }
15983 }
15984 if (lt_foo != "") { lt_freq[lt_foo]++; }
15985 if (lt_freq[lt_foo] == 1) { print lt_foo; }
15986}'`
cristy0c60a692010-11-04 01:09:47 +000015987 # AWK program above erroneously prepends '/' to C:/dos/paths
15988 # for these hosts.
15989 case $host_os in
15990 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
15991 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
15992 esac
15993 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000015994else
15995 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
15996fi
15997library_names_spec=
15998libname_spec='lib$name'
15999soname_spec=
16000shrext_cmds=".so"
16001postinstall_cmds=
16002postuninstall_cmds=
16003finish_cmds=
16004finish_eval=
16005shlibpath_var=
16006shlibpath_overrides_runpath=unknown
16007version_type=none
16008dynamic_linker="$host_os ld.so"
16009sys_lib_dlsearch_path_spec="/lib /usr/lib"
16010need_lib_prefix=unknown
16011hardcode_into_libs=no
16012
16013# when you set need_version to no, make sure it does not cause -set_version
16014# flags to be left without arguments
16015need_version=unknown
16016
16017case $host_os in
16018aix3*)
cristy99bd5232011-12-07 14:38:20 +000016019 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016020 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16021 shlibpath_var=LIBPATH
16022
16023 # AIX 3 has no versioning support, so we append a major version to the name.
16024 soname_spec='${libname}${release}${shared_ext}$major'
16025 ;;
16026
16027aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016028 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016029 need_lib_prefix=no
16030 need_version=no
16031 hardcode_into_libs=yes
16032 if test "$host_cpu" = ia64; then
16033 # AIX 5 supports IA64
16034 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16035 shlibpath_var=LD_LIBRARY_PATH
16036 else
16037 # With GCC up to 2.95.x, collect2 would create an import file
16038 # for dependence libraries. The import file would start with
16039 # the line `#! .'. This would cause the generated library to
16040 # depend on `.', always an invalid library. This was fixed in
16041 # development snapshots of GCC prior to 3.0.
16042 case $host_os in
16043 aix4 | aix4.[01] | aix4.[01].*)
16044 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16045 echo ' yes '
16046 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16047 :
16048 else
16049 can_build_shared=no
16050 fi
16051 ;;
16052 esac
16053 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16054 # soname into executable. Probably we can add versioning support to
16055 # collect2, so additional links can be useful in future.
16056 if test "$aix_use_runtimelinking" = yes; then
16057 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16058 # instead of lib<name>.a to let people know that these are not
16059 # typical AIX shared libraries.
16060 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16061 else
16062 # We preserve .a as extension for shared libraries through AIX4.2
16063 # and later when we are not doing run time linking.
16064 library_names_spec='${libname}${release}.a $libname.a'
16065 soname_spec='${libname}${release}${shared_ext}$major'
16066 fi
16067 shlibpath_var=LIBPATH
16068 fi
16069 ;;
16070
16071amigaos*)
16072 case $host_cpu in
16073 powerpc)
16074 # Since July 2007 AmigaOS4 officially supports .so libraries.
16075 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16077 ;;
16078 m68k)
16079 library_names_spec='$libname.ixlibrary $libname.a'
16080 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016081 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 +000016082 ;;
16083 esac
16084 ;;
16085
16086beos*)
16087 library_names_spec='${libname}${shared_ext}'
16088 dynamic_linker="$host_os ld.so"
16089 shlibpath_var=LIBRARY_PATH
16090 ;;
16091
16092bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016093 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016094 need_version=no
16095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16096 soname_spec='${libname}${release}${shared_ext}$major'
16097 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16098 shlibpath_var=LD_LIBRARY_PATH
16099 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16100 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16101 # the default ld.so.conf also contains /usr/contrib/lib and
16102 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16103 # libtool to hard-code these into programs
16104 ;;
16105
16106cygwin* | mingw* | pw32* | cegcc*)
16107 version_type=windows
16108 shrext_cmds=".dll"
16109 need_version=no
16110 need_lib_prefix=no
16111
cristyda16f162011-02-19 23:52:17 +000016112 case $GCC,$cc_basename in
16113 yes,*)
16114 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016115 library_names_spec='$libname.dll.a'
16116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16117 postinstall_cmds='base_file=`basename \${file}`~
16118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16119 dldir=$destdir/`dirname \$dlpath`~
16120 test -d \$dldir || mkdir -p \$dldir~
16121 $install_prog $dir/$dlname \$dldir/$dlname~
16122 chmod a+x \$dldir/$dlname~
16123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16125 fi'
16126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16127 dlpath=$dir/\$dldll~
16128 $RM \$dlpath'
16129 shlibpath_overrides_runpath=yes
16130
16131 case $host_os in
16132 cygwin*)
16133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016135
16136 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016137 ;;
16138 mingw* | cegcc*)
16139 # MinGW DLLs use traditional 'lib' prefix
16140 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016141 ;;
16142 pw32*)
16143 # pw32 DLLs use 'pw' prefix rather than 'lib'
16144 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16145 ;;
16146 esac
cristyda16f162011-02-19 23:52:17 +000016147 dynamic_linker='Win32 ld.exe'
16148 ;;
16149
16150 *,cl*)
16151 # Native MSVC
16152 libname_spec='$name'
16153 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16154 library_names_spec='${libname}.dll.lib'
16155
16156 case $build_os in
16157 mingw*)
16158 sys_lib_search_path_spec=
16159 lt_save_ifs=$IFS
16160 IFS=';'
16161 for lt_path in $LIB
16162 do
16163 IFS=$lt_save_ifs
16164 # Let DOS variable expansion print the short 8.3 style file name.
16165 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16166 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16167 done
16168 IFS=$lt_save_ifs
16169 # Convert to MSYS style.
16170 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16171 ;;
16172 cygwin*)
16173 # Convert to unix form, then to dos form, then back to unix form
16174 # but this time dos style (no spaces!) so that the unix form looks
16175 # like /cygdrive/c/PROGRA~1:/cygdr...
16176 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16177 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16178 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16179 ;;
16180 *)
16181 sys_lib_search_path_spec="$LIB"
16182 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16183 # It is most probably a Windows format PATH.
16184 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16185 else
16186 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16187 fi
16188 # FIXME: find the short name or the path components, as spaces are
16189 # common. (e.g. "Program Files" -> "PROGRA~1")
16190 ;;
16191 esac
16192
16193 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16194 postinstall_cmds='base_file=`basename \${file}`~
16195 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16196 dldir=$destdir/`dirname \$dlpath`~
16197 test -d \$dldir || mkdir -p \$dldir~
16198 $install_prog $dir/$dlname \$dldir/$dlname'
16199 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16200 dlpath=$dir/\$dldll~
16201 $RM \$dlpath'
16202 shlibpath_overrides_runpath=yes
16203 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016204 ;;
16205
16206 *)
cristyda16f162011-02-19 23:52:17 +000016207 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016208 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016209 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016210 ;;
16211 esac
cristy73bd4a52010-10-05 11:24:23 +000016212 # FIXME: first we should search . and the directory the executable is in
16213 shlibpath_var=PATH
16214 ;;
16215
16216darwin* | rhapsody*)
16217 dynamic_linker="$host_os dyld"
16218 version_type=darwin
16219 need_lib_prefix=no
16220 need_version=no
16221 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16222 soname_spec='${libname}${release}${major}$shared_ext'
16223 shlibpath_overrides_runpath=yes
16224 shlibpath_var=DYLD_LIBRARY_PATH
16225 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16226
16227 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16228 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16229 ;;
16230
16231dgux*)
cristy99bd5232011-12-07 14:38:20 +000016232 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016233 need_lib_prefix=no
16234 need_version=no
16235 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16236 soname_spec='${libname}${release}${shared_ext}$major'
16237 shlibpath_var=LD_LIBRARY_PATH
16238 ;;
16239
cristy73bd4a52010-10-05 11:24:23 +000016240freebsd* | dragonfly*)
16241 # DragonFly does not have aout. When/if they implement a new
16242 # versioning mechanism, adjust this.
16243 if test -x /usr/bin/objformat; then
16244 objformat=`/usr/bin/objformat`
16245 else
16246 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016247 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016248 *) objformat=elf ;;
16249 esac
16250 fi
16251 version_type=freebsd-$objformat
16252 case $version_type in
16253 freebsd-elf*)
16254 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16255 need_version=no
16256 need_lib_prefix=no
16257 ;;
16258 freebsd-*)
16259 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16260 need_version=yes
16261 ;;
16262 esac
16263 shlibpath_var=LD_LIBRARY_PATH
16264 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016265 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016266 shlibpath_overrides_runpath=yes
16267 ;;
16268 freebsd3.[01]* | freebsdelf3.[01]*)
16269 shlibpath_overrides_runpath=yes
16270 hardcode_into_libs=yes
16271 ;;
16272 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16273 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16274 shlibpath_overrides_runpath=no
16275 hardcode_into_libs=yes
16276 ;;
16277 *) # from 4.6 on, and DragonFly
16278 shlibpath_overrides_runpath=yes
16279 hardcode_into_libs=yes
16280 ;;
16281 esac
16282 ;;
16283
16284gnu*)
cristy99bd5232011-12-07 14:38:20 +000016285 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016286 need_lib_prefix=no
16287 need_version=no
16288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16289 soname_spec='${libname}${release}${shared_ext}$major'
16290 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016291 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016292 hardcode_into_libs=yes
16293 ;;
16294
cristy0c60a692010-11-04 01:09:47 +000016295haiku*)
cristy99bd5232011-12-07 14:38:20 +000016296 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016297 need_lib_prefix=no
16298 need_version=no
16299 dynamic_linker="$host_os runtime_loader"
16300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16301 soname_spec='${libname}${release}${shared_ext}$major'
16302 shlibpath_var=LIBRARY_PATH
16303 shlibpath_overrides_runpath=yes
16304 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16305 hardcode_into_libs=yes
16306 ;;
16307
cristy73bd4a52010-10-05 11:24:23 +000016308hpux9* | hpux10* | hpux11*)
16309 # Give a soname corresponding to the major version so that dld.sl refuses to
16310 # link against other versions.
16311 version_type=sunos
16312 need_lib_prefix=no
16313 need_version=no
16314 case $host_cpu in
16315 ia64*)
16316 shrext_cmds='.so'
16317 hardcode_into_libs=yes
16318 dynamic_linker="$host_os dld.so"
16319 shlibpath_var=LD_LIBRARY_PATH
16320 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16322 soname_spec='${libname}${release}${shared_ext}$major'
16323 if test "X$HPUX_IA64_MODE" = X32; then
16324 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16325 else
16326 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16327 fi
16328 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16329 ;;
16330 hppa*64*)
16331 shrext_cmds='.sl'
16332 hardcode_into_libs=yes
16333 dynamic_linker="$host_os dld.sl"
16334 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16335 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16337 soname_spec='${libname}${release}${shared_ext}$major'
16338 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16340 ;;
16341 *)
16342 shrext_cmds='.sl'
16343 dynamic_linker="$host_os dld.sl"
16344 shlibpath_var=SHLIB_PATH
16345 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16347 soname_spec='${libname}${release}${shared_ext}$major'
16348 ;;
16349 esac
cristy0c60a692010-11-04 01:09:47 +000016350 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016351 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016352 # or fails outright, so override atomically:
16353 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016354 ;;
16355
16356interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016357 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016358 need_lib_prefix=no
16359 need_version=no
16360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16361 soname_spec='${libname}${release}${shared_ext}$major'
16362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16363 shlibpath_var=LD_LIBRARY_PATH
16364 shlibpath_overrides_runpath=no
16365 hardcode_into_libs=yes
16366 ;;
16367
16368irix5* | irix6* | nonstopux*)
16369 case $host_os in
16370 nonstopux*) version_type=nonstopux ;;
16371 *)
16372 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016373 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016374 else
16375 version_type=irix
16376 fi ;;
16377 esac
16378 need_lib_prefix=no
16379 need_version=no
16380 soname_spec='${libname}${release}${shared_ext}$major'
16381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16382 case $host_os in
16383 irix5* | nonstopux*)
16384 libsuff= shlibsuff=
16385 ;;
16386 *)
16387 case $LD in # libtool.m4 will add one of these switches to LD
16388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16389 libsuff= shlibsuff= libmagic=32-bit;;
16390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16391 libsuff=32 shlibsuff=N32 libmagic=N32;;
16392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16394 *) libsuff= shlibsuff= libmagic=never-match;;
16395 esac
16396 ;;
16397 esac
16398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16399 shlibpath_overrides_runpath=no
16400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16402 hardcode_into_libs=yes
16403 ;;
16404
16405# No shared lib support for Linux oldld, aout, or coff.
16406linux*oldld* | linux*aout* | linux*coff*)
16407 dynamic_linker=no
16408 ;;
16409
cristy99bd5232011-12-07 14:38:20 +000016410# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016411linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016412 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016413 need_lib_prefix=no
16414 need_version=no
16415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16416 soname_spec='${libname}${release}${shared_ext}$major'
16417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16418 shlibpath_var=LD_LIBRARY_PATH
16419 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016420
cristy73bd4a52010-10-05 11:24:23 +000016421 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016422 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016423 $as_echo_n "(cached) " >&6
16424else
16425 lt_cv_shlibpath_overrides_runpath=no
16426 save_LDFLAGS=$LDFLAGS
16427 save_libdir=$libdir
16428 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16429 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016431/* end confdefs.h. */
16432
16433int
16434main ()
16435{
16436
16437 ;
16438 return 0;
16439}
16440_ACEOF
16441if ac_fn_c_try_link "$LINENO"; then :
16442 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016443 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016444fi
16445fi
16446rm -f core conftest.err conftest.$ac_objext \
16447 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016448 LDFLAGS=$save_LDFLAGS
16449 libdir=$save_libdir
16450
16451fi
16452
16453 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016454
16455 # This implies no fast_install, which is unacceptable.
16456 # Some rework will be needed to allow for fast_install
16457 # before this can be enabled.
16458 hardcode_into_libs=yes
16459
16460 # Add ABI-specific directories to the system library path.
16461 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16462
16463 # Append ld.so.conf contents to the search path
16464 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016465 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 +000016466 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016467
cristy73bd4a52010-10-05 11:24:23 +000016468 fi
16469
16470 # We used to test for /lib/ld.so.1 and disable shared libraries on
16471 # powerpc, because MkLinux only supported shared libraries with the
16472 # GNU dynamic linker. Since this was broken with cross compilers,
16473 # most powerpc-linux boxes support dynamic linking these days and
16474 # people can always --disable-shared, the test was removed, and we
16475 # assume the GNU/Linux dynamic linker is in use.
16476 dynamic_linker='GNU/Linux ld.so'
16477 ;;
16478
16479netbsd*)
16480 version_type=sunos
16481 need_lib_prefix=no
16482 need_version=no
16483 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16485 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16486 dynamic_linker='NetBSD (a.out) ld.so'
16487 else
16488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16489 soname_spec='${libname}${release}${shared_ext}$major'
16490 dynamic_linker='NetBSD ld.elf_so'
16491 fi
16492 shlibpath_var=LD_LIBRARY_PATH
16493 shlibpath_overrides_runpath=yes
16494 hardcode_into_libs=yes
16495 ;;
16496
16497newsos6)
cristy99bd5232011-12-07 14:38:20 +000016498 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16500 shlibpath_var=LD_LIBRARY_PATH
16501 shlibpath_overrides_runpath=yes
16502 ;;
16503
16504*nto* | *qnx*)
16505 version_type=qnx
16506 need_lib_prefix=no
16507 need_version=no
16508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16509 soname_spec='${libname}${release}${shared_ext}$major'
16510 shlibpath_var=LD_LIBRARY_PATH
16511 shlibpath_overrides_runpath=no
16512 hardcode_into_libs=yes
16513 dynamic_linker='ldqnx.so'
16514 ;;
16515
16516openbsd*)
16517 version_type=sunos
16518 sys_lib_dlsearch_path_spec="/usr/lib"
16519 need_lib_prefix=no
16520 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16521 case $host_os in
16522 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16523 *) need_version=no ;;
16524 esac
16525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16526 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16527 shlibpath_var=LD_LIBRARY_PATH
16528 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16529 case $host_os in
16530 openbsd2.[89] | openbsd2.[89].*)
16531 shlibpath_overrides_runpath=no
16532 ;;
16533 *)
16534 shlibpath_overrides_runpath=yes
16535 ;;
16536 esac
16537 else
16538 shlibpath_overrides_runpath=yes
16539 fi
16540 ;;
16541
16542os2*)
16543 libname_spec='$name'
16544 shrext_cmds=".dll"
16545 need_lib_prefix=no
16546 library_names_spec='$libname${shared_ext} $libname.a'
16547 dynamic_linker='OS/2 ld.exe'
16548 shlibpath_var=LIBPATH
16549 ;;
16550
16551osf3* | osf4* | osf5*)
16552 version_type=osf
16553 need_lib_prefix=no
16554 need_version=no
16555 soname_spec='${libname}${release}${shared_ext}$major'
16556 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16557 shlibpath_var=LD_LIBRARY_PATH
16558 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16559 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16560 ;;
16561
16562rdos*)
16563 dynamic_linker=no
16564 ;;
16565
16566solaris*)
cristy99bd5232011-12-07 14:38:20 +000016567 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016568 need_lib_prefix=no
16569 need_version=no
16570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16571 soname_spec='${libname}${release}${shared_ext}$major'
16572 shlibpath_var=LD_LIBRARY_PATH
16573 shlibpath_overrides_runpath=yes
16574 hardcode_into_libs=yes
16575 # ldd complains unless libraries are executable
16576 postinstall_cmds='chmod +x $lib'
16577 ;;
16578
16579sunos4*)
16580 version_type=sunos
16581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16582 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16583 shlibpath_var=LD_LIBRARY_PATH
16584 shlibpath_overrides_runpath=yes
16585 if test "$with_gnu_ld" = yes; then
16586 need_lib_prefix=no
16587 fi
16588 need_version=yes
16589 ;;
16590
16591sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016592 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016593 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16594 soname_spec='${libname}${release}${shared_ext}$major'
16595 shlibpath_var=LD_LIBRARY_PATH
16596 case $host_vendor in
16597 sni)
16598 shlibpath_overrides_runpath=no
16599 need_lib_prefix=no
16600 runpath_var=LD_RUN_PATH
16601 ;;
16602 siemens)
16603 need_lib_prefix=no
16604 ;;
16605 motorola)
16606 need_lib_prefix=no
16607 need_version=no
16608 shlibpath_overrides_runpath=no
16609 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16610 ;;
16611 esac
16612 ;;
16613
16614sysv4*MP*)
16615 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016616 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016617 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16618 soname_spec='$libname${shared_ext}.$major'
16619 shlibpath_var=LD_LIBRARY_PATH
16620 fi
16621 ;;
16622
16623sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16624 version_type=freebsd-elf
16625 need_lib_prefix=no
16626 need_version=no
16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16628 soname_spec='${libname}${release}${shared_ext}$major'
16629 shlibpath_var=LD_LIBRARY_PATH
16630 shlibpath_overrides_runpath=yes
16631 hardcode_into_libs=yes
16632 if test "$with_gnu_ld" = yes; then
16633 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16634 else
16635 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16636 case $host_os in
16637 sco3.2v5*)
16638 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16639 ;;
16640 esac
16641 fi
16642 sys_lib_dlsearch_path_spec='/usr/lib'
16643 ;;
16644
16645tpf*)
16646 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016647 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016648 need_lib_prefix=no
16649 need_version=no
16650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16651 shlibpath_var=LD_LIBRARY_PATH
16652 shlibpath_overrides_runpath=no
16653 hardcode_into_libs=yes
16654 ;;
16655
16656uts4*)
cristy99bd5232011-12-07 14:38:20 +000016657 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16659 soname_spec='${libname}${release}${shared_ext}$major'
16660 shlibpath_var=LD_LIBRARY_PATH
16661 ;;
16662
16663*)
16664 dynamic_linker=no
16665 ;;
16666esac
16667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16668$as_echo "$dynamic_linker" >&6; }
16669test "$dynamic_linker" = no && can_build_shared=no
16670
16671variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16672if test "$GCC" = yes; then
16673 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16674fi
16675
16676if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16677 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16678fi
16679if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16680 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16681fi
16682
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
cristy0c60a692010-11-04 01:09:47 +000016769
16770
16771
16772
16773
cristy73bd4a52010-10-05 11:24:23 +000016774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16775$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16776hardcode_action=
16777if test -n "$hardcode_libdir_flag_spec" ||
16778 test -n "$runpath_var" ||
16779 test "X$hardcode_automatic" = "Xyes" ; then
16780
16781 # We can hardcode non-existent directories.
16782 if test "$hardcode_direct" != no &&
16783 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16784 # have to relink, otherwise we might link with an installed library
16785 # when we should be linking with a yet-to-be-installed one
16786 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16787 test "$hardcode_minus_L" != no; then
16788 # Linking always hardcodes the temporary library directory.
16789 hardcode_action=relink
16790 else
16791 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16792 hardcode_action=immediate
16793 fi
16794else
16795 # We cannot hardcode anything, or else we can only hardcode existing
16796 # directories.
16797 hardcode_action=unsupported
16798fi
16799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16800$as_echo "$hardcode_action" >&6; }
16801
16802if test "$hardcode_action" = relink ||
16803 test "$inherit_rpath" = yes; then
16804 # Fast installation is not supported
16805 enable_fast_install=no
16806elif test "$shlibpath_overrides_runpath" = yes ||
16807 test "$enable_shared" = no; then
16808 # Fast installation is not necessary
16809 enable_fast_install=needless
16810fi
16811
16812
16813
16814
16815
16816
16817 if test "x$enable_dlopen" != xyes; then
16818 enable_dlopen=unknown
16819 enable_dlopen_self=unknown
16820 enable_dlopen_self_static=unknown
16821else
16822 lt_cv_dlopen=no
16823 lt_cv_dlopen_libs=
16824
16825 case $host_os in
16826 beos*)
16827 lt_cv_dlopen="load_add_on"
16828 lt_cv_dlopen_libs=
16829 lt_cv_dlopen_self=yes
16830 ;;
16831
16832 mingw* | pw32* | cegcc*)
16833 lt_cv_dlopen="LoadLibrary"
16834 lt_cv_dlopen_libs=
16835 ;;
16836
16837 cygwin*)
16838 lt_cv_dlopen="dlopen"
16839 lt_cv_dlopen_libs=
16840 ;;
16841
16842 darwin*)
16843 # if libdl is installed we need to link against it
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16845$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016846if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016847 $as_echo_n "(cached) " >&6
16848else
16849 ac_check_lib_save_LIBS=$LIBS
16850LIBS="-ldl $LIBS"
16851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16852/* end confdefs.h. */
16853
16854/* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857#ifdef __cplusplus
16858extern "C"
16859#endif
16860char dlopen ();
16861int
16862main ()
16863{
16864return dlopen ();
16865 ;
16866 return 0;
16867}
16868_ACEOF
16869if ac_fn_c_try_link "$LINENO"; then :
16870 ac_cv_lib_dl_dlopen=yes
16871else
16872 ac_cv_lib_dl_dlopen=no
16873fi
16874rm -f core conftest.err conftest.$ac_objext \
16875 conftest$ac_exeext conftest.$ac_ext
16876LIBS=$ac_check_lib_save_LIBS
16877fi
16878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16879$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016880if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016881 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16882else
16883
16884 lt_cv_dlopen="dyld"
16885 lt_cv_dlopen_libs=
16886 lt_cv_dlopen_self=yes
16887
16888fi
16889
16890 ;;
16891
16892 *)
16893 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016894if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016895 lt_cv_dlopen="shl_load"
16896else
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16898$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016899if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016900 $as_echo_n "(cached) " >&6
16901else
16902 ac_check_lib_save_LIBS=$LIBS
16903LIBS="-ldld $LIBS"
16904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16905/* end confdefs.h. */
16906
16907/* Override any GCC internal prototype to avoid an error.
16908 Use char because int might match the return type of a GCC
16909 builtin and then its argument prototype would still apply. */
16910#ifdef __cplusplus
16911extern "C"
16912#endif
16913char shl_load ();
16914int
16915main ()
16916{
16917return shl_load ();
16918 ;
16919 return 0;
16920}
16921_ACEOF
16922if ac_fn_c_try_link "$LINENO"; then :
16923 ac_cv_lib_dld_shl_load=yes
16924else
16925 ac_cv_lib_dld_shl_load=no
16926fi
16927rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16929LIBS=$ac_check_lib_save_LIBS
16930fi
16931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16932$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016933if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016934 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16935else
16936 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016937if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016938 lt_cv_dlopen="dlopen"
16939else
16940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16941$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016942if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016943 $as_echo_n "(cached) " >&6
16944else
16945 ac_check_lib_save_LIBS=$LIBS
16946LIBS="-ldl $LIBS"
16947cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16948/* end confdefs.h. */
16949
16950/* Override any GCC internal prototype to avoid an error.
16951 Use char because int might match the return type of a GCC
16952 builtin and then its argument prototype would still apply. */
16953#ifdef __cplusplus
16954extern "C"
16955#endif
16956char dlopen ();
16957int
16958main ()
16959{
16960return dlopen ();
16961 ;
16962 return 0;
16963}
16964_ACEOF
16965if ac_fn_c_try_link "$LINENO"; then :
16966 ac_cv_lib_dl_dlopen=yes
16967else
16968 ac_cv_lib_dl_dlopen=no
16969fi
16970rm -f core conftest.err conftest.$ac_objext \
16971 conftest$ac_exeext conftest.$ac_ext
16972LIBS=$ac_check_lib_save_LIBS
16973fi
16974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16975$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016976if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016977 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16978else
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
16980$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016981if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016982 $as_echo_n "(cached) " >&6
16983else
16984 ac_check_lib_save_LIBS=$LIBS
16985LIBS="-lsvld $LIBS"
16986cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16987/* end confdefs.h. */
16988
16989/* Override any GCC internal prototype to avoid an error.
16990 Use char because int might match the return type of a GCC
16991 builtin and then its argument prototype would still apply. */
16992#ifdef __cplusplus
16993extern "C"
16994#endif
16995char dlopen ();
16996int
16997main ()
16998{
16999return dlopen ();
17000 ;
17001 return 0;
17002}
17003_ACEOF
17004if ac_fn_c_try_link "$LINENO"; then :
17005 ac_cv_lib_svld_dlopen=yes
17006else
17007 ac_cv_lib_svld_dlopen=no
17008fi
17009rm -f core conftest.err conftest.$ac_objext \
17010 conftest$ac_exeext conftest.$ac_ext
17011LIBS=$ac_check_lib_save_LIBS
17012fi
17013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17014$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017015if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017016 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17017else
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17019$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017020if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017021 $as_echo_n "(cached) " >&6
17022else
17023 ac_check_lib_save_LIBS=$LIBS
17024LIBS="-ldld $LIBS"
17025cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17026/* end confdefs.h. */
17027
17028/* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17031#ifdef __cplusplus
17032extern "C"
17033#endif
17034char dld_link ();
17035int
17036main ()
17037{
17038return dld_link ();
17039 ;
17040 return 0;
17041}
17042_ACEOF
17043if ac_fn_c_try_link "$LINENO"; then :
17044 ac_cv_lib_dld_dld_link=yes
17045else
17046 ac_cv_lib_dld_dld_link=no
17047fi
17048rm -f core conftest.err conftest.$ac_objext \
17049 conftest$ac_exeext conftest.$ac_ext
17050LIBS=$ac_check_lib_save_LIBS
17051fi
17052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17053$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017054if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017055 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17056fi
17057
17058
17059fi
17060
17061
17062fi
17063
17064
17065fi
17066
17067
17068fi
17069
17070
17071fi
17072
17073 ;;
17074 esac
17075
17076 if test "x$lt_cv_dlopen" != xno; then
17077 enable_dlopen=yes
17078 else
17079 enable_dlopen=no
17080 fi
17081
17082 case $lt_cv_dlopen in
17083 dlopen)
17084 save_CPPFLAGS="$CPPFLAGS"
17085 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17086
17087 save_LDFLAGS="$LDFLAGS"
17088 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17089
17090 save_LIBS="$LIBS"
17091 LIBS="$lt_cv_dlopen_libs $LIBS"
17092
17093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17094$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017095if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017096 $as_echo_n "(cached) " >&6
17097else
17098 if test "$cross_compiling" = yes; then :
17099 lt_cv_dlopen_self=cross
17100else
17101 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17102 lt_status=$lt_dlunknown
17103 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017104#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017105#include "confdefs.h"
17106
17107#if HAVE_DLFCN_H
17108#include <dlfcn.h>
17109#endif
17110
17111#include <stdio.h>
17112
17113#ifdef RTLD_GLOBAL
17114# define LT_DLGLOBAL RTLD_GLOBAL
17115#else
17116# ifdef DL_GLOBAL
17117# define LT_DLGLOBAL DL_GLOBAL
17118# else
17119# define LT_DLGLOBAL 0
17120# endif
17121#endif
17122
17123/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17124 find out it does not work in some platform. */
17125#ifndef LT_DLLAZY_OR_NOW
17126# ifdef RTLD_LAZY
17127# define LT_DLLAZY_OR_NOW RTLD_LAZY
17128# else
17129# ifdef DL_LAZY
17130# define LT_DLLAZY_OR_NOW DL_LAZY
17131# else
17132# ifdef RTLD_NOW
17133# define LT_DLLAZY_OR_NOW RTLD_NOW
17134# else
17135# ifdef DL_NOW
17136# define LT_DLLAZY_OR_NOW DL_NOW
17137# else
17138# define LT_DLLAZY_OR_NOW 0
17139# endif
17140# endif
17141# endif
17142# endif
17143#endif
17144
cristy0c60a692010-11-04 01:09:47 +000017145/* When -fvisbility=hidden is used, assume the code has been annotated
17146 correspondingly for the symbols needed. */
17147#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017148int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017149#endif
17150
cristyda16f162011-02-19 23:52:17 +000017151int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017152int main ()
17153{
17154 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17155 int status = $lt_dlunknown;
17156
17157 if (self)
17158 {
17159 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017160 else
17161 {
17162 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17163 else puts (dlerror ());
17164 }
cristy73bd4a52010-10-05 11:24:23 +000017165 /* dlclose (self); */
17166 }
17167 else
17168 puts (dlerror ());
17169
17170 return status;
17171}
17172_LT_EOF
17173 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17174 (eval $ac_link) 2>&5
17175 ac_status=$?
17176 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17177 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17178 (./conftest; exit; ) >&5 2>/dev/null
17179 lt_status=$?
17180 case x$lt_status in
17181 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17182 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17183 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17184 esac
17185 else :
17186 # compilation failed
17187 lt_cv_dlopen_self=no
17188 fi
17189fi
17190rm -fr conftest*
17191
17192
17193fi
17194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17195$as_echo "$lt_cv_dlopen_self" >&6; }
17196
17197 if test "x$lt_cv_dlopen_self" = xyes; then
17198 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17200$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017201if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017202 $as_echo_n "(cached) " >&6
17203else
17204 if test "$cross_compiling" = yes; then :
17205 lt_cv_dlopen_self_static=cross
17206else
17207 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17208 lt_status=$lt_dlunknown
17209 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017210#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017211#include "confdefs.h"
17212
17213#if HAVE_DLFCN_H
17214#include <dlfcn.h>
17215#endif
17216
17217#include <stdio.h>
17218
17219#ifdef RTLD_GLOBAL
17220# define LT_DLGLOBAL RTLD_GLOBAL
17221#else
17222# ifdef DL_GLOBAL
17223# define LT_DLGLOBAL DL_GLOBAL
17224# else
17225# define LT_DLGLOBAL 0
17226# endif
17227#endif
17228
17229/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17230 find out it does not work in some platform. */
17231#ifndef LT_DLLAZY_OR_NOW
17232# ifdef RTLD_LAZY
17233# define LT_DLLAZY_OR_NOW RTLD_LAZY
17234# else
17235# ifdef DL_LAZY
17236# define LT_DLLAZY_OR_NOW DL_LAZY
17237# else
17238# ifdef RTLD_NOW
17239# define LT_DLLAZY_OR_NOW RTLD_NOW
17240# else
17241# ifdef DL_NOW
17242# define LT_DLLAZY_OR_NOW DL_NOW
17243# else
17244# define LT_DLLAZY_OR_NOW 0
17245# endif
17246# endif
17247# endif
17248# endif
17249#endif
17250
cristy0c60a692010-11-04 01:09:47 +000017251/* When -fvisbility=hidden is used, assume the code has been annotated
17252 correspondingly for the symbols needed. */
17253#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017254int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017255#endif
17256
cristyda16f162011-02-19 23:52:17 +000017257int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017258int main ()
17259{
17260 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17261 int status = $lt_dlunknown;
17262
17263 if (self)
17264 {
17265 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017266 else
17267 {
17268 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17269 else puts (dlerror ());
17270 }
cristy73bd4a52010-10-05 11:24:23 +000017271 /* dlclose (self); */
17272 }
17273 else
17274 puts (dlerror ());
17275
17276 return status;
17277}
17278_LT_EOF
17279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17280 (eval $ac_link) 2>&5
17281 ac_status=$?
17282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17283 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17284 (./conftest; exit; ) >&5 2>/dev/null
17285 lt_status=$?
17286 case x$lt_status in
17287 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17288 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17289 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17290 esac
17291 else :
17292 # compilation failed
17293 lt_cv_dlopen_self_static=no
17294 fi
17295fi
17296rm -fr conftest*
17297
17298
17299fi
17300{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17301$as_echo "$lt_cv_dlopen_self_static" >&6; }
17302 fi
17303
17304 CPPFLAGS="$save_CPPFLAGS"
17305 LDFLAGS="$save_LDFLAGS"
17306 LIBS="$save_LIBS"
17307 ;;
17308 esac
17309
17310 case $lt_cv_dlopen_self in
17311 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17312 *) enable_dlopen_self=unknown ;;
17313 esac
17314
17315 case $lt_cv_dlopen_self_static in
17316 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17317 *) enable_dlopen_self_static=unknown ;;
17318 esac
17319fi
17320
17321
17322
17323
17324
17325
17326
17327
17328
17329
17330
17331
17332
17333
17334
17335
17336
17337striplib=
17338old_striplib=
17339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17340$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17341if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17342 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17343 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17345$as_echo "yes" >&6; }
17346else
17347# FIXME - insert some real tests, host_os isn't really good enough
17348 case $host_os in
17349 darwin*)
17350 if test -n "$STRIP" ; then
17351 striplib="$STRIP -x"
17352 old_striplib="$STRIP -S"
17353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17354$as_echo "yes" >&6; }
17355 else
17356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17357$as_echo "no" >&6; }
17358 fi
17359 ;;
17360 *)
17361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17362$as_echo "no" >&6; }
17363 ;;
17364 esac
17365fi
17366
17367
17368
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378 # Report which library types will actually be built
17379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17380$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17382$as_echo "$can_build_shared" >&6; }
17383
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17385$as_echo_n "checking whether to build shared libraries... " >&6; }
17386 test "$can_build_shared" = "no" && enable_shared=no
17387
17388 # On AIX, shared libraries and static libraries use the same namespace, and
17389 # are all built from PIC.
17390 case $host_os in
17391 aix3*)
17392 test "$enable_shared" = yes && enable_static=no
17393 if test -n "$RANLIB"; then
17394 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17395 postinstall_cmds='$RANLIB $lib'
17396 fi
17397 ;;
17398
17399 aix[4-9]*)
17400 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17401 test "$enable_shared" = yes && enable_static=no
17402 fi
17403 ;;
17404 esac
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17406$as_echo "$enable_shared" >&6; }
17407
17408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17409$as_echo_n "checking whether to build static libraries... " >&6; }
17410 # Make sure either enable_shared or enable_static is yes.
17411 test "$enable_shared" = yes || enable_static=yes
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17413$as_echo "$enable_static" >&6; }
17414
17415
17416
17417
17418fi
17419ac_ext=c
17420ac_cpp='$CPP $CPPFLAGS'
17421ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17422ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17423ac_compiler_gnu=$ac_cv_c_compiler_gnu
17424
17425CC="$lt_save_CC"
17426
cristy0c60a692010-11-04 01:09:47 +000017427 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17428 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17429 (test "X$CXX" != "Xg++"))) ; then
17430 ac_ext=cpp
17431ac_cpp='$CXXCPP $CPPFLAGS'
17432ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17433ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17434ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17436$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17437if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017438 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017439 $as_echo_n "(cached) " >&6
17440else
17441 # Double quotes because CXXCPP needs to be expanded
17442 for CXXCPP in "$CXX -E" "/lib/cpp"
17443 do
17444 ac_preproc_ok=false
17445for ac_cxx_preproc_warn_flag in '' yes
17446do
17447 # Use a header file that comes with gcc, so configuring glibc
17448 # with a fresh cross-compiler works.
17449 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17450 # <limits.h> exists even on freestanding compilers.
17451 # On the NeXT, cc -E runs the code through the compiler's parser,
17452 # not just through cpp. "Syntax error" is here to catch this case.
17453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17454/* end confdefs.h. */
17455#ifdef __STDC__
17456# include <limits.h>
17457#else
17458# include <assert.h>
17459#endif
17460 Syntax error
17461_ACEOF
17462if ac_fn_cxx_try_cpp "$LINENO"; then :
17463
17464else
17465 # Broken: fails on valid input.
17466continue
17467fi
cristyda16f162011-02-19 23:52:17 +000017468rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017469
17470 # OK, works on sane cases. Now check whether nonexistent headers
17471 # can be detected and how.
17472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17473/* end confdefs.h. */
17474#include <ac_nonexistent.h>
17475_ACEOF
17476if ac_fn_cxx_try_cpp "$LINENO"; then :
17477 # Broken: success on invalid input.
17478continue
17479else
17480 # Passes both tests.
17481ac_preproc_ok=:
17482break
17483fi
cristyda16f162011-02-19 23:52:17 +000017484rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017485
17486done
17487# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017488rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017489if $ac_preproc_ok; then :
17490 break
17491fi
17492
17493 done
17494 ac_cv_prog_CXXCPP=$CXXCPP
17495
17496fi
17497 CXXCPP=$ac_cv_prog_CXXCPP
17498else
17499 ac_cv_prog_CXXCPP=$CXXCPP
17500fi
17501{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17502$as_echo "$CXXCPP" >&6; }
17503ac_preproc_ok=false
17504for ac_cxx_preproc_warn_flag in '' yes
17505do
17506 # Use a header file that comes with gcc, so configuring glibc
17507 # with a fresh cross-compiler works.
17508 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17509 # <limits.h> exists even on freestanding compilers.
17510 # On the NeXT, cc -E runs the code through the compiler's parser,
17511 # not just through cpp. "Syntax error" is here to catch this case.
17512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17513/* end confdefs.h. */
17514#ifdef __STDC__
17515# include <limits.h>
17516#else
17517# include <assert.h>
17518#endif
17519 Syntax error
17520_ACEOF
17521if ac_fn_cxx_try_cpp "$LINENO"; then :
17522
17523else
17524 # Broken: fails on valid input.
17525continue
17526fi
cristyda16f162011-02-19 23:52:17 +000017527rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017528
17529 # OK, works on sane cases. Now check whether nonexistent headers
17530 # can be detected and how.
17531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17532/* end confdefs.h. */
17533#include <ac_nonexistent.h>
17534_ACEOF
17535if ac_fn_cxx_try_cpp "$LINENO"; then :
17536 # Broken: success on invalid input.
17537continue
17538else
17539 # Passes both tests.
17540ac_preproc_ok=:
17541break
17542fi
cristyda16f162011-02-19 23:52:17 +000017543rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017544
17545done
17546# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017547rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017548if $ac_preproc_ok; then :
17549
17550else
17551 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17552$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17553as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17554See \`config.log' for more details" "$LINENO" 5; }
17555fi
17556
17557ac_ext=c
17558ac_cpp='$CPP $CPPFLAGS'
17559ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17560ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17561ac_compiler_gnu=$ac_cv_c_compiler_gnu
17562
17563else
17564 _lt_caught_CXX_error=yes
17565fi
cristy73bd4a52010-10-05 11:24:23 +000017566
17567ac_ext=cpp
17568ac_cpp='$CXXCPP $CPPFLAGS'
17569ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17570ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17571ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17572
17573archive_cmds_need_lc_CXX=no
17574allow_undefined_flag_CXX=
17575always_export_symbols_CXX=no
17576archive_expsym_cmds_CXX=
17577compiler_needs_object_CXX=no
17578export_dynamic_flag_spec_CXX=
17579hardcode_direct_CXX=no
17580hardcode_direct_absolute_CXX=no
17581hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017582hardcode_libdir_separator_CXX=
17583hardcode_minus_L_CXX=no
17584hardcode_shlibpath_var_CXX=unsupported
17585hardcode_automatic_CXX=no
17586inherit_rpath_CXX=no
17587module_cmds_CXX=
17588module_expsym_cmds_CXX=
17589link_all_deplibs_CXX=unknown
17590old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017591reload_flag_CXX=$reload_flag
17592reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017593no_undefined_flag_CXX=
17594whole_archive_flag_spec_CXX=
17595enable_shared_with_static_runtimes_CXX=no
17596
17597# Source file extension for C++ test sources.
17598ac_ext=cpp
17599
17600# Object file extension for compiled C++ test sources.
17601objext=o
17602objext_CXX=$objext
17603
17604# No sense in running all these tests if we already determined that
17605# the CXX compiler isn't working. Some variables (like enable_shared)
17606# are currently assumed to apply to all compilers on this platform,
17607# and will be corrupted by setting them based on a non-working compiler.
17608if test "$_lt_caught_CXX_error" != yes; then
17609 # Code to be used in simple compile tests
17610 lt_simple_compile_test_code="int some_variable = 0;"
17611
17612 # Code to be used in simple link tests
17613 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17614
17615 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17616
17617
17618
17619
17620
17621
17622# If no C compiler was specified, use CC.
17623LTCC=${LTCC-"$CC"}
17624
17625# If no C compiler flags were specified, use CFLAGS.
17626LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17627
17628# Allow CC to be a program name with arguments.
17629compiler=$CC
17630
17631
17632 # save warnings/boilerplate of simple test code
17633 ac_outfile=conftest.$ac_objext
17634echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17635eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17636_lt_compiler_boilerplate=`cat conftest.err`
17637$RM conftest*
17638
17639 ac_outfile=conftest.$ac_objext
17640echo "$lt_simple_link_test_code" >conftest.$ac_ext
17641eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17642_lt_linker_boilerplate=`cat conftest.err`
17643$RM -r conftest*
17644
17645
17646 # Allow CC to be a program name with arguments.
17647 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017648 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017649 lt_save_LD=$LD
17650 lt_save_GCC=$GCC
17651 GCC=$GXX
17652 lt_save_with_gnu_ld=$with_gnu_ld
17653 lt_save_path_LD=$lt_cv_path_LD
17654 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17655 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17656 else
17657 $as_unset lt_cv_prog_gnu_ld
17658 fi
17659 if test -n "${lt_cv_path_LDCXX+set}"; then
17660 lt_cv_path_LD=$lt_cv_path_LDCXX
17661 else
17662 $as_unset lt_cv_path_LD
17663 fi
17664 test -z "${LDCXX+set}" || LD=$LDCXX
17665 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017666 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017667 compiler=$CC
17668 compiler_CXX=$CC
17669 for cc_temp in $compiler""; do
17670 case $cc_temp in
17671 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17672 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17673 \-*) ;;
17674 *) break;;
17675 esac
17676done
cristy0c60a692010-11-04 01:09:47 +000017677cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017678
17679
17680 if test -n "$compiler"; then
17681 # We don't want -fno-exception when compiling C++ code, so set the
17682 # no_builtin_flag separately
17683 if test "$GXX" = yes; then
17684 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17685 else
17686 lt_prog_compiler_no_builtin_flag_CXX=
17687 fi
17688
17689 if test "$GXX" = yes; then
17690 # Set up default GNU C++ configuration
17691
17692
17693
17694# Check whether --with-gnu-ld was given.
17695if test "${with_gnu_ld+set}" = set; then :
17696 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17697else
17698 with_gnu_ld=no
17699fi
17700
17701ac_prog=ld
17702if test "$GCC" = yes; then
17703 # Check if gcc -print-prog-name=ld gives a path.
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17705$as_echo_n "checking for ld used by $CC... " >&6; }
17706 case $host in
17707 *-*-mingw*)
17708 # gcc leaves a trailing carriage return which upsets mingw
17709 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17710 *)
17711 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17712 esac
17713 case $ac_prog in
17714 # Accept absolute paths.
17715 [\\/]* | ?:[\\/]*)
17716 re_direlt='/[^/][^/]*/\.\./'
17717 # Canonicalize the pathname of ld
17718 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17719 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17720 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17721 done
17722 test -z "$LD" && LD="$ac_prog"
17723 ;;
17724 "")
17725 # If it fails, then pretend we aren't using GCC.
17726 ac_prog=ld
17727 ;;
17728 *)
17729 # If it is relative, then search for the first ld in PATH.
17730 with_gnu_ld=unknown
17731 ;;
17732 esac
17733elif test "$with_gnu_ld" = yes; then
17734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17735$as_echo_n "checking for GNU ld... " >&6; }
17736else
17737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17738$as_echo_n "checking for non-GNU ld... " >&6; }
17739fi
cristyda16f162011-02-19 23:52:17 +000017740if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017741 $as_echo_n "(cached) " >&6
17742else
17743 if test -z "$LD"; then
17744 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17745 for ac_dir in $PATH; do
17746 IFS="$lt_save_ifs"
17747 test -z "$ac_dir" && ac_dir=.
17748 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17749 lt_cv_path_LD="$ac_dir/$ac_prog"
17750 # Check to see if the program is GNU ld. I'd rather use --version,
17751 # but apparently some variants of GNU ld only accept -v.
17752 # Break only if it was the GNU/non-GNU ld that we prefer.
17753 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17754 *GNU* | *'with BFD'*)
17755 test "$with_gnu_ld" != no && break
17756 ;;
17757 *)
17758 test "$with_gnu_ld" != yes && break
17759 ;;
17760 esac
17761 fi
17762 done
17763 IFS="$lt_save_ifs"
17764else
17765 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17766fi
17767fi
17768
17769LD="$lt_cv_path_LD"
17770if test -n "$LD"; then
17771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17772$as_echo "$LD" >&6; }
17773else
17774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17775$as_echo "no" >&6; }
17776fi
cristy98dddb52010-11-04 00:30:15 +000017777test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17779$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017780if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017781 $as_echo_n "(cached) " >&6
17782else
17783 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17784case `$LD -v 2>&1 </dev/null` in
17785*GNU* | *'with BFD'*)
17786 lt_cv_prog_gnu_ld=yes
17787 ;;
17788*)
17789 lt_cv_prog_gnu_ld=no
17790 ;;
17791esac
17792fi
17793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17794$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17795with_gnu_ld=$lt_cv_prog_gnu_ld
17796
17797
17798
17799
17800
17801
17802
17803 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17804 # archiving commands below assume that GNU ld is being used.
17805 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017806 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17807 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 +000017808
17809 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17810 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17811
17812 # If archive_cmds runs LD, not CC, wlarc should be empty
17813 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17814 # investigate it a little bit more. (MM)
17815 wlarc='${wl}'
17816
17817 # ancient GNU ld didn't support --whole-archive et. al.
17818 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17819 $GREP 'no-whole-archive' > /dev/null; then
17820 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17821 else
17822 whole_archive_flag_spec_CXX=
17823 fi
17824 else
17825 with_gnu_ld=no
17826 wlarc=
17827
17828 # A generic and very simple default shared library creation
17829 # command for GNU C++ for the case where it uses the native
17830 # linker, instead of GNU ld. If possible, this setting should
17831 # overridden to take advantage of the native linker features on
17832 # the platform it is being used on.
17833 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17834 fi
17835
17836 # Commands to make compiler produce verbose output that lists
17837 # what "hidden" libraries, object files and flags are used when
17838 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017839 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017840
17841 else
17842 GXX=no
17843 with_gnu_ld=no
17844 wlarc=
17845 fi
17846
17847 # PORTME: fill in a description of your system's C++ link characteristics
17848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17849$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17850 ld_shlibs_CXX=yes
17851 case $host_os in
17852 aix3*)
17853 # FIXME: insert proper C++ library support
17854 ld_shlibs_CXX=no
17855 ;;
17856 aix[4-9]*)
17857 if test "$host_cpu" = ia64; then
17858 # On IA64, the linker does run time linking by default, so we don't
17859 # have to do anything special.
17860 aix_use_runtimelinking=no
17861 exp_sym_flag='-Bexport'
17862 no_entry_flag=""
17863 else
17864 aix_use_runtimelinking=no
17865
17866 # Test if we are trying to use run time linking or normal
17867 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17868 # need to do runtime linking.
17869 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17870 for ld_flag in $LDFLAGS; do
17871 case $ld_flag in
17872 *-brtl*)
17873 aix_use_runtimelinking=yes
17874 break
17875 ;;
17876 esac
17877 done
17878 ;;
17879 esac
17880
17881 exp_sym_flag='-bexport'
17882 no_entry_flag='-bnoentry'
17883 fi
17884
17885 # When large executables or shared objects are built, AIX ld can
17886 # have problems creating the table of contents. If linking a library
17887 # or program results in "error TOC overflow" add -mminimal-toc to
17888 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17889 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17890
17891 archive_cmds_CXX=''
17892 hardcode_direct_CXX=yes
17893 hardcode_direct_absolute_CXX=yes
17894 hardcode_libdir_separator_CXX=':'
17895 link_all_deplibs_CXX=yes
17896 file_list_spec_CXX='${wl}-f,'
17897
17898 if test "$GXX" = yes; then
17899 case $host_os in aix4.[012]|aix4.[012].*)
17900 # We only want to do this on AIX 4.2 and lower, the check
17901 # below for broken collect2 doesn't work under 4.3+
17902 collect2name=`${CC} -print-prog-name=collect2`
17903 if test -f "$collect2name" &&
17904 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17905 then
17906 # We have reworked collect2
17907 :
17908 else
17909 # We have old collect2
17910 hardcode_direct_CXX=unsupported
17911 # It fails to find uninstalled libraries when the uninstalled
17912 # path is not listed in the libpath. Setting hardcode_minus_L
17913 # to unsupported forces relinking
17914 hardcode_minus_L_CXX=yes
17915 hardcode_libdir_flag_spec_CXX='-L$libdir'
17916 hardcode_libdir_separator_CXX=
17917 fi
17918 esac
17919 shared_flag='-shared'
17920 if test "$aix_use_runtimelinking" = yes; then
17921 shared_flag="$shared_flag "'${wl}-G'
17922 fi
17923 else
17924 # not using gcc
17925 if test "$host_cpu" = ia64; then
17926 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17927 # chokes on -Wl,-G. The following line is correct:
17928 shared_flag='-G'
17929 else
17930 if test "$aix_use_runtimelinking" = yes; then
17931 shared_flag='${wl}-G'
17932 else
17933 shared_flag='${wl}-bM:SRE'
17934 fi
17935 fi
17936 fi
17937
17938 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17939 # It seems that -bexpall does not export symbols beginning with
17940 # underscore (_), so it is better to generate a list of symbols to
17941 # export.
17942 always_export_symbols_CXX=yes
17943 if test "$aix_use_runtimelinking" = yes; then
17944 # Warning - without using the other runtime loading flags (-brtl),
17945 # -berok will link without error, but may produce a broken library.
17946 allow_undefined_flag_CXX='-berok'
17947 # Determine the default libpath from the value encoded in an empty
17948 # executable.
cristyda16f162011-02-19 23:52:17 +000017949 if test "${lt_cv_aix_libpath+set}" = set; then
17950 aix_libpath=$lt_cv_aix_libpath
17951else
17952 if ${lt_cv_aix_libpath__CXX+:} false; then :
17953 $as_echo_n "(cached) " >&6
17954else
17955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000017956/* end confdefs.h. */
17957
17958int
17959main ()
17960{
17961
17962 ;
17963 return 0;
17964}
17965_ACEOF
17966if ac_fn_cxx_try_link "$LINENO"; then :
17967
cristyda16f162011-02-19 23:52:17 +000017968 lt_aix_libpath_sed='
17969 /Import File Strings/,/^$/ {
17970 /^0/ {
17971 s/^0 *\([^ ]*\) *$/\1/
17972 p
17973 }
17974 }'
17975 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17976 # Check for a 64-bit object if we didn't find anything.
17977 if test -z "$lt_cv_aix_libpath__CXX"; then
17978 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17979 fi
cristy73bd4a52010-10-05 11:24:23 +000017980fi
17981rm -f core conftest.err conftest.$ac_objext \
17982 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000017983 if test -z "$lt_cv_aix_libpath__CXX"; then
17984 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
17985 fi
17986
17987fi
17988
17989 aix_libpath=$lt_cv_aix_libpath__CXX
17990fi
cristy73bd4a52010-10-05 11:24:23 +000017991
17992 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
17993
cristy0c60a692010-11-04 01:09:47 +000017994 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 +000017995 else
17996 if test "$host_cpu" = ia64; then
17997 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
17998 allow_undefined_flag_CXX="-z nodefs"
17999 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"
18000 else
18001 # Determine the default libpath from the value encoded in an
18002 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018003 if test "${lt_cv_aix_libpath+set}" = set; then
18004 aix_libpath=$lt_cv_aix_libpath
18005else
18006 if ${lt_cv_aix_libpath__CXX+:} false; then :
18007 $as_echo_n "(cached) " >&6
18008else
18009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018010/* end confdefs.h. */
18011
18012int
18013main ()
18014{
18015
18016 ;
18017 return 0;
18018}
18019_ACEOF
18020if ac_fn_cxx_try_link "$LINENO"; then :
18021
cristyda16f162011-02-19 23:52:17 +000018022 lt_aix_libpath_sed='
18023 /Import File Strings/,/^$/ {
18024 /^0/ {
18025 s/^0 *\([^ ]*\) *$/\1/
18026 p
18027 }
18028 }'
18029 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18030 # Check for a 64-bit object if we didn't find anything.
18031 if test -z "$lt_cv_aix_libpath__CXX"; then
18032 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18033 fi
cristy73bd4a52010-10-05 11:24:23 +000018034fi
18035rm -f core conftest.err conftest.$ac_objext \
18036 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018037 if test -z "$lt_cv_aix_libpath__CXX"; then
18038 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18039 fi
18040
18041fi
18042
18043 aix_libpath=$lt_cv_aix_libpath__CXX
18044fi
cristy73bd4a52010-10-05 11:24:23 +000018045
18046 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18047 # Warning - without using the other run time loading flags,
18048 # -berok will link without error, but may produce a broken library.
18049 no_undefined_flag_CXX=' ${wl}-bernotok'
18050 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018051 if test "$with_gnu_ld" = yes; then
18052 # We only use this code for GNU lds that support --whole-archive.
18053 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18054 else
18055 # Exported symbols can be pulled into shared objects from archives
18056 whole_archive_flag_spec_CXX='$convenience'
18057 fi
cristy73bd4a52010-10-05 11:24:23 +000018058 archive_cmds_need_lc_CXX=yes
18059 # This is similar to how AIX traditionally builds its shared
18060 # libraries.
18061 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'
18062 fi
18063 fi
18064 ;;
18065
18066 beos*)
18067 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18068 allow_undefined_flag_CXX=unsupported
18069 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18070 # support --undefined. This deserves some investigation. FIXME
18071 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18072 else
18073 ld_shlibs_CXX=no
18074 fi
18075 ;;
18076
18077 chorus*)
18078 case $cc_basename in
18079 *)
18080 # FIXME: insert proper C++ library support
18081 ld_shlibs_CXX=no
18082 ;;
18083 esac
18084 ;;
18085
18086 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018087 case $GXX,$cc_basename in
18088 ,cl* | no,cl*)
18089 # Native MSVC
18090 # hardcode_libdir_flag_spec is actually meaningless, as there is
18091 # no search path for DLLs.
18092 hardcode_libdir_flag_spec_CXX=' '
18093 allow_undefined_flag_CXX=unsupported
18094 always_export_symbols_CXX=yes
18095 file_list_spec_CXX='@'
18096 # Tell ltmain to make .lib files, not .a files.
18097 libext=lib
18098 # Tell ltmain to make .dll files, not .so files.
18099 shrext_cmds=".dll"
18100 # FIXME: Setting linknames here is a bad hack.
18101 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18102 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18103 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18104 else
18105 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18106 fi~
18107 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18108 linknames='
18109 # The linker will not automatically build a static lib if we build a DLL.
18110 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18111 enable_shared_with_static_runtimes_CXX=yes
18112 # Don't use ranlib
18113 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18114 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18115 lt_tool_outputfile="@TOOL_OUTPUT@"~
18116 case $lt_outputfile in
18117 *.exe|*.EXE) ;;
18118 *)
18119 lt_outputfile="$lt_outputfile.exe"
18120 lt_tool_outputfile="$lt_tool_outputfile.exe"
18121 ;;
18122 esac~
18123 func_to_tool_file "$lt_outputfile"~
18124 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18125 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18126 $RM "$lt_outputfile.manifest";
18127 fi'
18128 ;;
18129 *)
18130 # g++
18131 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18132 # as there is no search path for DLLs.
18133 hardcode_libdir_flag_spec_CXX='-L$libdir'
18134 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18135 allow_undefined_flag_CXX=unsupported
18136 always_export_symbols_CXX=no
18137 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018138
cristyda16f162011-02-19 23:52:17 +000018139 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18140 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'
18141 # If the export-symbols file already is a .def file (1st line
18142 # is EXPORTS), use it as is; otherwise, prepend...
18143 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18144 cp $export_symbols $output_objdir/$soname.def;
18145 else
18146 echo EXPORTS > $output_objdir/$soname.def;
18147 cat $export_symbols >> $output_objdir/$soname.def;
18148 fi~
18149 $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'
18150 else
18151 ld_shlibs_CXX=no
18152 fi
18153 ;;
18154 esac
18155 ;;
cristy73bd4a52010-10-05 11:24:23 +000018156 darwin* | rhapsody*)
18157
18158
18159 archive_cmds_need_lc_CXX=no
18160 hardcode_direct_CXX=no
18161 hardcode_automatic_CXX=yes
18162 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018163 if test "$lt_cv_ld_force_load" = "yes"; then
18164 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 +000018165
cristy0c60a692010-11-04 01:09:47 +000018166 else
18167 whole_archive_flag_spec_CXX=''
18168 fi
cristy73bd4a52010-10-05 11:24:23 +000018169 link_all_deplibs_CXX=yes
18170 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18171 case $cc_basename in
18172 ifort*) _lt_dar_can_shared=yes ;;
18173 *) _lt_dar_can_shared=$GCC ;;
18174 esac
18175 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018176 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018177 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}"
18178 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18179 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}"
18180 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}"
18181 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18182 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}"
18183 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}"
18184 fi
18185
18186 else
18187 ld_shlibs_CXX=no
18188 fi
18189
18190 ;;
18191
18192 dgux*)
18193 case $cc_basename in
18194 ec++*)
18195 # FIXME: insert proper C++ library support
18196 ld_shlibs_CXX=no
18197 ;;
18198 ghcx*)
18199 # Green Hills C++ Compiler
18200 # FIXME: insert proper C++ library support
18201 ld_shlibs_CXX=no
18202 ;;
18203 *)
18204 # FIXME: insert proper C++ library support
18205 ld_shlibs_CXX=no
18206 ;;
18207 esac
18208 ;;
18209
cristy99bd5232011-12-07 14:38:20 +000018210 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018211 # C++ shared libraries reported to be fairly broken before
18212 # switch to ELF
18213 ld_shlibs_CXX=no
18214 ;;
18215
18216 freebsd-elf*)
18217 archive_cmds_need_lc_CXX=no
18218 ;;
18219
18220 freebsd* | dragonfly*)
18221 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18222 # conventions
18223 ld_shlibs_CXX=yes
18224 ;;
18225
18226 gnu*)
18227 ;;
18228
cristy0c60a692010-11-04 01:09:47 +000018229 haiku*)
18230 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18231 link_all_deplibs_CXX=yes
18232 ;;
18233
cristy73bd4a52010-10-05 11:24:23 +000018234 hpux9*)
18235 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18236 hardcode_libdir_separator_CXX=:
18237 export_dynamic_flag_spec_CXX='${wl}-E'
18238 hardcode_direct_CXX=yes
18239 hardcode_minus_L_CXX=yes # Not in the search PATH,
18240 # but as the default
18241 # location of the library.
18242
18243 case $cc_basename in
18244 CC*)
18245 # FIXME: insert proper C++ library support
18246 ld_shlibs_CXX=no
18247 ;;
18248 aCC*)
18249 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'
18250 # Commands to make compiler produce verbose output that lists
18251 # what "hidden" libraries, object files and flags are used when
18252 # linking a shared library.
18253 #
18254 # There doesn't appear to be a way to prevent this compiler from
18255 # explicitly linking system object files so we need to strip them
18256 # from the output so that they don't get included in the library
18257 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018258 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 +000018259 ;;
18260 *)
18261 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018262 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 +000018263 else
18264 # FIXME: insert proper C++ library support
18265 ld_shlibs_CXX=no
18266 fi
18267 ;;
18268 esac
18269 ;;
18270
18271 hpux10*|hpux11*)
18272 if test $with_gnu_ld = no; then
18273 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18274 hardcode_libdir_separator_CXX=:
18275
18276 case $host_cpu in
18277 hppa*64*|ia64*)
18278 ;;
18279 *)
18280 export_dynamic_flag_spec_CXX='${wl}-E'
18281 ;;
18282 esac
18283 fi
18284 case $host_cpu in
18285 hppa*64*|ia64*)
18286 hardcode_direct_CXX=no
18287 hardcode_shlibpath_var_CXX=no
18288 ;;
18289 *)
18290 hardcode_direct_CXX=yes
18291 hardcode_direct_absolute_CXX=yes
18292 hardcode_minus_L_CXX=yes # Not in the search PATH,
18293 # but as the default
18294 # location of the library.
18295 ;;
18296 esac
18297
18298 case $cc_basename in
18299 CC*)
18300 # FIXME: insert proper C++ library support
18301 ld_shlibs_CXX=no
18302 ;;
18303 aCC*)
18304 case $host_cpu in
18305 hppa*64*)
18306 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18307 ;;
18308 ia64*)
18309 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18310 ;;
18311 *)
18312 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18313 ;;
18314 esac
18315 # Commands to make compiler produce verbose output that lists
18316 # what "hidden" libraries, object files and flags are used when
18317 # linking a shared library.
18318 #
18319 # There doesn't appear to be a way to prevent this compiler from
18320 # explicitly linking system object files so we need to strip them
18321 # from the output so that they don't get included in the library
18322 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018323 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 +000018324 ;;
18325 *)
18326 if test "$GXX" = yes; then
18327 if test $with_gnu_ld = no; then
18328 case $host_cpu in
18329 hppa*64*)
18330 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18331 ;;
18332 ia64*)
cristyda16f162011-02-19 23:52:17 +000018333 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 +000018334 ;;
18335 *)
cristyda16f162011-02-19 23:52:17 +000018336 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 +000018337 ;;
18338 esac
18339 fi
18340 else
18341 # FIXME: insert proper C++ library support
18342 ld_shlibs_CXX=no
18343 fi
18344 ;;
18345 esac
18346 ;;
18347
18348 interix[3-9]*)
18349 hardcode_direct_CXX=no
18350 hardcode_shlibpath_var_CXX=no
18351 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18352 export_dynamic_flag_spec_CXX='${wl}-E'
18353 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18354 # Instead, shared libraries are loaded at an image base (0x10000000 by
18355 # default) and relocated if they conflict, which is a slow very memory
18356 # consuming and fragmenting process. To avoid this, we pick a random,
18357 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18358 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18359 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'
18360 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'
18361 ;;
18362 irix5* | irix6*)
18363 case $cc_basename in
18364 CC*)
18365 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018366 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 +000018367
18368 # Archives containing C++ object files must be created using
18369 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18370 # necessary to make sure instantiated templates are included
18371 # in the archive.
18372 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18373 ;;
18374 *)
18375 if test "$GXX" = yes; then
18376 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018377 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 +000018378 else
cristyda16f162011-02-19 23:52:17 +000018379 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 +000018380 fi
18381 fi
18382 link_all_deplibs_CXX=yes
18383 ;;
18384 esac
18385 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18386 hardcode_libdir_separator_CXX=:
18387 inherit_rpath_CXX=yes
18388 ;;
18389
cristy0c60a692010-11-04 01:09:47 +000018390 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018391 case $cc_basename in
18392 KCC*)
18393 # Kuck and Associates, Inc. (KAI) C++ Compiler
18394
18395 # KCC will only create a shared library if the output file
18396 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18397 # to its proper name (with version) after linking.
18398 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'
18399 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'
18400 # Commands to make compiler produce verbose output that lists
18401 # what "hidden" libraries, object files and flags are used when
18402 # linking a shared library.
18403 #
18404 # There doesn't appear to be a way to prevent this compiler from
18405 # explicitly linking system object files so we need to strip them
18406 # from the output so that they don't get included in the library
18407 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018408 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 +000018409
18410 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18411 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18412
18413 # Archives containing C++ object files must be created using
18414 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18415 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18416 ;;
18417 icpc* | ecpc* )
18418 # Intel C++
18419 with_gnu_ld=yes
18420 # version 8.0 and above of icpc choke on multiply defined symbols
18421 # if we add $predep_objects and $postdep_objects, however 7.1 and
18422 # earlier do not add the objects themselves.
18423 case `$CC -V 2>&1` in
18424 *"Version 7."*)
18425 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18426 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'
18427 ;;
18428 *) # Version 8.0 or newer
18429 tmp_idyn=
18430 case $host_cpu in
18431 ia64*) tmp_idyn=' -i_dynamic';;
18432 esac
18433 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18434 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'
18435 ;;
18436 esac
18437 archive_cmds_need_lc_CXX=no
18438 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18439 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18440 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18441 ;;
18442 pgCC* | pgcpp*)
18443 # Portland Group C++ compiler
18444 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018445 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018446 prelink_cmds_CXX='tpldir=Template.dir~
18447 rm -rf $tpldir~
18448 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018449 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018450 old_archive_cmds_CXX='tpldir=Template.dir~
18451 rm -rf $tpldir~
18452 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018453 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018454 $RANLIB $oldlib'
18455 archive_cmds_CXX='tpldir=Template.dir~
18456 rm -rf $tpldir~
18457 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018458 $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 +000018459 archive_expsym_cmds_CXX='tpldir=Template.dir~
18460 rm -rf $tpldir~
18461 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018462 $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 +000018463 ;;
cristy0c60a692010-11-04 01:09:47 +000018464 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018465 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18466 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'
18467 ;;
18468 esac
18469
18470 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18471 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018472 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 +000018473 ;;
18474 cxx*)
18475 # Compaq C++
18476 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18477 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'
18478
18479 runpath_var=LD_RUN_PATH
18480 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18481 hardcode_libdir_separator_CXX=:
18482
18483 # Commands to make compiler produce verbose output that lists
18484 # what "hidden" libraries, object files and flags are used when
18485 # linking a shared library.
18486 #
18487 # There doesn't appear to be a way to prevent this compiler from
18488 # explicitly linking system object files so we need to strip them
18489 # from the output so that they don't get included in the library
18490 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018491 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 +000018492 ;;
cristy0c60a692010-11-04 01:09:47 +000018493 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018494 # IBM XL 8.0 on PPC, with GNU ld
18495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18497 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18498 if test "x$supports_anon_versioning" = xyes; then
18499 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18500 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18501 echo "local: *; };" >> $output_objdir/$libname.ver~
18502 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18503 fi
18504 ;;
18505 *)
18506 case `$CC -V 2>&1 | sed 5q` in
18507 *Sun\ C*)
18508 # Sun C++ 5.9
18509 no_undefined_flag_CXX=' -zdefs'
18510 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18511 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'
18512 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018513 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 +000018514 compiler_needs_object_CXX=yes
18515
18516 # Not sure whether something based on
18517 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18518 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018519 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018520
18521 # Archives containing C++ object files must be created using
18522 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18523 # necessary to make sure instantiated templates are included
18524 # in the archive.
18525 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18526 ;;
18527 esac
18528 ;;
18529 esac
18530 ;;
18531
18532 lynxos*)
18533 # FIXME: insert proper C++ library support
18534 ld_shlibs_CXX=no
18535 ;;
18536
18537 m88k*)
18538 # FIXME: insert proper C++ library support
18539 ld_shlibs_CXX=no
18540 ;;
18541
18542 mvs*)
18543 case $cc_basename in
18544 cxx*)
18545 # FIXME: insert proper C++ library support
18546 ld_shlibs_CXX=no
18547 ;;
18548 *)
18549 # FIXME: insert proper C++ library support
18550 ld_shlibs_CXX=no
18551 ;;
18552 esac
18553 ;;
18554
18555 netbsd*)
18556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18557 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18558 wlarc=
18559 hardcode_libdir_flag_spec_CXX='-R$libdir'
18560 hardcode_direct_CXX=yes
18561 hardcode_shlibpath_var_CXX=no
18562 fi
18563 # Workaround some broken pre-1.5 toolchains
18564 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18565 ;;
18566
18567 *nto* | *qnx*)
18568 ld_shlibs_CXX=yes
18569 ;;
18570
18571 openbsd2*)
18572 # C++ shared libraries are fairly broken
18573 ld_shlibs_CXX=no
18574 ;;
18575
18576 openbsd*)
18577 if test -f /usr/libexec/ld.so; then
18578 hardcode_direct_CXX=yes
18579 hardcode_shlibpath_var_CXX=no
18580 hardcode_direct_absolute_CXX=yes
18581 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18582 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18583 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18584 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18585 export_dynamic_flag_spec_CXX='${wl}-E'
18586 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18587 fi
cristy0c60a692010-11-04 01:09:47 +000018588 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018589 else
18590 ld_shlibs_CXX=no
18591 fi
18592 ;;
18593
18594 osf3* | osf4* | osf5*)
18595 case $cc_basename in
18596 KCC*)
18597 # Kuck and Associates, Inc. (KAI) C++ Compiler
18598
18599 # KCC will only create a shared library if the output file
18600 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18601 # to its proper name (with version) after linking.
18602 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'
18603
18604 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18605 hardcode_libdir_separator_CXX=:
18606
18607 # Archives containing C++ object files must be created using
18608 # the KAI C++ compiler.
18609 case $host in
18610 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18611 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18612 esac
18613 ;;
18614 RCC*)
18615 # Rational C++ 2.4.1
18616 # FIXME: insert proper C++ library support
18617 ld_shlibs_CXX=no
18618 ;;
18619 cxx*)
18620 case $host in
18621 osf3*)
18622 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018623 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 +000018624 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18625 ;;
18626 *)
18627 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018628 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 +000018629 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18630 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018631 $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 +000018632 $RM $lib.exp'
18633 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18634 ;;
18635 esac
18636
18637 hardcode_libdir_separator_CXX=:
18638
18639 # Commands to make compiler produce verbose output that lists
18640 # what "hidden" libraries, object files and flags are used when
18641 # linking a shared library.
18642 #
18643 # There doesn't appear to be a way to prevent this compiler from
18644 # explicitly linking system object files so we need to strip them
18645 # from the output so that they don't get included in the library
18646 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018647 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 +000018648 ;;
18649 *)
18650 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18651 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18652 case $host in
18653 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018654 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 +000018655 ;;
18656 *)
cristyda16f162011-02-19 23:52:17 +000018657 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 +000018658 ;;
18659 esac
18660
18661 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18662 hardcode_libdir_separator_CXX=:
18663
18664 # Commands to make compiler produce verbose output that lists
18665 # what "hidden" libraries, object files and flags are used when
18666 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018667 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018668
18669 else
18670 # FIXME: insert proper C++ library support
18671 ld_shlibs_CXX=no
18672 fi
18673 ;;
18674 esac
18675 ;;
18676
18677 psos*)
18678 # FIXME: insert proper C++ library support
18679 ld_shlibs_CXX=no
18680 ;;
18681
18682 sunos4*)
18683 case $cc_basename in
18684 CC*)
18685 # Sun C++ 4.x
18686 # FIXME: insert proper C++ library support
18687 ld_shlibs_CXX=no
18688 ;;
18689 lcc*)
18690 # Lucid
18691 # FIXME: insert proper C++ library support
18692 ld_shlibs_CXX=no
18693 ;;
18694 *)
18695 # FIXME: insert proper C++ library support
18696 ld_shlibs_CXX=no
18697 ;;
18698 esac
18699 ;;
18700
18701 solaris*)
18702 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018703 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018704 # Sun C++ 4.2, 5.x and Centerline C++
18705 archive_cmds_need_lc_CXX=yes
18706 no_undefined_flag_CXX=' -zdefs'
18707 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18708 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18709 $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'
18710
18711 hardcode_libdir_flag_spec_CXX='-R$libdir'
18712 hardcode_shlibpath_var_CXX=no
18713 case $host_os in
18714 solaris2.[0-5] | solaris2.[0-5].*) ;;
18715 *)
18716 # The compiler driver will combine and reorder linker options,
18717 # but understands `-z linker_flag'.
18718 # Supported since Solaris 2.6 (maybe 2.5.1?)
18719 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18720 ;;
18721 esac
18722 link_all_deplibs_CXX=yes
18723
cristy0c60a692010-11-04 01:09:47 +000018724 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018725
18726 # Archives containing C++ object files must be created using
18727 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18728 # necessary to make sure instantiated templates are included
18729 # in the archive.
18730 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18731 ;;
18732 gcx*)
18733 # Green Hills C++ Compiler
18734 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18735
18736 # The C++ compiler must be used to create the archive.
18737 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18738 ;;
18739 *)
18740 # GNU C++ compiler with Solaris linker
18741 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18742 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18743 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018744 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 +000018745 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 +000018746 $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 +000018747
18748 # Commands to make compiler produce verbose output that lists
18749 # what "hidden" libraries, object files and flags are used when
18750 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018751 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018752 else
18753 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18754 # platform.
18755 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18756 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18757 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18758
18759 # Commands to make compiler produce verbose output that lists
18760 # what "hidden" libraries, object files and flags are used when
18761 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018762 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018763 fi
18764
18765 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18766 case $host_os in
18767 solaris2.[0-5] | solaris2.[0-5].*) ;;
18768 *)
18769 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18770 ;;
18771 esac
18772 fi
18773 ;;
18774 esac
18775 ;;
18776
18777 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18778 no_undefined_flag_CXX='${wl}-z,text'
18779 archive_cmds_need_lc_CXX=no
18780 hardcode_shlibpath_var_CXX=no
18781 runpath_var='LD_RUN_PATH'
18782
18783 case $cc_basename in
18784 CC*)
18785 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18786 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18787 ;;
18788 *)
18789 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18790 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18791 ;;
18792 esac
18793 ;;
18794
18795 sysv5* | sco3.2v5* | sco5v6*)
18796 # Note: We can NOT use -z defs as we might desire, because we do not
18797 # link with -lc, and that would cause any symbols used from libc to
18798 # always be unresolved, which means just about no library would
18799 # ever link correctly. If we're not using GNU ld we use -z text
18800 # though, which does catch some bad symbols but isn't as heavy-handed
18801 # as -z defs.
18802 no_undefined_flag_CXX='${wl}-z,text'
18803 allow_undefined_flag_CXX='${wl}-z,nodefs'
18804 archive_cmds_need_lc_CXX=no
18805 hardcode_shlibpath_var_CXX=no
18806 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18807 hardcode_libdir_separator_CXX=':'
18808 link_all_deplibs_CXX=yes
18809 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18810 runpath_var='LD_RUN_PATH'
18811
18812 case $cc_basename in
18813 CC*)
18814 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18815 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 +000018816 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18817 '"$old_archive_cmds_CXX"
18818 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18819 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018820 ;;
18821 *)
18822 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18823 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18824 ;;
18825 esac
18826 ;;
18827
18828 tandem*)
18829 case $cc_basename in
18830 NCC*)
18831 # NonStop-UX NCC 3.20
18832 # FIXME: insert proper C++ library support
18833 ld_shlibs_CXX=no
18834 ;;
18835 *)
18836 # FIXME: insert proper C++ library support
18837 ld_shlibs_CXX=no
18838 ;;
18839 esac
18840 ;;
18841
18842 vxworks*)
18843 # FIXME: insert proper C++ library support
18844 ld_shlibs_CXX=no
18845 ;;
18846
18847 *)
18848 # FIXME: insert proper C++ library support
18849 ld_shlibs_CXX=no
18850 ;;
18851 esac
18852
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18854$as_echo "$ld_shlibs_CXX" >&6; }
18855 test "$ld_shlibs_CXX" = no && can_build_shared=no
18856
18857 GCC_CXX="$GXX"
18858 LD_CXX="$LD"
18859
18860 ## CAVEAT EMPTOR:
18861 ## There is no encapsulation within the following macros, do not change
18862 ## the running order or otherwise move them around unless you know exactly
18863 ## what you are doing...
18864 # Dependencies to place before and after the object being linked:
18865predep_objects_CXX=
18866postdep_objects_CXX=
18867predeps_CXX=
18868postdeps_CXX=
18869compiler_lib_search_path_CXX=
18870
18871cat > conftest.$ac_ext <<_LT_EOF
18872class Foo
18873{
18874public:
18875 Foo (void) { a = 0; }
18876private:
18877 int a;
18878};
18879_LT_EOF
18880
cristyda16f162011-02-19 23:52:17 +000018881
18882_lt_libdeps_save_CFLAGS=$CFLAGS
18883case "$CC $CFLAGS " in #(
18884*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18885*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018886*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018887esac
18888
cristy73bd4a52010-10-05 11:24:23 +000018889if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18890 (eval $ac_compile) 2>&5
18891 ac_status=$?
18892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18893 test $ac_status = 0; }; then
18894 # Parse the compiler output and extract the necessary
18895 # objects, libraries and library flags.
18896
18897 # Sentinel used to keep track of whether or not we are before
18898 # the conftest object file.
18899 pre_test_object_deps_done=no
18900
18901 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018902 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018903
18904 -L* | -R* | -l*)
18905 # Some compilers place space between "-{L,R}" and the path.
18906 # Remove the space.
18907 if test $p = "-L" ||
18908 test $p = "-R"; then
18909 prev=$p
18910 continue
cristy73bd4a52010-10-05 11:24:23 +000018911 fi
18912
cristyda16f162011-02-19 23:52:17 +000018913 # Expand the sysroot to ease extracting the directories later.
18914 if test -z "$prev"; then
18915 case $p in
18916 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18917 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18918 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18919 esac
18920 fi
18921 case $p in
18922 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18923 esac
cristy73bd4a52010-10-05 11:24:23 +000018924 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018925 case ${prev} in
18926 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018927 # Internal compiler library paths should come after those
18928 # provided the user. The postdeps already come after the
18929 # user supplied libs so there is no need to process them.
18930 if test -z "$compiler_lib_search_path_CXX"; then
18931 compiler_lib_search_path_CXX="${prev}${p}"
18932 else
18933 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18934 fi
18935 ;;
18936 # The "-l" case would never come before the object being
18937 # linked, so don't bother handling this case.
18938 esac
18939 else
18940 if test -z "$postdeps_CXX"; then
18941 postdeps_CXX="${prev}${p}"
18942 else
18943 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18944 fi
18945 fi
cristyda16f162011-02-19 23:52:17 +000018946 prev=
cristy73bd4a52010-10-05 11:24:23 +000018947 ;;
18948
cristyda16f162011-02-19 23:52:17 +000018949 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018950 *.$objext)
18951 # This assumes that the test object file only shows up
18952 # once in the compiler output.
18953 if test "$p" = "conftest.$objext"; then
18954 pre_test_object_deps_done=yes
18955 continue
18956 fi
18957
18958 if test "$pre_test_object_deps_done" = no; then
18959 if test -z "$predep_objects_CXX"; then
18960 predep_objects_CXX="$p"
18961 else
18962 predep_objects_CXX="$predep_objects_CXX $p"
18963 fi
18964 else
18965 if test -z "$postdep_objects_CXX"; then
18966 postdep_objects_CXX="$p"
18967 else
18968 postdep_objects_CXX="$postdep_objects_CXX $p"
18969 fi
18970 fi
18971 ;;
18972
18973 *) ;; # Ignore the rest.
18974
18975 esac
18976 done
18977
18978 # Clean up.
18979 rm -f a.out a.exe
18980else
18981 echo "libtool.m4: error: problem compiling CXX test program"
18982fi
18983
18984$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000018985CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000018986
18987# PORTME: override above test on systems where it is broken
18988case $host_os in
18989interix[3-9]*)
18990 # Interix 3.5 installs completely hosed .la files for C++, so rather than
18991 # hack all around it, let's just trust "g++" to DTRT.
18992 predep_objects_CXX=
18993 postdep_objects_CXX=
18994 postdeps_CXX=
18995 ;;
18996
18997linux*)
18998 case `$CC -V 2>&1 | sed 5q` in
18999 *Sun\ C*)
19000 # Sun C++ 5.9
19001
19002 # The more standards-conforming stlport4 library is
19003 # incompatible with the Cstd library. Avoid specifying
19004 # it if it's in CXXFLAGS. Ignore libCrun as
19005 # -library=stlport4 depends on it.
19006 case " $CXX $CXXFLAGS " in
19007 *" -library=stlport4 "*)
19008 solaris_use_stlport4=yes
19009 ;;
19010 esac
19011
19012 if test "$solaris_use_stlport4" != yes; then
19013 postdeps_CXX='-library=Cstd -library=Crun'
19014 fi
19015 ;;
19016 esac
19017 ;;
19018
19019solaris*)
19020 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019021 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019022 # The more standards-conforming stlport4 library is
19023 # incompatible with the Cstd library. Avoid specifying
19024 # it if it's in CXXFLAGS. Ignore libCrun as
19025 # -library=stlport4 depends on it.
19026 case " $CXX $CXXFLAGS " in
19027 *" -library=stlport4 "*)
19028 solaris_use_stlport4=yes
19029 ;;
19030 esac
19031
19032 # Adding this requires a known-good setup of shared libraries for
19033 # Sun compiler versions before 5.6, else PIC objects from an old
19034 # archive will be linked into the output, leading to subtle bugs.
19035 if test "$solaris_use_stlport4" != yes; then
19036 postdeps_CXX='-library=Cstd -library=Crun'
19037 fi
19038 ;;
19039 esac
19040 ;;
19041esac
19042
19043
19044case " $postdeps_CXX " in
19045*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19046esac
19047 compiler_lib_search_dirs_CXX=
19048if test -n "${compiler_lib_search_path_CXX}"; then
19049 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19050fi
19051
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 lt_prog_compiler_wl_CXX=
19083lt_prog_compiler_pic_CXX=
19084lt_prog_compiler_static_CXX=
19085
cristy73bd4a52010-10-05 11:24:23 +000019086
19087 # C++ specific cases for pic, static, wl, etc.
19088 if test "$GXX" = yes; then
19089 lt_prog_compiler_wl_CXX='-Wl,'
19090 lt_prog_compiler_static_CXX='-static'
19091
19092 case $host_os in
19093 aix*)
19094 # All AIX code is PIC.
19095 if test "$host_cpu" = ia64; then
19096 # AIX 5 now supports IA64 processor
19097 lt_prog_compiler_static_CXX='-Bstatic'
19098 fi
19099 ;;
19100
19101 amigaos*)
19102 case $host_cpu in
19103 powerpc)
19104 # see comment about AmigaOS4 .so support
19105 lt_prog_compiler_pic_CXX='-fPIC'
19106 ;;
19107 m68k)
19108 # FIXME: we need at least 68020 code to build shared libraries, but
19109 # adding the `-m68020' flag to GCC prevents building anything better,
19110 # like `-m68040'.
19111 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19112 ;;
19113 esac
19114 ;;
19115
19116 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19117 # PIC is the default for these OSes.
19118 ;;
19119 mingw* | cygwin* | os2* | pw32* | cegcc*)
19120 # This hack is so that the source file can tell whether it is being
19121 # built for inclusion in a dll (and should export symbols for example).
19122 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19123 # (--disable-auto-import) libraries
19124 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19125 ;;
19126 darwin* | rhapsody*)
19127 # PIC is the default on this platform
19128 # Common symbols not allowed in MH_DYLIB files
19129 lt_prog_compiler_pic_CXX='-fno-common'
19130 ;;
19131 *djgpp*)
19132 # DJGPP does not support shared libraries at all
19133 lt_prog_compiler_pic_CXX=
19134 ;;
cristy0c60a692010-11-04 01:09:47 +000019135 haiku*)
19136 # PIC is the default for Haiku.
19137 # The "-static" flag exists, but is broken.
19138 lt_prog_compiler_static_CXX=
19139 ;;
cristy73bd4a52010-10-05 11:24:23 +000019140 interix[3-9]*)
19141 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19142 # Instead, we relocate shared libraries at runtime.
19143 ;;
19144 sysv4*MP*)
19145 if test -d /usr/nec; then
19146 lt_prog_compiler_pic_CXX=-Kconform_pic
19147 fi
19148 ;;
19149 hpux*)
19150 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19151 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19152 # sets the default TLS model and affects inlining.
19153 case $host_cpu in
19154 hppa*64*)
19155 ;;
19156 *)
19157 lt_prog_compiler_pic_CXX='-fPIC'
19158 ;;
19159 esac
19160 ;;
19161 *qnx* | *nto*)
19162 # QNX uses GNU C++, but need to define -shared option too, otherwise
19163 # it will coredump.
19164 lt_prog_compiler_pic_CXX='-fPIC -shared'
19165 ;;
19166 *)
19167 lt_prog_compiler_pic_CXX='-fPIC'
19168 ;;
19169 esac
19170 else
19171 case $host_os in
19172 aix[4-9]*)
19173 # All AIX code is PIC.
19174 if test "$host_cpu" = ia64; then
19175 # AIX 5 now supports IA64 processor
19176 lt_prog_compiler_static_CXX='-Bstatic'
19177 else
19178 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19179 fi
19180 ;;
19181 chorus*)
19182 case $cc_basename in
19183 cxch68*)
19184 # Green Hills C++ Compiler
19185 # _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"
19186 ;;
19187 esac
19188 ;;
cristyda16f162011-02-19 23:52:17 +000019189 mingw* | cygwin* | os2* | pw32* | cegcc*)
19190 # This hack is so that the source file can tell whether it is being
19191 # built for inclusion in a dll (and should export symbols for example).
19192 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19193 ;;
cristy73bd4a52010-10-05 11:24:23 +000019194 dgux*)
19195 case $cc_basename in
19196 ec++*)
19197 lt_prog_compiler_pic_CXX='-KPIC'
19198 ;;
19199 ghcx*)
19200 # Green Hills C++ Compiler
19201 lt_prog_compiler_pic_CXX='-pic'
19202 ;;
19203 *)
19204 ;;
19205 esac
19206 ;;
19207 freebsd* | dragonfly*)
19208 # FreeBSD uses GNU C++
19209 ;;
19210 hpux9* | hpux10* | hpux11*)
19211 case $cc_basename in
19212 CC*)
19213 lt_prog_compiler_wl_CXX='-Wl,'
19214 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19215 if test "$host_cpu" != ia64; then
19216 lt_prog_compiler_pic_CXX='+Z'
19217 fi
19218 ;;
19219 aCC*)
19220 lt_prog_compiler_wl_CXX='-Wl,'
19221 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19222 case $host_cpu in
19223 hppa*64*|ia64*)
19224 # +Z the default
19225 ;;
19226 *)
19227 lt_prog_compiler_pic_CXX='+Z'
19228 ;;
19229 esac
19230 ;;
19231 *)
19232 ;;
19233 esac
19234 ;;
19235 interix*)
19236 # This is c89, which is MS Visual C++ (no shared libs)
19237 # Anyone wants to do a port?
19238 ;;
19239 irix5* | irix6* | nonstopux*)
19240 case $cc_basename in
19241 CC*)
19242 lt_prog_compiler_wl_CXX='-Wl,'
19243 lt_prog_compiler_static_CXX='-non_shared'
19244 # CC pic flag -KPIC is the default.
19245 ;;
19246 *)
19247 ;;
19248 esac
19249 ;;
cristy0c60a692010-11-04 01:09:47 +000019250 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019251 case $cc_basename in
19252 KCC*)
19253 # KAI C++ Compiler
19254 lt_prog_compiler_wl_CXX='--backend -Wl,'
19255 lt_prog_compiler_pic_CXX='-fPIC'
19256 ;;
19257 ecpc* )
19258 # old Intel C++ for x86_64 which still supported -KPIC.
19259 lt_prog_compiler_wl_CXX='-Wl,'
19260 lt_prog_compiler_pic_CXX='-KPIC'
19261 lt_prog_compiler_static_CXX='-static'
19262 ;;
19263 icpc* )
19264 # Intel C++, used to be incompatible with GCC.
19265 # ICC 10 doesn't accept -KPIC any more.
19266 lt_prog_compiler_wl_CXX='-Wl,'
19267 lt_prog_compiler_pic_CXX='-fPIC'
19268 lt_prog_compiler_static_CXX='-static'
19269 ;;
19270 pgCC* | pgcpp*)
19271 # Portland Group C++ compiler
19272 lt_prog_compiler_wl_CXX='-Wl,'
19273 lt_prog_compiler_pic_CXX='-fpic'
19274 lt_prog_compiler_static_CXX='-Bstatic'
19275 ;;
19276 cxx*)
19277 # Compaq C++
19278 # Make sure the PIC flag is empty. It appears that all Alpha
19279 # Linux and Compaq Tru64 Unix objects are PIC.
19280 lt_prog_compiler_pic_CXX=
19281 lt_prog_compiler_static_CXX='-non_shared'
19282 ;;
cristy0c60a692010-11-04 01:09:47 +000019283 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19284 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019285 lt_prog_compiler_wl_CXX='-Wl,'
19286 lt_prog_compiler_pic_CXX='-qpic'
19287 lt_prog_compiler_static_CXX='-qstaticlink'
19288 ;;
19289 *)
19290 case `$CC -V 2>&1 | sed 5q` in
19291 *Sun\ C*)
19292 # Sun C++ 5.9
19293 lt_prog_compiler_pic_CXX='-KPIC'
19294 lt_prog_compiler_static_CXX='-Bstatic'
19295 lt_prog_compiler_wl_CXX='-Qoption ld '
19296 ;;
19297 esac
19298 ;;
19299 esac
19300 ;;
19301 lynxos*)
19302 ;;
19303 m88k*)
19304 ;;
19305 mvs*)
19306 case $cc_basename in
19307 cxx*)
19308 lt_prog_compiler_pic_CXX='-W c,exportall'
19309 ;;
19310 *)
19311 ;;
19312 esac
19313 ;;
19314 netbsd*)
19315 ;;
19316 *qnx* | *nto*)
19317 # QNX uses GNU C++, but need to define -shared option too, otherwise
19318 # it will coredump.
19319 lt_prog_compiler_pic_CXX='-fPIC -shared'
19320 ;;
19321 osf3* | osf4* | osf5*)
19322 case $cc_basename in
19323 KCC*)
19324 lt_prog_compiler_wl_CXX='--backend -Wl,'
19325 ;;
19326 RCC*)
19327 # Rational C++ 2.4.1
19328 lt_prog_compiler_pic_CXX='-pic'
19329 ;;
19330 cxx*)
19331 # Digital/Compaq C++
19332 lt_prog_compiler_wl_CXX='-Wl,'
19333 # Make sure the PIC flag is empty. It appears that all Alpha
19334 # Linux and Compaq Tru64 Unix objects are PIC.
19335 lt_prog_compiler_pic_CXX=
19336 lt_prog_compiler_static_CXX='-non_shared'
19337 ;;
19338 *)
19339 ;;
19340 esac
19341 ;;
19342 psos*)
19343 ;;
19344 solaris*)
19345 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019346 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019347 # Sun C++ 4.2, 5.x and Centerline C++
19348 lt_prog_compiler_pic_CXX='-KPIC'
19349 lt_prog_compiler_static_CXX='-Bstatic'
19350 lt_prog_compiler_wl_CXX='-Qoption ld '
19351 ;;
19352 gcx*)
19353 # Green Hills C++ Compiler
19354 lt_prog_compiler_pic_CXX='-PIC'
19355 ;;
19356 *)
19357 ;;
19358 esac
19359 ;;
19360 sunos4*)
19361 case $cc_basename in
19362 CC*)
19363 # Sun C++ 4.x
19364 lt_prog_compiler_pic_CXX='-pic'
19365 lt_prog_compiler_static_CXX='-Bstatic'
19366 ;;
19367 lcc*)
19368 # Lucid
19369 lt_prog_compiler_pic_CXX='-pic'
19370 ;;
19371 *)
19372 ;;
19373 esac
19374 ;;
19375 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19376 case $cc_basename in
19377 CC*)
19378 lt_prog_compiler_wl_CXX='-Wl,'
19379 lt_prog_compiler_pic_CXX='-KPIC'
19380 lt_prog_compiler_static_CXX='-Bstatic'
19381 ;;
19382 esac
19383 ;;
19384 tandem*)
19385 case $cc_basename in
19386 NCC*)
19387 # NonStop-UX NCC 3.20
19388 lt_prog_compiler_pic_CXX='-KPIC'
19389 ;;
19390 *)
19391 ;;
19392 esac
19393 ;;
19394 vxworks*)
19395 ;;
19396 *)
19397 lt_prog_compiler_can_build_shared_CXX=no
19398 ;;
19399 esac
19400 fi
19401
19402case $host_os in
19403 # For platforms which do not support PIC, -DPIC is meaningless:
19404 *djgpp*)
19405 lt_prog_compiler_pic_CXX=
19406 ;;
19407 *)
19408 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19409 ;;
19410esac
cristy73bd4a52010-10-05 11:24:23 +000019411
cristyda16f162011-02-19 23:52:17 +000019412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19413$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19414if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19415 $as_echo_n "(cached) " >&6
19416else
19417 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19418fi
19419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19420$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19421lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019422
19423#
19424# Check to make sure the PIC flag actually works.
19425#
19426if test -n "$lt_prog_compiler_pic_CXX"; then
19427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19428$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019429if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019430 $as_echo_n "(cached) " >&6
19431else
19432 lt_cv_prog_compiler_pic_works_CXX=no
19433 ac_outfile=conftest.$ac_objext
19434 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19435 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19436 # Insert the option either (1) after the last *FLAGS variable, or
19437 # (2) before a word containing "conftest.", or (3) at the end.
19438 # Note that $ac_compile itself does not contain backslashes and begins
19439 # with a dollar sign (not a hyphen), so the echo should work correctly.
19440 # The option is referenced via a variable to avoid confusing sed.
19441 lt_compile=`echo "$ac_compile" | $SED \
19442 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19443 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19444 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019445 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019446 (eval "$lt_compile" 2>conftest.err)
19447 ac_status=$?
19448 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019450 if (exit $ac_status) && test -s "$ac_outfile"; then
19451 # The compiler can only warn and ignore the option if not recognized
19452 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019453 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019454 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19455 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19456 lt_cv_prog_compiler_pic_works_CXX=yes
19457 fi
19458 fi
19459 $RM conftest*
19460
19461fi
19462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19463$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19464
19465if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19466 case $lt_prog_compiler_pic_CXX in
19467 "" | " "*) ;;
19468 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19469 esac
19470else
19471 lt_prog_compiler_pic_CXX=
19472 lt_prog_compiler_can_build_shared_CXX=no
19473fi
19474
19475fi
19476
19477
19478
cristyda16f162011-02-19 23:52:17 +000019479
19480
cristy73bd4a52010-10-05 11:24:23 +000019481#
19482# Check to make sure the static flag actually works.
19483#
19484wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19486$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019487if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019488 $as_echo_n "(cached) " >&6
19489else
19490 lt_cv_prog_compiler_static_works_CXX=no
19491 save_LDFLAGS="$LDFLAGS"
19492 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19493 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19494 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19495 # The linker can only warn and ignore the option if not recognized
19496 # So say no if there are warnings
19497 if test -s conftest.err; then
19498 # Append any errors to the config.log.
19499 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019500 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019501 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19502 if diff conftest.exp conftest.er2 >/dev/null; then
19503 lt_cv_prog_compiler_static_works_CXX=yes
19504 fi
19505 else
19506 lt_cv_prog_compiler_static_works_CXX=yes
19507 fi
19508 fi
19509 $RM -r conftest*
19510 LDFLAGS="$save_LDFLAGS"
19511
19512fi
19513{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19514$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19515
19516if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19517 :
19518else
19519 lt_prog_compiler_static_CXX=
19520fi
19521
19522
19523
19524
19525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19526$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019527if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019528 $as_echo_n "(cached) " >&6
19529else
19530 lt_cv_prog_compiler_c_o_CXX=no
19531 $RM -r conftest 2>/dev/null
19532 mkdir conftest
19533 cd conftest
19534 mkdir out
19535 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19536
19537 lt_compiler_flag="-o out/conftest2.$ac_objext"
19538 # Insert the option either (1) after the last *FLAGS variable, or
19539 # (2) before a word containing "conftest.", or (3) at the end.
19540 # Note that $ac_compile itself does not contain backslashes and begins
19541 # with a dollar sign (not a hyphen), so the echo should work correctly.
19542 lt_compile=`echo "$ac_compile" | $SED \
19543 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19544 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19545 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019546 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019547 (eval "$lt_compile" 2>out/conftest.err)
19548 ac_status=$?
19549 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019551 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19552 then
19553 # The compiler can only warn and ignore the option if not recognized
19554 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019556 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19557 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19558 lt_cv_prog_compiler_c_o_CXX=yes
19559 fi
19560 fi
19561 chmod u+w . 2>&5
19562 $RM conftest*
19563 # SGI C++ compiler will create directory out/ii_files/ for
19564 # template instantiation
19565 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19566 $RM out/* && rmdir out
19567 cd ..
19568 $RM -r conftest
19569 $RM conftest*
19570
19571fi
19572{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19573$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19574
19575
19576
19577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19578$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019579if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019580 $as_echo_n "(cached) " >&6
19581else
19582 lt_cv_prog_compiler_c_o_CXX=no
19583 $RM -r conftest 2>/dev/null
19584 mkdir conftest
19585 cd conftest
19586 mkdir out
19587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19588
19589 lt_compiler_flag="-o out/conftest2.$ac_objext"
19590 # Insert the option either (1) after the last *FLAGS variable, or
19591 # (2) before a word containing "conftest.", or (3) at the end.
19592 # Note that $ac_compile itself does not contain backslashes and begins
19593 # with a dollar sign (not a hyphen), so the echo should work correctly.
19594 lt_compile=`echo "$ac_compile" | $SED \
19595 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19596 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19597 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019598 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019599 (eval "$lt_compile" 2>out/conftest.err)
19600 ac_status=$?
19601 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019603 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19604 then
19605 # The compiler can only warn and ignore the option if not recognized
19606 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019607 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019608 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19609 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19610 lt_cv_prog_compiler_c_o_CXX=yes
19611 fi
19612 fi
19613 chmod u+w . 2>&5
19614 $RM conftest*
19615 # SGI C++ compiler will create directory out/ii_files/ for
19616 # template instantiation
19617 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19618 $RM out/* && rmdir out
19619 cd ..
19620 $RM -r conftest
19621 $RM conftest*
19622
19623fi
19624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19625$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19626
19627
19628
19629
19630hard_links="nottested"
19631if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19632 # do not overwrite the value of need_locks provided by the user
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19634$as_echo_n "checking if we can lock with hard links... " >&6; }
19635 hard_links=yes
19636 $RM conftest*
19637 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19638 touch conftest.a
19639 ln conftest.a conftest.b 2>&5 || hard_links=no
19640 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19642$as_echo "$hard_links" >&6; }
19643 if test "$hard_links" = no; then
19644 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19645$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19646 need_locks=warn
19647 fi
19648else
19649 need_locks=no
19650fi
19651
19652
19653
19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19655$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19656
19657 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019658 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019659 case $host_os in
19660 aix[4-9]*)
19661 # If we're using GNU nm, then we don't want the "-C" option.
19662 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019663 # Also, AIX nm treats weak defined symbols like other global defined
19664 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019665 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019666 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 +000019667 else
19668 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'
19669 fi
19670 ;;
19671 pw32*)
19672 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019673 ;;
cristy73bd4a52010-10-05 11:24:23 +000019674 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019675 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019676 cl*)
19677 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19678 ;;
cristyda16f162011-02-19 23:52:17 +000019679 *)
19680 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'
19681 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19682 ;;
19683 esac
19684 ;;
cristy73bd4a52010-10-05 11:24:23 +000019685 *)
19686 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019687 ;;
cristy73bd4a52010-10-05 11:24:23 +000019688 esac
cristy73bd4a52010-10-05 11:24:23 +000019689
19690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19691$as_echo "$ld_shlibs_CXX" >&6; }
19692test "$ld_shlibs_CXX" = no && can_build_shared=no
19693
19694with_gnu_ld_CXX=$with_gnu_ld
19695
19696
19697
19698
19699
19700
19701#
19702# Do we need to explicitly link libc?
19703#
19704case "x$archive_cmds_need_lc_CXX" in
19705x|xyes)
19706 # Assume -lc should be added
19707 archive_cmds_need_lc_CXX=yes
19708
19709 if test "$enable_shared" = yes && test "$GCC" = yes; then
19710 case $archive_cmds_CXX in
19711 *'~'*)
19712 # FIXME: we may have to deal with multi-command sequences.
19713 ;;
19714 '$CC '*)
19715 # Test whether the compiler implicitly links with -lc since on some
19716 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19717 # to ld, don't add -lc before -lgcc.
19718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19719$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019720if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019721 $as_echo_n "(cached) " >&6
19722else
19723 $RM conftest*
19724 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019725
cristy0c60a692010-11-04 01:09:47 +000019726 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019727 (eval $ac_compile) 2>&5
19728 ac_status=$?
19729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19730 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019731 soname=conftest
19732 lib=conftest
19733 libobjs=conftest.$ac_objext
19734 deplibs=
19735 wl=$lt_prog_compiler_wl_CXX
19736 pic_flag=$lt_prog_compiler_pic_CXX
19737 compiler_flags=-v
19738 linker_flags=-v
19739 verstring=
19740 output_objdir=.
19741 libname=conftest
19742 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19743 allow_undefined_flag_CXX=
19744 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 +000019745 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19746 ac_status=$?
19747 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19748 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019749 then
19750 lt_cv_archive_cmds_need_lc_CXX=no
19751 else
19752 lt_cv_archive_cmds_need_lc_CXX=yes
19753 fi
19754 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19755 else
19756 cat conftest.err 1>&5
19757 fi
19758 $RM conftest*
19759
19760fi
19761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19762$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19763 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019764 ;;
19765 esac
19766 fi
19767 ;;
19768esac
19769
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
cristy73bd4a52010-10-05 11:24:23 +000019831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19832$as_echo_n "checking dynamic linker characteristics... " >&6; }
19833
19834library_names_spec=
19835libname_spec='lib$name'
19836soname_spec=
19837shrext_cmds=".so"
19838postinstall_cmds=
19839postuninstall_cmds=
19840finish_cmds=
19841finish_eval=
19842shlibpath_var=
19843shlibpath_overrides_runpath=unknown
19844version_type=none
19845dynamic_linker="$host_os ld.so"
19846sys_lib_dlsearch_path_spec="/lib /usr/lib"
19847need_lib_prefix=unknown
19848hardcode_into_libs=no
19849
19850# when you set need_version to no, make sure it does not cause -set_version
19851# flags to be left without arguments
19852need_version=unknown
19853
19854case $host_os in
19855aix3*)
cristy99bd5232011-12-07 14:38:20 +000019856 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019857 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19858 shlibpath_var=LIBPATH
19859
19860 # AIX 3 has no versioning support, so we append a major version to the name.
19861 soname_spec='${libname}${release}${shared_ext}$major'
19862 ;;
19863
19864aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019865 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019866 need_lib_prefix=no
19867 need_version=no
19868 hardcode_into_libs=yes
19869 if test "$host_cpu" = ia64; then
19870 # AIX 5 supports IA64
19871 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19872 shlibpath_var=LD_LIBRARY_PATH
19873 else
19874 # With GCC up to 2.95.x, collect2 would create an import file
19875 # for dependence libraries. The import file would start with
19876 # the line `#! .'. This would cause the generated library to
19877 # depend on `.', always an invalid library. This was fixed in
19878 # development snapshots of GCC prior to 3.0.
19879 case $host_os in
19880 aix4 | aix4.[01] | aix4.[01].*)
19881 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19882 echo ' yes '
19883 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19884 :
19885 else
19886 can_build_shared=no
19887 fi
19888 ;;
19889 esac
19890 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19891 # soname into executable. Probably we can add versioning support to
19892 # collect2, so additional links can be useful in future.
19893 if test "$aix_use_runtimelinking" = yes; then
19894 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19895 # instead of lib<name>.a to let people know that these are not
19896 # typical AIX shared libraries.
19897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19898 else
19899 # We preserve .a as extension for shared libraries through AIX4.2
19900 # and later when we are not doing run time linking.
19901 library_names_spec='${libname}${release}.a $libname.a'
19902 soname_spec='${libname}${release}${shared_ext}$major'
19903 fi
19904 shlibpath_var=LIBPATH
19905 fi
19906 ;;
19907
19908amigaos*)
19909 case $host_cpu in
19910 powerpc)
19911 # Since July 2007 AmigaOS4 officially supports .so libraries.
19912 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19914 ;;
19915 m68k)
19916 library_names_spec='$libname.ixlibrary $libname.a'
19917 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019918 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 +000019919 ;;
19920 esac
19921 ;;
19922
19923beos*)
19924 library_names_spec='${libname}${shared_ext}'
19925 dynamic_linker="$host_os ld.so"
19926 shlibpath_var=LIBRARY_PATH
19927 ;;
19928
19929bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019930 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019931 need_version=no
19932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19933 soname_spec='${libname}${release}${shared_ext}$major'
19934 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19937 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19938 # the default ld.so.conf also contains /usr/contrib/lib and
19939 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19940 # libtool to hard-code these into programs
19941 ;;
19942
19943cygwin* | mingw* | pw32* | cegcc*)
19944 version_type=windows
19945 shrext_cmds=".dll"
19946 need_version=no
19947 need_lib_prefix=no
19948
cristyda16f162011-02-19 23:52:17 +000019949 case $GCC,$cc_basename in
19950 yes,*)
19951 # gcc
cristy73bd4a52010-10-05 11:24:23 +000019952 library_names_spec='$libname.dll.a'
19953 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19954 postinstall_cmds='base_file=`basename \${file}`~
19955 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19956 dldir=$destdir/`dirname \$dlpath`~
19957 test -d \$dldir || mkdir -p \$dldir~
19958 $install_prog $dir/$dlname \$dldir/$dlname~
19959 chmod a+x \$dldir/$dlname~
19960 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19961 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19962 fi'
19963 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19964 dlpath=$dir/\$dldll~
19965 $RM \$dlpath'
19966 shlibpath_overrides_runpath=yes
19967
19968 case $host_os in
19969 cygwin*)
19970 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19971 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000019972
cristy73bd4a52010-10-05 11:24:23 +000019973 ;;
19974 mingw* | cegcc*)
19975 # MinGW DLLs use traditional 'lib' prefix
19976 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000019977 ;;
19978 pw32*)
19979 # pw32 DLLs use 'pw' prefix rather than 'lib'
19980 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19981 ;;
19982 esac
cristyda16f162011-02-19 23:52:17 +000019983 dynamic_linker='Win32 ld.exe'
19984 ;;
19985
19986 *,cl*)
19987 # Native MSVC
19988 libname_spec='$name'
19989 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19990 library_names_spec='${libname}.dll.lib'
19991
19992 case $build_os in
19993 mingw*)
19994 sys_lib_search_path_spec=
19995 lt_save_ifs=$IFS
19996 IFS=';'
19997 for lt_path in $LIB
19998 do
19999 IFS=$lt_save_ifs
20000 # Let DOS variable expansion print the short 8.3 style file name.
20001 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20002 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20003 done
20004 IFS=$lt_save_ifs
20005 # Convert to MSYS style.
20006 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20007 ;;
20008 cygwin*)
20009 # Convert to unix form, then to dos form, then back to unix form
20010 # but this time dos style (no spaces!) so that the unix form looks
20011 # like /cygdrive/c/PROGRA~1:/cygdr...
20012 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20013 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20014 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20015 ;;
20016 *)
20017 sys_lib_search_path_spec="$LIB"
20018 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20019 # It is most probably a Windows format PATH.
20020 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20021 else
20022 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20023 fi
20024 # FIXME: find the short name or the path components, as spaces are
20025 # common. (e.g. "Program Files" -> "PROGRA~1")
20026 ;;
20027 esac
20028
20029 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20030 postinstall_cmds='base_file=`basename \${file}`~
20031 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20032 dldir=$destdir/`dirname \$dlpath`~
20033 test -d \$dldir || mkdir -p \$dldir~
20034 $install_prog $dir/$dlname \$dldir/$dlname'
20035 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20036 dlpath=$dir/\$dldll~
20037 $RM \$dlpath'
20038 shlibpath_overrides_runpath=yes
20039 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020040 ;;
20041
20042 *)
cristyda16f162011-02-19 23:52:17 +000020043 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020044 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020045 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020046 ;;
20047 esac
cristy73bd4a52010-10-05 11:24:23 +000020048 # FIXME: first we should search . and the directory the executable is in
20049 shlibpath_var=PATH
20050 ;;
20051
20052darwin* | rhapsody*)
20053 dynamic_linker="$host_os dyld"
20054 version_type=darwin
20055 need_lib_prefix=no
20056 need_version=no
20057 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20058 soname_spec='${libname}${release}${major}$shared_ext'
20059 shlibpath_overrides_runpath=yes
20060 shlibpath_var=DYLD_LIBRARY_PATH
20061 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20062
20063 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20064 ;;
20065
20066dgux*)
cristy99bd5232011-12-07 14:38:20 +000020067 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020068 need_lib_prefix=no
20069 need_version=no
20070 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20071 soname_spec='${libname}${release}${shared_ext}$major'
20072 shlibpath_var=LD_LIBRARY_PATH
20073 ;;
20074
cristy73bd4a52010-10-05 11:24:23 +000020075freebsd* | dragonfly*)
20076 # DragonFly does not have aout. When/if they implement a new
20077 # versioning mechanism, adjust this.
20078 if test -x /usr/bin/objformat; then
20079 objformat=`/usr/bin/objformat`
20080 else
20081 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020082 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020083 *) objformat=elf ;;
20084 esac
20085 fi
20086 version_type=freebsd-$objformat
20087 case $version_type in
20088 freebsd-elf*)
20089 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20090 need_version=no
20091 need_lib_prefix=no
20092 ;;
20093 freebsd-*)
20094 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20095 need_version=yes
20096 ;;
20097 esac
20098 shlibpath_var=LD_LIBRARY_PATH
20099 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020100 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020101 shlibpath_overrides_runpath=yes
20102 ;;
20103 freebsd3.[01]* | freebsdelf3.[01]*)
20104 shlibpath_overrides_runpath=yes
20105 hardcode_into_libs=yes
20106 ;;
20107 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20108 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20109 shlibpath_overrides_runpath=no
20110 hardcode_into_libs=yes
20111 ;;
20112 *) # from 4.6 on, and DragonFly
20113 shlibpath_overrides_runpath=yes
20114 hardcode_into_libs=yes
20115 ;;
20116 esac
20117 ;;
20118
20119gnu*)
cristy99bd5232011-12-07 14:38:20 +000020120 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020121 need_lib_prefix=no
20122 need_version=no
20123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20124 soname_spec='${libname}${release}${shared_ext}$major'
20125 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020126 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020127 hardcode_into_libs=yes
20128 ;;
20129
cristy0c60a692010-11-04 01:09:47 +000020130haiku*)
cristy99bd5232011-12-07 14:38:20 +000020131 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020132 need_lib_prefix=no
20133 need_version=no
20134 dynamic_linker="$host_os runtime_loader"
20135 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20136 soname_spec='${libname}${release}${shared_ext}$major'
20137 shlibpath_var=LIBRARY_PATH
20138 shlibpath_overrides_runpath=yes
20139 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20140 hardcode_into_libs=yes
20141 ;;
20142
cristy73bd4a52010-10-05 11:24:23 +000020143hpux9* | hpux10* | hpux11*)
20144 # Give a soname corresponding to the major version so that dld.sl refuses to
20145 # link against other versions.
20146 version_type=sunos
20147 need_lib_prefix=no
20148 need_version=no
20149 case $host_cpu in
20150 ia64*)
20151 shrext_cmds='.so'
20152 hardcode_into_libs=yes
20153 dynamic_linker="$host_os dld.so"
20154 shlibpath_var=LD_LIBRARY_PATH
20155 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20156 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20157 soname_spec='${libname}${release}${shared_ext}$major'
20158 if test "X$HPUX_IA64_MODE" = X32; then
20159 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20160 else
20161 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20162 fi
20163 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20164 ;;
20165 hppa*64*)
20166 shrext_cmds='.sl'
20167 hardcode_into_libs=yes
20168 dynamic_linker="$host_os dld.sl"
20169 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20170 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20172 soname_spec='${libname}${release}${shared_ext}$major'
20173 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20175 ;;
20176 *)
20177 shrext_cmds='.sl'
20178 dynamic_linker="$host_os dld.sl"
20179 shlibpath_var=SHLIB_PATH
20180 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20182 soname_spec='${libname}${release}${shared_ext}$major'
20183 ;;
20184 esac
cristy0c60a692010-11-04 01:09:47 +000020185 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020186 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020187 # or fails outright, so override atomically:
20188 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020189 ;;
20190
20191interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020192 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020193 need_lib_prefix=no
20194 need_version=no
20195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20196 soname_spec='${libname}${release}${shared_ext}$major'
20197 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20198 shlibpath_var=LD_LIBRARY_PATH
20199 shlibpath_overrides_runpath=no
20200 hardcode_into_libs=yes
20201 ;;
20202
20203irix5* | irix6* | nonstopux*)
20204 case $host_os in
20205 nonstopux*) version_type=nonstopux ;;
20206 *)
20207 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020208 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020209 else
20210 version_type=irix
20211 fi ;;
20212 esac
20213 need_lib_prefix=no
20214 need_version=no
20215 soname_spec='${libname}${release}${shared_ext}$major'
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20217 case $host_os in
20218 irix5* | nonstopux*)
20219 libsuff= shlibsuff=
20220 ;;
20221 *)
20222 case $LD in # libtool.m4 will add one of these switches to LD
20223 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20224 libsuff= shlibsuff= libmagic=32-bit;;
20225 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20226 libsuff=32 shlibsuff=N32 libmagic=N32;;
20227 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20228 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20229 *) libsuff= shlibsuff= libmagic=never-match;;
20230 esac
20231 ;;
20232 esac
20233 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20234 shlibpath_overrides_runpath=no
20235 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20236 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20237 hardcode_into_libs=yes
20238 ;;
20239
20240# No shared lib support for Linux oldld, aout, or coff.
20241linux*oldld* | linux*aout* | linux*coff*)
20242 dynamic_linker=no
20243 ;;
20244
cristy99bd5232011-12-07 14:38:20 +000020245# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020246linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020247 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020248 need_lib_prefix=no
20249 need_version=no
20250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20251 soname_spec='${libname}${release}${shared_ext}$major'
20252 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20253 shlibpath_var=LD_LIBRARY_PATH
20254 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020255
cristy73bd4a52010-10-05 11:24:23 +000020256 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020257 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020258 $as_echo_n "(cached) " >&6
20259else
20260 lt_cv_shlibpath_overrides_runpath=no
20261 save_LDFLAGS=$LDFLAGS
20262 save_libdir=$libdir
20263 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20264 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020266/* end confdefs.h. */
20267
20268int
20269main ()
20270{
20271
20272 ;
20273 return 0;
20274}
20275_ACEOF
20276if ac_fn_cxx_try_link "$LINENO"; then :
20277 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020278 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020279fi
20280fi
20281rm -f core conftest.err conftest.$ac_objext \
20282 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020283 LDFLAGS=$save_LDFLAGS
20284 libdir=$save_libdir
20285
20286fi
20287
20288 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020289
20290 # This implies no fast_install, which is unacceptable.
20291 # Some rework will be needed to allow for fast_install
20292 # before this can be enabled.
20293 hardcode_into_libs=yes
20294
20295 # Add ABI-specific directories to the system library path.
20296 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20297
20298 # Append ld.so.conf contents to the search path
20299 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020300 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 +000020301 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020302
cristy73bd4a52010-10-05 11:24:23 +000020303 fi
20304
20305 # We used to test for /lib/ld.so.1 and disable shared libraries on
20306 # powerpc, because MkLinux only supported shared libraries with the
20307 # GNU dynamic linker. Since this was broken with cross compilers,
20308 # most powerpc-linux boxes support dynamic linking these days and
20309 # people can always --disable-shared, the test was removed, and we
20310 # assume the GNU/Linux dynamic linker is in use.
20311 dynamic_linker='GNU/Linux ld.so'
20312 ;;
20313
20314netbsd*)
20315 version_type=sunos
20316 need_lib_prefix=no
20317 need_version=no
20318 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20319 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20320 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20321 dynamic_linker='NetBSD (a.out) ld.so'
20322 else
20323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20324 soname_spec='${libname}${release}${shared_ext}$major'
20325 dynamic_linker='NetBSD ld.elf_so'
20326 fi
20327 shlibpath_var=LD_LIBRARY_PATH
20328 shlibpath_overrides_runpath=yes
20329 hardcode_into_libs=yes
20330 ;;
20331
20332newsos6)
cristy99bd5232011-12-07 14:38:20 +000020333 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 shlibpath_var=LD_LIBRARY_PATH
20336 shlibpath_overrides_runpath=yes
20337 ;;
20338
20339*nto* | *qnx*)
20340 version_type=qnx
20341 need_lib_prefix=no
20342 need_version=no
20343 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20344 soname_spec='${libname}${release}${shared_ext}$major'
20345 shlibpath_var=LD_LIBRARY_PATH
20346 shlibpath_overrides_runpath=no
20347 hardcode_into_libs=yes
20348 dynamic_linker='ldqnx.so'
20349 ;;
20350
20351openbsd*)
20352 version_type=sunos
20353 sys_lib_dlsearch_path_spec="/usr/lib"
20354 need_lib_prefix=no
20355 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20356 case $host_os in
20357 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20358 *) need_version=no ;;
20359 esac
20360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20361 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20362 shlibpath_var=LD_LIBRARY_PATH
20363 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20364 case $host_os in
20365 openbsd2.[89] | openbsd2.[89].*)
20366 shlibpath_overrides_runpath=no
20367 ;;
20368 *)
20369 shlibpath_overrides_runpath=yes
20370 ;;
20371 esac
20372 else
20373 shlibpath_overrides_runpath=yes
20374 fi
20375 ;;
20376
20377os2*)
20378 libname_spec='$name'
20379 shrext_cmds=".dll"
20380 need_lib_prefix=no
20381 library_names_spec='$libname${shared_ext} $libname.a'
20382 dynamic_linker='OS/2 ld.exe'
20383 shlibpath_var=LIBPATH
20384 ;;
20385
20386osf3* | osf4* | osf5*)
20387 version_type=osf
20388 need_lib_prefix=no
20389 need_version=no
20390 soname_spec='${libname}${release}${shared_ext}$major'
20391 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20392 shlibpath_var=LD_LIBRARY_PATH
20393 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20394 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20395 ;;
20396
20397rdos*)
20398 dynamic_linker=no
20399 ;;
20400
20401solaris*)
cristy99bd5232011-12-07 14:38:20 +000020402 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020403 need_lib_prefix=no
20404 need_version=no
20405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 soname_spec='${libname}${release}${shared_ext}$major'
20407 shlibpath_var=LD_LIBRARY_PATH
20408 shlibpath_overrides_runpath=yes
20409 hardcode_into_libs=yes
20410 # ldd complains unless libraries are executable
20411 postinstall_cmds='chmod +x $lib'
20412 ;;
20413
20414sunos4*)
20415 version_type=sunos
20416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20417 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20418 shlibpath_var=LD_LIBRARY_PATH
20419 shlibpath_overrides_runpath=yes
20420 if test "$with_gnu_ld" = yes; then
20421 need_lib_prefix=no
20422 fi
20423 need_version=yes
20424 ;;
20425
20426sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020427 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020428 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20429 soname_spec='${libname}${release}${shared_ext}$major'
20430 shlibpath_var=LD_LIBRARY_PATH
20431 case $host_vendor in
20432 sni)
20433 shlibpath_overrides_runpath=no
20434 need_lib_prefix=no
20435 runpath_var=LD_RUN_PATH
20436 ;;
20437 siemens)
20438 need_lib_prefix=no
20439 ;;
20440 motorola)
20441 need_lib_prefix=no
20442 need_version=no
20443 shlibpath_overrides_runpath=no
20444 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20445 ;;
20446 esac
20447 ;;
20448
20449sysv4*MP*)
20450 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020451 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020452 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20453 soname_spec='$libname${shared_ext}.$major'
20454 shlibpath_var=LD_LIBRARY_PATH
20455 fi
20456 ;;
20457
20458sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20459 version_type=freebsd-elf
20460 need_lib_prefix=no
20461 need_version=no
20462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20463 soname_spec='${libname}${release}${shared_ext}$major'
20464 shlibpath_var=LD_LIBRARY_PATH
20465 shlibpath_overrides_runpath=yes
20466 hardcode_into_libs=yes
20467 if test "$with_gnu_ld" = yes; then
20468 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20469 else
20470 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20471 case $host_os in
20472 sco3.2v5*)
20473 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20474 ;;
20475 esac
20476 fi
20477 sys_lib_dlsearch_path_spec='/usr/lib'
20478 ;;
20479
20480tpf*)
20481 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020482 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020483 need_lib_prefix=no
20484 need_version=no
20485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20486 shlibpath_var=LD_LIBRARY_PATH
20487 shlibpath_overrides_runpath=no
20488 hardcode_into_libs=yes
20489 ;;
20490
20491uts4*)
cristy99bd5232011-12-07 14:38:20 +000020492 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020493 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20494 soname_spec='${libname}${release}${shared_ext}$major'
20495 shlibpath_var=LD_LIBRARY_PATH
20496 ;;
20497
20498*)
20499 dynamic_linker=no
20500 ;;
20501esac
20502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20503$as_echo "$dynamic_linker" >&6; }
20504test "$dynamic_linker" = no && can_build_shared=no
20505
20506variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20507if test "$GCC" = yes; then
20508 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20509fi
20510
20511if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20512 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20513fi
20514if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20515 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20516fi
20517
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
cristy0c60a692010-11-04 01:09:47 +000020553
20554
cristy73bd4a52010-10-05 11:24:23 +000020555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20556$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20557hardcode_action_CXX=
20558if test -n "$hardcode_libdir_flag_spec_CXX" ||
20559 test -n "$runpath_var_CXX" ||
20560 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20561
20562 # We can hardcode non-existent directories.
20563 if test "$hardcode_direct_CXX" != no &&
20564 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20565 # have to relink, otherwise we might link with an installed library
20566 # when we should be linking with a yet-to-be-installed one
20567 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20568 test "$hardcode_minus_L_CXX" != no; then
20569 # Linking always hardcodes the temporary library directory.
20570 hardcode_action_CXX=relink
20571 else
20572 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20573 hardcode_action_CXX=immediate
20574 fi
20575else
20576 # We cannot hardcode anything, or else we can only hardcode existing
20577 # directories.
20578 hardcode_action_CXX=unsupported
20579fi
20580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20581$as_echo "$hardcode_action_CXX" >&6; }
20582
20583if test "$hardcode_action_CXX" = relink ||
20584 test "$inherit_rpath_CXX" = yes; then
20585 # Fast installation is not supported
20586 enable_fast_install=no
20587elif test "$shlibpath_overrides_runpath" = yes ||
20588 test "$enable_shared" = no; then
20589 # Fast installation is not necessary
20590 enable_fast_install=needless
20591fi
20592
20593
20594
20595
20596
20597
20598
20599 fi # test -n "$compiler"
20600
20601 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020602 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020603 LDCXX=$LD
20604 LD=$lt_save_LD
20605 GCC=$lt_save_GCC
20606 with_gnu_ld=$lt_save_with_gnu_ld
20607 lt_cv_path_LDCXX=$lt_cv_path_LD
20608 lt_cv_path_LD=$lt_save_path_LD
20609 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20610 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20611fi # test "$_lt_caught_CXX_error" != yes
20612
20613ac_ext=c
20614ac_cpp='$CPP $CPPFLAGS'
20615ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20616ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20617ac_compiler_gnu=$ac_cv_c_compiler_gnu
20618
20619
20620
20621
20622
20623
20624
20625
20626
20627
20628
20629
20630
cristy99bd5232011-12-07 14:38:20 +000020631
20632
cristy73bd4a52010-10-05 11:24:23 +000020633 ac_config_commands="$ac_config_commands libtool"
20634
20635
20636
20637
20638# Only expand once:
20639
20640
20641
cristy3ed852e2009-09-05 21:47:34 +000020642
20643
20644# Configure libltdl
cristy73bd4a52010-10-05 11:24:23 +000020645
20646
20647
20648
20649
20650
20651
cristy73bd4a52010-10-05 11:24:23 +000020652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
20653$as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020654if ${libltdl_cv_shlibext+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020655 $as_echo_n "(cached) " >&6
20656else
20657
20658module=yes
20659eval libltdl_cv_shlibext=$shrext_cmds
cristy99bd5232011-12-07 14:38:20 +000020660module=no
20661eval libltdl_cv_shrext=$shrext_cmds
cristy73bd4a52010-10-05 11:24:23 +000020662
20663fi
20664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
20665$as_echo "$libltdl_cv_shlibext" >&6; }
20666if test -n "$libltdl_cv_shlibext"; then
20667
20668cat >>confdefs.h <<_ACEOF
20669#define LT_MODULE_EXT "$libltdl_cv_shlibext"
20670_ACEOF
20671
20672fi
cristy99bd5232011-12-07 14:38:20 +000020673if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
20674
20675cat >>confdefs.h <<_ACEOF
20676#define LT_SHARED_EXT "$libltdl_cv_shrext"
20677_ACEOF
20678
20679fi
cristy73bd4a52010-10-05 11:24:23 +000020680
20681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
20682$as_echo_n "checking which variable specifies run-time module search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020683if ${lt_cv_module_path_var+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020684 $as_echo_n "(cached) " >&6
20685else
20686 lt_cv_module_path_var="$shlibpath_var"
20687fi
20688{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
20689$as_echo "$lt_cv_module_path_var" >&6; }
20690if test -n "$lt_cv_module_path_var"; then
20691
20692cat >>confdefs.h <<_ACEOF
20693#define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
20694_ACEOF
20695
20696fi
20697
20698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
20699$as_echo_n "checking for the default library search path... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020700if ${lt_cv_sys_dlsearch_path+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020701 $as_echo_n "(cached) " >&6
20702else
20703 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
20704fi
20705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
20706$as_echo "$lt_cv_sys_dlsearch_path" >&6; }
20707if test -n "$lt_cv_sys_dlsearch_path"; then
20708 sys_dlsearch_path=
20709 for dir in $lt_cv_sys_dlsearch_path; do
20710 if test -z "$sys_dlsearch_path"; then
20711 sys_dlsearch_path="$dir"
20712 else
20713 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
20714 fi
20715 done
20716
20717cat >>confdefs.h <<_ACEOF
20718#define LT_DLSEARCH_PATH "$sys_dlsearch_path"
20719_ACEOF
20720
20721fi
20722
20723
20724LT_DLLOADERS=
20725
20726
20727ac_ext=c
20728ac_cpp='$CPP $CPPFLAGS'
20729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20731ac_compiler_gnu=$ac_cv_c_compiler_gnu
20732
20733
20734LIBADD_DLOPEN=
20735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
20736$as_echo_n "checking for library containing dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020737if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020738 $as_echo_n "(cached) " >&6
20739else
20740 ac_func_search_save_LIBS=$LIBS
20741cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20742/* end confdefs.h. */
20743
20744/* Override any GCC internal prototype to avoid an error.
20745 Use char because int might match the return type of a GCC
20746 builtin and then its argument prototype would still apply. */
20747#ifdef __cplusplus
20748extern "C"
20749#endif
20750char dlopen ();
20751int
20752main ()
20753{
20754return dlopen ();
20755 ;
20756 return 0;
20757}
20758_ACEOF
20759for ac_lib in '' dl; do
20760 if test -z "$ac_lib"; then
20761 ac_res="none required"
20762 else
20763 ac_res=-l$ac_lib
20764 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
20765 fi
20766 if ac_fn_c_try_link "$LINENO"; then :
20767 ac_cv_search_dlopen=$ac_res
20768fi
20769rm -f core conftest.err conftest.$ac_objext \
20770 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000020771 if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020772 break
20773fi
20774done
cristyda16f162011-02-19 23:52:17 +000020775if ${ac_cv_search_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020776
20777else
20778 ac_cv_search_dlopen=no
20779fi
20780rm conftest.$ac_ext
20781LIBS=$ac_func_search_save_LIBS
20782fi
20783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
20784$as_echo "$ac_cv_search_dlopen" >&6; }
20785ac_res=$ac_cv_search_dlopen
20786if test "$ac_res" != no; then :
20787 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
20788
20789$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20790
20791 if test "$ac_cv_search_dlopen" != "none required" ; then
20792 LIBADD_DLOPEN="-ldl"
20793 fi
20794 libltdl_cv_lib_dl_dlopen="yes"
20795 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20796else
20797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20798/* end confdefs.h. */
20799#if HAVE_DLFCN_H
20800# include <dlfcn.h>
20801#endif
20802
20803int
20804main ()
20805{
20806dlopen(0, 0);
20807 ;
20808 return 0;
20809}
20810_ACEOF
20811if ac_fn_c_try_link "$LINENO"; then :
20812
20813$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20814
20815 libltdl_cv_func_dlopen="yes"
20816 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20817else
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
20819$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020820if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020821 $as_echo_n "(cached) " >&6
20822else
20823 ac_check_lib_save_LIBS=$LIBS
20824LIBS="-lsvld $LIBS"
20825cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20826/* end confdefs.h. */
20827
20828/* Override any GCC internal prototype to avoid an error.
20829 Use char because int might match the return type of a GCC
20830 builtin and then its argument prototype would still apply. */
20831#ifdef __cplusplus
20832extern "C"
20833#endif
20834char dlopen ();
20835int
20836main ()
20837{
20838return dlopen ();
20839 ;
20840 return 0;
20841}
20842_ACEOF
20843if ac_fn_c_try_link "$LINENO"; then :
20844 ac_cv_lib_svld_dlopen=yes
20845else
20846 ac_cv_lib_svld_dlopen=no
20847fi
20848rm -f core conftest.err conftest.$ac_objext \
20849 conftest$ac_exeext conftest.$ac_ext
20850LIBS=$ac_check_lib_save_LIBS
20851fi
20852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
20853$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000020854if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020855
20856$as_echo "#define HAVE_LIBDL 1" >>confdefs.h
20857
20858 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
20859 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
20860fi
20861
20862fi
20863rm -f core conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20865fi
20866
20867if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
20868then
20869 lt_save_LIBS="$LIBS"
20870 LIBS="$LIBS $LIBADD_DLOPEN"
20871 for ac_func in dlerror
20872do :
20873 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
cristyda16f162011-02-19 23:52:17 +000020874if test "x$ac_cv_func_dlerror" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020875 cat >>confdefs.h <<_ACEOF
20876#define HAVE_DLERROR 1
20877_ACEOF
20878
20879fi
20880done
20881
20882 LIBS="$lt_save_LIBS"
20883fi
20884
20885
20886LIBADD_SHL_LOAD=
20887ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000020888if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020889
20890$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20891
20892 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20893else
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
20895$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020896if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020897 $as_echo_n "(cached) " >&6
20898else
20899 ac_check_lib_save_LIBS=$LIBS
20900LIBS="-ldld $LIBS"
20901cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20902/* end confdefs.h. */
20903
20904/* Override any GCC internal prototype to avoid an error.
20905 Use char because int might match the return type of a GCC
20906 builtin and then its argument prototype would still apply. */
20907#ifdef __cplusplus
20908extern "C"
20909#endif
20910char shl_load ();
20911int
20912main ()
20913{
20914return shl_load ();
20915 ;
20916 return 0;
20917}
20918_ACEOF
20919if ac_fn_c_try_link "$LINENO"; then :
20920 ac_cv_lib_dld_shl_load=yes
20921else
20922 ac_cv_lib_dld_shl_load=no
20923fi
20924rm -f core conftest.err conftest.$ac_objext \
20925 conftest$ac_exeext conftest.$ac_ext
20926LIBS=$ac_check_lib_save_LIBS
20927fi
20928{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
20929$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000020930if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020931
20932$as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
20933
20934 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
20935 LIBADD_SHL_LOAD="-ldld"
20936fi
20937
20938fi
20939
20940
20941
20942case $host_os in
20943darwin[1567].*)
20944# We only want this for pre-Mac OS X 10.4.
20945 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
cristyda16f162011-02-19 23:52:17 +000020946if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020947
20948$as_echo "#define HAVE_DYLD 1" >>confdefs.h
20949
20950 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
20951fi
20952
20953 ;;
20954beos*)
20955 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
20956 ;;
20957cygwin* | mingw* | os2* | pw32*)
20958 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
20959"
cristyda16f162011-02-19 23:52:17 +000020960if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000020961 ac_have_decl=1
20962else
20963 ac_have_decl=0
20964fi
20965
20966cat >>confdefs.h <<_ACEOF
20967#define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
20968_ACEOF
20969
20970 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
20971 ;;
20972esac
20973
20974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
20975$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000020976if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000020977 $as_echo_n "(cached) " >&6
20978else
20979 ac_check_lib_save_LIBS=$LIBS
20980LIBS="-ldld $LIBS"
20981cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20982/* end confdefs.h. */
20983
20984/* Override any GCC internal prototype to avoid an error.
20985 Use char because int might match the return type of a GCC
20986 builtin and then its argument prototype would still apply. */
20987#ifdef __cplusplus
20988extern "C"
20989#endif
20990char dld_link ();
20991int
20992main ()
20993{
20994return dld_link ();
20995 ;
20996 return 0;
20997}
20998_ACEOF
20999if ac_fn_c_try_link "$LINENO"; then :
21000 ac_cv_lib_dld_dld_link=yes
21001else
21002 ac_cv_lib_dld_dld_link=no
21003fi
21004rm -f core conftest.err conftest.$ac_objext \
21005 conftest$ac_exeext conftest.$ac_ext
21006LIBS=$ac_check_lib_save_LIBS
21007fi
21008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
21009$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000021010if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021011
21012$as_echo "#define HAVE_DLD 1" >>confdefs.h
21013
21014 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
21015fi
21016
21017
21018
21019
21020LT_DLPREOPEN=
21021if test -n "$LT_DLLOADERS"
21022then
21023 for lt_loader in $LT_DLLOADERS; do
21024 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
21025 done
21026
21027$as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
21028
21029fi
21030
21031
21032LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
21033
21034
21035ac_ext=c
21036ac_cpp='$CPP $CPPFLAGS'
21037ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21038ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21039ac_compiler_gnu=$ac_cv_c_compiler_gnu
21040
21041
21042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
21043$as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021044if ${lt_cv_sys_symbol_underscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021045 $as_echo_n "(cached) " >&6
21046else
21047 lt_cv_sys_symbol_underscore=no
21048 cat > conftest.$ac_ext <<_LT_EOF
21049void nm_test_func(){}
21050int main(){nm_test_func;return 0;}
21051_LT_EOF
21052 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
21053 (eval $ac_compile) 2>&5
21054 ac_status=$?
21055 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21056 test $ac_status = 0; }; then
21057 # Now try to grab the symbols.
21058 ac_nlist=conftest.nm
21059 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
21060 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
21061 ac_status=$?
21062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21063 test $ac_status = 0; } && test -s "$ac_nlist"; then
21064 # See whether the symbols have a leading underscore.
21065 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
21066 lt_cv_sys_symbol_underscore=yes
21067 else
21068 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
21069 :
21070 else
21071 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
21072 fi
21073 fi
21074 else
21075 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
21076 fi
21077 else
21078 echo "configure: failed program was:" >&5
21079 cat conftest.c >&5
21080 fi
21081 rm -rf conftest*
21082
21083fi
21084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
21085$as_echo "$lt_cv_sys_symbol_underscore" >&6; }
21086 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
21087
21088
21089if test x"$lt_cv_sys_symbol_underscore" = xyes; then
21090 if test x"$libltdl_cv_func_dlopen" = xyes ||
21091 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
21092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
21093$as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021094if ${libltdl_cv_need_uscore+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021095 $as_echo_n "(cached) " >&6
21096else
21097 libltdl_cv_need_uscore=unknown
21098 save_LIBS="$LIBS"
21099 LIBS="$LIBS $LIBADD_DLOPEN"
21100 if test "$cross_compiling" = yes; then :
21101 libltdl_cv_need_uscore=cross
21102else
21103 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
21104 lt_status=$lt_dlunknown
21105 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000021106#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000021107#include "confdefs.h"
21108
21109#if HAVE_DLFCN_H
21110#include <dlfcn.h>
21111#endif
21112
21113#include <stdio.h>
21114
21115#ifdef RTLD_GLOBAL
21116# define LT_DLGLOBAL RTLD_GLOBAL
21117#else
21118# ifdef DL_GLOBAL
21119# define LT_DLGLOBAL DL_GLOBAL
21120# else
21121# define LT_DLGLOBAL 0
21122# endif
21123#endif
21124
21125/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
21126 find out it does not work in some platform. */
21127#ifndef LT_DLLAZY_OR_NOW
21128# ifdef RTLD_LAZY
21129# define LT_DLLAZY_OR_NOW RTLD_LAZY
21130# else
21131# ifdef DL_LAZY
21132# define LT_DLLAZY_OR_NOW DL_LAZY
21133# else
21134# ifdef RTLD_NOW
21135# define LT_DLLAZY_OR_NOW RTLD_NOW
21136# else
21137# ifdef DL_NOW
21138# define LT_DLLAZY_OR_NOW DL_NOW
21139# else
21140# define LT_DLLAZY_OR_NOW 0
21141# endif
21142# endif
21143# endif
21144# endif
21145#endif
21146
cristy0c60a692010-11-04 01:09:47 +000021147/* When -fvisbility=hidden is used, assume the code has been annotated
21148 correspondingly for the symbols needed. */
21149#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000021150int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000021151#endif
21152
cristyda16f162011-02-19 23:52:17 +000021153int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000021154int main ()
21155{
21156 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
21157 int status = $lt_dlunknown;
21158
21159 if (self)
21160 {
21161 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000021162 else
21163 {
21164 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
21165 else puts (dlerror ());
21166 }
cristy73bd4a52010-10-05 11:24:23 +000021167 /* dlclose (self); */
21168 }
21169 else
21170 puts (dlerror ());
21171
21172 return status;
21173}
21174_LT_EOF
21175 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
21176 (eval $ac_link) 2>&5
21177 ac_status=$?
21178 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
21179 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
21180 (./conftest; exit; ) >&5 2>/dev/null
21181 lt_status=$?
21182 case x$lt_status in
21183 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
21184 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
21185 x$lt_dlunknown|x*) ;;
21186 esac
21187 else :
21188 # compilation failed
21189
21190 fi
21191fi
21192rm -fr conftest*
21193
21194 LIBS="$save_LIBS"
21195
21196fi
21197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
21198$as_echo "$libltdl_cv_need_uscore" >&6; }
21199 fi
21200fi
21201
21202if test x"$libltdl_cv_need_uscore" = xyes; then
21203
21204$as_echo "#define NEED_USCORE 1" >>confdefs.h
21205
21206fi
21207
21208{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
21209$as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021210if ${lt_cv_sys_dlopen_deplibs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021211 $as_echo_n "(cached) " >&6
21212else
21213 # PORTME does your system automatically load deplibs for dlopen?
21214 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
21215 # For now, we just catch OSes we know something about -- in the
21216 # future, we'll try test this programmatically.
21217 lt_cv_sys_dlopen_deplibs=unknown
21218 case $host_os in
21219 aix3*|aix4.1.*|aix4.2.*)
21220 # Unknown whether this is true for these versions of AIX, but
21221 # we want this `case' here to explicitly catch those versions.
21222 lt_cv_sys_dlopen_deplibs=unknown
21223 ;;
21224 aix[4-9]*)
21225 lt_cv_sys_dlopen_deplibs=yes
21226 ;;
21227 amigaos*)
21228 case $host_cpu in
21229 powerpc)
21230 lt_cv_sys_dlopen_deplibs=no
21231 ;;
21232 esac
21233 ;;
21234 darwin*)
21235 # Assuming the user has installed a libdl from somewhere, this is true
21236 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
21237 lt_cv_sys_dlopen_deplibs=yes
21238 ;;
21239 freebsd* | dragonfly*)
21240 lt_cv_sys_dlopen_deplibs=yes
21241 ;;
cristy0c60a692010-11-04 01:09:47 +000021242 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000021243 # GNU and its variants, using gnu ld.so (Glibc)
21244 lt_cv_sys_dlopen_deplibs=yes
21245 ;;
21246 hpux10*|hpux11*)
21247 lt_cv_sys_dlopen_deplibs=yes
21248 ;;
21249 interix*)
21250 lt_cv_sys_dlopen_deplibs=yes
21251 ;;
21252 irix[12345]*|irix6.[01]*)
21253 # Catch all versions of IRIX before 6.2, and indicate that we don't
21254 # know how it worked for any of those versions.
21255 lt_cv_sys_dlopen_deplibs=unknown
21256 ;;
21257 irix*)
21258 # The case above catches anything before 6.2, and it's known that
21259 # at 6.2 and later dlopen does load deplibs.
21260 lt_cv_sys_dlopen_deplibs=yes
21261 ;;
21262 netbsd*)
21263 lt_cv_sys_dlopen_deplibs=yes
21264 ;;
21265 openbsd*)
21266 lt_cv_sys_dlopen_deplibs=yes
21267 ;;
21268 osf[1234]*)
21269 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
21270 # it did *not* use an RPATH in a shared library to find objects the
21271 # library depends on, so we explicitly say `no'.
21272 lt_cv_sys_dlopen_deplibs=no
21273 ;;
21274 osf5.0|osf5.0a|osf5.1)
21275 # dlopen *does* load deplibs and with the right loader patch applied
21276 # it even uses RPATH in a shared library to search for shared objects
21277 # that the library depends on, but there's no easy way to know if that
21278 # patch is installed. Since this is the case, all we can really
21279 # say is unknown -- it depends on the patch being installed. If
21280 # it is, this changes to `yes'. Without it, it would be `no'.
21281 lt_cv_sys_dlopen_deplibs=unknown
21282 ;;
21283 osf*)
21284 # the two cases above should catch all versions of osf <= 5.1. Read
21285 # the comments above for what we know about them.
21286 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
21287 # is used to find them so we can finally say `yes'.
21288 lt_cv_sys_dlopen_deplibs=yes
21289 ;;
21290 qnx*)
21291 lt_cv_sys_dlopen_deplibs=yes
21292 ;;
21293 solaris*)
21294 lt_cv_sys_dlopen_deplibs=yes
21295 ;;
21296 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21297 libltdl_cv_sys_dlopen_deplibs=yes
21298 ;;
21299 esac
21300
21301fi
21302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
21303$as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
21304if test "$lt_cv_sys_dlopen_deplibs" != yes; then
21305
21306$as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
21307
21308fi
21309
21310:
21311
21312for ac_header in argz.h
21313do :
21314 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
21315"
cristyda16f162011-02-19 23:52:17 +000021316if test "x$ac_cv_header_argz_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021317 cat >>confdefs.h <<_ACEOF
21318#define HAVE_ARGZ_H 1
21319_ACEOF
21320
21321fi
21322
21323done
21324
21325
21326ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
21327# include <argz.h>
21328#endif
21329"
cristyda16f162011-02-19 23:52:17 +000021330if test "x$ac_cv_type_error_t" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021331
21332cat >>confdefs.h <<_ACEOF
21333#define HAVE_ERROR_T 1
21334_ACEOF
21335
21336
21337else
21338
21339$as_echo "#define error_t int" >>confdefs.h
21340
21341
21342$as_echo "#define __error_t_defined 1" >>confdefs.h
21343
21344fi
21345
21346
21347ARGZ_H=
21348for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
21349 argz_next argz_stringify
21350do :
21351 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21352ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021353if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021354 cat >>confdefs.h <<_ACEOF
21355#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21356_ACEOF
21357
21358else
21359 ARGZ_H=argz.h;
21360
21361 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21362
21363fi
21364done
21365
21366
21367if test -z "$ARGZ_H"; then :
21368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
21369$as_echo_n "checking if argz actually works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021370if ${lt_cv_sys_argz_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021371 $as_echo_n "(cached) " >&6
21372else
21373 case $host_os in #(
21374 *cygwin*)
21375 lt_cv_sys_argz_works=no
21376 if test "$cross_compiling" != no; then
21377 lt_cv_sys_argz_works="guessing no"
21378 else
21379 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
21380 save_IFS=$IFS
21381 IFS=-.
21382 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
21383 IFS=$save_IFS
21384 lt_os_major=${2-0}
21385 lt_os_minor=${3-0}
21386 lt_os_micro=${4-0}
21387 if test "$lt_os_major" -gt 1 \
21388 || { test "$lt_os_major" -eq 1 \
21389 && { test "$lt_os_minor" -gt 5 \
21390 || { test "$lt_os_minor" -eq 5 \
21391 && test "$lt_os_micro" -gt 24; }; }; }; then
21392 lt_cv_sys_argz_works=yes
21393 fi
21394 fi
21395 ;; #(
21396 *) lt_cv_sys_argz_works=yes ;;
21397 esac
21398fi
21399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
21400$as_echo "$lt_cv_sys_argz_works" >&6; }
cristyda16f162011-02-19 23:52:17 +000021401 if test "$lt_cv_sys_argz_works" = yes; then :
cristy73bd4a52010-10-05 11:24:23 +000021402
21403$as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
21404
21405else
21406 ARGZ_H=argz.h
21407
21408
21409 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
21410
21411fi
21412fi
21413
21414
21415
21416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
21417$as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021418if ${libltdl_cv_preloaded_symbols+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021419 $as_echo_n "(cached) " >&6
21420else
21421 if test -n "$lt_cv_sys_global_symbol_pipe"; then
21422 libltdl_cv_preloaded_symbols=yes
21423 else
21424 libltdl_cv_preloaded_symbols=no
21425 fi
21426
21427fi
21428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
21429$as_echo "$libltdl_cv_preloaded_symbols" >&6; }
21430if test x"$libltdl_cv_preloaded_symbols" = xyes; then
21431
21432$as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
21433
21434fi
21435
21436# Set options
21437
21438
21439
21440
21441
21442
21443
21444
21445
21446
21447
21448# Check whether --with-included_ltdl was given.
21449if test "${with_included_ltdl+set}" = set; then :
21450 withval=$with_included_ltdl;
21451fi
21452
21453
21454if test "x$with_included_ltdl" != xyes; then
21455 # We are not being forced to use the included libltdl sources, so
21456 # decide whether there is a useful installed version we can use.
21457 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
21458
21459"
cristyda16f162011-02-19 23:52:17 +000021460if test "x$ac_cv_header_ltdl_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021461 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
21462 #include <ltdl.h>
21463"
cristyda16f162011-02-19 23:52:17 +000021464if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
21466$as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021467if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000021468 $as_echo_n "(cached) " >&6
21469else
21470 ac_check_lib_save_LIBS=$LIBS
21471LIBS="-lltdl $LIBS"
21472cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21473/* end confdefs.h. */
21474
21475/* Override any GCC internal prototype to avoid an error.
21476 Use char because int might match the return type of a GCC
21477 builtin and then its argument prototype would still apply. */
21478#ifdef __cplusplus
21479extern "C"
21480#endif
21481char lt_dladvise_preload ();
21482int
21483main ()
21484{
21485return lt_dladvise_preload ();
21486 ;
21487 return 0;
21488}
21489_ACEOF
21490if ac_fn_c_try_link "$LINENO"; then :
21491 ac_cv_lib_ltdl_lt_dladvise_preload=yes
21492else
21493 ac_cv_lib_ltdl_lt_dladvise_preload=no
21494fi
21495rm -f core conftest.err conftest.$ac_objext \
21496 conftest$ac_exeext conftest.$ac_ext
21497LIBS=$ac_check_lib_save_LIBS
21498fi
21499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
21500$as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
cristyda16f162011-02-19 23:52:17 +000021501if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000021502 with_included_ltdl=no
21503else
21504 with_included_ltdl=yes
21505fi
21506
21507else
21508 with_included_ltdl=yes
21509fi
21510
21511else
21512 with_included_ltdl=yes
21513fi
21514
21515
21516fi
21517
21518
21519
21520
21521# Check whether --with-ltdl_include was given.
21522if test "${with_ltdl_include+set}" = set; then :
21523 withval=$with_ltdl_include;
21524fi
21525
21526
21527if test -n "$with_ltdl_include"; then
21528 if test -f "$with_ltdl_include/ltdl.h"; then :
21529 else
cristy98dddb52010-11-04 00:30:15 +000021530 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021531 fi
21532else
21533 with_ltdl_include=no
21534fi
21535
21536
21537# Check whether --with-ltdl_lib was given.
21538if test "${with_ltdl_lib+set}" = set; then :
21539 withval=$with_ltdl_lib;
21540fi
21541
21542
21543if test -n "$with_ltdl_lib"; then
21544 if test -f "$with_ltdl_lib/libltdl.la"; then :
21545 else
cristy98dddb52010-11-04 00:30:15 +000021546 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021547 fi
21548else
21549 with_ltdl_lib=no
21550fi
21551
21552case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
21553 ,yes,no,no,)
cristy13d4e2f2012-10-15 19:11:23 +000021554 case $enable_ltdl_convenience in
21555 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
21556 "") enable_ltdl_convenience=yes
21557 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
cristy73bd4a52010-10-05 11:24:23 +000021558esac
cristy13d4e2f2012-10-15 19:11:23 +000021559LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
21560LTDLDEPS=$LIBLTDL
21561LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
cristy73bd4a52010-10-05 11:24:23 +000021562
21563
21564
21565
21566
21567# For backwards non-gettext consistent compatibility...
21568INCLTDL="$LTDLINCL"
21569
21570
21571 ;;
21572 ,no,no,no,)
21573 # If the included ltdl is not to be used, then use the
21574 # preinstalled libltdl we found.
21575
21576$as_echo "#define HAVE_LTDL 1" >>confdefs.h
21577
21578 LIBLTDL=-lltdl
21579 LTDLDEPS=
21580 LTDLINCL=
21581 ;;
21582 ,no*,no,*)
cristy98dddb52010-11-04 00:30:15 +000021583 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000021584 ;;
21585 *) with_included_ltdl=no
21586 LIBLTDL="-L$with_ltdl_lib -lltdl"
21587 LTDLDEPS=
21588 LTDLINCL="-I$with_ltdl_include"
21589 ;;
21590esac
21591INCLTDL="$LTDLINCL"
21592
21593# Report our decision...
21594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
21595$as_echo_n "checking where to find libltdl headers... " >&6; }
21596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
21597$as_echo "$LTDLINCL" >&6; }
21598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
21599$as_echo_n "checking where to find libltdl library... " >&6; }
21600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
21601$as_echo "$LIBLTDL" >&6; }
21602
21603
21604
21605# Check whether --enable-ltdl-install was given.
21606if test "${enable_ltdl_install+set}" = set; then :
21607 enableval=$enable_ltdl_install;
21608fi
21609
21610
21611case ,${enable_ltdl_install},${enable_ltdl_convenience} in
21612 *yes*) ;;
21613 *) enable_ltdl_convenience=yes ;;
21614esac
21615
21616 if test x"${enable_ltdl_install-no}" != xno; then
21617 INSTALL_LTDL_TRUE=
21618 INSTALL_LTDL_FALSE='#'
21619else
21620 INSTALL_LTDL_TRUE='#'
21621 INSTALL_LTDL_FALSE=
21622fi
21623
21624 if test x"${enable_ltdl_convenience-no}" != xno; then
21625 CONVENIENCE_LTDL_TRUE=
21626 CONVENIENCE_LTDL_FALSE='#'
21627else
21628 CONVENIENCE_LTDL_TRUE='#'
21629 CONVENIENCE_LTDL_FALSE=
21630fi
21631
21632
21633
21634
21635
21636
cristy73bd4a52010-10-05 11:24:23 +000021637# In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
21638# the user used. This is so that ltdl.h can pick up the parent projects
21639# config.h file, The first file in AC_CONFIG_HEADERS must contain the
21640# definitions required by ltdl.c.
21641# FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
21642
21643
21644
21645for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
21646do :
21647 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21648ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
21649"
cristy98dddb52010-11-04 00:30:15 +000021650if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021651 cat >>confdefs.h <<_ACEOF
21652#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21653_ACEOF
21654
21655fi
21656
21657done
21658
21659
21660for ac_func in closedir opendir readdir
21661do :
21662 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21663ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021664if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021665 cat >>confdefs.h <<_ACEOF
21666#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21667_ACEOF
21668
21669else
21670
21671
21672 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
21673
21674fi
21675done
21676
21677for ac_func in strlcat strlcpy
21678do :
21679 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
21680ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000021681if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000021682 cat >>confdefs.h <<_ACEOF
21683#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
21684_ACEOF
21685
21686else
21687
21688
21689 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
21690
21691fi
21692done
21693
21694
21695
21696cat >>confdefs.h <<_ACEOF
21697#define LT_LIBEXT "$libext"
21698_ACEOF
21699
21700
cristyda16f162011-02-19 23:52:17 +000021701name=
21702eval "lt_libprefix=\"$libname_spec\""
21703
21704cat >>confdefs.h <<_ACEOF
21705#define LT_LIBPREFIX "$lt_libprefix"
21706_ACEOF
21707
21708
cristy73bd4a52010-10-05 11:24:23 +000021709name=ltdl
cristyda16f162011-02-19 23:52:17 +000021710eval "LTDLOPEN=\"$libname_spec\""
cristy73bd4a52010-10-05 11:24:23 +000021711
21712
21713
21714
21715
21716
21717
21718
21719# Only expand once:
21720
21721
cristy3ed852e2009-09-05 21:47:34 +000021722
21723# Check to see if building shared libraries
21724libtool_build_shared_libs='no'
21725if test "$enable_shared" = 'yes'; then
21726 libtool_build_shared_libs='yes'
21727fi
21728
21729# Check to see if building static libraries
21730libtool_build_static_libs='no'
21731if test "$enable_static" = 'yes'; then
21732 libtool_build_static_libs='yes'
21733fi
21734
cristy73bd4a52010-10-05 11:24:23 +000021735 if test "${libtool_build_shared_libs}" = 'yes'; then
21736 WITH_SHARED_LIBS_TRUE=
21737 WITH_SHARED_LIBS_FALSE='#'
21738else
21739 WITH_SHARED_LIBS_TRUE='#'
21740 WITH_SHARED_LIBS_FALSE=
21741fi
21742
cristy3ed852e2009-09-05 21:47:34 +000021743#
21744# Enable support for building loadable modules
21745#
21746
21747# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000021748if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021749 withval=$with_modules; with_modules=$withval
21750else
cristy5a1cefd2010-01-06 20:42:35 +000021751 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000021752fi
21753
21754
21755# Only allow building loadable modules if we are building shared libraries
21756if test "$with_modules" != 'no' ; then
21757 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000021758 { $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 +000021759$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000021760 build_modules='no'
21761 else
21762 build_modules='yes'
21763 fi
cristy3ed852e2009-09-05 21:47:34 +000021764fi
cristyc6722092012-10-14 00:19:31 +000021765if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021766
cristy8b350f62009-11-15 23:12:43 +000021767$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021768
21769fi
cristyc6722092012-10-14 00:19:31 +000021770 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000021771 WITH_MODULES_TRUE=
21772 WITH_MODULES_FALSE='#'
21773else
21774 WITH_MODULES_TRUE='#'
21775 WITH_MODULES_FALSE=
21776fi
21777
cristy3ed852e2009-09-05 21:47:34 +000021778
cristyc6722092012-10-14 00:19:31 +000021779# Only use/depend on libtdl if we are building modules.
cristy3ed852e2009-09-05 21:47:34 +000021780with_ltdl='no'
cristyc6722092012-10-14 00:19:31 +000021781if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000021782 with_ltdl='yes'
21783fi
21784
cristy73bd4a52010-10-05 11:24:23 +000021785 if test "$with_ltdl" != 'no'; then
21786 WITH_LTDL_TRUE=
21787 WITH_LTDL_FALSE='#'
21788else
21789 WITH_LTDL_TRUE='#'
21790 WITH_LTDL_FALSE=
21791fi
21792
cristy3ed852e2009-09-05 21:47:34 +000021793if test "$with_ltdl" != 'no'; then
21794
cristy8b350f62009-11-15 23:12:43 +000021795$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021796
cristy3ed852e2009-09-05 21:47:34 +000021797fi
21798
21799# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000021800# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000021801# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000021802if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021803 enableval=$enable_delegate_build; enable_delegate_build=$enableval
21804else
21805 enable_delegate_build='no'
21806fi
21807
21808
21809# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000021810if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021811 enableval=$enable_deprecated; enable_deprecated=$enableval
21812else
21813 enable_deprecated='no'
21814fi
21815
21816
21817if test "$enable_deprecated" = 'yes'; then
21818
cristy8b350f62009-11-15 23:12:43 +000021819$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021820
21821else
21822 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
21823fi
21824
21825# Build a version of ImageMagick which operates uninstalled.
21826# Used to build distributions located via MAGICK_HOME / executable path
21827# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000021828if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021829 enableval=$enable_installed; enable_installed=$enableval
21830else
21831 enable_installed='yes'
21832fi
21833
21834
21835if test "$enable_installed" = 'yes'; then
21836
cristy8b350f62009-11-15 23:12:43 +000021837$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021838
21839else
21840 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
21841fi
21842
21843# Permit enciphering and deciphering image pixels.
21844# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000021845if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021846 enableval=$enable_cipher; enable_cipher=$enableval
21847else
21848 enable_cipher='yes'
21849fi
21850
21851
21852if test "$enable_cipher" = 'yes'; then
21853
cristy8b350f62009-11-15 23:12:43 +000021854$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021855
21856fi
21857
cristy6e3607c2011-09-13 13:59:17 +000021858# Build a zero-configuration version of ImageMagick.
21859# Check whether --enable-zero-configuration was given.
21860if test "${enable_zero_configuration+set}" = set; then :
21861 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000021862else
cristy6e3607c2011-09-13 13:59:17 +000021863 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000021864fi
21865
21866
cristy6e3607c2011-09-13 13:59:17 +000021867if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021868
cristy6e3607c2011-09-13 13:59:17 +000021869$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021870
cristy81af5702011-09-13 14:20:58 +000021871 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021872fi
21873
21874# Build a high dynamic range version of ImageMagick.
21875# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000021876if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021877 enableval=$enable_hdri; enable_hdri=$enableval
21878else
cristy191c0b72012-08-12 16:29:52 +000021879 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000021880fi
21881
21882
21883MAGICK_HDRI=""
21884if test "$enable_hdri" = 'yes'; then
21885 MAGICK_HDRI="HDRI"
21886
cristy8b350f62009-11-15 23:12:43 +000021887$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021888
cristyfd9dcd42010-08-08 18:07:02 +000021889 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000021890fi
21891
cristy3ed852e2009-09-05 21:47:34 +000021892# Build a version of ImageMagick with assert statements.
21893# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000021894if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021895 enableval=$enable_assert; enable_assert=$enableval
21896else
21897 enable_assert='yes'
21898fi
21899
21900
21901if test "$enable_assert" = 'no'; then
21902
cristy8b350f62009-11-15 23:12:43 +000021903$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021904
21905fi
21906
cristya448bd22011-10-14 12:38:13 +000021907# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000021908
21909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
21910$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
21911 # Check whether --enable-maintainer-mode was given.
21912if test "${enable_maintainer_mode+set}" = set; then :
21913 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
21914else
21915 USE_MAINTAINER_MODE=no
21916fi
21917
21918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
21919$as_echo "$USE_MAINTAINER_MODE" >&6; }
21920 if test $USE_MAINTAINER_MODE = yes; then
21921 MAINTAINER_MODE_TRUE=
21922 MAINTAINER_MODE_FALSE='#'
21923else
21924 MAINTAINER_MODE_TRUE='#'
21925 MAINTAINER_MODE_FALSE=
21926fi
21927
21928 MAINT=$MAINTAINER_MODE_TRUE
21929
21930
cristy3ed852e2009-09-05 21:47:34 +000021931
cristy3ed852e2009-09-05 21:47:34 +000021932# Enable ccmalloc memory debugging support
21933# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000021934if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021935 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
21936else
21937 enable_ccmalloc='no'
21938fi
21939
21940
21941# Enable Electric Fence memory debugging support
21942# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000021943if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021944 enableval=$enable_efence; enable_efence=$enableval
21945else
21946 enable_efence='no'
21947fi
21948
21949
21950# Enable prof-based profiling support
21951# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000021952if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021953 enableval=$enable_prof; enable_prof=$enableval
21954else
21955 enable_prof='no'
21956fi
21957
21958
21959# Enable gprof-based profiling support
21960# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000021961if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021962 enableval=$enable_gprof; enable_gprof=$enableval
21963else
21964 enable_gprof='no'
21965fi
21966
21967
21968# Enable gcov-based profiling support
21969# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000021970if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021971 enableval=$enable_gcov; enable_gcov=$enableval
21972else
21973 enable_gcov='no'
21974fi
21975
21976
21977enable_profiling='no'
21978if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
21979 enable_profiling='yes'
21980 if test "$libtool_build_shared_libs" = 'yes'; then
21981 echo "Warning: Can not profile code using shared libraries"
21982 fi
21983fi
21984
21985# Magick API method prefix
21986
21987# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000021988if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000021989 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000021990else
cristyfc3d0222012-02-07 15:05:57 +000021991 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000021992fi
21993
21994
cristyfc3d0222012-02-07 15:05:57 +000021995if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000021996
21997cat >>confdefs.h <<_ACEOF
21998#define NAMESPACE_PREFIX $with_method_prefix
21999_ACEOF
22000
cristyfc3d0222012-02-07 15:05:57 +000022001 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000022002fi
22003
cristy71d8c202012-03-20 17:05:01 +000022004# Enable legacy support (default no)
22005# Check whether --enable-legacy-support was given.
22006if test "${enable_legacy_support+set}" = set; then :
22007 enableval=$enable_legacy_support; with_legacy_support=$enableval
22008else
22009 with_legacy_support='no'
22010fi
22011
22012 if test "$with_legacy_support" != 'no'; then
22013 LEGACY_SUPPORT_TRUE=
22014 LEGACY_SUPPORT_FALSE='#'
22015else
22016 LEGACY_SUPPORT_TRUE='#'
22017 LEGACY_SUPPORT_FALSE=
22018fi
22019
22020
cristy3ed852e2009-09-05 21:47:34 +000022021# Number of bits in a Quantum
22022
22023# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000022024if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022025 withval=$with_quantum_depth; with_quantum_depth=$withval
22026else
22027 with_quantum_depth=16
22028fi
22029
22030
22031if test "$with_quantum_depth" != '8'; then
22032 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
22033fi
22034
22035case "${with_quantum_depth}" in
22036 8 ) ;;
22037 16 ) ;;
22038 32 ) ;;
22039 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000022040 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022041esac
22042QUANTUM_DEPTH="$with_quantum_depth"
22043
22044cat >>confdefs.h <<_ACEOF
22045#define QUANTUM_DEPTH $QUANTUM_DEPTH
22046_ACEOF
22047
22048
22049# Set pixel cache threshold
22050
22051# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000022052if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022053 withval=$with_cache; with_cache=$withval
22054else
22055 with_cache=''
22056fi
22057
22058
22059if test "$with_cache" != ''; then
22060
22061cat >>confdefs.h <<_ACEOF
22062#define PixelCacheThreshold $with_cache
22063_ACEOF
22064
22065 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
22066fi
22067
22068# Disable/Enable support for full delegate paths
22069
22070# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000022071if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022072 withval=$with_frozenpaths; with_frozenpaths=$withval
22073else
22074 with_frozenpaths='no'
22075fi
22076
22077
22078# Enable build/install of Magick++
22079
22080# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000022081if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022082 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
22083else
22084 with_magick_plus_plus='yes'
22085fi
22086
22087
cristy3a75f062012-09-08 23:29:40 +000022088# Encode the this name into the shared library.
22089
22090# Check whether --with-package-release-name was given.
22091if test "${with_package_release_name+set}" = set; then :
22092 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
22093fi
22094
22095
22096
cristy3ed852e2009-09-05 21:47:34 +000022097# Disable build/install of PerlMagick.
22098
22099# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000022100if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022101 withval=$with_perl; with_perl=$withval
22102else
cristyb5f4e2f2010-04-25 00:49:11 +000022103 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000022104fi
22105
22106
22107# Options to pass when configuring PerlMagick
22108
22109# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000022110if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000022111 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000022112fi
22113
22114
cristy3ed852e2009-09-05 21:47:34 +000022115
22116# Enable umem, object-caching memory allocation library.
22117
22118# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000022119if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022120 withval=$with_umem; with_umem=$withval
22121else
22122 with_umem='no'
22123fi
22124
22125if test "$with_umem" != 'yes' ; then
22126 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
22127fi
22128
22129#
22130# Specify path to shared libstdc++ if not in normal location
22131#
22132
22133# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000022134if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000022135 withval=$with_libstdc; with_libstdc=$withval
22136else
22137 with_libstdc=''
22138fi
22139
22140
22141if test "$with_libstdc" != ''; then
22142 if test -d "$with_libstdc"; then
22143 LIBSTDCLDFLAGS="-L$with_libstdc"
22144 fi
22145fi
22146
22147
22148# Does gcc required -traditional?
22149if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000022150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022151$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022152if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022153 $as_echo_n "(cached) " >&6
22154else
22155 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000022156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022157/* end confdefs.h. */
22158#include <sgtty.h>
22159Autoconf TIOCGETP
22160_ACEOF
22161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022162 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022163 ac_cv_prog_gcc_traditional=yes
22164else
22165 ac_cv_prog_gcc_traditional=no
22166fi
22167rm -f conftest*
22168
22169
22170 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000022171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022172/* end confdefs.h. */
22173#include <termio.h>
22174Autoconf TCGETA
22175_ACEOF
22176if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022177 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022178 ac_cv_prog_gcc_traditional=yes
22179fi
22180rm -f conftest*
22181
22182 fi
22183fi
cristy8b350f62009-11-15 23:12:43 +000022184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000022185$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
22186 if test $ac_cv_prog_gcc_traditional = yes; then
22187 CC="$CC -traditional"
22188 fi
22189fi
22190
22191
22192########
22193#
22194# Set defines required to build DLLs and modules using MinGW
22195#
22196########
22197# These options are set for multi-thread DLL module build
22198# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
22199# module: _DLL
22200# executable/Magick++: _DLL _MAGICKMOD_
22201MODULE_EXTRA_CPPFLAGS=''
22202LIBRARY_EXTRA_CPPFLAGS=''
22203if test "${native_win32_build}" = 'yes'; then
22204 if test "${libtool_build_shared_libs}" = 'yes'; then
22205 CPPFLAGS="$CPPFLAGS -D_DLL"
22206 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
22207 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
22208 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000022209 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000022210 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
22211 else
22212 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
22213 fi
22214 else
22215 CPPFLAGS="$CPPFLAGS -D_LIB"
22216 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
22217 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
22218 fi
22219 if test "$with_threads" = 'yes'; then
22220 CPPFLAGS="$CPPFLAGS -D_MT"
22221 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
22222 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
22223 fi
22224fi
22225
22226
22227
22228# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000022229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000022230$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022231if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022232 $as_echo_n "(cached) " >&6
22233else
cristy8b350f62009-11-15 23:12:43 +000022234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022235/* end confdefs.h. */
22236#include <stdlib.h>
22237#include <stdarg.h>
22238#include <string.h>
22239#include <float.h>
22240
22241int
22242main ()
22243{
22244
22245 ;
22246 return 0;
22247}
22248_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022249if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022250 ac_cv_header_stdc=yes
22251else
cristy8b350f62009-11-15 23:12:43 +000022252 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022253fi
cristy3ed852e2009-09-05 21:47:34 +000022254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22255
22256if test $ac_cv_header_stdc = yes; then
22257 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022259/* end confdefs.h. */
22260#include <string.h>
22261
22262_ACEOF
22263if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022264 $EGREP "memchr" >/dev/null 2>&1; then :
22265
cristy3ed852e2009-09-05 21:47:34 +000022266else
22267 ac_cv_header_stdc=no
22268fi
22269rm -f conftest*
22270
22271fi
22272
22273if test $ac_cv_header_stdc = yes; then
22274 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000022275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022276/* end confdefs.h. */
22277#include <stdlib.h>
22278
22279_ACEOF
22280if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022281 $EGREP "free" >/dev/null 2>&1; then :
22282
cristy3ed852e2009-09-05 21:47:34 +000022283else
22284 ac_cv_header_stdc=no
22285fi
22286rm -f conftest*
22287
22288fi
22289
22290if test $ac_cv_header_stdc = yes; then
22291 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000022292 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022293 :
22294else
cristy8b350f62009-11-15 23:12:43 +000022295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022296/* end confdefs.h. */
22297#include <ctype.h>
22298#include <stdlib.h>
22299#if ((' ' & 0x0FF) == 0x020)
22300# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
22301# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
22302#else
22303# define ISLOWER(c) \
22304 (('a' <= (c) && (c) <= 'i') \
22305 || ('j' <= (c) && (c) <= 'r') \
22306 || ('s' <= (c) && (c) <= 'z'))
22307# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
22308#endif
22309
22310#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
22311int
22312main ()
22313{
22314 int i;
22315 for (i = 0; i < 256; i++)
22316 if (XOR (islower (i), ISLOWER (i))
22317 || toupper (i) != TOUPPER (i))
22318 return 2;
22319 return 0;
22320}
22321_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022322if ac_fn_c_try_run "$LINENO"; then :
22323
cristy3ed852e2009-09-05 21:47:34 +000022324else
cristy8b350f62009-11-15 23:12:43 +000022325 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000022326fi
cristy8b350f62009-11-15 23:12:43 +000022327rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22328 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022329fi
22330
cristy3ed852e2009-09-05 21:47:34 +000022331fi
22332fi
cristy8b350f62009-11-15 23:12:43 +000022333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000022334$as_echo "$ac_cv_header_stdc" >&6; }
22335if test $ac_cv_header_stdc = yes; then
22336
cristy8b350f62009-11-15 23:12:43 +000022337$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022338
22339fi
22340
22341if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000022342 { $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 +000022343 header files. Compilation cannot proceed. Please install the ANSI C
22344 headers and rerun this script." >&5
22345$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
22346 header files. Compilation cannot proceed. Please install the ANSI C
22347 headers and rerun this script." >&2;};
22348fi
cristya0b81c32010-01-22 02:54:33 +000022349
22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
22351$as_echo_n "checking whether to enable assertions... " >&6; }
22352 # Check whether --enable-assert was given.
22353if test "${enable_assert+set}" = set; then :
22354 enableval=$enable_assert; ac_enable_assert=$enableval
22355 if test "x$enableval" = xno; then :
22356
22357$as_echo "#define NDEBUG 1" >>confdefs.h
22358
22359elif test "x$enableval" != xyes; then :
22360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
22361$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
22362 ac_enable_assert=yes
22363fi
22364else
22365 ac_enable_assert=yes
22366fi
22367
22368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
22369$as_echo "$ac_enable_assert" >&6; }
22370
cristy3ed852e2009-09-05 21:47:34 +000022371ac_header_dirent=no
22372for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
22373 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000022374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000022375$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022376if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022377 $as_echo_n "(cached) " >&6
22378else
cristy8b350f62009-11-15 23:12:43 +000022379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022380/* end confdefs.h. */
22381#include <sys/types.h>
22382#include <$ac_hdr>
22383
22384int
22385main ()
22386{
22387if ((DIR *) 0)
22388return 0;
22389 ;
22390 return 0;
22391}
22392_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022393if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022394 eval "$as_ac_Header=yes"
22395else
cristy8b350f62009-11-15 23:12:43 +000022396 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000022397fi
cristy3ed852e2009-09-05 21:47:34 +000022398rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22399fi
cristy8b350f62009-11-15 23:12:43 +000022400eval ac_res=\$$as_ac_Header
22401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000022402$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000022403if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022404 cat >>confdefs.h <<_ACEOF
22405#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
22406_ACEOF
22407
22408ac_header_dirent=$ac_hdr; break
22409fi
22410
22411done
22412# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
22413if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000022414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022415$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022416if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022417 $as_echo_n "(cached) " >&6
22418else
22419 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022420cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022421/* end confdefs.h. */
22422
22423/* Override any GCC internal prototype to avoid an error.
22424 Use char because int might match the return type of a GCC
22425 builtin and then its argument prototype would still apply. */
22426#ifdef __cplusplus
22427extern "C"
22428#endif
22429char opendir ();
22430int
22431main ()
22432{
22433return opendir ();
22434 ;
22435 return 0;
22436}
22437_ACEOF
22438for ac_lib in '' dir; do
22439 if test -z "$ac_lib"; then
22440 ac_res="none required"
22441 else
22442 ac_res=-l$ac_lib
22443 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22444 fi
cristy8b350f62009-11-15 23:12:43 +000022445 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022446 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022447fi
cristy8b350f62009-11-15 23:12:43 +000022448rm -f core conftest.err conftest.$ac_objext \
22449 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022450 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022451 break
22452fi
22453done
cristyda16f162011-02-19 23:52:17 +000022454if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022455
cristy3ed852e2009-09-05 21:47:34 +000022456else
22457 ac_cv_search_opendir=no
22458fi
22459rm conftest.$ac_ext
22460LIBS=$ac_func_search_save_LIBS
22461fi
cristy8b350f62009-11-15 23:12:43 +000022462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022463$as_echo "$ac_cv_search_opendir" >&6; }
22464ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022465if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022466 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22467
22468fi
22469
22470else
cristy8b350f62009-11-15 23:12:43 +000022471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022472$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022473if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022474 $as_echo_n "(cached) " >&6
22475else
22476 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000022477cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022478/* end confdefs.h. */
22479
22480/* Override any GCC internal prototype to avoid an error.
22481 Use char because int might match the return type of a GCC
22482 builtin and then its argument prototype would still apply. */
22483#ifdef __cplusplus
22484extern "C"
22485#endif
22486char opendir ();
22487int
22488main ()
22489{
22490return opendir ();
22491 ;
22492 return 0;
22493}
22494_ACEOF
22495for ac_lib in '' x; do
22496 if test -z "$ac_lib"; then
22497 ac_res="none required"
22498 else
22499 ac_res=-l$ac_lib
22500 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
22501 fi
cristy8b350f62009-11-15 23:12:43 +000022502 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022503 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000022504fi
cristy8b350f62009-11-15 23:12:43 +000022505rm -f core conftest.err conftest.$ac_objext \
22506 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000022507 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022508 break
22509fi
22510done
cristyda16f162011-02-19 23:52:17 +000022511if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000022512
cristy3ed852e2009-09-05 21:47:34 +000022513else
22514 ac_cv_search_opendir=no
22515fi
22516rm conftest.$ac_ext
22517LIBS=$ac_func_search_save_LIBS
22518fi
cristy8b350f62009-11-15 23:12:43 +000022519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000022520$as_echo "$ac_cv_search_opendir" >&6; }
22521ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000022522if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000022523 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
22524
22525fi
22526
22527fi
22528
22529
22530# Check additional headers
cristy58945e42012-09-04 14:33:54 +000022531for 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 +000022532do :
22533 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22534ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000022535if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000022536 cat >>confdefs.h <<_ACEOF
22537#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22538_ACEOF
22539
22540fi
22541
22542done
22543
22544
22545########
22546#
22547# Checks for typedefs, structures, and compiler characteristics.
22548#
22549########
22550
cristy8b350f62009-11-15 23:12:43 +000022551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000022552$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022553if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022554 $as_echo_n "(cached) " >&6
22555else
cristy8b350f62009-11-15 23:12:43 +000022556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022557/* end confdefs.h. */
22558
cristy14fefe52012-05-21 00:59:18 +000022559 #include <stdbool.h>
22560 #ifndef bool
22561 "error: bool is not defined"
22562 #endif
22563 #ifndef false
22564 "error: false is not defined"
22565 #endif
22566 #if false
22567 "error: false is not 0"
22568 #endif
22569 #ifndef true
22570 "error: true is not defined"
22571 #endif
22572 #if true != 1
22573 "error: true is not 1"
22574 #endif
22575 #ifndef __bool_true_false_are_defined
22576 "error: __bool_true_false_are_defined is not defined"
22577 #endif
cristy3ed852e2009-09-05 21:47:34 +000022578
cristy14fefe52012-05-21 00:59:18 +000022579 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000022580
cristy14fefe52012-05-21 00:59:18 +000022581 char a[true == 1 ? 1 : -1];
22582 char b[false == 0 ? 1 : -1];
22583 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
22584 char d[(bool) 0.5 == true ? 1 : -1];
22585 /* See body of main program for 'e'. */
22586 char f[(_Bool) 0.0 == false ? 1 : -1];
22587 char g[true];
22588 char h[sizeof (_Bool)];
22589 char i[sizeof s.t];
22590 enum { j = false, k = true, l = false * true, m = true * 256 };
22591 /* The following fails for
22592 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
22593 _Bool n[m];
22594 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
22595 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
22596 /* Catch a bug in an HP-UX C compiler. See
22597 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
22598 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
22599 */
22600 _Bool q = true;
22601 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000022602
22603int
22604main ()
22605{
22606
cristy14fefe52012-05-21 00:59:18 +000022607 bool e = &s;
22608 *pq |= q;
22609 *pq |= ! q;
22610 /* Refer to every declared value, to avoid compiler optimizations. */
22611 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
22612 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000022613
22614 ;
22615 return 0;
22616}
22617_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022618if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022619 ac_cv_header_stdbool_h=yes
22620else
cristy8b350f62009-11-15 23:12:43 +000022621 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000022622fi
cristy3ed852e2009-09-05 21:47:34 +000022623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22624fi
cristy8b350f62009-11-15 23:12:43 +000022625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000022626$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000022627 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000022628if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000022629
22630cat >>confdefs.h <<_ACEOF
22631#define HAVE__BOOL 1
22632_ACEOF
22633
22634
22635fi
22636
cristy14fefe52012-05-21 00:59:18 +000022637
cristy3ed852e2009-09-05 21:47:34 +000022638if test $ac_cv_header_stdbool_h = yes; then
22639
cristy8b350f62009-11-15 23:12:43 +000022640$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022641
22642fi
22643
cristy8b350f62009-11-15 23:12:43 +000022644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022645$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022646if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022647 $as_echo_n "(cached) " >&6
22648else
cristy8b350f62009-11-15 23:12:43 +000022649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022650/* end confdefs.h. */
22651
22652int
22653main ()
22654{
22655
22656volatile int x;
22657int * volatile y = (int *) 0;
22658return !x && !y;
22659 ;
22660 return 0;
22661}
22662_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022663if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022664 ac_cv_c_volatile=yes
22665else
cristy8b350f62009-11-15 23:12:43 +000022666 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000022667fi
cristy3ed852e2009-09-05 21:47:34 +000022668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22669fi
cristy8b350f62009-11-15 23:12:43 +000022670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000022671$as_echo "$ac_cv_c_volatile" >&6; }
22672if test $ac_cv_c_volatile = no; then
22673
cristy8b350f62009-11-15 23:12:43 +000022674$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022675
22676fi
22677
cristy8b350f62009-11-15 23:12:43 +000022678{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000022679$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022680if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022681 $as_echo_n "(cached) " >&6
22682else
cristy8b350f62009-11-15 23:12:43 +000022683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022684/* end confdefs.h. */
22685#define x(y) #y
22686
22687char *s = x(teststring);
22688_ACEOF
22689if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000022690 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000022691 ac_cv_c_stringize=no
22692else
22693 ac_cv_c_stringize=yes
22694fi
22695rm -f conftest*
22696
22697fi
cristy8b350f62009-11-15 23:12:43 +000022698{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000022699$as_echo "$ac_cv_c_stringize" >&6; }
22700if test $ac_cv_c_stringize = yes; then
22701
cristy8b350f62009-11-15 23:12:43 +000022702$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022703
22704fi
22705
cristy8b350f62009-11-15 23:12:43 +000022706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022707$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022708if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022709 $as_echo_n "(cached) " >&6
22710else
cristy8b350f62009-11-15 23:12:43 +000022711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022712/* end confdefs.h. */
22713#include <sys/types.h>
22714#include <sys/stat.h>
22715
22716#if defined S_ISBLK && defined S_IFDIR
22717extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
22718#endif
22719
22720#if defined S_ISBLK && defined S_IFCHR
22721extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
22722#endif
22723
22724#if defined S_ISLNK && defined S_IFREG
22725extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
22726#endif
22727
22728#if defined S_ISSOCK && defined S_IFREG
22729extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
22730#endif
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_header_stat_broken=no
22735else
cristy8b350f62009-11-15 23:12:43 +000022736 ac_cv_header_stat_broken=yes
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_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000022741$as_echo "$ac_cv_header_stat_broken" >&6; }
22742if test $ac_cv_header_stat_broken = yes; then
22743
cristy8b350f62009-11-15 23:12:43 +000022744$as_echo "#define STAT_MACROS_BROKEN 1" >>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 whether time.h and sys/time.h may both be included" >&5
cristy3ed852e2009-09-05 21:47:34 +000022749$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022750if ${ac_cv_header_time+:} 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#include <sys/types.h>
22756#include <sys/time.h>
22757#include <time.h>
22758
22759int
22760main ()
22761{
22762if ((struct tm *) 0)
22763return 0;
22764 ;
22765 return 0;
22766}
22767_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022768if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022769 ac_cv_header_time=yes
22770else
cristy8b350f62009-11-15 23:12:43 +000022771 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000022772fi
cristy3ed852e2009-09-05 21:47:34 +000022773rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22774fi
cristy8b350f62009-11-15 23:12:43 +000022775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000022776$as_echo "$ac_cv_header_time" >&6; }
22777if test $ac_cv_header_time = yes; then
22778
cristy8b350f62009-11-15 23:12:43 +000022779$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022780
22781fi
22782
cristy8b350f62009-11-15 23:12:43 +000022783{ $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 +000022784$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022785if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022786 $as_echo_n "(cached) " >&6
22787else
cristy8b350f62009-11-15 23:12:43 +000022788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022789/* end confdefs.h. */
22790#include <sys/types.h>
22791#include <time.h>
22792
22793int
22794main ()
22795{
22796struct tm tm;
22797 int *p = &tm.tm_sec;
22798 return !p;
22799 ;
22800 return 0;
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_struct_tm=time.h
22805else
cristy8b350f62009-11-15 23:12:43 +000022806 ac_cv_struct_tm=sys/time.h
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_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000022811$as_echo "$ac_cv_struct_tm" >&6; }
22812if test $ac_cv_struct_tm = sys/time.h; then
22813
cristy8b350f62009-11-15 23:12:43 +000022814$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022815
22816fi
22817
cristy92703d82010-04-26 00:18:18 +000022818ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
22819#include <$ac_cv_struct_tm>
22820
22821"
cristyda16f162011-02-19 23:52:17 +000022822if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022823
22824cat >>confdefs.h <<_ACEOF
22825#define HAVE_STRUCT_TM_TM_ZONE 1
22826_ACEOF
22827
22828
22829fi
22830
22831if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
22832
22833$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
22834
22835else
22836 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
22837"
cristyda16f162011-02-19 23:52:17 +000022838if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000022839 ac_have_decl=1
22840else
22841 ac_have_decl=0
22842fi
22843
22844cat >>confdefs.h <<_ACEOF
22845#define HAVE_DECL_TZNAME $ac_have_decl
22846_ACEOF
22847
22848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
22849$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022850if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000022851 $as_echo_n "(cached) " >&6
22852else
22853 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22854/* end confdefs.h. */
22855#include <time.h>
22856#if !HAVE_DECL_TZNAME
22857extern char *tzname[];
22858#endif
22859
22860int
22861main ()
22862{
22863return tzname[0][0];
22864 ;
22865 return 0;
22866}
22867_ACEOF
22868if ac_fn_c_try_link "$LINENO"; then :
22869 ac_cv_var_tzname=yes
22870else
22871 ac_cv_var_tzname=no
22872fi
22873rm -f core conftest.err conftest.$ac_objext \
22874 conftest$ac_exeext conftest.$ac_ext
22875fi
22876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
22877$as_echo "$ac_cv_var_tzname" >&6; }
22878 if test $ac_cv_var_tzname = yes; then
22879
22880$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
22881
22882 fi
22883fi
22884
cristy8b350f62009-11-15 23:12:43 +000022885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000022886$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022887if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022888 $as_echo_n "(cached) " >&6
22889else
22890 echo '#! /bin/cat
22891exit 69
22892' >conftest
22893chmod u+x conftest
22894(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
22895if test $? -ne 69; then
22896 ac_cv_sys_interpreter=yes
22897else
22898 ac_cv_sys_interpreter=no
22899fi
22900rm -f conftest
22901fi
cristy8b350f62009-11-15 23:12:43 +000022902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000022903$as_echo "$ac_cv_sys_interpreter" >&6; }
22904interpval=$ac_cv_sys_interpreter
22905
22906
cristy3ed852e2009-09-05 21:47:34 +000022907# If the C compiler supports the keyword inline, do nothing. Otherwise
22908# define inline to __inline__ or __inline if it accepts one of those,
22909# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000022910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022911$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022912if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022913 $as_echo_n "(cached) " >&6
22914else
22915 ac_cv_c_inline=no
22916for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000022917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022918/* end confdefs.h. */
22919#ifndef __cplusplus
22920typedef int foo_t;
22921static $ac_kw foo_t static_foo () {return 0; }
22922$ac_kw foo_t foo () {return 0; }
22923#endif
22924
22925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022926if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022927 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022928fi
cristy3ed852e2009-09-05 21:47:34 +000022929rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22930 test "$ac_cv_c_inline" != no && break
22931done
22932
22933fi
cristy8b350f62009-11-15 23:12:43 +000022934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000022935$as_echo "$ac_cv_c_inline" >&6; }
22936
cristy3ed852e2009-09-05 21:47:34 +000022937case $ac_cv_c_inline in
22938 inline | yes) ;;
22939 *)
22940 case $ac_cv_c_inline in
22941 no) ac_val=;;
22942 *) ac_val=$ac_cv_c_inline;;
22943 esac
22944 cat >>confdefs.h <<_ACEOF
22945#ifndef __cplusplus
22946#define inline $ac_val
22947#endif
22948_ACEOF
22949 ;;
22950esac
22951
22952
22953# If the C compiler supports the keyword restrict, do nothing. Otherwise
22954# define restrict to __restrict__ or __restrict if it accepts one of those,
22955# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000022956{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000022957$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022958if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022959 $as_echo_n "(cached) " >&6
22960else
22961 ac_cv_c_restrict=no
22962 # The order here caters to the fact that C++ does not require restrict.
22963 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000022964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022965/* end confdefs.h. */
22966typedef int * int_ptr;
22967 int foo (int_ptr $ac_kw ip) {
22968 return ip[0];
22969 }
22970int
22971main ()
22972{
22973int s[1];
22974 int * $ac_kw t = s;
22975 t[0] = 0;
22976 return foo(t)
22977 ;
22978 return 0;
22979}
22980_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022981if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022982 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000022983fi
cristy3ed852e2009-09-05 21:47:34 +000022984rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22985 test "$ac_cv_c_restrict" != no && break
22986 done
22987
22988fi
cristy8b350f62009-11-15 23:12:43 +000022989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000022990$as_echo "$ac_cv_c_restrict" >&6; }
22991
cristy3ed852e2009-09-05 21:47:34 +000022992 case $ac_cv_c_restrict in
22993 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000022994 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022995 ;;
22996 *) cat >>confdefs.h <<_ACEOF
22997#define restrict $ac_cv_c_restrict
22998_ACEOF
22999 ;;
23000 esac
23001
23002
23003# If words are stored with the most significant byte first (like
23004# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000023005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023006$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023007if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023008 $as_echo_n "(cached) " >&6
23009else
23010 ac_cv_c_bigendian=unknown
23011 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000023012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023013/* end confdefs.h. */
23014#ifndef __APPLE_CC__
23015 not a universal capable compiler
23016 #endif
23017 typedef int dummy;
23018
23019_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023020if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023021
23022 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000023023 # there are at least two -arch flags with different values.
23024 ac_arch=
23025 ac_prev=
23026 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
23027 if test -n "$ac_prev"; then
23028 case $ac_word in
23029 i?86 | x86_64 | ppc | ppc64)
23030 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
23031 ac_arch=$ac_word
23032 else
23033 ac_cv_c_bigendian=universal
23034 break
23035 fi
23036 ;;
23037 esac
23038 ac_prev=
23039 elif test "x$ac_word" = "x-arch"; then
23040 ac_prev=arch
23041 fi
23042 done
cristy3ed852e2009-09-05 21:47:34 +000023043fi
cristy3ed852e2009-09-05 21:47:34 +000023044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23045 if test $ac_cv_c_bigendian = unknown; then
23046 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000023047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023048/* end confdefs.h. */
23049#include <sys/types.h>
23050 #include <sys/param.h>
23051
23052int
23053main ()
23054{
23055#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
23056 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
23057 && LITTLE_ENDIAN)
23058 bogus endian macros
23059 #endif
23060
23061 ;
23062 return 0;
23063}
23064_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023065if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023066 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023068/* end confdefs.h. */
23069#include <sys/types.h>
23070 #include <sys/param.h>
23071
23072int
23073main ()
23074{
23075#if BYTE_ORDER != BIG_ENDIAN
23076 not big endian
23077 #endif
23078
23079 ;
23080 return 0;
23081}
23082_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023083if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023084 ac_cv_c_bigendian=yes
23085else
cristy8b350f62009-11-15 23:12:43 +000023086 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023087fi
cristy3ed852e2009-09-05 21:47:34 +000023088rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023089fi
cristy3ed852e2009-09-05 21:47:34 +000023090rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23091 fi
23092 if test $ac_cv_c_bigendian = unknown; then
23093 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000023094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023095/* end confdefs.h. */
23096#include <limits.h>
23097
23098int
23099main ()
23100{
23101#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
23102 bogus endian macros
23103 #endif
23104
23105 ;
23106 return 0;
23107}
23108_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023109if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023110 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000023111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023112/* end confdefs.h. */
23113#include <limits.h>
23114
23115int
23116main ()
23117{
23118#ifndef _BIG_ENDIAN
23119 not big endian
23120 #endif
23121
23122 ;
23123 return 0;
23124}
23125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023126if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023127 ac_cv_c_bigendian=yes
23128else
cristy8b350f62009-11-15 23:12:43 +000023129 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000023130fi
cristy3ed852e2009-09-05 21:47:34 +000023131rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023132fi
cristy3ed852e2009-09-05 21:47:34 +000023133rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23134 fi
23135 if test $ac_cv_c_bigendian = unknown; then
23136 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000023137 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023138 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000023139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023140/* end confdefs.h. */
23141short int ascii_mm[] =
23142 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
23143 short int ascii_ii[] =
23144 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
23145 int use_ascii (int i) {
23146 return ascii_mm[i] + ascii_ii[i];
23147 }
23148 short int ebcdic_ii[] =
23149 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
23150 short int ebcdic_mm[] =
23151 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
23152 int use_ebcdic (int i) {
23153 return ebcdic_mm[i] + ebcdic_ii[i];
23154 }
23155 extern int foo;
23156
23157int
23158main ()
23159{
23160return use_ascii (foo) == use_ebcdic (foo);
23161 ;
23162 return 0;
23163}
23164_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023165if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023166 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
23167 ac_cv_c_bigendian=yes
23168 fi
23169 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
23170 if test "$ac_cv_c_bigendian" = unknown; then
23171 ac_cv_c_bigendian=no
23172 else
23173 # finding both strings is unlikely to happen, but who knows?
23174 ac_cv_c_bigendian=unknown
23175 fi
23176 fi
cristy3ed852e2009-09-05 21:47:34 +000023177fi
cristy3ed852e2009-09-05 21:47:34 +000023178rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23179else
cristy8b350f62009-11-15 23:12:43 +000023180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023181/* end confdefs.h. */
23182$ac_includes_default
23183int
23184main ()
23185{
23186
23187 /* Are we little or big endian? From Harbison&Steele. */
23188 union
23189 {
23190 long int l;
23191 char c[sizeof (long int)];
23192 } u;
23193 u.l = 1;
23194 return u.c[sizeof (long int) - 1] == 1;
23195
23196 ;
23197 return 0;
23198}
23199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023200if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023201 ac_cv_c_bigendian=no
23202else
cristy8b350f62009-11-15 23:12:43 +000023203 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000023204fi
cristy8b350f62009-11-15 23:12:43 +000023205rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23206 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023207fi
23208
cristy3ed852e2009-09-05 21:47:34 +000023209 fi
23210fi
cristy8b350f62009-11-15 23:12:43 +000023211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000023212$as_echo "$ac_cv_c_bigendian" >&6; }
23213 case $ac_cv_c_bigendian in #(
23214 yes)
cristy8b350f62009-11-15 23:12:43 +000023215 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023216;; #(
23217 no)
23218 ;; #(
23219 universal)
23220
cristy8b350f62009-11-15 23:12:43 +000023221$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023222
23223 ;; #(
23224 *)
cristy98dddb52010-11-04 00:30:15 +000023225 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000023226 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000023227 esac
23228
23229
cristy501c8042011-05-26 17:46:28 +000023230# Define to a suitable type, if standard headers do not define it.
23231ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
23232case $ac_cv_c_int8_t in #(
23233 no|yes) ;; #(
23234 *)
cristy3ed852e2009-09-05 21:47:34 +000023235
23236cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023237#define int8_t $ac_cv_c_int8_t
23238_ACEOF
23239;;
23240esac
23241
23242ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
23243case $ac_cv_c_int16_t in #(
23244 no|yes) ;; #(
23245 *)
23246
23247cat >>confdefs.h <<_ACEOF
23248#define int16_t $ac_cv_c_int16_t
23249_ACEOF
23250;;
23251esac
23252
23253ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
23254case $ac_cv_c_int32_t in #(
23255 no|yes) ;; #(
23256 *)
23257
23258cat >>confdefs.h <<_ACEOF
23259#define int32_t $ac_cv_c_int32_t
23260_ACEOF
23261;;
23262esac
23263
23264ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
23265case $ac_cv_c_int64_t in #(
23266 no|yes) ;; #(
23267 *)
23268
23269cat >>confdefs.h <<_ACEOF
23270#define int64_t $ac_cv_c_int64_t
23271_ACEOF
23272;;
23273esac
23274
23275
23276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23277$as_echo_n "checking for long long int... " >&6; }
23278if ${ac_cv_type_long_long_int+:} false; then :
23279 $as_echo_n "(cached) " >&6
23280else
23281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23282/* end confdefs.h. */
23283
23284 /* For now, do not test the preprocessor; as of 2007 there are too many
23285 implementations with broken preprocessors. Perhaps this can
23286 be revisited in 2012. In the meantime, code should not expect
23287 #if to work with literals wider than 32 bits. */
23288 /* Test literals. */
23289 long long int ll = 9223372036854775807ll;
23290 long long int nll = -9223372036854775807LL;
23291 unsigned long long int ull = 18446744073709551615ULL;
23292 /* Test constant expressions. */
23293 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23294 ? 1 : -1)];
23295 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23296 ? 1 : -1)];
23297 int i = 63;
23298int
23299main ()
23300{
23301/* Test availability of runtime routines for shift and division. */
23302 long long int llmax = 9223372036854775807ll;
23303 unsigned long long int ullmax = 18446744073709551615ull;
23304 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23305 | (llmax / ll) | (llmax % ll)
23306 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23307 | (ullmax / ull) | (ullmax % ull));
23308 ;
23309 return 0;
23310}
23311
23312_ACEOF
23313if ac_fn_c_try_link "$LINENO"; then :
23314 if test "$cross_compiling" = yes; then :
23315 ac_cv_type_long_long_int=yes
23316else
23317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23318/* end confdefs.h. */
23319#include <limits.h>
23320 #ifndef LLONG_MAX
23321 # define HALF \
23322 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23323 # define LLONG_MAX (HALF - 1 + HALF)
23324 #endif
23325int
23326main ()
23327{
23328long long int n = 1;
23329 int i;
23330 for (i = 0; ; i++)
23331 {
23332 long long int m = n << i;
23333 if (m >> i != n)
23334 return 1;
23335 if (LLONG_MAX / 2 < m)
23336 break;
23337 }
23338 return 0;
23339 ;
23340 return 0;
23341}
23342_ACEOF
23343if ac_fn_c_try_run "$LINENO"; then :
23344 ac_cv_type_long_long_int=yes
23345else
23346 ac_cv_type_long_long_int=no
23347fi
23348rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23349 conftest.$ac_objext conftest.beam conftest.$ac_ext
23350fi
23351
23352else
23353 ac_cv_type_long_long_int=no
23354fi
23355rm -f core conftest.err conftest.$ac_objext \
23356 conftest$ac_exeext conftest.$ac_ext
23357fi
23358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23359$as_echo "$ac_cv_type_long_long_int" >&6; }
23360 if test $ac_cv_type_long_long_int = yes; then
23361
23362$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23363
23364 fi
23365
23366
23367
23368 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
23369if test "x$ac_cv_type_intmax_t" = xyes; then :
23370
23371$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
23372
23373else
23374 test $ac_cv_type_long_long_int = yes \
23375 && ac_type='long long int' \
23376 || ac_type='long int'
23377
23378cat >>confdefs.h <<_ACEOF
23379#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023380_ACEOF
23381
23382fi
23383
23384
cristy501c8042011-05-26 17:46:28 +000023385
23386 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
23387if test "x$ac_cv_type_intptr_t" = xyes; then :
23388
23389$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023390
cristy3ed852e2009-09-05 21:47:34 +000023391else
cristy501c8042011-05-26 17:46:28 +000023392 for ac_type in 'int' 'long int' 'long long int'; do
23393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23394/* end confdefs.h. */
23395$ac_includes_default
23396int
23397main ()
23398{
23399static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023400test_array [0] = 0;
23401return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023402
23403 ;
23404 return 0;
23405}
23406_ACEOF
23407if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023408
23409cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000023410#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000023411_ACEOF
23412
cristy501c8042011-05-26 17:46:28 +000023413 ac_type=
23414fi
23415rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23416 test -z "$ac_type" && break
23417 done
cristy3ed852e2009-09-05 21:47:34 +000023418fi
23419
23420
cristy3ed852e2009-09-05 21:47:34 +000023421
cristy501c8042011-05-26 17:46:28 +000023422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
23423$as_echo_n "checking for long double... " >&6; }
23424if ${ac_cv_type_long_double+:} false; then :
23425 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000023426else
cristy501c8042011-05-26 17:46:28 +000023427 if test "$GCC" = yes; then
23428 ac_cv_type_long_double=yes
23429 else
23430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23431/* end confdefs.h. */
23432/* The Stardent Vistra knows sizeof (long double), but does
23433 not support it. */
23434 long double foo = 0.0L;
23435int
23436main ()
23437{
23438static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
23439 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000023440test_array [0] = 0;
23441return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023442
cristy501c8042011-05-26 17:46:28 +000023443 ;
23444 return 0;
23445}
cristy3ed852e2009-09-05 21:47:34 +000023446_ACEOF
cristy501c8042011-05-26 17:46:28 +000023447if ac_fn_c_try_compile "$LINENO"; then :
23448 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000023449else
cristy501c8042011-05-26 17:46:28 +000023450 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000023451fi
cristy501c8042011-05-26 17:46:28 +000023452rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23453 fi
cristy3ed852e2009-09-05 21:47:34 +000023454fi
cristy501c8042011-05-26 17:46:28 +000023455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
23456$as_echo "$ac_cv_type_long_double" >&6; }
23457 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000023458
cristy501c8042011-05-26 17:46:28 +000023459$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023460
cristy501c8042011-05-26 17:46:28 +000023461 fi
23462
cristy3ed852e2009-09-05 21:47:34 +000023463
cristy8b350f62009-11-15 23:12:43 +000023464 { $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 +000023465$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023466if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023467 $as_echo_n "(cached) " >&6
23468else
cristy8b350f62009-11-15 23:12:43 +000023469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023470/* end confdefs.h. */
23471#include <float.h>
23472 long double const a[] =
23473 {
23474 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
23475 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
23476 };
23477 long double
23478 f (long double x)
23479 {
23480 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
23481 + (x ? f (x) : 'c'));
23482 }
23483
23484int
23485main ()
23486{
23487static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
23488 + (DBL_MANT_DIG < LDBL_MANT_DIG)
23489 - (LDBL_MAX_EXP < DBL_MAX_EXP)
23490 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
23491 && (int) LDBL_EPSILON == 0
23492 )];
cristy14fefe52012-05-21 00:59:18 +000023493test_array [0] = 0;
23494return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023495
23496 ;
23497 return 0;
23498}
23499_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023500if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023501 ac_cv_type_long_double_wider=yes
23502else
cristy8b350f62009-11-15 23:12:43 +000023503 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000023504fi
cristy3ed852e2009-09-05 21:47:34 +000023505rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23506fi
cristy8b350f62009-11-15 23:12:43 +000023507{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000023508$as_echo "$ac_cv_type_long_double_wider" >&6; }
23509 if test $ac_cv_type_long_double_wider = yes; then
23510
cristy8b350f62009-11-15 23:12:43 +000023511$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023512
23513 fi
23514
23515
cristy501c8042011-05-26 17:46:28 +000023516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
23517$as_echo_n "checking for long long int... " >&6; }
23518if ${ac_cv_type_long_long_int+:} false; then :
23519 $as_echo_n "(cached) " >&6
23520else
23521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23522/* end confdefs.h. */
23523
23524 /* For now, do not test the preprocessor; as of 2007 there are too many
23525 implementations with broken preprocessors. Perhaps this can
23526 be revisited in 2012. In the meantime, code should not expect
23527 #if to work with literals wider than 32 bits. */
23528 /* Test literals. */
23529 long long int ll = 9223372036854775807ll;
23530 long long int nll = -9223372036854775807LL;
23531 unsigned long long int ull = 18446744073709551615ULL;
23532 /* Test constant expressions. */
23533 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23534 ? 1 : -1)];
23535 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23536 ? 1 : -1)];
23537 int i = 63;
23538int
23539main ()
23540{
23541/* Test availability of runtime routines for shift and division. */
23542 long long int llmax = 9223372036854775807ll;
23543 unsigned long long int ullmax = 18446744073709551615ull;
23544 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23545 | (llmax / ll) | (llmax % ll)
23546 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23547 | (ullmax / ull) | (ullmax % ull));
23548 ;
23549 return 0;
23550}
23551
23552_ACEOF
23553if ac_fn_c_try_link "$LINENO"; then :
23554 if test "$cross_compiling" = yes; then :
23555 ac_cv_type_long_long_int=yes
23556else
23557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23558/* end confdefs.h. */
23559#include <limits.h>
23560 #ifndef LLONG_MAX
23561 # define HALF \
23562 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
23563 # define LLONG_MAX (HALF - 1 + HALF)
23564 #endif
23565int
23566main ()
23567{
23568long long int n = 1;
23569 int i;
23570 for (i = 0; ; i++)
23571 {
23572 long long int m = n << i;
23573 if (m >> i != n)
23574 return 1;
23575 if (LLONG_MAX / 2 < m)
23576 break;
23577 }
23578 return 0;
23579 ;
23580 return 0;
23581}
23582_ACEOF
23583if ac_fn_c_try_run "$LINENO"; then :
23584 ac_cv_type_long_long_int=yes
23585else
23586 ac_cv_type_long_long_int=no
23587fi
23588rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23589 conftest.$ac_objext conftest.beam conftest.$ac_ext
23590fi
23591
23592else
23593 ac_cv_type_long_long_int=no
23594fi
23595rm -f core conftest.err conftest.$ac_objext \
23596 conftest$ac_exeext conftest.$ac_ext
23597fi
23598{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
23599$as_echo "$ac_cv_type_long_long_int" >&6; }
23600 if test $ac_cv_type_long_long_int = yes; then
23601
23602$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
23603
23604 fi
23605
23606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
23607$as_echo_n "checking for mbstate_t... " >&6; }
23608if ${ac_cv_type_mbstate_t+:} false; then :
23609 $as_echo_n "(cached) " >&6
23610else
23611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23612/* end confdefs.h. */
23613$ac_includes_default
23614# include <wchar.h>
23615int
23616main ()
23617{
23618mbstate_t x; return sizeof x;
23619 ;
23620 return 0;
23621}
23622_ACEOF
23623if ac_fn_c_try_compile "$LINENO"; then :
23624 ac_cv_type_mbstate_t=yes
23625else
23626 ac_cv_type_mbstate_t=no
23627fi
23628rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23629fi
23630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
23631$as_echo "$ac_cv_type_mbstate_t" >&6; }
23632 if test $ac_cv_type_mbstate_t = yes; then
23633
23634$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
23635
23636 else
23637
23638$as_echo "#define mbstate_t int" >>confdefs.h
23639
23640 fi
23641ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
23642if test "x$ac_cv_type_mode_t" = xyes; then :
23643
23644else
23645
23646cat >>confdefs.h <<_ACEOF
23647#define mode_t int
23648_ACEOF
23649
23650fi
23651
23652ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
23653if test "x$ac_cv_type_off_t" = xyes; then :
23654
23655else
23656
23657cat >>confdefs.h <<_ACEOF
23658#define off_t long int
23659_ACEOF
23660
23661fi
23662
23663ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
23664if test "x$ac_cv_type_pid_t" = xyes; then :
23665
23666else
23667
23668cat >>confdefs.h <<_ACEOF
23669#define pid_t int
23670_ACEOF
23671
23672fi
23673
23674ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
23675if test "x$ac_cv_type_size_t" = xyes; then :
23676
23677else
23678
23679cat >>confdefs.h <<_ACEOF
23680#define size_t unsigned int
23681_ACEOF
23682
23683fi
23684
23685ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
23686if test "x$ac_cv_type_ssize_t" = xyes; then :
23687
23688else
23689
23690cat >>confdefs.h <<_ACEOF
23691#define ssize_t int
23692_ACEOF
23693
23694fi
23695
23696{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
23697$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
23698if ${ac_cv_type_uid_t+:} false; then :
23699 $as_echo_n "(cached) " >&6
23700else
23701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23702/* end confdefs.h. */
23703#include <sys/types.h>
23704
23705_ACEOF
23706if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23707 $EGREP "uid_t" >/dev/null 2>&1; then :
23708 ac_cv_type_uid_t=yes
23709else
23710 ac_cv_type_uid_t=no
23711fi
23712rm -f conftest*
23713
23714fi
23715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
23716$as_echo "$ac_cv_type_uid_t" >&6; }
23717if test $ac_cv_type_uid_t = no; then
23718
23719$as_echo "#define uid_t int" >>confdefs.h
23720
23721
23722$as_echo "#define gid_t int" >>confdefs.h
23723
23724fi
23725
23726ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
23727case $ac_cv_c_uint8_t in #(
23728 no|yes) ;; #(
23729 *)
23730
23731$as_echo "#define _UINT8_T 1" >>confdefs.h
23732
23733
23734cat >>confdefs.h <<_ACEOF
23735#define uint8_t $ac_cv_c_uint8_t
23736_ACEOF
23737;;
23738 esac
23739
23740ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
23741case $ac_cv_c_uint16_t in #(
23742 no|yes) ;; #(
23743 *)
23744
23745
23746cat >>confdefs.h <<_ACEOF
23747#define uint16_t $ac_cv_c_uint16_t
23748_ACEOF
23749;;
23750 esac
23751
23752ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
23753case $ac_cv_c_uint32_t in #(
23754 no|yes) ;; #(
23755 *)
23756
23757$as_echo "#define _UINT32_T 1" >>confdefs.h
23758
23759
23760cat >>confdefs.h <<_ACEOF
23761#define uint32_t $ac_cv_c_uint32_t
23762_ACEOF
23763;;
23764 esac
23765
23766ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
23767case $ac_cv_c_uint64_t in #(
23768 no|yes) ;; #(
23769 *)
23770
23771$as_echo "#define _UINT64_T 1" >>confdefs.h
23772
23773
23774cat >>confdefs.h <<_ACEOF
23775#define uint64_t $ac_cv_c_uint64_t
23776_ACEOF
23777;;
23778 esac
23779
23780
23781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23782$as_echo_n "checking for unsigned long long int... " >&6; }
23783if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23784 $as_echo_n "(cached) " >&6
23785else
23786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23787/* end confdefs.h. */
23788
23789 /* For now, do not test the preprocessor; as of 2007 there are too many
23790 implementations with broken preprocessors. Perhaps this can
23791 be revisited in 2012. In the meantime, code should not expect
23792 #if to work with literals wider than 32 bits. */
23793 /* Test literals. */
23794 long long int ll = 9223372036854775807ll;
23795 long long int nll = -9223372036854775807LL;
23796 unsigned long long int ull = 18446744073709551615ULL;
23797 /* Test constant expressions. */
23798 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23799 ? 1 : -1)];
23800 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23801 ? 1 : -1)];
23802 int i = 63;
23803int
23804main ()
23805{
23806/* Test availability of runtime routines for shift and division. */
23807 long long int llmax = 9223372036854775807ll;
23808 unsigned long long int ullmax = 18446744073709551615ull;
23809 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23810 | (llmax / ll) | (llmax % ll)
23811 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23812 | (ullmax / ull) | (ullmax % ull));
23813 ;
23814 return 0;
23815}
23816
23817_ACEOF
23818if ac_fn_c_try_link "$LINENO"; then :
23819 ac_cv_type_unsigned_long_long_int=yes
23820else
23821 ac_cv_type_unsigned_long_long_int=no
23822fi
23823rm -f core conftest.err conftest.$ac_objext \
23824 conftest$ac_exeext conftest.$ac_ext
23825fi
23826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23827$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23828 if test $ac_cv_type_unsigned_long_long_int = yes; then
23829
23830$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23831
23832 fi
23833
23834
23835
23836 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
23837if test "x$ac_cv_type_uintmax_t" = xyes; then :
23838
23839$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
23840
23841else
23842 test $ac_cv_type_unsigned_long_long_int = yes \
23843 && ac_type='unsigned long long int' \
23844 || ac_type='unsigned long int'
23845
23846cat >>confdefs.h <<_ACEOF
23847#define uintmax_t $ac_type
23848_ACEOF
23849
23850fi
23851
23852
23853
23854 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
23855if test "x$ac_cv_type_uintptr_t" = xyes; then :
23856
23857$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
23858
23859else
23860 for ac_type in 'unsigned int' 'unsigned long int' \
23861 'unsigned long long int'; do
23862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23863/* end confdefs.h. */
23864$ac_includes_default
23865int
23866main ()
23867{
23868static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000023869test_array [0] = 0;
23870return test_array [0];
cristy501c8042011-05-26 17:46:28 +000023871
23872 ;
23873 return 0;
23874}
23875_ACEOF
23876if ac_fn_c_try_compile "$LINENO"; then :
23877
23878cat >>confdefs.h <<_ACEOF
23879#define uintptr_t $ac_type
23880_ACEOF
23881
23882 ac_type=
23883fi
23884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23885 test -z "$ac_type" && break
23886 done
23887fi
23888
23889
23890
23891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
23892$as_echo_n "checking for unsigned long long int... " >&6; }
23893if ${ac_cv_type_unsigned_long_long_int+:} false; then :
23894 $as_echo_n "(cached) " >&6
23895else
23896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23897/* end confdefs.h. */
23898
23899 /* For now, do not test the preprocessor; as of 2007 there are too many
23900 implementations with broken preprocessors. Perhaps this can
23901 be revisited in 2012. In the meantime, code should not expect
23902 #if to work with literals wider than 32 bits. */
23903 /* Test literals. */
23904 long long int ll = 9223372036854775807ll;
23905 long long int nll = -9223372036854775807LL;
23906 unsigned long long int ull = 18446744073709551615ULL;
23907 /* Test constant expressions. */
23908 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
23909 ? 1 : -1)];
23910 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
23911 ? 1 : -1)];
23912 int i = 63;
23913int
23914main ()
23915{
23916/* Test availability of runtime routines for shift and division. */
23917 long long int llmax = 9223372036854775807ll;
23918 unsigned long long int ullmax = 18446744073709551615ull;
23919 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
23920 | (llmax / ll) | (llmax % ll)
23921 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
23922 | (ullmax / ull) | (ullmax % ull));
23923 ;
23924 return 0;
23925}
23926
23927_ACEOF
23928if ac_fn_c_try_link "$LINENO"; then :
23929 ac_cv_type_unsigned_long_long_int=yes
23930else
23931 ac_cv_type_unsigned_long_long_int=no
23932fi
23933rm -f core conftest.err conftest.$ac_objext \
23934 conftest$ac_exeext conftest.$ac_ext
23935fi
23936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
23937$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
23938 if test $ac_cv_type_unsigned_long_long_int = yes; then
23939
23940$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
23941
23942 fi
23943
23944
cristy3ed852e2009-09-05 21:47:34 +000023945# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
23946# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000023947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023948$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023949if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023950 $as_echo_n "(cached) " >&6
23951else
cristy8b350f62009-11-15 23:12:43 +000023952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023953/* end confdefs.h. */
23954$ac_includes_default
23955int
23956main ()
23957{
23958static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000023959test_array [0] = 0;
23960return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000023961
23962 ;
23963 return 0;
23964}
23965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023966if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023967 ac_cv_c_char_unsigned=no
23968else
cristy8b350f62009-11-15 23:12:43 +000023969 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000023970fi
cristy3ed852e2009-09-05 21:47:34 +000023971rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23972fi
cristy8b350f62009-11-15 23:12:43 +000023973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000023974$as_echo "$ac_cv_c_char_unsigned" >&6; }
23975if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000023976 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023977
23978fi
23979
23980
23981# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23982# The cast to long int works around a bug in the HP C Compiler
23983# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23984# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23985# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023987$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023988if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023989 $as_echo_n "(cached) " >&6
23990else
cristy8b350f62009-11-15 23:12:43 +000023991 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 +000023992
cristy3ed852e2009-09-05 21:47:34 +000023993else
cristy8b350f62009-11-15 23:12:43 +000023994 if test "$ac_cv_type_signed_short" = yes; then
23995 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023996$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023997as_fn_error 77 "cannot compute sizeof (signed short)
23998See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023999 else
24000 ac_cv_sizeof_signed_short=0
24001 fi
24002fi
cristy8b350f62009-11-15 23:12:43 +000024003
cristy3ed852e2009-09-05 21:47:34 +000024004fi
cristy8b350f62009-11-15 23:12:43 +000024005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024006$as_echo "$ac_cv_sizeof_signed_short" >&6; }
24007
24008
24009
24010cat >>confdefs.h <<_ACEOF
24011#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
24012_ACEOF
24013
24014
24015
24016# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
24017# The cast to long int works around a bug in the HP C Compiler
24018# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24019# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24020# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024022$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024023if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024024 $as_echo_n "(cached) " >&6
24025else
cristy8b350f62009-11-15 23:12:43 +000024026 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 +000024027
cristy3ed852e2009-09-05 21:47:34 +000024028else
cristy8b350f62009-11-15 23:12:43 +000024029 if test "$ac_cv_type_unsigned_short" = yes; then
24030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024032as_fn_error 77 "cannot compute sizeof (unsigned short)
24033See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024034 else
24035 ac_cv_sizeof_unsigned_short=0
24036 fi
24037fi
cristy8b350f62009-11-15 23:12:43 +000024038
cristy3ed852e2009-09-05 21:47:34 +000024039fi
cristy8b350f62009-11-15 23:12:43 +000024040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000024041$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
24042
24043
24044
24045cat >>confdefs.h <<_ACEOF
24046#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
24047_ACEOF
24048
24049
24050
24051# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
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 int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024057$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024058if ${ac_cv_sizeof_signed_int+:} 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 int))" "ac_cv_sizeof_signed_int" "$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_int" = 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 int)
24068See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024069 else
24070 ac_cv_sizeof_signed_int=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_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024076$as_echo "$ac_cv_sizeof_signed_int" >&6; }
24077
24078
24079
24080cat >>confdefs.h <<_ACEOF
24081#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
24082_ACEOF
24083
24084
24085
24086# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
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 int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024092$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024093if ${ac_cv_sizeof_unsigned_int+:} 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 int))" "ac_cv_sizeof_unsigned_int" "$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_int" = 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 int)
24103See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024104 else
24105 ac_cv_sizeof_unsigned_int=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_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000024111$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
24112
24113
24114
24115cat >>confdefs.h <<_ACEOF
24116#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
24117_ACEOF
24118
24119
24120
24121# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
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 long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024127$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024128if ${ac_cv_sizeof_signed_long+:} 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 long))" "ac_cv_sizeof_signed_long" "$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_long" = 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 long)
24138See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024139 else
24140 ac_cv_sizeof_signed_long=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_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024146$as_echo "$ac_cv_sizeof_signed_long" >&6; }
24147
24148
24149
24150cat >>confdefs.h <<_ACEOF
24151#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
24152_ACEOF
24153
24154
24155
24156# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
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 long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024162$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024163if ${ac_cv_sizeof_unsigned_long+:} 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 long))" "ac_cv_sizeof_unsigned_long" "$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_long" = 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 long)
24173See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024174 else
24175 ac_cv_sizeof_unsigned_long=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_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024181$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
24182
24183
24184
24185cat >>confdefs.h <<_ACEOF
24186#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24187_ACEOF
24188
24189
24190
24191# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
24192# 'signed long long' is not supported then the value defined is zero.
24193# The cast to long int works around a bug in the HP C Compiler
24194# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24195# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24196# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024198$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024199if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024200 $as_echo_n "(cached) " >&6
24201else
cristy8b350f62009-11-15 23:12:43 +000024202 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 +000024203
cristy3ed852e2009-09-05 21:47:34 +000024204else
cristy8b350f62009-11-15 23:12:43 +000024205 if test "$ac_cv_type_signed_long_long" = yes; then
24206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024207$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024208as_fn_error 77 "cannot compute sizeof (signed long long)
24209See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024210 else
24211 ac_cv_sizeof_signed_long_long=0
24212 fi
24213fi
cristy8b350f62009-11-15 23:12:43 +000024214
cristy3ed852e2009-09-05 21:47:34 +000024215fi
cristy8b350f62009-11-15 23:12:43 +000024216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024217$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
24218
24219
24220
24221cat >>confdefs.h <<_ACEOF
24222#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
24223_ACEOF
24224
24225
24226
24227# Obtain size of a 'unsigned long long' and define as
24228# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
24229# supported then the value defined is zero.
24230# The cast to long int works around a bug in the HP C Compiler
24231# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24232# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24233# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024235$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024236if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024237 $as_echo_n "(cached) " >&6
24238else
cristy8b350f62009-11-15 23:12:43 +000024239 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 +000024240
cristy3ed852e2009-09-05 21:47:34 +000024241else
cristy8b350f62009-11-15 23:12:43 +000024242 if test "$ac_cv_type_unsigned_long_long" = yes; then
24243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024244$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024245as_fn_error 77 "cannot compute sizeof (unsigned long long)
24246See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024247 else
24248 ac_cv_sizeof_unsigned_long_long=0
24249 fi
24250fi
cristy8b350f62009-11-15 23:12:43 +000024251
cristy3ed852e2009-09-05 21:47:34 +000024252fi
cristy8b350f62009-11-15 23:12:43 +000024253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000024254$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
24255
24256
24257
24258cat >>confdefs.h <<_ACEOF
24259#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
24260_ACEOF
24261
24262
24263
24264# Obtain size of off_t and define as SIZEOF_OFF_T
24265# The cast to long int works around a bug in the HP C Compiler
24266# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24267# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24268# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000024269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024270$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024271if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024272 $as_echo_n "(cached) " >&6
24273else
cristy8b350f62009-11-15 23:12:43 +000024274 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 +000024275
cristy3ed852e2009-09-05 21:47:34 +000024276else
cristy8b350f62009-11-15 23:12:43 +000024277 if test "$ac_cv_type_off_t" = yes; then
24278 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000024279$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024280as_fn_error 77 "cannot compute sizeof (off_t)
24281See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024282 else
24283 ac_cv_sizeof_off_t=0
24284 fi
24285fi
cristy8b350f62009-11-15 23:12:43 +000024286
cristy3ed852e2009-09-05 21:47:34 +000024287fi
cristy8b350f62009-11-15 23:12:43 +000024288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024289$as_echo "$ac_cv_sizeof_off_t" >&6; }
24290
24291
24292
24293cat >>confdefs.h <<_ACEOF
24294#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
24295_ACEOF
24296
24297
24298
24299# Obtain size of size_t and define as SIZEOF_SIZE_T
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 size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024305$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024306if ${ac_cv_sizeof_size_t+:} 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 (size_t))" "ac_cv_sizeof_size_t" "$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_size_t" = 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 (size_t)
24316See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024317 else
24318 ac_cv_sizeof_size_t=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_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000024324$as_echo "$ac_cv_sizeof_size_t" >&6; }
24325
24326
24327
24328cat >>confdefs.h <<_ACEOF
24329#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
24330_ACEOF
24331
24332
24333
cristy330e9352010-06-01 18:42:49 +000024334# Obtain size of ssize_t and define as SIZEOF_SSIZE_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.
24339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
24340$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024341if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000024342 $as_echo_n "(cached) " >&6
24343else
24344 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
24345
24346else
24347 if test "$ac_cv_type_ssize_t" = yes; then
24348 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
24349$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000024350as_fn_error 77 "cannot compute sizeof (ssize_t)
24351See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000024352 else
24353 ac_cv_sizeof_ssize_t=0
24354 fi
24355fi
24356
24357fi
24358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
24359$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
24360
24361
24362
24363cat >>confdefs.h <<_ACEOF
24364#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
24365_ACEOF
24366
24367
24368
cristy3ed852e2009-09-05 21:47:34 +000024369# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
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 unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000024375$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024376if ${ac_cv_sizeof_unsigned_intp+:} 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 (unsigned int*))" "ac_cv_sizeof_unsigned_intp" "$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_unsigned_intp" = 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 (unsigned int*)
24386See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000024387 else
24388 ac_cv_sizeof_unsigned_intp=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_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024394$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
24395
24396
24397
24398cat >>confdefs.h <<_ACEOF
24399#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
24400_ACEOF
24401
24402
24403
24404#
24405# Compute sized types for current CPU and compiler options.
24406#
24407
cristy8b350f62009-11-15 23:12:43 +000024408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024409$as_echo_n "checking for signed 8-bit type... " >&6; }
24410INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000024411{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
24412$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024413
24414
cristy8b350f62009-11-15 23:12:43 +000024415{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024416$as_echo_n "checking for unsigned 8-bit type... " >&6; }
24417UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000024418{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
24419$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024420
24421
cristy8b350f62009-11-15 23:12:43 +000024422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024423$as_echo_n "checking for signed 16-bit type... " >&6; }
24424INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000024425{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
24426$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024427
24428
cristy8b350f62009-11-15 23:12:43 +000024429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024430$as_echo_n "checking for unsigned 16-bit type... " >&6; }
24431UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000024432{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
24433$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024434
24435
cristy8b350f62009-11-15 23:12:43 +000024436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024437$as_echo_n "checking for signed 32-bit type... " >&6; }
24438INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024439INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024440if test $ac_cv_sizeof_signed_int -eq 4; then
24441 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000024442 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024443elif test $ac_cv_sizeof_signed_long -eq 4; then
24444 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024445 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024446fi
cristy09b53e12011-10-14 12:47:22 +000024447{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
24448$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024449
24450
cristy6d5e20f2011-04-25 13:48:54 +000024451
cristy8b350f62009-11-15 23:12:43 +000024452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024453$as_echo_n "checking for unsigned 32-bit type... " >&6; }
24454UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024455UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024456if test $ac_cv_sizeof_unsigned_int -eq 4; then
24457 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000024458 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000024459elif test $ac_cv_sizeof_unsigned_long -eq 4; then
24460 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024461 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024462fi
cristy09b53e12011-10-14 12:47:22 +000024463{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
24464$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024465
24466
cristy6d5e20f2011-04-25 13:48:54 +000024467
cristy8b350f62009-11-15 23:12:43 +000024468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024469$as_echo_n "checking for signed 64-bit type... " >&6; }
24470INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024471INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024472if test $ac_cv_sizeof_signed_long -eq 8; then
24473 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000024474 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024475elif test $ac_cv_sizeof_signed_long_long -eq 8; then
24476 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000024477 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024478fi
cristy3a99dcf2011-12-17 01:29:40 +000024479case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024480 mingw* )
24481 INT64_F='"I64"'
24482 ;;
24483esac
cristy09b53e12011-10-14 12:47:22 +000024484{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
24485$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024486
24487
cristy6d5e20f2011-04-25 13:48:54 +000024488
cristy8b350f62009-11-15 23:12:43 +000024489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024490$as_echo_n "checking for unsigned 64-bit type... " >&6; }
24491UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024492UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024493if test $ac_cv_sizeof_unsigned_long -eq 8; then
24494 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024495 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024496elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
24497 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024498 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024499fi
cristy3a99dcf2011-12-17 01:29:40 +000024500case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000024501 mingw* )
24502 UINT64_F='"I64"'
24503 ;;
24504esac
cristy09b53e12011-10-14 12:47:22 +000024505{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
24506$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024507
24508
cristy6d5e20f2011-04-25 13:48:54 +000024509
cristy8b350f62009-11-15 23:12:43 +000024510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024511$as_echo_n "checking for unsigned maximum type... " >&6; }
24512UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024513UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024514if test "$UINT64_T" != 'none'; then
24515 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000024516 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000024517elif test "$UINT32_T" != 'none'; then
24518 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000024519 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000024520fi
cristy09b53e12011-10-14 12:47:22 +000024521{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
24522$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024523
24524
cristy6d5e20f2011-04-25 13:48:54 +000024525
cristy8b350f62009-11-15 23:12:43 +000024526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000024527$as_echo_n "checking for pointer difference type... " >&6; }
24528UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000024529UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000024530if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
24531 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000024532 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000024533elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
24534 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000024535 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000024536fi
cristy09b53e12011-10-14 12:47:22 +000024537{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
24538$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024539
24540
cristy6d5e20f2011-04-25 13:48:54 +000024541
cristy8b350f62009-11-15 23:12:43 +000024542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024543$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024545/* end confdefs.h. */
24546
24547int
24548main ()
24549{
24550{ const char *func = __func__; return(func != 0 ? 0 : 1); }
24551 ;
24552 return 0;
24553}
24554_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024555if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024556 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24557$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024558else
cristy09b53e12011-10-14 12:47:22 +000024559 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24560$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000024561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000024562$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024564/* end confdefs.h. */
24565
24566int
24567main ()
24568{
24569{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
24570 ;
24571 return 0;
24572}
24573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024574if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000024575 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24576$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024577
cristy8b350f62009-11-15 23:12:43 +000024578$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024579
24580else
cristy09b53e12011-10-14 12:47:22 +000024581 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24582$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000024583
cristy8b350f62009-11-15 23:12:43 +000024584$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024585
24586fi
cristy3ed852e2009-09-05 21:47:34 +000024587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24588fi
cristy3ed852e2009-09-05 21:47:34 +000024589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24590
24591########
24592#
24593# Check for functions
24594#
24595########
cristy73bd4a52010-10-05 11:24:23 +000024596for ac_header in stdlib.h unistd.h
24597do :
24598 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24599ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024600if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000024601 cat >>confdefs.h <<_ACEOF
24602#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24603_ACEOF
24604
24605fi
24606
24607done
24608
24609for ac_func in getpagesize
24610do :
24611 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024612if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000024613 cat >>confdefs.h <<_ACEOF
24614#define HAVE_GETPAGESIZE 1
24615_ACEOF
24616
24617fi
24618done
24619
24620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
24621$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024622if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000024623 $as_echo_n "(cached) " >&6
24624else
24625 if test "$cross_compiling" = yes; then :
24626 magick_cv_func_mmap_fileio=no
24627else
24628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24629/* end confdefs.h. */
24630$ac_includes_default
24631/* malloc might have been renamed as rpl_malloc. */
24632#undef malloc
24633
24634/*
24635 This test is derived from GNU Autoconf's similar macro.
24636 The purpose of this test is to verify that files may be memory
24637 mapped, and that memory mapping and file I/O are coherent.
24638
24639 The test creates a test file, memory maps the file, updates
24640 the file using the memory map, and then reads the file using
24641 file I/O to verify that the file contains the updates.
24642*/
24643
24644#include <fcntl.h>
24645#include <sys/mman.h>
24646
24647#if !STDC_HEADERS && !HAVE_STDLIB_H
24648char *malloc ();
24649#endif
24650
24651/* This mess was copied from the GNU getpagesize.h. */
24652#if !HAVE_GETPAGESIZE
24653/* Assume that all systems that can run configure have sys/param.h. */
24654# if !HAVE_SYS_PARAM_H
24655# define HAVE_SYS_PARAM_H 1
24656# endif
24657
24658# ifdef _SC_PAGESIZE
24659# define getpagesize() sysconf(_SC_PAGESIZE)
24660# else /* no _SC_PAGESIZE */
24661# if HAVE_SYS_PARAM_H
24662# include <sys/param.h>
24663# ifdef EXEC_PAGESIZE
24664# define getpagesize() EXEC_PAGESIZE
24665# else /* no EXEC_PAGESIZE */
24666# ifdef NBPG
24667# define getpagesize() NBPG * CLSIZE
24668# ifndef CLSIZE
24669# define CLSIZE 1
24670# endif /* no CLSIZE */
24671# else /* no NBPG */
24672# ifdef NBPC
24673# define getpagesize() NBPC
24674# else /* no NBPC */
24675# ifdef PAGESIZE
24676# define getpagesize() PAGESIZE
24677# endif /* PAGESIZE */
24678# endif /* no NBPC */
24679# endif /* no NBPG */
24680# endif /* no EXEC_PAGESIZE */
24681# else /* no HAVE_SYS_PARAM_H */
24682# define getpagesize() 8192 /* punt totally */
24683# endif /* no HAVE_SYS_PARAM_H */
24684# endif /* no _SC_PAGESIZE */
24685
24686#endif /* no HAVE_GETPAGESIZE */
24687
24688int
24689main ()
24690{
24691 char *data, *data2, *data3;
24692 int i, pagesize;
24693 int fd;
24694
24695 pagesize = getpagesize ();
24696
24697 /* First, make a file with some known garbage in it. */
24698 data = (char *) malloc (pagesize);
24699 if (!data)
24700 exit (1);
24701 for (i = 0; i < pagesize; ++i)
24702 *(data + i) = rand ();
24703 umask (0);
24704 fd = creat ("conftest.mmap", 0600);
24705 if (fd < 0)
24706 exit (1);
24707 if (write (fd, data, pagesize) != pagesize)
24708 exit (1);
24709 close (fd);
24710
24711 /* Mmap the file as read/write/shared and verify that we see the
24712 same garbage. */
24713 fd = open ("conftest.mmap", O_RDWR);
24714 if (fd < 0)
24715 exit (1);
24716 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
24717 if (data2 == 0)
24718 exit (1);
24719 for (i = 0; i < pagesize; ++i)
24720 if (*(data + i) != *(data2 + i))
24721 exit (1);
24722
24723 /* Finally, make sure that changes to the mapped area
24724 percolate back to the file as seen by read(). */
24725 for (i = 0; i < pagesize; ++i)
24726 *(data2 + i) = *(data2 + i) + 1;
24727 data3 = (char *) malloc (pagesize);
24728 if (!data3)
24729 exit (1);
24730 if (read (fd, data3, pagesize) != pagesize)
24731 exit (1);
24732 for (i = 0; i < pagesize; ++i)
24733 if (*(data2 + i) != *(data3 + i))
24734 exit (1);
24735 close (fd);
24736 exit (0);
24737}
24738_ACEOF
24739if ac_fn_c_try_run "$LINENO"; then :
24740 magick_cv_func_mmap_fileio=yes
24741else
24742 magick_cv_func_mmap_fileio=no
24743fi
24744rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24745 conftest.$ac_objext conftest.beam conftest.$ac_ext
24746fi
24747
24748fi
24749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
24750$as_echo "$magick_cv_func_mmap_fileio" >&6; }
24751if test $magick_cv_func_mmap_fileio = yes; then
24752
24753$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
24754
24755fi
24756rm -f conftest.mmap
24757
cristy8b350f62009-11-15 23:12:43 +000024758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024759$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024760if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024761 $as_echo_n "(cached) " >&6
24762else
cristy8b350f62009-11-15 23:12:43 +000024763 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024764 ac_cv_func_closedir_void=yes
24765else
cristy8b350f62009-11-15 23:12:43 +000024766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024767/* end confdefs.h. */
24768$ac_includes_default
24769#include <$ac_header_dirent>
24770#ifndef __cplusplus
24771int closedir ();
24772#endif
24773
24774int
24775main ()
24776{
24777return closedir (opendir (".")) != 0;
24778 ;
24779 return 0;
24780}
24781_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024782if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024783 ac_cv_func_closedir_void=no
24784else
cristy8b350f62009-11-15 23:12:43 +000024785 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000024786fi
cristy8b350f62009-11-15 23:12:43 +000024787rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24788 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024789fi
24790
cristy3ed852e2009-09-05 21:47:34 +000024791fi
cristy8b350f62009-11-15 23:12:43 +000024792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000024793$as_echo "$ac_cv_func_closedir_void" >&6; }
24794if test $ac_cv_func_closedir_void = yes; then
24795
cristy8b350f62009-11-15 23:12:43 +000024796$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024797
24798fi
24799
cristycd4c5312009-11-22 01:19:08 +000024800
24801
24802
24803 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000024804do :
24805 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000024806ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
24807"
cristy98dddb52010-11-04 00:30:15 +000024808if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024809 cat >>confdefs.h <<_ACEOF
24810#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24811_ACEOF
24812
24813fi
24814
24815done
24816
cristycd4c5312009-11-22 01:19:08 +000024817
24818
24819
24820
24821
24822
24823
cristy3ed852e2009-09-05 21:47:34 +000024824for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000024825do :
24826 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000024827if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024828 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024829#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000024830_ACEOF
24831
24832fi
24833done
24834
cristy8b350f62009-11-15 23:12:43 +000024835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000024836$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024837if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024838 $as_echo_n "(cached) " >&6
24839else
cristy8b350f62009-11-15 23:12:43 +000024840 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024841 ac_cv_func_mmap_fixed_mapped=no
24842else
cristy8b350f62009-11-15 23:12:43 +000024843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024844/* end confdefs.h. */
24845$ac_includes_default
24846/* malloc might have been renamed as rpl_malloc. */
24847#undef malloc
24848
24849/* Thanks to Mike Haertel and Jim Avera for this test.
24850 Here is a matrix of mmap possibilities:
24851 mmap private not fixed
24852 mmap private fixed at somewhere currently unmapped
24853 mmap private fixed at somewhere already mapped
24854 mmap shared not fixed
24855 mmap shared fixed at somewhere currently unmapped
24856 mmap shared fixed at somewhere already mapped
24857 For private mappings, we should verify that changes cannot be read()
24858 back from the file, nor mmap's back from the file at a different
24859 address. (There have been systems where private was not correctly
24860 implemented like the infamous i386 svr4.0, and systems where the
24861 VM page cache was not coherent with the file system buffer cache
24862 like early versions of FreeBSD and possibly contemporary NetBSD.)
24863 For shared mappings, we should conversely verify that changes get
24864 propagated back to all the places they're supposed to be.
24865
24866 Grep wants private fixed already mapped.
24867 The main things grep needs to know about mmap are:
24868 * does it exist and is it safe to write into the mmap'd area
24869 * how to use it (BSD variants) */
24870
24871#include <fcntl.h>
24872#include <sys/mman.h>
24873
24874#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24875char *malloc ();
24876#endif
24877
24878/* This mess was copied from the GNU getpagesize.h. */
24879#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024880# ifdef _SC_PAGESIZE
24881# define getpagesize() sysconf(_SC_PAGESIZE)
24882# else /* no _SC_PAGESIZE */
24883# ifdef HAVE_SYS_PARAM_H
24884# include <sys/param.h>
24885# ifdef EXEC_PAGESIZE
24886# define getpagesize() EXEC_PAGESIZE
24887# else /* no EXEC_PAGESIZE */
24888# ifdef NBPG
24889# define getpagesize() NBPG * CLSIZE
24890# ifndef CLSIZE
24891# define CLSIZE 1
24892# endif /* no CLSIZE */
24893# else /* no NBPG */
24894# ifdef NBPC
24895# define getpagesize() NBPC
24896# else /* no NBPC */
24897# ifdef PAGESIZE
24898# define getpagesize() PAGESIZE
24899# endif /* PAGESIZE */
24900# endif /* no NBPC */
24901# endif /* no NBPG */
24902# endif /* no EXEC_PAGESIZE */
24903# else /* no HAVE_SYS_PARAM_H */
24904# define getpagesize() 8192 /* punt totally */
24905# endif /* no HAVE_SYS_PARAM_H */
24906# endif /* no _SC_PAGESIZE */
24907
24908#endif /* no HAVE_GETPAGESIZE */
24909
24910int
24911main ()
24912{
24913 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024914 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024915 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024916 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024917
24918 pagesize = getpagesize ();
24919
24920 /* First, make a file with some known garbage in it. */
24921 data = (char *) malloc (pagesize);
24922 if (!data)
24923 return 1;
24924 for (i = 0; i < pagesize; ++i)
24925 *(data + i) = rand ();
24926 umask (0);
24927 fd = creat ("conftest.mmap", 0600);
24928 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024929 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024930 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024931 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024932 close (fd);
24933
cristycd4c5312009-11-22 01:19:08 +000024934 /* Next, check that the tail of a page is zero-filled. File must have
24935 non-zero length, otherwise we risk SIGBUS for entire page. */
24936 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24937 if (fd2 < 0)
24938 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024939 cdata2 = "";
24940 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024941 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024942 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024943 if (data2 == MAP_FAILED)
24944 return 6;
24945 for (i = 0; i < pagesize; ++i)
24946 if (*(data2 + i))
24947 return 7;
24948 close (fd2);
24949 if (munmap (data2, pagesize))
24950 return 8;
24951
cristy3ed852e2009-09-05 21:47:34 +000024952 /* Next, try to mmap the file at a fixed address which already has
24953 something else allocated at it. If we can, also make sure that
24954 we see the same garbage. */
24955 fd = open ("conftest.mmap", O_RDWR);
24956 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024957 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024958 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24959 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024960 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024961 for (i = 0; i < pagesize; ++i)
24962 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024963 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024964
24965 /* Finally, make sure that changes to the mapped area do not
24966 percolate back to the file as seen by read(). (This is a bug on
24967 some variants of i386 svr4.0.) */
24968 for (i = 0; i < pagesize; ++i)
24969 *(data2 + i) = *(data2 + i) + 1;
24970 data3 = (char *) malloc (pagesize);
24971 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024972 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024973 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024974 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024975 for (i = 0; i < pagesize; ++i)
24976 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024977 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024978 close (fd);
24979 return 0;
24980}
24981_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024982if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024983 ac_cv_func_mmap_fixed_mapped=yes
24984else
cristy8b350f62009-11-15 23:12:43 +000024985 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024986fi
cristy8b350f62009-11-15 23:12:43 +000024987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24988 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024989fi
24990
cristy3ed852e2009-09-05 21:47:34 +000024991fi
cristy8b350f62009-11-15 23:12:43 +000024992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024993$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24994if test $ac_cv_func_mmap_fixed_mapped = yes; then
24995
cristy8b350f62009-11-15 23:12:43 +000024996$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024997
24998fi
cristycd4c5312009-11-22 01:19:08 +000024999rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000025000
cristy3ed852e2009-09-05 21:47:34 +000025001for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000025002do :
25003 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000025004if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025005 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025006#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000025007_ACEOF
25008
25009fi
25010
25011done
25012
cristy3ed852e2009-09-05 21:47:34 +000025013for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000025014do :
25015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025017if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025018 cat >>confdefs.h <<_ACEOF
25019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25020_ACEOF
25021
25022fi
25023done
25024
25025if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025027$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025028if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025029 $as_echo_n "(cached) " >&6
25030else
cristy8b350f62009-11-15 23:12:43 +000025031 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025032 ac_cv_func_fork_works=cross
25033else
cristy8b350f62009-11-15 23:12:43 +000025034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025035/* end confdefs.h. */
25036$ac_includes_default
25037int
25038main ()
25039{
25040
25041 /* By Ruediger Kuhlmann. */
25042 return fork () < 0;
25043
25044 ;
25045 return 0;
25046}
25047_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025048if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025049 ac_cv_func_fork_works=yes
25050else
cristy8b350f62009-11-15 23:12:43 +000025051 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025052fi
cristy8b350f62009-11-15 23:12:43 +000025053rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25054 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025055fi
25056
cristy3ed852e2009-09-05 21:47:34 +000025057fi
cristy8b350f62009-11-15 23:12:43 +000025058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo "$ac_cv_func_fork_works" >&6; }
25060
25061else
25062 ac_cv_func_fork_works=$ac_cv_func_fork
25063fi
25064if test "x$ac_cv_func_fork_works" = xcross; then
25065 case $host in
25066 *-*-amigaos* | *-*-msdosdjgpp*)
25067 # Override, as these systems have only a dummy fork() stub
25068 ac_cv_func_fork_works=no
25069 ;;
25070 *)
25071 ac_cv_func_fork_works=yes
25072 ;;
25073 esac
cristy8b350f62009-11-15 23:12:43 +000025074 { $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 +000025075$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25076fi
25077ac_cv_func_vfork_works=$ac_cv_func_vfork
25078if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000025079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000025080$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025081if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025082 $as_echo_n "(cached) " >&6
25083else
cristy8b350f62009-11-15 23:12:43 +000025084 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025085 ac_cv_func_vfork_works=cross
25086else
cristy8b350f62009-11-15 23:12:43 +000025087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025088/* end confdefs.h. */
25089/* Thanks to Paul Eggert for this test. */
25090$ac_includes_default
25091#include <sys/wait.h>
25092#ifdef HAVE_VFORK_H
25093# include <vfork.h>
25094#endif
25095/* On some sparc systems, changes by the child to local and incoming
25096 argument registers are propagated back to the parent. The compiler
25097 is told about this with #include <vfork.h>, but some compilers
25098 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25099 static variable whose address is put into a register that is
25100 clobbered by the vfork. */
25101static void
25102#ifdef __cplusplus
25103sparc_address_test (int arg)
25104# else
25105sparc_address_test (arg) int arg;
25106#endif
25107{
25108 static pid_t child;
25109 if (!child) {
25110 child = vfork ();
25111 if (child < 0) {
25112 perror ("vfork");
25113 _exit(2);
25114 }
25115 if (!child) {
25116 arg = getpid();
25117 write(-1, "", 0);
25118 _exit (arg);
25119 }
25120 }
25121}
25122
25123int
25124main ()
25125{
25126 pid_t parent = getpid ();
25127 pid_t child;
25128
25129 sparc_address_test (0);
25130
25131 child = vfork ();
25132
25133 if (child == 0) {
25134 /* Here is another test for sparc vfork register problems. This
25135 test uses lots of local variables, at least as many local
25136 variables as main has allocated so far including compiler
25137 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25138 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25139 reuse the register of parent for one of the local variables,
25140 since it will think that parent can't possibly be used any more
25141 in this routine. Assigning to the local variable will thus
25142 munge parent in the parent process. */
25143 pid_t
25144 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25145 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25146 /* Convince the compiler that p..p7 are live; otherwise, it might
25147 use the same hardware register for all 8 local variables. */
25148 if (p != p1 || p != p2 || p != p3 || p != p4
25149 || p != p5 || p != p6 || p != p7)
25150 _exit(1);
25151
25152 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25153 from child file descriptors. If the child closes a descriptor
25154 before it execs or exits, this munges the parent's descriptor
25155 as well. Test for this by closing stdout in the child. */
25156 _exit(close(fileno(stdout)) != 0);
25157 } else {
25158 int status;
25159 struct stat st;
25160
25161 while (wait(&status) != child)
25162 ;
25163 return (
25164 /* Was there some problem with vforking? */
25165 child < 0
25166
25167 /* Did the child fail? (This shouldn't happen.) */
25168 || status
25169
25170 /* Did the vfork/compiler bug occur? */
25171 || parent != getpid()
25172
25173 /* Did the file descriptor bug occur? */
25174 || fstat(fileno(stdout), &st) != 0
25175 );
25176 }
25177}
25178_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025179if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025180 ac_cv_func_vfork_works=yes
25181else
cristy8b350f62009-11-15 23:12:43 +000025182 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000025183fi
cristy8b350f62009-11-15 23:12:43 +000025184rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25185 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025186fi
25187
cristy3ed852e2009-09-05 21:47:34 +000025188fi
cristy8b350f62009-11-15 23:12:43 +000025189{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000025190$as_echo "$ac_cv_func_vfork_works" >&6; }
25191
25192fi;
25193if test "x$ac_cv_func_fork_works" = xcross; then
25194 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000025195 { $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 +000025196$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25197fi
25198
25199if test "x$ac_cv_func_vfork_works" = xyes; then
25200
cristy8b350f62009-11-15 23:12:43 +000025201$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025202
25203else
25204
cristy8b350f62009-11-15 23:12:43 +000025205$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025206
25207fi
25208if test "x$ac_cv_func_fork_works" = xyes; then
25209
cristy8b350f62009-11-15 23:12:43 +000025210$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025211
25212fi
25213
cristy8b350f62009-11-15 23:12:43 +000025214{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025215$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025216if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025217 $as_echo_n "(cached) " >&6
25218else
cristy8b350f62009-11-15 23:12:43 +000025219 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025220 ac_cv_func_memcmp_working=no
25221else
cristy8b350f62009-11-15 23:12:43 +000025222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025223/* end confdefs.h. */
25224$ac_includes_default
25225int
25226main ()
25227{
25228
25229 /* Some versions of memcmp are not 8-bit clean. */
25230 char c0 = '\100', c1 = '\200', c2 = '\201';
25231 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25232 return 1;
25233
25234 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25235 or more and with at least one buffer not starting on a 4-byte boundary.
25236 William Lewis provided this test program. */
25237 {
25238 char foo[21];
25239 char bar[21];
25240 int i;
25241 for (i = 0; i < 4; i++)
25242 {
25243 char *a = foo + i;
25244 char *b = bar + i;
25245 strcpy (a, "--------01111111");
25246 strcpy (b, "--------10000000");
25247 if (memcmp (a, b, 16) >= 0)
25248 return 1;
25249 }
25250 return 0;
25251 }
25252
25253 ;
25254 return 0;
25255}
25256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025257if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025258 ac_cv_func_memcmp_working=yes
25259else
cristy8b350f62009-11-15 23:12:43 +000025260 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000025261fi
cristy8b350f62009-11-15 23:12:43 +000025262rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25263 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025264fi
25265
cristy3ed852e2009-09-05 21:47:34 +000025266fi
cristy8b350f62009-11-15 23:12:43 +000025267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000025268$as_echo "$ac_cv_func_memcmp_working" >&6; }
25269test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
25270 *" memcmp.$ac_objext "* ) ;;
25271 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
25272 ;;
25273esac
25274
25275
cristy3ed852e2009-09-05 21:47:34 +000025276for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000025277do :
25278 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
25279ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000025280if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025281 cat >>confdefs.h <<_ACEOF
25282#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
25283_ACEOF
25284
25285fi
25286
25287done
25288
cristy8b350f62009-11-15 23:12:43 +000025289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000025290$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025291if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025292 $as_echo_n "(cached) " >&6
25293else
25294 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
25295 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
25296 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000025297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025298/* end confdefs.h. */
25299$ac_includes_default
25300#ifdef HAVE_SYS_SELECT_H
25301# include <sys/select.h>
25302#endif
25303#ifdef HAVE_SYS_SOCKET_H
25304# include <sys/socket.h>
25305#endif
25306
25307int
25308main ()
25309{
25310extern int select ($ac_arg1,
25311 $ac_arg234, $ac_arg234, $ac_arg234,
25312 $ac_arg5);
25313 ;
25314 return 0;
25315}
25316_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025317if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025318 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000025319fi
cristy3ed852e2009-09-05 21:47:34 +000025320rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25321 done
25322 done
25323done
25324# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000025325: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000025326
25327fi
cristy8b350f62009-11-15 23:12:43 +000025328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000025329$as_echo "$ac_cv_func_select_args" >&6; }
25330ac_save_IFS=$IFS; IFS=','
25331set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
25332IFS=$ac_save_IFS
25333shift
25334
25335cat >>confdefs.h <<_ACEOF
25336#define SELECT_TYPE_ARG1 $1
25337_ACEOF
25338
25339
25340cat >>confdefs.h <<_ACEOF
25341#define SELECT_TYPE_ARG234 ($2)
25342_ACEOF
25343
25344
25345cat >>confdefs.h <<_ACEOF
25346#define SELECT_TYPE_ARG5 ($3)
25347_ACEOF
25348
25349rm -f conftest*
25350
cristyda16f162011-02-19 23:52:17 +000025351if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025352 $as_echo_n "(cached) " >&6
25353else
25354 ac_cv_func_setvbuf_reversed=no
25355fi
25356
25357
cristy8b350f62009-11-15 23:12:43 +000025358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000025359$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025360if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025361 $as_echo_n "(cached) " >&6
25362else
cristy8b350f62009-11-15 23:12:43 +000025363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025364/* end confdefs.h. */
25365#include <sys/types.h>
25366#include <signal.h>
25367
25368int
25369main ()
25370{
25371return *(signal (0, 0)) (0) == 1;
25372 ;
25373 return 0;
25374}
25375_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025376if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025377 ac_cv_type_signal=int
25378else
cristy8b350f62009-11-15 23:12:43 +000025379 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000025380fi
cristy3ed852e2009-09-05 21:47:34 +000025381rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25382fi
cristy8b350f62009-11-15 23:12:43 +000025383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000025384$as_echo "$ac_cv_type_signal" >&6; }
25385
25386cat >>confdefs.h <<_ACEOF
25387#define RETSIGTYPE $ac_cv_type_signal
25388_ACEOF
25389
25390
cristy8b350f62009-11-15 23:12:43 +000025391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025392$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025393if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025394 $as_echo_n "(cached) " >&6
25395else
cristy8b350f62009-11-15 23:12:43 +000025396 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000025397 ac_cv_func_strtod=no
25398else
cristy8b350f62009-11-15 23:12:43 +000025399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025400/* end confdefs.h. */
25401
25402$ac_includes_default
25403#ifndef strtod
25404double strtod ();
25405#endif
25406int
25407main()
25408{
25409 {
25410 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
25411 char *string = " +69";
25412 char *term;
25413 double value;
25414 value = strtod (string, &term);
25415 if (value != 69 || term != (string + 4))
25416 return 1;
25417 }
25418
25419 {
25420 /* Under Solaris 2.4, strtod returns the wrong value for the
25421 terminating character under some conditions. */
25422 char *string = "NaN";
25423 char *term;
25424 strtod (string, &term);
25425 if (term != string && *(term - 1) == 0)
25426 return 1;
25427 }
25428 return 0;
25429}
25430
25431_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025432if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025433 ac_cv_func_strtod=yes
25434else
cristy8b350f62009-11-15 23:12:43 +000025435 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000025436fi
cristy8b350f62009-11-15 23:12:43 +000025437rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25438 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025439fi
25440
cristy3ed852e2009-09-05 21:47:34 +000025441fi
cristy8b350f62009-11-15 23:12:43 +000025442{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000025443$as_echo "$ac_cv_func_strtod" >&6; }
25444if test $ac_cv_func_strtod = no; then
25445 case " $LIBOBJS " in
25446 *" strtod.$ac_objext "* ) ;;
25447 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
25448 ;;
25449esac
25450
cristy8b350f62009-11-15 23:12:43 +000025451ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000025452if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025453
cristy3ed852e2009-09-05 21:47:34 +000025454fi
25455
cristy3ed852e2009-09-05 21:47:34 +000025456if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000025457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000025458$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025459if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025460 $as_echo_n "(cached) " >&6
25461else
25462 ac_check_lib_save_LIBS=$LIBS
25463LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025464cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025465/* end confdefs.h. */
25466
25467/* Override any GCC internal prototype to avoid an error.
25468 Use char because int might match the return type of a GCC
25469 builtin and then its argument prototype would still apply. */
25470#ifdef __cplusplus
25471extern "C"
25472#endif
25473char pow ();
25474int
25475main ()
25476{
25477return pow ();
25478 ;
25479 return 0;
25480}
25481_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025482if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025483 ac_cv_lib_m_pow=yes
25484else
cristy8b350f62009-11-15 23:12:43 +000025485 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000025486fi
cristy8b350f62009-11-15 23:12:43 +000025487rm -f core conftest.err conftest.$ac_objext \
25488 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025489LIBS=$ac_check_lib_save_LIBS
25490fi
cristy8b350f62009-11-15 23:12:43 +000025491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025492$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000025493if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025494 POW_LIB=-lm
25495else
cristy8b350f62009-11-15 23:12:43 +000025496 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000025497$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
25498fi
25499
25500fi
25501
25502fi
25503
cristy7d4a1d62011-10-13 15:54:12 +000025504ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
25505if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
25506 ac_have_decl=1
25507else
25508 ac_have_decl=0
25509fi
25510
25511cat >>confdefs.h <<_ACEOF
25512#define HAVE_DECL_STRERROR_R $ac_have_decl
25513_ACEOF
25514
25515for ac_func in strerror_r
25516do :
25517 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
25518if test "x$ac_cv_func_strerror_r" = xyes; then :
25519 cat >>confdefs.h <<_ACEOF
25520#define HAVE_STRERROR_R 1
25521_ACEOF
25522
25523fi
25524done
25525
25526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
25527$as_echo_n "checking whether strerror_r returns char *... " >&6; }
25528if ${ac_cv_func_strerror_r_char_p+:} false; then :
25529 $as_echo_n "(cached) " >&6
25530else
25531
25532 ac_cv_func_strerror_r_char_p=no
25533 if test $ac_cv_have_decl_strerror_r = yes; then
25534 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25535/* end confdefs.h. */
25536$ac_includes_default
25537int
25538main ()
25539{
25540
25541 char buf[100];
25542 char x = *strerror_r (0, buf, sizeof buf);
25543 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025544 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000025545
25546 ;
25547 return 0;
25548}
25549_ACEOF
25550if ac_fn_c_try_compile "$LINENO"; then :
25551 ac_cv_func_strerror_r_char_p=yes
25552fi
25553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25554 else
25555 # strerror_r is not declared. Choose between
25556 # systems that have relatively inaccessible declarations for the
25557 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
25558 # former has a strerror_r that returns char*, while the latter
25559 # has a strerror_r that returns `int'.
25560 # This test should segfault on the DEC system.
25561 if test "$cross_compiling" = yes; then :
25562 :
25563else
25564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25565/* end confdefs.h. */
25566$ac_includes_default
25567 extern char *strerror_r ();
25568int
25569main ()
25570{
25571char buf[100];
25572 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000025573 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000025574 ;
25575 return 0;
25576}
25577_ACEOF
25578if ac_fn_c_try_run "$LINENO"; then :
25579 ac_cv_func_strerror_r_char_p=yes
25580fi
25581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25582 conftest.$ac_objext conftest.beam conftest.$ac_ext
25583fi
25584
25585 fi
25586
25587fi
25588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
25589$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
25590if test $ac_cv_func_strerror_r_char_p = yes; then
25591
25592$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
25593
25594fi
25595
cristy3ed852e2009-09-05 21:47:34 +000025596for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000025597do :
25598 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000025599if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025600 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025601#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000025602_ACEOF
25603
cristy8b350f62009-11-15 23:12:43 +000025604ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000025605if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025606
cristy8b350f62009-11-15 23:12:43 +000025607$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000025608
25609fi
25610
25611fi
25612done
25613
25614
25615
cristy161b9262010-03-20 19:34:32 +000025616#
25617# Find math library
25618#
25619MATH_LIBS=''
25620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
25621$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025622if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000025623 $as_echo_n "(cached) " >&6
25624else
25625 ac_check_lib_save_LIBS=$LIBS
25626LIBS="-lm $LIBS"
25627cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25628/* end confdefs.h. */
25629
25630/* Override any GCC internal prototype to avoid an error.
25631 Use char because int might match the return type of a GCC
25632 builtin and then its argument prototype would still apply. */
25633#ifdef __cplusplus
25634extern "C"
25635#endif
25636char sqrt ();
25637int
25638main ()
25639{
25640return sqrt ();
25641 ;
25642 return 0;
25643}
25644_ACEOF
25645if ac_fn_c_try_link "$LINENO"; then :
25646 ac_cv_lib_m_sqrt=yes
25647else
25648 ac_cv_lib_m_sqrt=no
25649fi
25650rm -f core conftest.err conftest.$ac_objext \
25651 conftest$ac_exeext conftest.$ac_ext
25652LIBS=$ac_check_lib_save_LIBS
25653fi
25654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
25655$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000025656if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000025657 MATH_LIBS="-lm"
25658fi
25659
25660LIBS="$MATH_LIBS $LIBS"
25661
25662
cristy568c2d42012-07-27 01:41:20 +000025663for 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 +000025664do :
25665 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25666ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025667if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000025668 cat >>confdefs.h <<_ACEOF
25669#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25670_ACEOF
25671
25672fi
25673done
25674
25675
cristye43a45e2009-09-28 14:49:00 +000025676#
25677# Check for clock_gettime().
25678#
cristy8b350f62009-11-15 23:12:43 +000025679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025680$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025681if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025682 $as_echo_n "(cached) " >&6
25683else
25684 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000025685cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025686/* end confdefs.h. */
25687
25688/* Override any GCC internal prototype to avoid an error.
25689 Use char because int might match the return type of a GCC
25690 builtin and then its argument prototype would still apply. */
25691#ifdef __cplusplus
25692extern "C"
25693#endif
25694char clock_gettime ();
25695int
25696main ()
25697{
25698return clock_gettime ();
25699 ;
25700 return 0;
25701}
25702_ACEOF
25703for ac_lib in '' rt; do
25704 if test -z "$ac_lib"; then
25705 ac_res="none required"
25706 else
25707 ac_res=-l$ac_lib
25708 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
25709 fi
cristy8b350f62009-11-15 23:12:43 +000025710 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025711 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000025712fi
cristy8b350f62009-11-15 23:12:43 +000025713rm -f core conftest.err conftest.$ac_objext \
25714 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000025715 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000025716 break
25717fi
25718done
cristyda16f162011-02-19 23:52:17 +000025719if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000025720
cristye43a45e2009-09-28 14:49:00 +000025721else
25722 ac_cv_search_clock_gettime=no
25723fi
25724rm conftest.$ac_ext
25725LIBS=$ac_func_search_save_LIBS
25726fi
cristy8b350f62009-11-15 23:12:43 +000025727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000025728$as_echo "$ac_cv_search_clock_gettime" >&6; }
25729ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000025730if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000025731 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
25732
25733
cristy8b350f62009-11-15 23:12:43 +000025734$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025735
cristy8b350f62009-11-15 23:12:43 +000025736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000025737$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000025738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000025739/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000025740
25741 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000025742int
25743main ()
25744{
25745clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000025746 ;
25747 return 0;
25748}
25749_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025750if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000025751
cristy09b53e12011-10-14 12:47:22 +000025752 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
25753$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025754
cristy8b350f62009-11-15 23:12:43 +000025755$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000025756
25757
25758else
cristy09b53e12011-10-14 12:47:22 +000025759 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
25760$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000025761
25762fi
cristye43a45e2009-09-28 14:49:00 +000025763rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25764
25765else
25766
cristy8b350f62009-11-15 23:12:43 +000025767 for ac_func in gettimeofday ftime
25768do :
25769 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25770ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000025771if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000025772 cat >>confdefs.h <<_ACEOF
25773#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25774_ACEOF
25775 break
25776fi
25777done
25778
25779
25780
25781fi
25782
25783
cristy3ed852e2009-09-05 21:47:34 +000025784########
25785#
25786# Check for function prototypes
25787#
25788########
25789
cristy8b350f62009-11-15 23:12:43 +000025790ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000025791#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025792"
cristyda16f162011-02-19 23:52:17 +000025793if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025794 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025795else
cristy8b350f62009-11-15 23:12:43 +000025796 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025797fi
25798
cristy3ed852e2009-09-05 21:47:34 +000025799cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025800#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025801_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025802ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000025803#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000025804"
cristyda16f162011-02-19 23:52:17 +000025805if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025806 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025807else
cristy8b350f62009-11-15 23:12:43 +000025808 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025809fi
25810
cristy3ed852e2009-09-05 21:47:34 +000025811cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025812#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025813_ACEOF
25814
25815
cristy8b350f62009-11-15 23:12:43 +000025816ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000025817#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000025818"
cristyda16f162011-02-19 23:52:17 +000025819if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025820 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025821else
cristy8b350f62009-11-15 23:12:43 +000025822 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025823fi
25824
cristy3ed852e2009-09-05 21:47:34 +000025825cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025826#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025827_ACEOF
25828
25829
cristy8b350f62009-11-15 23:12:43 +000025830ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000025831#include <stdio.h>
25832#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000025833"
cristyda16f162011-02-19 23:52:17 +000025834if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000025835 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000025836else
cristy8b350f62009-11-15 23:12:43 +000025837 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000025838fi
25839
cristy3ed852e2009-09-05 21:47:34 +000025840cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025841#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000025842_ACEOF
25843
25844
cristy3ed852e2009-09-05 21:47:34 +000025845########
25846#
25847# C++ Support Tests (For Magick++)
25848#
25849########
25850have_magick_plus_plus='no'
25851if test "$with_magick_plus_plus" = 'yes'; then
25852 OLIBS="$LIBS"
25853 LIBS=''
25854 ac_ext=cpp
25855ac_cpp='$CXXCPP $CPPFLAGS'
25856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25859
25860
25861 # Full set of headers used...
25862 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25863 # functional iomanip iosfwd iostream iterator list string strstream utility
25864 ac_ext=cpp
25865ac_cpp='$CXXCPP $CPPFLAGS'
25866ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25867ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25868ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25869
25870 ac_ext=cpp
25871ac_cpp='$CXXCPP $CPPFLAGS'
25872ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25873ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25874ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25875if test -z "$CXX"; then
25876 if test -n "$CCC"; then
25877 CXX=$CCC
25878 else
25879 if test -n "$ac_tool_prefix"; then
25880 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25881 do
25882 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25883set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025885$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025886if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025887 $as_echo_n "(cached) " >&6
25888else
25889 if test -n "$CXX"; then
25890 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25891else
25892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25893for as_dir in $PATH
25894do
25895 IFS=$as_save_IFS
25896 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025897 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025898 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025899 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025901 break 2
25902 fi
25903done
cristy8b350f62009-11-15 23:12:43 +000025904 done
cristy3ed852e2009-09-05 21:47:34 +000025905IFS=$as_save_IFS
25906
25907fi
25908fi
25909CXX=$ac_cv_prog_CXX
25910if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025912$as_echo "$CXX" >&6; }
25913else
cristy8b350f62009-11-15 23:12:43 +000025914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025915$as_echo "no" >&6; }
25916fi
25917
25918
25919 test -n "$CXX" && break
25920 done
25921fi
25922if test -z "$CXX"; then
25923 ac_ct_CXX=$CXX
25924 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25925do
25926 # Extract the first word of "$ac_prog", so it can be a program name with args.
25927set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025929$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025930if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025931 $as_echo_n "(cached) " >&6
25932else
25933 if test -n "$ac_ct_CXX"; then
25934 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25935else
25936as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25937for as_dir in $PATH
25938do
25939 IFS=$as_save_IFS
25940 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025941 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025943 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025945 break 2
25946 fi
25947done
cristy8b350f62009-11-15 23:12:43 +000025948 done
cristy3ed852e2009-09-05 21:47:34 +000025949IFS=$as_save_IFS
25950
25951fi
25952fi
25953ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25954if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025956$as_echo "$ac_ct_CXX" >&6; }
25957else
cristy8b350f62009-11-15 23:12:43 +000025958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025959$as_echo "no" >&6; }
25960fi
25961
25962
25963 test -n "$ac_ct_CXX" && break
25964done
25965
25966 if test "x$ac_ct_CXX" = x; then
25967 CXX="g++"
25968 else
25969 case $cross_compiling:$ac_tool_warned in
25970yes:)
cristy8b350f62009-11-15 23:12:43 +000025971{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025972$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25973ac_tool_warned=yes ;;
25974esac
25975 CXX=$ac_ct_CXX
25976 fi
25977fi
25978
25979 fi
25980fi
25981# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025982$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025983set X $ac_compile
25984ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025985for ac_option in --version -v -V -qversion; do
25986 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025987case "(($ac_try" in
25988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25989 *) ac_try_echo=$ac_try;;
25990esac
cristy8b350f62009-11-15 23:12:43 +000025991eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25992$as_echo "$ac_try_echo"; } >&5
25993 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025994 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025995 if test -s conftest.err; then
25996 sed '10a\
25997... rest of stderr output deleted ...
25998 10q' conftest.err >conftest.er1
25999 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000026000 fi
cristycd4c5312009-11-22 01:19:08 +000026001 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000026002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26003 test $ac_status = 0; }
26004done
cristy3ed852e2009-09-05 21:47:34 +000026005
cristy8b350f62009-11-15 23:12:43 +000026006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000026007$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026008if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026009 $as_echo_n "(cached) " >&6
26010else
cristy8b350f62009-11-15 23:12:43 +000026011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026012/* end confdefs.h. */
26013
26014int
26015main ()
26016{
26017#ifndef __GNUC__
26018 choke me
26019#endif
26020
26021 ;
26022 return 0;
26023}
26024_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026025if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026026 ac_compiler_gnu=yes
26027else
cristy8b350f62009-11-15 23:12:43 +000026028 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000026029fi
cristy3ed852e2009-09-05 21:47:34 +000026030rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26031ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
26032
26033fi
cristy8b350f62009-11-15 23:12:43 +000026034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000026035$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
26036if test $ac_compiler_gnu = yes; then
26037 GXX=yes
26038else
26039 GXX=
26040fi
26041ac_test_CXXFLAGS=${CXXFLAGS+set}
26042ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000026043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026044$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026045if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026046 $as_echo_n "(cached) " >&6
26047else
26048 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
26049 ac_cxx_werror_flag=yes
26050 ac_cv_prog_cxx_g=no
26051 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026053/* end confdefs.h. */
26054
26055int
26056main ()
26057{
26058
26059 ;
26060 return 0;
26061}
26062_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026063if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026064 ac_cv_prog_cxx_g=yes
26065else
cristy8b350f62009-11-15 23:12:43 +000026066 CXXFLAGS=""
26067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026068/* end confdefs.h. */
26069
26070int
26071main ()
26072{
26073
26074 ;
26075 return 0;
26076}
26077_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026078if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026079
cristy8b350f62009-11-15 23:12:43 +000026080else
26081 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000026082 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000026083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026084/* end confdefs.h. */
26085
26086int
26087main ()
26088{
26089
26090 ;
26091 return 0;
26092}
26093_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026094if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026095 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000026096fi
cristy3ed852e2009-09-05 21:47:34 +000026097rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26098fi
cristy3ed852e2009-09-05 21:47:34 +000026099rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26100fi
cristy3ed852e2009-09-05 21:47:34 +000026101rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26102 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
26103fi
cristy8b350f62009-11-15 23:12:43 +000026104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000026105$as_echo "$ac_cv_prog_cxx_g" >&6; }
26106if test "$ac_test_CXXFLAGS" = set; then
26107 CXXFLAGS=$ac_save_CXXFLAGS
26108elif test $ac_cv_prog_cxx_g = yes; then
26109 if test "$GXX" = yes; then
26110 CXXFLAGS="-g -O2"
26111 else
26112 CXXFLAGS="-g"
26113 fi
26114else
26115 if test "$GXX" = yes; then
26116 CXXFLAGS="-O2"
26117 else
26118 CXXFLAGS=
26119 fi
26120fi
26121ac_ext=cpp
26122ac_cpp='$CXXCPP $CPPFLAGS'
26123ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26124ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26125ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26126
cristy73bd4a52010-10-05 11:24:23 +000026127depcc="$CXX" am_compiler_list=
26128
26129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
26130$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026131if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026132 $as_echo_n "(cached) " >&6
26133else
26134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
26135 # We make a subdir and do the tests there. Otherwise we can end up
26136 # making bogus files that we don't know about and never remove. For
26137 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000026138 # making a dummy file named 'D' -- because '-MD' means "put the output
26139 # in D".
cristy7247bba2012-02-05 16:37:27 +000026140 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000026141 mkdir conftest.dir
26142 # Copy depcomp to subdir because otherwise we won't find it if we're
26143 # using a relative directory.
26144 cp "$am_depcomp" conftest.dir
26145 cd conftest.dir
26146 # We will build objects and dependencies in a subdirectory because
26147 # it helps to detect inapplicable dependency modes. For instance
26148 # both Tru64's cc and ICC support -MD to output dependencies as a
26149 # side effect of compilation, but ICC will put the dependencies in
26150 # the current directory while Tru64 will put them in the object
26151 # directory.
26152 mkdir sub
26153
26154 am_cv_CXX_dependencies_compiler_type=none
26155 if test "$am_compiler_list" = ""; then
26156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
26157 fi
26158 am__universal=false
26159 case " $depcc " in #(
26160 *\ -arch\ *\ -arch\ *) am__universal=true ;;
26161 esac
26162
26163 for depmode in $am_compiler_list; do
26164 # Setup a source with many dependencies, because some compilers
26165 # like to wrap large dependency lists on column 80 (with \), and
26166 # we should not choose a depcomp mode which is confused by this.
26167 #
26168 # We need to recreate these files for each test, as the compiler may
26169 # overwrite some of them when testing with obscure command lines.
26170 # This happens at least with the AIX C compiler.
26171 : > sub/conftest.c
26172 for i in 1 2 3 4 5 6; do
26173 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000026174 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
26175 # Solaris 10 /bin/sh.
26176 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000026177 done
26178 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
26179
cristyc0890a62012-07-19 00:18:20 +000026180 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000026181 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000026182 # handle '-M -o', and we need to detect this. Also, some Intel
26183 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000026184 am__obj=sub/conftest.${OBJEXT-o}
26185 am__minus_obj="-o $am__obj"
26186 case $depmode in
26187 gcc)
26188 # This depmode causes a compiler race in universal mode.
26189 test "$am__universal" = false || continue
26190 ;;
26191 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000026192 # After this tag, mechanisms are not by side-effect, so they'll
26193 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000026194 if test "x$enable_dependency_tracking" = xyes; then
26195 continue
26196 else
26197 break
26198 fi
26199 ;;
cristy7247bba2012-02-05 16:37:27 +000026200 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000026201 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000026202 # not run yet. These depmodes are late enough in the game, and
26203 # so weak that their functioning should not be impacted.
26204 am__obj=conftest.${OBJEXT-o}
26205 am__minus_obj=
26206 ;;
26207 none) break ;;
26208 esac
26209 if depmode=$depmode \
26210 source=sub/conftest.c object=$am__obj \
26211 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
26212 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
26213 >/dev/null 2>conftest.err &&
26214 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
26215 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
26216 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
26217 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
26218 # icc doesn't choke on unknown options, it will just issue warnings
26219 # or remarks (even with -Werror). So we grep stderr for any message
26220 # that says an option was ignored or not supported.
26221 # When given -MP, icc 7.0 and 7.1 complain thusly:
26222 # icc: Command line warning: ignoring option '-M'; no argument required
26223 # The diagnosis changed in icc 8.0:
26224 # icc: Command line remark: option '-MP' not supported
26225 if (grep 'ignoring option' conftest.err ||
26226 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
26227 am_cv_CXX_dependencies_compiler_type=$depmode
26228 break
26229 fi
26230 fi
26231 done
26232
26233 cd ..
26234 rm -rf conftest.dir
26235else
26236 am_cv_CXX_dependencies_compiler_type=none
26237fi
26238
26239fi
26240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
26241$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
26242CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
26243
26244 if
26245 test "x$enable_dependency_tracking" != xno \
26246 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
26247 am__fastdepCXX_TRUE=
26248 am__fastdepCXX_FALSE='#'
26249else
26250 am__fastdepCXX_TRUE='#'
26251 am__fastdepCXX_FALSE=
26252fi
26253
26254
26255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
26256$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026257if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026258 $as_echo_n "(cached) " >&6
26259else
26260
26261 ac_ext=cpp
26262ac_cpp='$CXXCPP $CPPFLAGS'
26263ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26264ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26265ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26266
26267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26268/* end confdefs.h. */
26269
26270int f(int x){return 1;}
26271int f(char x){return 1;}
26272int f(bool x){return 1;}
26273
26274int
26275main ()
26276{
26277bool b = true; return f(b);
26278 ;
26279 return 0;
26280}
26281_ACEOF
26282if ac_fn_cxx_try_compile "$LINENO"; then :
26283 ax_cv_cxx_bool=yes
26284else
26285 ax_cv_cxx_bool=no
26286fi
26287rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26288 ac_ext=cpp
26289ac_cpp='$CXXCPP $CPPFLAGS'
26290ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26291ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26292ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26293
26294
26295fi
26296{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
26297$as_echo "$ax_cv_cxx_bool" >&6; }
26298if test "$ax_cv_cxx_bool" = yes; then
26299
26300$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
26301
26302fi
26303
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
26305$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026306if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026307 $as_echo_n "(cached) " >&6
26308else
26309
26310 ac_ext=cpp
26311ac_cpp='$CXXCPP $CPPFLAGS'
26312ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26313ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26314ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26315
26316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26317/* end confdefs.h. */
26318namespace Outer { namespace Inner { int i = 0; }}
26319int
26320main ()
26321{
26322using namespace Outer::Inner; return i;
26323 ;
26324 return 0;
26325}
26326_ACEOF
26327if ac_fn_cxx_try_compile "$LINENO"; then :
26328 ax_cv_cxx_namespaces=yes
26329else
26330 ax_cv_cxx_namespaces=no
26331fi
26332rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26333 ac_ext=cpp
26334ac_cpp='$CXXCPP $CPPFLAGS'
26335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26338
26339
26340fi
26341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
26342$as_echo "$ax_cv_cxx_namespaces" >&6; }
26343if test "$ax_cv_cxx_namespaces" = yes; then
26344
26345$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
26346
26347fi
26348
26349
26350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
26351$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026352if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026353 $as_echo_n "(cached) " >&6
26354else
26355
26356 ac_ext=cpp
26357ac_cpp='$CXXCPP $CPPFLAGS'
26358ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26359ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26360ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26361
26362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26363/* end confdefs.h. */
26364#include <iostream>
26365 std::istream& is = std::cin;
26366int
26367main ()
26368{
26369
26370 ;
26371 return 0;
26372}
26373_ACEOF
26374if ac_fn_cxx_try_compile "$LINENO"; then :
26375 ax_cv_cxx_have_std_namespace=yes
26376else
26377 ax_cv_cxx_have_std_namespace=no
26378fi
26379rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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
26387fi
26388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
26389$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
26390 if test "$ax_cv_cxx_have_std_namespace" = yes; then
26391
26392$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
26393
26394 fi
26395
26396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
26397$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026398if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000026399 $as_echo_n "(cached) " >&6
26400else
26401
26402
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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26410/* end confdefs.h. */
26411#include <iostream>
26412#include <map>
26413#include <iomanip>
26414#include <cmath>
26415#ifdef HAVE_NAMESPACES
26416using namespace std;
26417#endif
26418int
26419main ()
26420{
26421return 0;
26422 ;
26423 return 0;
26424}
26425_ACEOF
26426if ac_fn_cxx_try_compile "$LINENO"; then :
26427 ac_cv_cxx_have_std_libs=yes
26428else
26429 ac_cv_cxx_have_std_libs=no
26430fi
26431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26432 ac_ext=cpp
26433ac_cpp='$CXXCPP $CPPFLAGS'
26434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
26437
26438
26439fi
26440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
26441$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
26442if test "$ac_cv_cxx_have_std_libs" = yes; then
26443
26444$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
26445
26446fi
26447
cristy3ed852e2009-09-05 21:47:34 +000026448
26449 OPENMP_CXXFLAGS=
26450 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000026451if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026452 enableval=$enable_openmp;
26453fi
26454
26455 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000026456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
26457$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026458if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026459 $as_echo_n "(cached) " >&6
26460else
cristy8b350f62009-11-15 23:12:43 +000026461 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26462/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026463
26464#ifndef _OPENMP
26465 choke me
26466#endif
26467#include <omp.h>
26468int main () { return omp_get_num_threads (); }
26469
26470_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026471if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026472 ac_cv_prog_cxx_openmp='none needed'
26473else
cristy8b350f62009-11-15 23:12:43 +000026474 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000026475 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
26476 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000026477 ac_save_CXXFLAGS=$CXXFLAGS
26478 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000026479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26480/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000026481
26482#ifndef _OPENMP
26483 choke me
26484#endif
26485#include <omp.h>
26486int main () { return omp_get_num_threads (); }
26487
26488_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026489if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026490 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000026491fi
cristy8b350f62009-11-15 23:12:43 +000026492rm -f core conftest.err conftest.$ac_objext \
26493 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026494 CXXFLAGS=$ac_save_CXXFLAGS
26495 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
26496 break
26497 fi
26498 done
26499fi
cristy8b350f62009-11-15 23:12:43 +000026500rm -f core conftest.err conftest.$ac_objext \
26501 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026502fi
cristy8b350f62009-11-15 23:12:43 +000026503{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026504$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
26505 case $ac_cv_prog_cxx_openmp in #(
26506 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000026507 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000026508 *)
cristy8b350f62009-11-15 23:12:43 +000026509 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000026510 esac
26511 fi
26512
26513
26514 ac_ext=c
26515ac_cpp='$CPP $CPPFLAGS'
26516ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26517ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26518ac_compiler_gnu=$ac_cv_c_compiler_gnu
26519
26520
cristy8b350f62009-11-15 23:12:43 +000026521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000026522$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
26523 if \
cristy964cb7f2010-04-25 23:18:00 +000026524 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026525 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000026526 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000026527 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000026528 have_magick_plus_plus='yes'
26529 else
26530 have_magick_plus_plus='no (failed tests)'
26531 fi
cristy09b53e12011-10-14 12:47:22 +000026532 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
26533$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026534 LIBS="$OLIBS"
26535fi
cristy73bd4a52010-10-05 11:24:23 +000026536 if test "$have_magick_plus_plus" = 'yes'; then
26537 WITH_MAGICK_PLUS_PLUS_TRUE=
26538 WITH_MAGICK_PLUS_PLUS_FALSE='#'
26539else
26540 WITH_MAGICK_PLUS_PLUS_TRUE='#'
26541 WITH_MAGICK_PLUS_PLUS_FALSE=
26542fi
26543
cristy3ed852e2009-09-05 21:47:34 +000026544
26545# Only check for delegate libraries in subdirectories if requested.
26546if test "$enable_delegate_build" != 'no'; then
26547 # Check for delegate sub-directories and add -I & -L options as required.
26548 # This presumes that delegates are installed as detailed in the ImageMagick
26549 # README. If delegates are installed in a standard location where the
26550 # compiler will automatically find them then these options should not be
26551 # required.
26552
26553 #
26554 # Most delegates have includes in the same directory as the library, but not all...
26555 #
26556 # Includes
cristy2542fc62011-12-06 17:50:25 +000026557 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 +000026558 if test -d "$builddir/$dir"; then
26559 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
26560 else
26561 if test -d "$srcdirfull/$dir"; then
26562 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
26563 fi
26564 fi
26565 done
26566
26567 # Libraries
cristy2542fc62011-12-06 17:50:25 +000026568 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 +000026569 if test -d "$builddir/$dir/.libs"; then
26570 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
26571 else
26572 if test -d "$srcdirfull/$dir/.libs"; then
26573 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
26574 fi
26575 fi
26576 if test -d "$builddir/$dir"; then
26577 LDFLAGS="$LDFLAGS -L$builddir/$dir"
26578 else
26579 if test -d "$srcdirfull/$dir"; then
26580 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
26581 fi
26582 fi
26583 done
26584fi
26585
26586# Assume that delegate headers reside under same directory as ImageMagick
26587# installation prefix.
26588MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
26589
26590#
26591# Find the X11 RGB database
26592#
cristy8b350f62009-11-15 23:12:43 +000026593{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000026594$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026595if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026596 $as_echo_n "(cached) " >&6
26597else
26598 # Look for the header file in a standard set of common directories.
26599# Check X11 before X11Rn because it is often a symlink to the current release.
26600 for ac_dir in \
26601 /lib/usr/lib/X11 \
26602 /usr/X11/lib \
26603 /usr/X11R4/lib \
26604 /usr/X11R5/lib \
26605 /usr/X11R6/lib \
26606 /usr/X11R7/lib \
26607 /usr/X386/lib \
26608 /usr/XFree86/lib/X11 \
26609 /usr/athena/lib \
26610 /usr/lib \
26611 /usr/lib/X11 \
26612 /usr/lib/X11R4 \
26613 /usr/lib/X11R5 \
26614 /usr/lib/X11R6 \
26615 /usr/lib/X11R7 \
26616 /usr/local/X11/lib \
26617 /usr/local/X11R4/lib \
26618 /usr/local/X11R5/lib \
26619 /usr/local/X11R6/lib \
26620 /usr/local/lib \
26621 /usr/local/lib/X11 \
26622 /usr/local/lib/X11R4 \
26623 /usr/local/lib/X11R5 \
26624 /usr/local/lib/X11R6 \
26625 /usr/local/lib/X11R7 \
26626 /usr/local/x11r5/lib \
26627 /usr/lpp/Xamples/lib \
26628 /usr/openwin/lib \
26629 /usr/openwin/share/lib \
26630 /usr/unsupported/lib \
26631 /usr/x386/lib \
26632 ; do
26633 if test -f "$ac_dir/X11/rgb.txt"; then
26634 im_cv_x_configure="$ac_dir/X11/"
26635 break
26636 elif test -f "$ac_dir/rgb.txt"; then
26637 im_cv_x_configure="$ac_dir/"
26638 break
26639 fi
26640
26641 done
26642fi
cristy8b350f62009-11-15 23:12:43 +000026643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000026644$as_echo "$im_cv_x_configure" >&6; }
26645X11_CONFIGURE_PATH="$im_cv_x_configure"
26646case "${build_os}" in
26647 mingw* )
26648 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
26649 ;;
26650esac
26651
26652cat >>confdefs.h <<_ACEOF
26653#define X11_CONFIGURE_PATH "$X11ConfigurePath"
26654_ACEOF
26655
26656
26657#
26658# Find OpenMP library
26659#
26660GOMP_LIBS=''
26661if test "$enable_openmp" != 'no'; then
26662 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000026663 # Open64 (passes for GCC but uses different OpenMP implementation)
26664 if test "x$GOMP_LIBS" = x ; then
26665 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
26666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
26667$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
26668if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
26669 $as_echo_n "(cached) " >&6
26670else
26671 ac_check_lib_save_LIBS=$LIBS
26672LIBS="-lopenmp $LIBS"
26673cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26674/* end confdefs.h. */
26675
26676/* Override any GCC internal prototype to avoid an error.
26677 Use char because int might match the return type of a GCC
26678 builtin and then its argument prototype would still apply. */
26679#ifdef __cplusplus
26680extern "C"
26681#endif
26682char omp_get_num_procs ();
26683int
26684main ()
26685{
26686return omp_get_num_procs ();
26687 ;
26688 return 0;
26689}
26690_ACEOF
26691if ac_fn_c_try_link "$LINENO"; then :
26692 ac_cv_lib_openmp_omp_get_num_procs=yes
26693else
26694 ac_cv_lib_openmp_omp_get_num_procs=no
26695fi
26696rm -f core conftest.err conftest.$ac_objext \
26697 conftest$ac_exeext conftest.$ac_ext
26698LIBS=$ac_check_lib_save_LIBS
26699fi
26700{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
26701$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
26702if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
26703 GOMP_LIBS="-lopenmp"
26704fi
26705
26706 fi
26707 fi
26708 # GCC
26709 if test "x$GOMP_LIBS" = x ; then
26710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026711$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026712if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026713 $as_echo_n "(cached) " >&6
26714else
26715 ac_check_lib_save_LIBS=$LIBS
26716LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026718/* end confdefs.h. */
26719
26720/* Override any GCC internal prototype to avoid an error.
26721 Use char because int might match the return type of a GCC
26722 builtin and then its argument prototype would still apply. */
26723#ifdef __cplusplus
26724extern "C"
26725#endif
26726char GOMP_parallel_start ();
26727int
26728main ()
26729{
26730return GOMP_parallel_start ();
26731 ;
26732 return 0;
26733}
26734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026736 ac_cv_lib_gomp_GOMP_parallel_start=yes
26737else
cristy8b350f62009-11-15 23:12:43 +000026738 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000026739fi
cristy8b350f62009-11-15 23:12:43 +000026740rm -f core conftest.err conftest.$ac_objext \
26741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026742LIBS=$ac_check_lib_save_LIBS
26743fi
cristy8b350f62009-11-15 23:12:43 +000026744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000026745$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000026746if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026747 GOMP_LIBS="-lgomp"
26748fi
cristy18307f12011-12-30 01:20:16 +000026749
26750 fi
cristy3ed852e2009-09-05 21:47:34 +000026751 else
cristy18307f12011-12-30 01:20:16 +000026752 # Sun CC
26753 if test "x$GOMP_LIBS" = x ; then
26754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000026755$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026756if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026757 $as_echo_n "(cached) " >&6
26758else
26759 ac_check_lib_save_LIBS=$LIBS
26760LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026761cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026762/* end confdefs.h. */
26763
26764/* Override any GCC internal prototype to avoid an error.
26765 Use char because int might match the return type of a GCC
26766 builtin and then its argument prototype would still apply. */
26767#ifdef __cplusplus
26768extern "C"
26769#endif
26770char sunw_mp_register_warn ();
26771int
26772main ()
26773{
26774return sunw_mp_register_warn ();
26775 ;
26776 return 0;
26777}
26778_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026779if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026780 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
26781else
cristy8b350f62009-11-15 23:12:43 +000026782 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000026783fi
cristy8b350f62009-11-15 23:12:43 +000026784rm -f core conftest.err conftest.$ac_objext \
26785 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026786LIBS=$ac_check_lib_save_LIBS
26787fi
cristy8b350f62009-11-15 23:12:43 +000026788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000026789$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000026790if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026791 GOMP_LIBS="-lmtsk"
26792fi
cristy18307f12011-12-30 01:20:16 +000026793
26794 fi
26795 # AIX xlc
26796 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026798$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026799if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026800 $as_echo_n "(cached) " >&6
26801else
26802 ac_check_lib_save_LIBS=$LIBS
26803LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026804cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026805/* end confdefs.h. */
26806
26807/* Override any GCC internal prototype to avoid an error.
26808 Use char because int might match the return type of a GCC
26809 builtin and then its argument prototype would still apply. */
26810#ifdef __cplusplus
26811extern "C"
26812#endif
26813char _xlsmpFlush ();
26814int
26815main ()
26816{
26817return _xlsmpFlush ();
26818 ;
26819 return 0;
26820}
26821_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026822if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026823 ac_cv_lib_xlsmp__xlsmpFlush=yes
26824else
cristy8b350f62009-11-15 23:12:43 +000026825 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000026826fi
cristy8b350f62009-11-15 23:12:43 +000026827rm -f core conftest.err conftest.$ac_objext \
26828 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026829LIBS=$ac_check_lib_save_LIBS
26830fi
cristy8b350f62009-11-15 23:12:43 +000026831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000026832$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000026833if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026834 GOMP_LIBS="-lxlsmp"
26835fi
cristy18307f12011-12-30 01:20:16 +000026836
26837 fi
26838 # SGI IRIX 6.5 MIPSpro C/C++
26839 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000026840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000026841$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026842if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026843 $as_echo_n "(cached) " >&6
26844else
26845 ac_check_lib_save_LIBS=$LIBS
26846LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026847cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026848/* end confdefs.h. */
26849
26850/* Override any GCC internal prototype to avoid an error.
26851 Use char because int might match the return type of a GCC
26852 builtin and then its argument prototype would still apply. */
26853#ifdef __cplusplus
26854extern "C"
26855#endif
26856char mp_destroy ();
26857int
26858main ()
26859{
26860return mp_destroy ();
26861 ;
26862 return 0;
26863}
26864_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026865if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026866 ac_cv_lib_mp_mp_destroy=yes
26867else
cristy8b350f62009-11-15 23:12:43 +000026868 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026869fi
cristy8b350f62009-11-15 23:12:43 +000026870rm -f core conftest.err conftest.$ac_objext \
26871 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026872LIBS=$ac_check_lib_save_LIBS
26873fi
cristy8b350f62009-11-15 23:12:43 +000026874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026875$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026876if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026877 GOMP_LIBS="-lmp"
26878fi
cristy18307f12011-12-30 01:20:16 +000026879
26880 fi
cristy3ed852e2009-09-05 21:47:34 +000026881 fi
26882 LIBS="$GOMP_LIBS $LIBS"
26883fi
26884
26885
26886#
26887# Find Posix threads library
26888#
26889THREAD_LIBS=''
26890if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26891
26892 if test "x$PTHREAD_LIBS" = "x"; then
26893 case "${host_cpu}-${host_os}" in
26894 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026895
26896
26897
26898ac_ext=c
26899ac_cpp='$CPP $CPPFLAGS'
26900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26902ac_compiler_gnu=$ac_cv_c_compiler_gnu
26903
26904magick_pthread_lib_ok=no
26905
26906LIB=-lc_r
26907save_LIBS="$LIBS"
26908LIBS="$LIBS $LIB"
26909
26910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26911$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26913/* end confdefs.h. */
26914#include <pthread.h>
26915int
26916main ()
26917{
26918 pthread_t th;
26919 pthread_join(th, 0);
26920 pthread_attr_init(0);
26921 pthread_cleanup_push(0, 0);
26922 pthread_create(0,0,0,0);
26923 pthread_cleanup_pop(0);
26924 ;
26925 return 0;
26926}
26927_ACEOF
26928if ac_fn_c_try_link "$LINENO"; then :
26929 magick_pthread_lib_ok=yes
26930fi
26931rm -f core conftest.err conftest.$ac_objext \
26932 conftest$ac_exeext conftest.$ac_ext
26933
26934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26935$as_echo "${magick_pthread_lib_ok}" >&6; }
26936if test "$magick_pthread_lib_ok" = yes
26937then
26938 PTHREAD_LIBS=-lc_r
26939 :
26940else
26941
26942 :
26943fi
26944
26945LIBS="$save_LIBS"
26946
26947ac_ext=c
26948ac_cpp='$CPP $CPPFLAGS'
26949ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26950ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26951ac_compiler_gnu=$ac_cv_c_compiler_gnu
26952
26953 ;;
cristy3ed852e2009-09-05 21:47:34 +000026954 esac
26955 fi
26956
26957 for lib in pthread pthreads; do
26958 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026959
26960
26961
26962ac_ext=c
26963ac_cpp='$CPP $CPPFLAGS'
26964ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26965ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26966ac_compiler_gnu=$ac_cv_c_compiler_gnu
26967
26968magick_pthread_lib_ok=no
26969
26970LIB=-l$lib
26971save_LIBS="$LIBS"
26972LIBS="$LIBS $LIB"
26973
26974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26975$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26977/* end confdefs.h. */
26978#include <pthread.h>
26979int
26980main ()
26981{
26982 pthread_t th;
26983 pthread_join(th, 0);
26984 pthread_attr_init(0);
26985 pthread_cleanup_push(0, 0);
26986 pthread_create(0,0,0,0);
26987 pthread_cleanup_pop(0);
26988 ;
26989 return 0;
26990}
26991_ACEOF
26992if ac_fn_c_try_link "$LINENO"; then :
26993 magick_pthread_lib_ok=yes
26994fi
26995rm -f core conftest.err conftest.$ac_objext \
26996 conftest$ac_exeext conftest.$ac_ext
26997
26998{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26999$as_echo "${magick_pthread_lib_ok}" >&6; }
27000if test "$magick_pthread_lib_ok" = yes
27001then
27002 PTHREAD_LIBS=-l$lib
27003 :
27004else
27005
27006 :
27007fi
27008
27009LIBS="$save_LIBS"
27010
27011ac_ext=c
27012ac_cpp='$CPP $CPPFLAGS'
27013ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27014ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27015ac_compiler_gnu=$ac_cv_c_compiler_gnu
27016
27017
cristy3ed852e2009-09-05 21:47:34 +000027018 fi
27019 done
27020
27021 THREAD_LIBS="$PTHREAD_LIBS"
27022 LIBS="$LIBS $THREAD_LIBS"
27023fi
27024
27025
27026#
27027# Check for umem.
27028#
27029have_umem='no'
27030UMEM_LIBS=''
27031if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000027032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000027033$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027034 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27035$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027036 failed=0
27037 passed=0
cristy8b350f62009-11-15 23:12:43 +000027038 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027039if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027040 passed=`expr $passed + 1`
27041else
27042 failed=`expr $failed + 1`
27043fi
27044
27045
cristy8b350f62009-11-15 23:12:43 +000027046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027047$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027048if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027049 $as_echo_n "(cached) " >&6
27050else
27051 ac_check_lib_save_LIBS=$LIBS
27052LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027053cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027054/* end confdefs.h. */
27055
27056/* Override any GCC internal prototype to avoid an error.
27057 Use char because int might match the return type of a GCC
27058 builtin and then its argument prototype would still apply. */
27059#ifdef __cplusplus
27060extern "C"
27061#endif
27062char umem_alloc ();
27063int
27064main ()
27065{
27066return umem_alloc ();
27067 ;
27068 return 0;
27069}
27070_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027071if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027072 ac_cv_lib_umem_umem_alloc=yes
27073else
cristy8b350f62009-11-15 23:12:43 +000027074 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000027075fi
cristy8b350f62009-11-15 23:12:43 +000027076rm -f core conftest.err conftest.$ac_objext \
27077 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027078LIBS=$ac_check_lib_save_LIBS
27079fi
cristy8b350f62009-11-15 23:12:43 +000027080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027081$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027082if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027083 passed=`expr $passed + 1`
27084else
27085 failed=`expr $failed + 1`
27086fi
27087
cristy8b350f62009-11-15 23:12:43 +000027088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000027089$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027090if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027091 $as_echo_n "(cached) " >&6
27092else
27093 ac_check_lib_save_LIBS=$LIBS
27094LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027095cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027096/* end confdefs.h. */
27097
27098/* Override any GCC internal prototype to avoid an error.
27099 Use char because int might match the return type of a GCC
27100 builtin and then its argument prototype would still apply. */
27101#ifdef __cplusplus
27102extern "C"
27103#endif
27104char umem_free ();
27105int
27106main ()
27107{
27108return umem_free ();
27109 ;
27110 return 0;
27111}
27112_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027113if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027114 ac_cv_lib_umem_umem_free=yes
27115else
cristy8b350f62009-11-15 23:12:43 +000027116 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000027117fi
cristy8b350f62009-11-15 23:12:43 +000027118rm -f core conftest.err conftest.$ac_objext \
27119 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027120LIBS=$ac_check_lib_save_LIBS
27121fi
cristy8b350f62009-11-15 23:12:43 +000027122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000027123$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000027124if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027125 passed=`expr $passed + 1`
27126else
27127 failed=`expr $failed + 1`
27128fi
27129
cristy8b350f62009-11-15 23:12:43 +000027130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027131$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
27132 if test $passed -gt 0; then
27133 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027134 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27135$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027136 have_umem='no (failed tests)'
27137 else
27138 UMEM_LIBS='-lumem'
27139 LIBS="$UMEM_LIBS $LIBS"
27140
cristy8b350f62009-11-15 23:12:43 +000027141$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027142
cristy09b53e12011-10-14 12:47:22 +000027143 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27144$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027145 have_umem='yes'
27146 fi
27147 else
cristy09b53e12011-10-14 12:47:22 +000027148 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27149$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027150 fi
27151fi
cristy73bd4a52010-10-05 11:24:23 +000027152 if test "$have_umem" = 'yes'; then
27153 HasUMEM_TRUE=
27154 HasUMEM_FALSE='#'
27155else
27156 HasUMEM_TRUE='#'
27157 HasUMEM_FALSE=
27158fi
27159
cristy3ed852e2009-09-05 21:47:34 +000027160
27161
27162#
27163# Add support for ccmalloc memory debugging library if requested
27164#
27165have_ccmalloc='no'
27166CCMALLOC_LIBS=''
27167if test "$enable_ccmalloc" = 'yes'; then
27168 # Extract the first word of "ccmalloc", so it can be a program name with args.
27169set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000027170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000027171$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027172if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027173 $as_echo_n "(cached) " >&6
27174else
27175 case $CCMALLOCDelegate in
27176 [\\/]* | ?:[\\/]*)
27177 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
27178 ;;
27179 *)
27180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27181for as_dir in $PATH
27182do
27183 IFS=$as_save_IFS
27184 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000027185 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000027186 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000027187 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000027188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027189 break 2
27190 fi
27191done
cristy8b350f62009-11-15 23:12:43 +000027192 done
cristy3ed852e2009-09-05 21:47:34 +000027193IFS=$as_save_IFS
27194
27195 ;;
27196esac
27197fi
27198CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
27199if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000027200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo "$CCMALLOCDelegate" >&6; }
27202else
cristy8b350f62009-11-15 23:12:43 +000027203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027204$as_echo "no" >&6; }
27205fi
27206
27207
27208 if test -n "$CCMALLOCDelegate"; then
27209 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
27210 OLIBS="$LIBS"
27211 # Assume that gcc is used with ccmalloc.
27212 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000027213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027214$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027215if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027216 $as_echo_n "(cached) " >&6
27217else
27218 ac_check_lib_save_LIBS=$LIBS
27219LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027220cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027221/* end confdefs.h. */
27222
27223/* Override any GCC internal prototype to avoid an error.
27224 Use char because int might match the return type of a GCC
27225 builtin and then its argument prototype would still apply. */
27226#ifdef __cplusplus
27227extern "C"
27228#endif
27229char ccmalloc_malloc ();
27230int
27231main ()
27232{
27233return ccmalloc_malloc ();
27234 ;
27235 return 0;
27236}
27237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027238if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027239 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
27240else
cristy8b350f62009-11-15 23:12:43 +000027241 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000027242fi
cristy8b350f62009-11-15 23:12:43 +000027243rm -f core conftest.err conftest.$ac_objext \
27244 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027245LIBS=$ac_check_lib_save_LIBS
27246fi
cristy8b350f62009-11-15 23:12:43 +000027247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027248$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000027249if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027250 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
27251fi
27252
27253 if test -n "$CCMALLOC_LIBS"; then
27254 LIBS="$OLIBS"
27255 LIBS="$LIBS $CCMALLOC_LIBS"
27256 have_ccmalloc='yes'
27257 else
27258 LIBS="$OLIBS"
27259 fi
27260 fi
27261fi
27262
27263#
27264# Add support for efence memory debugging library if requested
27265#
27266if test "$enable_efence" = 'yes'; then
27267 EFENCE_LIBS='-lefence'
27268 LIBS="$EFENCE_LIBS $LIBS"
27269fi
27270
cristy3ed852e2009-09-05 21:47:34 +000027271
27272#
27273# Check for BZLIB
27274#
27275
27276
27277# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000027278if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027279 withval=$with_bzlib; with_bzlib=$withval
27280else
27281 with_bzlib='yes'
27282fi
27283
27284
27285if test "$with_bzlib" != 'yes'; then
27286 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
27287fi
27288
27289have_bzlib='no'
27290if test "$with_bzlib" != 'no'; then
27291 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000027292 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27293$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027295$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027296 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27297$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027298 failed=0
27299 passed=0
27300 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000027301 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027302if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027303 passed=`expr $passed + 1`
27304else
27305 failed=`expr $failed + 1`
27306fi
27307
27308
cristy8b350f62009-11-15 23:12:43 +000027309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027310$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027311if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027312 $as_echo_n "(cached) " >&6
27313else
27314 ac_check_lib_save_LIBS=$LIBS
27315LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027316cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027317/* end confdefs.h. */
27318
27319/* Override any GCC internal prototype to avoid an error.
27320 Use char because int might match the return type of a GCC
27321 builtin and then its argument prototype would still apply. */
27322#ifdef __cplusplus
27323extern "C"
27324#endif
27325char BZ2_bzDecompress ();
27326int
27327main ()
27328{
27329return BZ2_bzDecompress ();
27330 ;
27331 return 0;
27332}
27333_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027334if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027335 ac_cv_lib_bz2_BZ2_bzDecompress=yes
27336else
cristy8b350f62009-11-15 23:12:43 +000027337 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000027338fi
cristy8b350f62009-11-15 23:12:43 +000027339rm -f core conftest.err conftest.$ac_objext \
27340 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027341LIBS=$ac_check_lib_save_LIBS
27342fi
cristy8b350f62009-11-15 23:12:43 +000027343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027344$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027345if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027346 found_libbz=`expr $found_libbz + 1`
27347fi
27348
27349 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027352if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 $as_echo_n "(cached) " >&6
27354else
27355 ac_check_lib_save_LIBS=$LIBS
27356LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027357cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027358/* end confdefs.h. */
27359
27360/* Override any GCC internal prototype to avoid an error.
27361 Use char because int might match the return type of a GCC
27362 builtin and then its argument prototype would still apply. */
27363#ifdef __cplusplus
27364extern "C"
27365#endif
27366char _imp__BZ2_decompress ();
27367int
27368main ()
27369{
27370return _imp__BZ2_decompress ();
27371 ;
27372 return 0;
27373}
27374_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027375if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027376 ac_cv_lib_bz2__imp__BZ2_decompress=yes
27377else
cristy8b350f62009-11-15 23:12:43 +000027378 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000027379fi
cristy8b350f62009-11-15 23:12:43 +000027380rm -f core conftest.err conftest.$ac_objext \
27381 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027382LIBS=$ac_check_lib_save_LIBS
27383fi
cristy8b350f62009-11-15 23:12:43 +000027384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027385$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027386if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027387 found_libbz=`expr $found_libbz + 1`
27388fi
27389
27390 fi
27391 if test $found_libbz -gt 0; then
27392 passed=`expr $passed + 1`
27393 else
27394 failed=`expr $failed + 1`
27395 fi
cristy8b350f62009-11-15 23:12:43 +000027396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027397$as_echo_n "checking if BZLIB package is complete... " >&6; }
27398 if test $passed -gt 0; then
27399 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027400 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27401$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027402 have_bzlib='no (failed tests)'
27403 else
27404 BZLIB_LIBS='-lbz2'
27405 LIBS="$BZLIB_LIBS $LIBS"
27406
cristy8b350f62009-11-15 23:12:43 +000027407$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027408
cristy09b53e12011-10-14 12:47:22 +000027409 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27410$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027411 have_bzlib='yes'
27412 fi
27413 else
cristy09b53e12011-10-14 12:47:22 +000027414 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27415$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027416 fi
27417fi
cristy73bd4a52010-10-05 11:24:23 +000027418 if test "$have_bzlib" = 'yes'; then
27419 BZLIB_DELEGATE_TRUE=
27420 BZLIB_DELEGATE_FALSE='#'
27421else
27422 BZLIB_DELEGATE_TRUE='#'
27423 BZLIB_DELEGATE_FALSE=
27424fi
27425
cristy3ed852e2009-09-05 21:47:34 +000027426
27427
27428#
27429# Find the X11 include and library directories.
27430#
27431IPC_LIBS=''
27432X11_LIBS=''
27433XEXT_LIBS=''
27434XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000027435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000027436$as_echo_n "checking for X... " >&6; }
27437
27438
27439# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000027440if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000027441 withval=$with_x;
27442fi
27443
27444# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
27445if test "x$with_x" = xno; then
27446 # The user explicitly disabled X.
27447 have_x=disabled
27448else
27449 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000027450 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000027451 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000027452 $as_echo_n "(cached) " >&6
27453else
27454 # One or both of the vars are not set, and there is no cached value.
27455ac_x_includes=no ac_x_libraries=no
27456rm -f -r conftest.dir
27457if mkdir conftest.dir; then
27458 cd conftest.dir
27459 cat >Imakefile <<'_ACEOF'
27460incroot:
27461 @echo incroot='${INCROOT}'
27462usrlibdir:
27463 @echo usrlibdir='${USRLIBDIR}'
27464libdir:
27465 @echo libdir='${LIBDIR}'
27466_ACEOF
27467 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000027468 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000027469 for ac_var in incroot usrlibdir libdir; do
27470 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
27471 done
27472 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
27473 for ac_extension in a so sl dylib la dll; do
27474 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
27475 test -f "$ac_im_libdir/libX11.$ac_extension"; then
27476 ac_im_usrlibdir=$ac_im_libdir; break
27477 fi
27478 done
27479 # Screen out bogus values from the imake configuration. They are
27480 # bogus both because they are the default anyway, and because
27481 # using them would break gcc on systems where it needs fixed includes.
27482 case $ac_im_incroot in
27483 /usr/include) ac_x_includes= ;;
27484 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
27485 esac
27486 case $ac_im_usrlibdir in
27487 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
27488 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
27489 esac
27490 fi
27491 cd ..
27492 rm -f -r conftest.dir
27493fi
27494
27495# Standard set of common directories for X headers.
27496# Check X11 before X11Rn because it is often a symlink to the current release.
27497ac_x_header_dirs='
27498/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000027499/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027500/usr/X11R6/include
27501/usr/X11R5/include
27502/usr/X11R4/include
27503
27504/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000027505/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027506/usr/include/X11R6
27507/usr/include/X11R5
27508/usr/include/X11R4
27509
27510/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000027511/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000027512/usr/local/X11R6/include
27513/usr/local/X11R5/include
27514/usr/local/X11R4/include
27515
27516/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000027517/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000027518/usr/local/include/X11R6
27519/usr/local/include/X11R5
27520/usr/local/include/X11R4
27521
27522/usr/X386/include
27523/usr/x386/include
27524/usr/XFree86/include/X11
27525
27526/usr/include
27527/usr/local/include
27528/usr/unsupported/include
27529/usr/athena/include
27530/usr/local/x11r5/include
27531/usr/lpp/Xamples/include
27532
27533/usr/openwin/include
27534/usr/openwin/share/include'
27535
27536if test "$ac_x_includes" = no; then
27537 # Guess where to find include files, by looking for Xlib.h.
27538 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000027539 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027540/* end confdefs.h. */
27541#include <X11/Xlib.h>
27542_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027543if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027544 # We can compile using X headers with no special include directory.
27545ac_x_includes=
27546else
cristyc7083c12009-10-14 03:16:55 +000027547 for ac_dir in $ac_x_header_dirs; do
27548 if test -r "$ac_dir/X11/Xlib.h"; then
27549 ac_x_includes=$ac_dir
27550 break
27551 fi
27552done
27553fi
cristyda16f162011-02-19 23:52:17 +000027554rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027555fi # $ac_x_includes = no
27556
27557if test "$ac_x_libraries" = no; then
27558 # Check for the libraries.
27559 # See if we find them without any special options.
27560 # Don't add to $LIBS permanently.
27561 ac_save_LIBS=$LIBS
27562 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027564/* end confdefs.h. */
27565#include <X11/Xlib.h>
27566int
27567main ()
27568{
27569XrmInitialize ()
27570 ;
27571 return 0;
27572}
27573_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027574if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000027575 LIBS=$ac_save_LIBS
27576# We can link X programs with no special library path.
27577ac_x_libraries=
27578else
cristy8b350f62009-11-15 23:12:43 +000027579 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000027580for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
27581do
27582 # Don't even attempt the hair of trying to link an X program!
27583 for ac_extension in a so sl dylib la dll; do
27584 if test -r "$ac_dir/libX11.$ac_extension"; then
27585 ac_x_libraries=$ac_dir
27586 break 2
27587 fi
27588 done
27589done
27590fi
cristy8b350f62009-11-15 23:12:43 +000027591rm -f core conftest.err conftest.$ac_objext \
27592 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000027593fi # $ac_x_libraries = no
27594
27595case $ac_x_includes,$ac_x_libraries in #(
27596 no,* | *,no | *\'*)
27597 # Didn't find X, or a directory has "'" in its name.
27598 ac_cv_have_x="have_x=no";; #(
27599 *)
27600 # Record where we found X for the cache.
27601 ac_cv_have_x="have_x=yes\
27602 ac_x_includes='$ac_x_includes'\
27603 ac_x_libraries='$ac_x_libraries'"
27604esac
27605fi
27606;; #(
27607 *) have_x=yes;;
27608 esac
27609 eval "$ac_cv_have_x"
27610fi # $with_x != no
27611
27612if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000027613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000027614$as_echo "$have_x" >&6; }
27615 no_x=yes
27616else
27617 # If each of the values was on the command line, it overrides each guess.
27618 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
27619 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
27620 # Update the cache value to reflect the command line values.
27621 ac_cv_have_x="have_x=yes\
27622 ac_x_includes='$x_includes'\
27623 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000027624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000027625$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
27626fi
27627
cristy3ed852e2009-09-05 21:47:34 +000027628if test "$no_x" = yes; then
27629 # Not all programs may use this symbol, but it does not hurt to define it.
27630
cristy8b350f62009-11-15 23:12:43 +000027631$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027632
27633 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
27634else
27635 if test -n "$x_includes"; then
27636 X_CFLAGS="$X_CFLAGS -I$x_includes"
27637 fi
27638
27639 # It would also be nice to do this for all -L options, not just this one.
27640 if test -n "$x_libraries"; then
27641 X_LIBS="$X_LIBS -L$x_libraries"
27642 # For Solaris; some versions of Sun CC require a space after -R and
27643 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000027644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000027645$as_echo_n "checking whether -R must be followed by a space... " >&6; }
27646 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
27647 ac_xsave_c_werror_flag=$ac_c_werror_flag
27648 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000027649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027650/* end confdefs.h. */
27651
27652int
27653main ()
27654{
27655
27656 ;
27657 return 0;
27658}
27659_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027660if ac_fn_c_try_link "$LINENO"; then :
27661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000027662$as_echo "no" >&6; }
27663 X_LIBS="$X_LIBS -R$x_libraries"
27664else
cristy8b350f62009-11-15 23:12:43 +000027665 LIBS="$ac_xsave_LIBS -R $x_libraries"
27666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027667/* end confdefs.h. */
27668
27669int
27670main ()
27671{
27672
27673 ;
27674 return 0;
27675}
27676_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027677if ac_fn_c_try_link "$LINENO"; then :
27678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000027679$as_echo "yes" >&6; }
27680 X_LIBS="$X_LIBS -R $x_libraries"
27681else
cristy8b350f62009-11-15 23:12:43 +000027682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000027683$as_echo "neither works" >&6; }
27684fi
cristy8b350f62009-11-15 23:12:43 +000027685rm -f core conftest.err conftest.$ac_objext \
27686 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027687fi
cristy8b350f62009-11-15 23:12:43 +000027688rm -f core conftest.err conftest.$ac_objext \
27689 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027690 ac_c_werror_flag=$ac_xsave_c_werror_flag
27691 LIBS=$ac_xsave_LIBS
27692 fi
27693
27694 # Check for system-dependent libraries X programs must link with.
27695 # Do this before checking for the system-independent R6 libraries
27696 # (-lICE), since we may need -lsocket or whatever for X linking.
27697
27698 if test "$ISC" = yes; then
27699 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
27700 else
27701 # Martyn Johnson says this is needed for Ultrix, if the X
27702 # libraries were built with DECnet support. And Karl Berry says
27703 # the Alpha needs dnet_stub (dnet does not exist).
27704 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000027705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027706/* end confdefs.h. */
27707
27708/* Override any GCC internal prototype to avoid an error.
27709 Use char because int might match the return type of a GCC
27710 builtin and then its argument prototype would still apply. */
27711#ifdef __cplusplus
27712extern "C"
27713#endif
27714char XOpenDisplay ();
27715int
27716main ()
27717{
27718return XOpenDisplay ();
27719 ;
27720 return 0;
27721}
27722_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027723if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027724
cristy8b350f62009-11-15 23:12:43 +000027725else
27726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000027727$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027728if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027729 $as_echo_n "(cached) " >&6
27730else
27731 ac_check_lib_save_LIBS=$LIBS
27732LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027733cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027734/* end confdefs.h. */
27735
27736/* Override any GCC internal prototype to avoid an error.
27737 Use char because int might match the return type of a GCC
27738 builtin and then its argument prototype would still apply. */
27739#ifdef __cplusplus
27740extern "C"
27741#endif
27742char dnet_ntoa ();
27743int
27744main ()
27745{
27746return dnet_ntoa ();
27747 ;
27748 return 0;
27749}
27750_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027751if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027752 ac_cv_lib_dnet_dnet_ntoa=yes
27753else
cristy8b350f62009-11-15 23:12:43 +000027754 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027755fi
cristy8b350f62009-11-15 23:12:43 +000027756rm -f core conftest.err conftest.$ac_objext \
27757 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027758LIBS=$ac_check_lib_save_LIBS
27759fi
cristy8b350f62009-11-15 23:12:43 +000027760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027762if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027763 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
27764fi
27765
27766 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000027767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000027768$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027769if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027770 $as_echo_n "(cached) " >&6
27771else
27772 ac_check_lib_save_LIBS=$LIBS
27773LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027775/* end confdefs.h. */
27776
27777/* Override any GCC internal prototype to avoid an error.
27778 Use char because int might match the return type of a GCC
27779 builtin and then its argument prototype would still apply. */
27780#ifdef __cplusplus
27781extern "C"
27782#endif
27783char dnet_ntoa ();
27784int
27785main ()
27786{
27787return dnet_ntoa ();
27788 ;
27789 return 0;
27790}
27791_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027792if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027793 ac_cv_lib_dnet_stub_dnet_ntoa=yes
27794else
cristy8b350f62009-11-15 23:12:43 +000027795 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000027796fi
cristy8b350f62009-11-15 23:12:43 +000027797rm -f core conftest.err conftest.$ac_objext \
27798 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027799LIBS=$ac_check_lib_save_LIBS
27800fi
cristy8b350f62009-11-15 23:12:43 +000027801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000027802$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000027803if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027804 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
27805fi
27806
27807 fi
27808fi
cristy8b350f62009-11-15 23:12:43 +000027809rm -f core conftest.err conftest.$ac_objext \
27810 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027811 LIBS="$ac_xsave_LIBS"
27812
27813 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
27814 # to get the SysV transport functions.
27815 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
27816 # needs -lnsl.
27817 # The nsl library prevents programs from opening the X display
27818 # on Irix 5.2, according to T.E. Dickey.
27819 # The functions gethostbyname, getservbyname, and inet_addr are
27820 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000027821 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000027822if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027823
cristy3ed852e2009-09-05 21:47:34 +000027824fi
27825
cristy3ed852e2009-09-05 21:47:34 +000027826 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027828$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027829if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027830 $as_echo_n "(cached) " >&6
27831else
27832 ac_check_lib_save_LIBS=$LIBS
27833LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027834cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027835/* end confdefs.h. */
27836
27837/* Override any GCC internal prototype to avoid an error.
27838 Use char because int might match the return type of a GCC
27839 builtin and then its argument prototype would still apply. */
27840#ifdef __cplusplus
27841extern "C"
27842#endif
27843char gethostbyname ();
27844int
27845main ()
27846{
27847return gethostbyname ();
27848 ;
27849 return 0;
27850}
27851_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027852if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027853 ac_cv_lib_nsl_gethostbyname=yes
27854else
cristy8b350f62009-11-15 23:12:43 +000027855 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027856fi
cristy8b350f62009-11-15 23:12:43 +000027857rm -f core conftest.err conftest.$ac_objext \
27858 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027859LIBS=$ac_check_lib_save_LIBS
27860fi
cristy8b350f62009-11-15 23:12:43 +000027861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027862$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027863if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027864 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27865fi
27866
27867 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027869$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027870if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027871 $as_echo_n "(cached) " >&6
27872else
27873 ac_check_lib_save_LIBS=$LIBS
27874LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027875cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027876/* end confdefs.h. */
27877
27878/* Override any GCC internal prototype to avoid an error.
27879 Use char because int might match the return type of a GCC
27880 builtin and then its argument prototype would still apply. */
27881#ifdef __cplusplus
27882extern "C"
27883#endif
27884char gethostbyname ();
27885int
27886main ()
27887{
27888return gethostbyname ();
27889 ;
27890 return 0;
27891}
27892_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027893if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027894 ac_cv_lib_bsd_gethostbyname=yes
27895else
cristy8b350f62009-11-15 23:12:43 +000027896 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027897fi
cristy8b350f62009-11-15 23:12:43 +000027898rm -f core conftest.err conftest.$ac_objext \
27899 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027900LIBS=$ac_check_lib_save_LIBS
27901fi
cristy8b350f62009-11-15 23:12:43 +000027902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027903$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027904if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027905 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27906fi
27907
27908 fi
27909 fi
27910
27911 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27912 # socket/setsockopt and other routines are undefined under SCO ODT
27913 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27914 # on later versions), says Simon Leinen: it contains gethostby*
27915 # variants that don't use the name server (or something). -lsocket
27916 # must be given before -lnsl if both are needed. We assume that
27917 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027918 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027919if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027920
cristy3ed852e2009-09-05 21:47:34 +000027921fi
27922
cristy3ed852e2009-09-05 21:47:34 +000027923 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027925$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027926if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027927 $as_echo_n "(cached) " >&6
27928else
27929 ac_check_lib_save_LIBS=$LIBS
27930LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027931cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027932/* end confdefs.h. */
27933
27934/* Override any GCC internal prototype to avoid an error.
27935 Use char because int might match the return type of a GCC
27936 builtin and then its argument prototype would still apply. */
27937#ifdef __cplusplus
27938extern "C"
27939#endif
27940char connect ();
27941int
27942main ()
27943{
27944return connect ();
27945 ;
27946 return 0;
27947}
27948_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027949if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027950 ac_cv_lib_socket_connect=yes
27951else
cristy8b350f62009-11-15 23:12:43 +000027952 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027953fi
cristy8b350f62009-11-15 23:12:43 +000027954rm -f core conftest.err conftest.$ac_objext \
27955 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027956LIBS=$ac_check_lib_save_LIBS
27957fi
cristy8b350f62009-11-15 23:12:43 +000027958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027959$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027960if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027961 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27962fi
27963
27964 fi
27965
27966 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027967 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027968if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027969
cristy3ed852e2009-09-05 21:47:34 +000027970fi
27971
cristy3ed852e2009-09-05 21:47:34 +000027972 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027974$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027975if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027976 $as_echo_n "(cached) " >&6
27977else
27978 ac_check_lib_save_LIBS=$LIBS
27979LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027980cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027981/* end confdefs.h. */
27982
27983/* Override any GCC internal prototype to avoid an error.
27984 Use char because int might match the return type of a GCC
27985 builtin and then its argument prototype would still apply. */
27986#ifdef __cplusplus
27987extern "C"
27988#endif
27989char remove ();
27990int
27991main ()
27992{
27993return remove ();
27994 ;
27995 return 0;
27996}
27997_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027998if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027999 ac_cv_lib_posix_remove=yes
28000else
cristy8b350f62009-11-15 23:12:43 +000028001 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000028002fi
cristy8b350f62009-11-15 23:12:43 +000028003rm -f core conftest.err conftest.$ac_objext \
28004 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028005LIBS=$ac_check_lib_save_LIBS
28006fi
cristy8b350f62009-11-15 23:12:43 +000028007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000028008$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000028009if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028010 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
28011fi
28012
28013 fi
28014
28015 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000028016 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000028017if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028018
cristy3ed852e2009-09-05 21:47:34 +000028019fi
28020
cristy3ed852e2009-09-05 21:47:34 +000028021 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000028022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000028023$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028024if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028025 $as_echo_n "(cached) " >&6
28026else
28027 ac_check_lib_save_LIBS=$LIBS
28028LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028029cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028030/* end confdefs.h. */
28031
28032/* Override any GCC internal prototype to avoid an error.
28033 Use char because int might match the return type of a GCC
28034 builtin and then its argument prototype would still apply. */
28035#ifdef __cplusplus
28036extern "C"
28037#endif
28038char shmat ();
28039int
28040main ()
28041{
28042return shmat ();
28043 ;
28044 return 0;
28045}
28046_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028047if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028048 ac_cv_lib_ipc_shmat=yes
28049else
cristy8b350f62009-11-15 23:12:43 +000028050 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000028051fi
cristy8b350f62009-11-15 23:12:43 +000028052rm -f core conftest.err conftest.$ac_objext \
28053 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028054LIBS=$ac_check_lib_save_LIBS
28055fi
cristy8b350f62009-11-15 23:12:43 +000028056{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000028057$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000028058if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028059 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
28060fi
28061
28062 fi
28063 fi
28064
28065 # Check for libraries that X11R6 Xt/Xaw programs need.
28066 ac_save_LDFLAGS=$LDFLAGS
28067 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
28068 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
28069 # check for ICE first), but we must link in the order -lSM -lICE or
28070 # we get undefined symbols. So assume we have SM if we have ICE.
28071 # These have to be linked with before -lX11, unlike the other
28072 # libraries we check for below, so use a different variable.
28073 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000028074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000028075$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028076if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028077 $as_echo_n "(cached) " >&6
28078else
28079 ac_check_lib_save_LIBS=$LIBS
28080LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028081cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028082/* end confdefs.h. */
28083
28084/* Override any GCC internal prototype to avoid an error.
28085 Use char because int might match the return type of a GCC
28086 builtin and then its argument prototype would still apply. */
28087#ifdef __cplusplus
28088extern "C"
28089#endif
28090char IceConnectionNumber ();
28091int
28092main ()
28093{
28094return IceConnectionNumber ();
28095 ;
28096 return 0;
28097}
28098_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028099if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028100 ac_cv_lib_ICE_IceConnectionNumber=yes
28101else
cristy8b350f62009-11-15 23:12:43 +000028102 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000028103fi
cristy8b350f62009-11-15 23:12:43 +000028104rm -f core conftest.err conftest.$ac_objext \
28105 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028106LIBS=$ac_check_lib_save_LIBS
28107fi
cristy8b350f62009-11-15 23:12:43 +000028108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000028109$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000028110if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028111 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
28112fi
28113
28114 LDFLAGS=$ac_save_LDFLAGS
28115
28116fi
28117
28118if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000028119 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28120$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000028122$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028123 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28124$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028125 LDFLAGS="$LDFLAGS $X_LIBS"
28126 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
28127 LIBS="$X11_LIBS $LIBS"
28128 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
28129
28130
cristy8b350f62009-11-15 23:12:43 +000028131$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028132
28133 #
28134 # Check for X11 shared memory extension
28135 #
28136 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000028137 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000028138if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 have_shmctl='yes'
28140fi
28141
28142 if test "$have_shmctl" != 'yes'; then
28143 PERSIST_LIBS=$LIBS
28144 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000028145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028146/* end confdefs.h. */
28147
28148/* Override any GCC internal prototype to avoid an error.
28149 Use char because int might match the return type of a GCC
28150 builtin and then its argument prototype would still apply. */
28151#ifdef __cplusplus
28152extern "C"
28153#endif
28154char shmctl ();
28155int
28156main ()
28157{
28158return shmctl ();
28159 ;
28160 return 0;
28161}
28162_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028163if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028164 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000028165fi
cristy8b350f62009-11-15 23:12:43 +000028166rm -f core conftest.err conftest.$ac_objext \
28167 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028168 LIBS=$PERSIST_LIBS
28169 fi
28170
28171 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028173$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028174if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028175 $as_echo_n "(cached) " >&6
28176else
28177 ac_check_lib_save_LIBS=$LIBS
28178LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028179cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028180/* end confdefs.h. */
28181
28182/* Override any GCC internal prototype to avoid an error.
28183 Use char because int might match the return type of a GCC
28184 builtin and then its argument prototype would still apply. */
28185#ifdef __cplusplus
28186extern "C"
28187#endif
28188char XShmAttach ();
28189int
28190main ()
28191{
28192return XShmAttach ();
28193 ;
28194 return 0;
28195}
28196_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028197if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028198 ac_cv_lib_Xext_XShmAttach=yes
28199else
cristy8b350f62009-11-15 23:12:43 +000028200 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000028201fi
cristy8b350f62009-11-15 23:12:43 +000028202rm -f core conftest.err conftest.$ac_objext \
28203 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028204LIBS=$ac_check_lib_save_LIBS
28205fi
cristy8b350f62009-11-15 23:12:43 +000028206{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000028207$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000028208if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028209 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028210$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028211
28212fi
28213
28214 fi
28215
28216 #
28217 # Check for X11 shape extension
28218 #
cristy8b350f62009-11-15 23:12:43 +000028219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000028220$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028221if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028222 $as_echo_n "(cached) " >&6
28223else
28224 ac_check_lib_save_LIBS=$LIBS
28225LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028226cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028227/* end confdefs.h. */
28228
28229/* Override any GCC internal prototype to avoid an error.
28230 Use char because int might match the return type of a GCC
28231 builtin and then its argument prototype would still apply. */
28232#ifdef __cplusplus
28233extern "C"
28234#endif
28235char XShapeCombineMask ();
28236int
28237main ()
28238{
28239return XShapeCombineMask ();
28240 ;
28241 return 0;
28242}
28243_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028244if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028245 ac_cv_lib_Xext_XShapeCombineMask=yes
28246else
cristy8b350f62009-11-15 23:12:43 +000028247 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000028248fi
cristy8b350f62009-11-15 23:12:43 +000028249rm -f core conftest.err conftest.$ac_objext \
28250 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028251LIBS=$ac_check_lib_save_LIBS
28252fi
cristy8b350f62009-11-15 23:12:43 +000028253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000028254$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000028255if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028256 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000028257$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028258
28259fi
28260
cristy8b350f62009-11-15 23:12:43 +000028261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000028262$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028263if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028264 $as_echo_n "(cached) " >&6
28265else
28266 ac_check_lib_save_LIBS=$LIBS
28267LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028268cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028269/* end confdefs.h. */
28270
28271/* Override any GCC internal prototype to avoid an error.
28272 Use char because int might match the return type of a GCC
28273 builtin and then its argument prototype would still apply. */
28274#ifdef __cplusplus
28275extern "C"
28276#endif
28277char XtSetEventDispatcher ();
28278int
28279main ()
28280{
28281return XtSetEventDispatcher ();
28282 ;
28283 return 0;
28284}
28285_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028286if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028287 ac_cv_lib_Xt_XtSetEventDispatcher=yes
28288else
cristy8b350f62009-11-15 23:12:43 +000028289 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000028290fi
cristy8b350f62009-11-15 23:12:43 +000028291rm -f core conftest.err conftest.$ac_objext \
28292 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028293LIBS=$ac_check_lib_save_LIBS
28294fi
cristy8b350f62009-11-15 23:12:43 +000028295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000028296$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000028297if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028298 XT_LIBS='-lXt'
28299fi
28300
28301 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
28302fi
28303if test "$no_x" != 'yes'; then
28304 have_x='yes'
28305else
28306 have_x='no'
28307fi
cristy73bd4a52010-10-05 11:24:23 +000028308 if test "$have_x" = 'yes'; then
28309 X11_DELEGATE_TRUE=
28310 X11_DELEGATE_FALSE='#'
28311else
28312 X11_DELEGATE_TRUE='#'
28313 X11_DELEGATE_FALSE=
28314fi
28315
cristy3ed852e2009-09-05 21:47:34 +000028316
28317
28318
28319
28320#
28321# Check for ZLIB
28322#
28323
28324# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000028325if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028326 withval=$with_zlib; with_zlib=$withval
28327else
28328 with_zlib='yes'
28329fi
28330
28331
28332if test "$with_zlib" != 'yes'; then
28333 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
28334fi
28335
28336have_zlib='no'
28337ZLIB_LIBS=''
28338if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028339 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28340$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000028342$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028343 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28344$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028345 ZLIB_LIBS=''
28346 failed=0
28347 passed=0
cristy8b350f62009-11-15 23:12:43 +000028348 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028349if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028350 passed=`expr $passed + 1`
28351else
28352 failed=`expr $failed + 1`
28353fi
28354
28355
cristy8b350f62009-11-15 23:12:43 +000028356 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028357if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028358 passed=`expr $passed + 1`
28359else
28360 failed=`expr $failed + 1`
28361fi
28362
28363
cristy8b350f62009-11-15 23:12:43 +000028364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028365$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028366if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028367 $as_echo_n "(cached) " >&6
28368else
28369 ac_check_lib_save_LIBS=$LIBS
28370LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028372/* end confdefs.h. */
28373
28374/* Override any GCC internal prototype to avoid an error.
28375 Use char because int might match the return type of a GCC
28376 builtin and then its argument prototype would still apply. */
28377#ifdef __cplusplus
28378extern "C"
28379#endif
28380char compress ();
28381int
28382main ()
28383{
28384return compress ();
28385 ;
28386 return 0;
28387}
28388_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028389if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028390 ac_cv_lib_z_compress=yes
28391else
cristy8b350f62009-11-15 23:12:43 +000028392 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000028393fi
cristy8b350f62009-11-15 23:12:43 +000028394rm -f core conftest.err conftest.$ac_objext \
28395 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028396LIBS=$ac_check_lib_save_LIBS
28397fi
cristy8b350f62009-11-15 23:12:43 +000028398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028399$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028400if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028401 passed=`expr $passed + 1`
28402else
28403 failed=`expr $failed + 1`
28404fi
28405
cristy8b350f62009-11-15 23:12:43 +000028406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028407$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028408if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028409 $as_echo_n "(cached) " >&6
28410else
28411 ac_check_lib_save_LIBS=$LIBS
28412LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028413cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028414/* end confdefs.h. */
28415
28416/* Override any GCC internal prototype to avoid an error.
28417 Use char because int might match the return type of a GCC
28418 builtin and then its argument prototype would still apply. */
28419#ifdef __cplusplus
28420extern "C"
28421#endif
28422char uncompress ();
28423int
28424main ()
28425{
28426return uncompress ();
28427 ;
28428 return 0;
28429}
28430_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028431if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028432 ac_cv_lib_z_uncompress=yes
28433else
cristy8b350f62009-11-15 23:12:43 +000028434 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000028435fi
cristy8b350f62009-11-15 23:12:43 +000028436rm -f core conftest.err conftest.$ac_objext \
28437 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028438LIBS=$ac_check_lib_save_LIBS
28439fi
cristy8b350f62009-11-15 23:12:43 +000028440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000028441$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000028442if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028443 passed=`expr $passed + 1`
28444else
28445 failed=`expr $failed + 1`
28446fi
28447
cristy8b350f62009-11-15 23:12:43 +000028448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028449$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028450if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028451 $as_echo_n "(cached) " >&6
28452else
28453 ac_check_lib_save_LIBS=$LIBS
28454LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028455cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028456/* end confdefs.h. */
28457
28458/* Override any GCC internal prototype to avoid an error.
28459 Use char because int might match the return type of a GCC
28460 builtin and then its argument prototype would still apply. */
28461#ifdef __cplusplus
28462extern "C"
28463#endif
28464char deflate ();
28465int
28466main ()
28467{
28468return deflate ();
28469 ;
28470 return 0;
28471}
28472_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028473if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028474 ac_cv_lib_z_deflate=yes
28475else
cristy8b350f62009-11-15 23:12:43 +000028476 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000028477fi
cristy8b350f62009-11-15 23:12:43 +000028478rm -f core conftest.err conftest.$ac_objext \
28479 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028480LIBS=$ac_check_lib_save_LIBS
28481fi
cristy8b350f62009-11-15 23:12:43 +000028482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028483$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028484if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028485 passed=`expr $passed + 1`
28486else
28487 failed=`expr $failed + 1`
28488fi
28489
cristy8b350f62009-11-15 23:12:43 +000028490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028491$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028492if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028493 $as_echo_n "(cached) " >&6
28494else
28495 ac_check_lib_save_LIBS=$LIBS
28496LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028497cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028498/* end confdefs.h. */
28499
28500/* Override any GCC internal prototype to avoid an error.
28501 Use char because int might match the return type of a GCC
28502 builtin and then its argument prototype would still apply. */
28503#ifdef __cplusplus
28504extern "C"
28505#endif
28506char inflate ();
28507int
28508main ()
28509{
28510return inflate ();
28511 ;
28512 return 0;
28513}
28514_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028515if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028516 ac_cv_lib_z_inflate=yes
28517else
cristy8b350f62009-11-15 23:12:43 +000028518 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000028519fi
cristy8b350f62009-11-15 23:12:43 +000028520rm -f core conftest.err conftest.$ac_objext \
28521 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028522LIBS=$ac_check_lib_save_LIBS
28523fi
cristy8b350f62009-11-15 23:12:43 +000028524{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000028525$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000028526if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028527 passed=`expr $passed + 1`
28528else
28529 failed=`expr $failed + 1`
28530fi
28531
cristy8b350f62009-11-15 23:12:43 +000028532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028533$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028534if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028535 $as_echo_n "(cached) " >&6
28536else
28537 ac_check_lib_save_LIBS=$LIBS
28538LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028539cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028540/* end confdefs.h. */
28541
28542/* Override any GCC internal prototype to avoid an error.
28543 Use char because int might match the return type of a GCC
28544 builtin and then its argument prototype would still apply. */
28545#ifdef __cplusplus
28546extern "C"
28547#endif
28548char gzseek ();
28549int
28550main ()
28551{
28552return gzseek ();
28553 ;
28554 return 0;
28555}
28556_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028557if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028558 ac_cv_lib_z_gzseek=yes
28559else
cristy8b350f62009-11-15 23:12:43 +000028560 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000028561fi
cristy8b350f62009-11-15 23:12:43 +000028562rm -f core conftest.err conftest.$ac_objext \
28563 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028564LIBS=$ac_check_lib_save_LIBS
28565fi
cristy8b350f62009-11-15 23:12:43 +000028566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000028567$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000028568if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028569 passed=`expr $passed + 1`
28570else
28571 failed=`expr $failed + 1`
28572fi
28573
cristy8b350f62009-11-15 23:12:43 +000028574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000028575$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028576if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028577 $as_echo_n "(cached) " >&6
28578else
28579 ac_check_lib_save_LIBS=$LIBS
28580LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028581cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028582/* end confdefs.h. */
28583
28584/* Override any GCC internal prototype to avoid an error.
28585 Use char because int might match the return type of a GCC
28586 builtin and then its argument prototype would still apply. */
28587#ifdef __cplusplus
28588extern "C"
28589#endif
28590char gztell ();
28591int
28592main ()
28593{
28594return gztell ();
28595 ;
28596 return 0;
28597}
28598_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028599if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028600 ac_cv_lib_z_gztell=yes
28601else
cristy8b350f62009-11-15 23:12:43 +000028602 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000028603fi
cristy8b350f62009-11-15 23:12:43 +000028604rm -f core conftest.err conftest.$ac_objext \
28605 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028606LIBS=$ac_check_lib_save_LIBS
28607fi
cristy8b350f62009-11-15 23:12:43 +000028608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000028609$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000028610if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028611 passed=`expr $passed + 1`
28612else
28613 failed=`expr $failed + 1`
28614fi
28615
cristy8b350f62009-11-15 23:12:43 +000028616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028617$as_echo_n "checking if ZLIB package is complete... " >&6; }
28618 if test $passed -gt 0; then
28619 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28621$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028622 have_zlib='no (failed tests)'
28623 else
28624 ZLIB_LIBS='-lz'
28625 LIBS="$ZLIB_LIBS $LIBS"
28626
cristy8b350f62009-11-15 23:12:43 +000028627$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028628
cristy09b53e12011-10-14 12:47:22 +000028629 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28630$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028631 have_zlib='yes'
28632 fi
28633 else
cristy09b53e12011-10-14 12:47:22 +000028634 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28635$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028636 fi
28637fi
cristy73bd4a52010-10-05 11:24:23 +000028638 if test "$have_zlib" = 'yes'; then
28639 ZLIB_DELEGATE_TRUE=
28640 ZLIB_DELEGATE_FALSE='#'
28641else
28642 ZLIB_DELEGATE_TRUE='#'
28643 ZLIB_DELEGATE_FALSE=
28644fi
28645
cristy3ed852e2009-09-05 21:47:34 +000028646
28647
28648#
28649# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
28650#
28651LIB_DL=''
28652if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000028653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000028654$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028655if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028656 $as_echo_n "(cached) " >&6
28657else
28658 ac_check_lib_save_LIBS=$LIBS
28659LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028660cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028661/* end confdefs.h. */
28662
28663/* Override any GCC internal prototype to avoid an error.
28664 Use char because int might match the return type of a GCC
28665 builtin and then its argument prototype would still apply. */
28666#ifdef __cplusplus
28667extern "C"
28668#endif
28669char dlopen ();
28670int
28671main ()
28672{
28673return dlopen ();
28674 ;
28675 return 0;
28676}
28677_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028678if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028679 ac_cv_lib_dl_dlopen=yes
28680else
cristy8b350f62009-11-15 23:12:43 +000028681 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000028682fi
cristy8b350f62009-11-15 23:12:43 +000028683rm -f core conftest.err conftest.$ac_objext \
28684 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028685LIBS=$ac_check_lib_save_LIBS
28686fi
cristy8b350f62009-11-15 23:12:43 +000028687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000028688$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000028689if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028690 LIB_DL='-ldl'
28691fi
28692
28693 LIBS="$LIB_DL $LIBS"
28694fi
28695
28696
28697
28698#
28699# Check for Autotrace delegate library.
28700#
28701
28702# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000028703if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028704 withval=$with_autotrace; with_autotrace=$withval
28705else
28706 with_autotrace='no'
28707fi
28708
28709
28710if test "$with_autotrace" != 'yes'; then
28711 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
28712fi
28713
28714have_autotrace='no'
28715AUTOTRACE_CFLAGS=""
28716AUTOTRACE_LIBS=""
28717AUTOTRACE_PKG=""
28718if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028719 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28720$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028721
28722pkg_failed=no
28723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
28724$as_echo_n "checking for AUTOTRACE... " >&6; }
28725
28726if test -n "$AUTOTRACE_CFLAGS"; then
28727 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
28728 elif test -n "$PKG_CONFIG"; then
28729 if test -n "$PKG_CONFIG" && \
28730 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28731 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28732 ac_status=$?
28733 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28734 test $ac_status = 0; }; then
28735 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
28736else
28737 pkg_failed=yes
28738fi
28739 else
28740 pkg_failed=untried
28741fi
28742if test -n "$AUTOTRACE_LIBS"; then
28743 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
28744 elif test -n "$PKG_CONFIG"; then
28745 if test -n "$PKG_CONFIG" && \
28746 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
28747 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
28748 ac_status=$?
28749 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28750 test $ac_status = 0; }; then
28751 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
28752else
28753 pkg_failed=yes
28754fi
28755 else
28756 pkg_failed=untried
28757fi
28758
28759
28760
28761if test $pkg_failed = yes; then
28762
28763if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28764 _pkg_short_errors_supported=yes
28765else
28766 _pkg_short_errors_supported=no
28767fi
28768 if test $_pkg_short_errors_supported = yes; then
28769 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28770 else
28771 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28772 fi
28773 # Put the nasty error message in config.log where it belongs
28774 echo "$AUTOTRACE_PKG_ERRORS" >&5
28775
28776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28777$as_echo "no" >&6; }
28778 have_autotrace=no
28779elif test $pkg_failed = untried; then
28780 have_autotrace=no
28781else
28782 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28783 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28785$as_echo "yes" >&6; }
28786 have_autotrace=yes
28787fi
cristy09b53e12011-10-14 12:47:22 +000028788 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28789$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028790fi
28791
28792if test "$have_autotrace" = 'yes'; then
28793 failed=0
28794
cristy8b350f62009-11-15 23:12:43 +000028795$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028796
cristyc6722092012-10-14 00:19:31 +000028797 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028798 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28799 fi
28800fi
28801
cristy73bd4a52010-10-05 11:24:23 +000028802 if test "$have_autotrace" = 'yes'; then
28803 AUTOTRACE_DELEGATE_TRUE=
28804 AUTOTRACE_DELEGATE_FALSE='#'
28805else
28806 AUTOTRACE_DELEGATE_TRUE='#'
28807 AUTOTRACE_DELEGATE_FALSE=
28808fi
28809
cristy3ed852e2009-09-05 21:47:34 +000028810
28811
28812
28813
28814#
28815# Check for Display Postscript delegate library.
28816#
28817
28818# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028819if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028820 withval=$with_dps; with_dps=$withval
28821else
28822 with_dps='yes'
28823fi
28824
28825
28826if test "$with_dps" != 'yes'; then
28827 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28828fi
28829
28830have_dps='no'
28831DPS_LIBS=''
28832if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028833 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28834$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028836$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028837 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28838$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028839 failed=0
28840 passed=0
28841 PERSIST_CPPFLAGS="$CPPFLAGS"
28842 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028843 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 +000028844if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028845 passed=`expr $passed + 1`
28846else
28847 failed=`expr $failed + 1`
28848fi
28849
28850
28851 # DPS issues:
28852 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28853 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28854 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28855 # ImageMagick itself doesn't use -lXt.
28856 have_libdps='no'
28857 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028859$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028860if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028861 $as_echo_n "(cached) " >&6
28862else
28863 ac_check_lib_save_LIBS=$LIBS
28864LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028865cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028866/* end confdefs.h. */
28867
28868/* Override any GCC internal prototype to avoid an error.
28869 Use char because int might match the return type of a GCC
28870 builtin and then its argument prototype would still apply. */
28871#ifdef __cplusplus
28872extern "C"
28873#endif
28874char DPSInitialize ();
28875int
28876main ()
28877{
28878return DPSInitialize ();
28879 ;
28880 return 0;
28881}
28882_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028883if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028884 ac_cv_lib_dps_DPSInitialize=yes
28885else
cristy8b350f62009-11-15 23:12:43 +000028886 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028887fi
cristy8b350f62009-11-15 23:12:43 +000028888rm -f core conftest.err conftest.$ac_objext \
28889 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028890LIBS=$ac_check_lib_save_LIBS
28891fi
cristy8b350f62009-11-15 23:12:43 +000028892{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028893$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028894if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028895 have_libdps='yes'
28896else
28897 have_libdps='no'
28898fi
28899
28900 if test "$have_libdps" != 'yes'; then
28901 # Unset cache variable so we can try again.
28902 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028904$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028905if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028906 $as_echo_n "(cached) " >&6
28907else
28908 ac_check_lib_save_LIBS=$LIBS
28909LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028910cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028911/* end confdefs.h. */
28912
28913/* Override any GCC internal prototype to avoid an error.
28914 Use char because int might match the return type of a GCC
28915 builtin and then its argument prototype would still apply. */
28916#ifdef __cplusplus
28917extern "C"
28918#endif
28919char DPSInitialize ();
28920int
28921main ()
28922{
28923return DPSInitialize ();
28924 ;
28925 return 0;
28926}
28927_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028928if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028929 ac_cv_lib_dps_DPSInitialize=yes
28930else
cristy8b350f62009-11-15 23:12:43 +000028931 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028932fi
cristy8b350f62009-11-15 23:12:43 +000028933rm -f core conftest.err conftest.$ac_objext \
28934 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028935LIBS=$ac_check_lib_save_LIBS
28936fi
cristy8b350f62009-11-15 23:12:43 +000028937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028938$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028939if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028940 have_libdps='yes'
28941else
28942 have_libdps='no'
28943fi
28944
28945 if test "$have_libdps" = 'yes'; then
28946 LIBDPS_XT='-lXt'
28947 fi
28948 fi
28949 if test "$have_libdps" = 'yes'; then
28950 passed=`expr $passed + 1`
28951 else
28952 failed=`expr $failed + 1`
28953 fi
cristy8b350f62009-11-15 23:12:43 +000028954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028955$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028956if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 $as_echo_n "(cached) " >&6
28958else
28959 ac_check_lib_save_LIBS=$LIBS
28960LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028962/* end confdefs.h. */
28963
28964/* Override any GCC internal prototype to avoid an error.
28965 Use char because int might match the return type of a GCC
28966 builtin and then its argument prototype would still apply. */
28967#ifdef __cplusplus
28968extern "C"
28969#endif
28970char XDPSPixelsPerPoint ();
28971int
28972main ()
28973{
28974return XDPSPixelsPerPoint ();
28975 ;
28976 return 0;
28977}
28978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028980 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28981else
cristy8b350f62009-11-15 23:12:43 +000028982 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028983fi
cristy8b350f62009-11-15 23:12:43 +000028984rm -f core conftest.err conftest.$ac_objext \
28985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028986LIBS=$ac_check_lib_save_LIBS
28987fi
cristy8b350f62009-11-15 23:12:43 +000028988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028989$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028990if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028991 passed=`expr $passed + 1`
28992else
28993 failed=`expr $failed + 1`
28994fi
28995
cristy8b350f62009-11-15 23:12:43 +000028996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028997$as_echo_n "checking if DPS package is complete... " >&6; }
28998 if test $passed -gt 0; then
28999 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029000 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29001$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029002 have_dps='no (failed tests)'
29003 CPPFLAGS="$PERSIST_CPPFLAGS"
29004 else
29005 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
29006 LIBS="$DPS_LIBS $LIBS"
29007
cristy8b350f62009-11-15 23:12:43 +000029008$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029009
cristy09b53e12011-10-14 12:47:22 +000029010 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29011$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029012 have_dps='yes'
29013 fi
29014 else
cristy09b53e12011-10-14 12:47:22 +000029015 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29016$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029017 CPPFLAGS=$PERSIST_CPPFLAGS
29018 fi
29019fi
cristy73bd4a52010-10-05 11:24:23 +000029020 if test "$have_dps" = 'yes'; then
29021 DPS_DELEGATE_TRUE=
29022 DPS_DELEGATE_FALSE='#'
29023else
29024 DPS_DELEGATE_TRUE='#'
29025 DPS_DELEGATE_FALSE=
29026fi
29027
cristy3ed852e2009-09-05 21:47:34 +000029028
29029
29030
29031#
29032# Check for DJVU delegate library.
29033#
29034
29035# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000029036if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029037 withval=$with_djvu; with_djvu=$withval
29038else
29039 with_djvu='yes'
29040fi
29041
29042
29043if test "$with_djvu" != 'yes'; then
29044 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
29045fi
29046
29047have_djvu='no'
29048DJVU_LIBS=''
29049if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029050 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29051$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000029053$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029054 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29055$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029056 failed=0
29057 passed=0
cristy8b350f62009-11-15 23:12:43 +000029058 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 +000029059if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029060 passed=`expr $passed + 1`
29061else
29062 failed=`expr $failed + 1`
29063fi
29064
29065
cristy8b350f62009-11-15 23:12:43 +000029066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000029067$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029068if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029069 $as_echo_n "(cached) " >&6
29070else
29071 ac_check_lib_save_LIBS=$LIBS
29072LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029073cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029074/* end confdefs.h. */
29075
29076/* Override any GCC internal prototype to avoid an error.
29077 Use char because int might match the return type of a GCC
29078 builtin and then its argument prototype would still apply. */
29079#ifdef __cplusplus
29080extern "C"
29081#endif
29082char ddjvu_context_create ();
29083int
29084main ()
29085{
29086return ddjvu_context_create ();
29087 ;
29088 return 0;
29089}
29090_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029091if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029092 ac_cv_lib_djvulibre_ddjvu_context_create=yes
29093else
cristy8b350f62009-11-15 23:12:43 +000029094 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000029095fi
cristy8b350f62009-11-15 23:12:43 +000029096rm -f core conftest.err conftest.$ac_objext \
29097 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029098LIBS=$ac_check_lib_save_LIBS
29099fi
cristy8b350f62009-11-15 23:12:43 +000029100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000029101$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000029102if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029103 passed=`expr $passed + 1`
29104else
29105 failed=`expr $failed + 1`
29106fi
29107
cristy8b350f62009-11-15 23:12:43 +000029108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029109$as_echo_n "checking if DJVU package is complete... " >&6; }
29110 if test $passed -gt 0; then
29111 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029112 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29113$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029114 have_djvu='no (failed tests)'
29115 else
29116 DJVU_LIBS='-ldjvulibre'
29117 LIBS="$DJVU_LIBS $LIBS"
29118
cristy8b350f62009-11-15 23:12:43 +000029119$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029120
cristy09b53e12011-10-14 12:47:22 +000029121 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29122$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029123 have_djvu='yes'
29124 fi
29125 else
cristy09b53e12011-10-14 12:47:22 +000029126 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29127$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029128 fi
29129fi
cristy73bd4a52010-10-05 11:24:23 +000029130 if test "$have_djvu" = 'yes'; then
29131 DJVU_DELEGATE_TRUE=
29132 DJVU_DELEGATE_FALSE='#'
29133else
29134 DJVU_DELEGATE_TRUE='#'
29135 DJVU_DELEGATE_FALSE=
29136fi
29137
cristy3ed852e2009-09-05 21:47:34 +000029138
29139
29140
29141#
cristy430a7312010-01-21 20:44:04 +000029142# Set DejaVu font directory.
29143#
29144
29145# Check whether --with-dejavu-font-dir was given.
29146if test "${with_dejavu_font_dir+set}" = set; then :
29147 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
29148else
29149 with_dejavu_font_dir='default'
29150fi
29151
29152
29153if test "$with_dejavu_font_dir" != 'default'; then
29154 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
29155fi
29156
29157
29158#
cristy3ed852e2009-09-05 21:47:34 +000029159# Check for FFTW delegate library.
29160#
29161
29162# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000029163if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029164 withval=$with_fftw; with_fftw=$withval
29165else
29166 with_fftw='yes'
29167fi
29168
29169
29170if test "$with_fftw" != 'yes'; then
29171 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
29172fi
29173
cristy81beccd2011-10-03 18:17:24 +000029174have_fftw='no'
29175FFTW_LIBS=''
29176if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029177 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29178$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
29180$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029181 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29182$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029183 failed=0
29184 passed=0
29185 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
29186if test "x$ac_cv_header_fftw3_h" = xyes; then :
29187 passed=`expr $passed + 1`
29188else
29189 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029190fi
29191
cristy81beccd2011-10-03 18:17:24 +000029192
29193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
29194$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
29195if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
29196 $as_echo_n "(cached) " >&6
29197else
29198 ac_check_lib_save_LIBS=$LIBS
29199LIBS="-lfftw3 $LIBS"
29200cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29201/* end confdefs.h. */
29202
29203/* Override any GCC internal prototype to avoid an error.
29204 Use char because int might match the return type of a GCC
29205 builtin and then its argument prototype would still apply. */
29206#ifdef __cplusplus
29207extern "C"
29208#endif
29209char fftw_execute ();
29210int
29211main ()
29212{
29213return fftw_execute ();
29214 ;
29215 return 0;
29216}
29217_ACEOF
29218if ac_fn_c_try_link "$LINENO"; then :
29219 ac_cv_lib_fftw3_fftw_execute=yes
29220else
29221 ac_cv_lib_fftw3_fftw_execute=no
29222fi
29223rm -f core conftest.err conftest.$ac_objext \
29224 conftest$ac_exeext conftest.$ac_ext
29225LIBS=$ac_check_lib_save_LIBS
29226fi
29227{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
29228$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
29229if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
29230 passed=`expr $passed + 1`
29231else
29232 failed=`expr $failed + 1`
29233fi
29234
29235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
29236$as_echo_n "checking if FFTW package is complete... " >&6; }
29237 if test $passed -gt 0; then
29238 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029239 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29240$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029241 have_fftw='no (failed tests)'
29242 else
29243 FFTW_LIBS='-lfftw3'
29244 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029245
cristy8b350f62009-11-15 23:12:43 +000029246$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029247
cristy09b53e12011-10-14 12:47:22 +000029248 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29249$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000029250 have_fftw='yes'
29251 fi
29252 else
cristy09b53e12011-10-14 12:47:22 +000029253 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29254$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029255 fi
29256fi
cristy73bd4a52010-10-05 11:24:23 +000029257 if test "$have_fftw" = 'yes'; then
29258 FFTW_DELEGATE_TRUE=
29259 FFTW_DELEGATE_FALSE='#'
29260else
29261 FFTW_DELEGATE_TRUE='#'
29262 FFTW_DELEGATE_FALSE=
29263fi
29264
cristy3ed852e2009-09-05 21:47:34 +000029265
29266
29267
29268#
29269# Check for FlashPIX delegate library.
29270#
29271
29272# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000029273if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029274 withval=$with_fpx; with_fpx=$withval
29275else
29276 with_fpx='yes'
29277fi
29278
29279
29280if test "$with_fpx" != 'yes'; then
29281 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
29282fi
29283
29284have_fpx='no'
29285FPX_LIBS=''
29286if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29288$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000029290$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029291 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29292$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029293 failed=0
29294 passed=0
29295 ac_ext=cpp
29296ac_cpp='$CXXCPP $CPPFLAGS'
29297ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29298ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29299ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
29300
29301
cristy8b350f62009-11-15 23:12:43 +000029302ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029303if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029304 passed=`expr $passed + 1`
29305else
29306 failed=`expr $failed + 1`
29307fi
29308
29309
cristy8b350f62009-11-15 23:12:43 +000029310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000029311$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029312if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029313 $as_echo_n "(cached) " >&6
29314else
29315 ac_check_lib_save_LIBS=$LIBS
29316LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029318/* end confdefs.h. */
29319
29320/* Override any GCC internal prototype to avoid an error.
29321 Use char because int might match the return type of a GCC
29322 builtin and then its argument prototype would still apply. */
29323#ifdef __cplusplus
29324extern "C"
29325#endif
29326char FPX_OpenImageByFilename ();
29327int
29328main ()
29329{
29330return FPX_OpenImageByFilename ();
29331 ;
29332 return 0;
29333}
29334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029335if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029336 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
29337else
cristy8b350f62009-11-15 23:12:43 +000029338 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000029339fi
cristy8b350f62009-11-15 23:12:43 +000029340rm -f core conftest.err conftest.$ac_objext \
29341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029342LIBS=$ac_check_lib_save_LIBS
29343fi
cristy8b350f62009-11-15 23:12:43 +000029344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000029345$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000029346if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029347 passed=`expr $passed + 1`
29348else
29349 failed=`expr $failed + 1`
29350fi
29351
29352 ac_ext=c
29353ac_cpp='$CPP $CPPFLAGS'
29354ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29355ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29356ac_compiler_gnu=$ac_cv_c_compiler_gnu
29357
cristy8b350f62009-11-15 23:12:43 +000029358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029359$as_echo_n "checking if FlashPIX package is complete... " >&6; }
29360 if test $passed -gt 0; then
29361 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029362 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29363$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029364 have_fpx='no (failed tests)'
29365 else
29366 FPX_LIBS='-lfpx'
29367
cristy8b350f62009-11-15 23:12:43 +000029368$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029369
cristy09b53e12011-10-14 12:47:22 +000029370 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29371$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029372 have_fpx='yes'
29373 PERLMAINCC="$CXX"
29374 fi
29375 else
cristy09b53e12011-10-14 12:47:22 +000029376 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29377$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029378 fi
29379fi
cristy73bd4a52010-10-05 11:24:23 +000029380 if test "$have_fpx" = 'yes'; then
29381 FPX_DELEGATE_TRUE=
29382 FPX_DELEGATE_FALSE='#'
29383else
29384 FPX_DELEGATE_TRUE='#'
29385 FPX_DELEGATE_FALSE=
29386fi
29387
cristy3ed852e2009-09-05 21:47:34 +000029388
29389
29390
29391#
29392# Check for fontconfig delegate library.
29393#
29394
29395# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000029396if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029397 withval=$with_fontconfig; with_fontconfig=$withval
29398else
cristyfc3d0222012-02-07 15:05:57 +000029399 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000029400fi
29401
29402
29403if test "$with_fontconfig" != 'yes'; then
29404 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
29405fi
29406
29407have_fontconfig='no'
29408FONTCONFIG_CFLAGS=""
29409FONTCONFIG_LIBS=""
29410FONTCONFIG_PKG=""
29411if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029412 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29413$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029414
29415pkg_failed=no
29416{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
29417$as_echo_n "checking for FONTCONFIG... " >&6; }
29418
29419if test -n "$FONTCONFIG_CFLAGS"; then
29420 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
29421 elif test -n "$PKG_CONFIG"; then
29422 if test -n "$PKG_CONFIG" && \
29423 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29424 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29425 ac_status=$?
29426 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29427 test $ac_status = 0; }; then
29428 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
29429else
29430 pkg_failed=yes
29431fi
29432 else
29433 pkg_failed=untried
29434fi
29435if test -n "$FONTCONFIG_LIBS"; then
29436 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
29437 elif test -n "$PKG_CONFIG"; then
29438 if test -n "$PKG_CONFIG" && \
29439 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
29440 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
29441 ac_status=$?
29442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29443 test $ac_status = 0; }; then
29444 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
29445else
29446 pkg_failed=yes
29447fi
29448 else
29449 pkg_failed=untried
29450fi
29451
29452
29453
29454if test $pkg_failed = yes; then
29455
29456if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29457 _pkg_short_errors_supported=yes
29458else
29459 _pkg_short_errors_supported=no
29460fi
29461 if test $_pkg_short_errors_supported = yes; then
29462 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
29463 else
29464 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
29465 fi
29466 # Put the nasty error message in config.log where it belongs
29467 echo "$FONTCONFIG_PKG_ERRORS" >&5
29468
29469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29470$as_echo "no" >&6; }
29471 have_fontconfig=no
29472elif test $pkg_failed = untried; then
29473 have_fontconfig=no
29474else
29475 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
29476 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
29477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29478$as_echo "yes" >&6; }
29479 have_fontconfig=yes
29480fi
cristy09b53e12011-10-14 12:47:22 +000029481 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29482$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029483fi
29484
29485if test "$have_fontconfig" = 'yes'; then
29486
cristy8b350f62009-11-15 23:12:43 +000029487$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029488
cristyc6722092012-10-14 00:19:31 +000029489 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029490 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000029491 fi
cristy3ed852e2009-09-05 21:47:34 +000029492fi
29493
cristy73bd4a52010-10-05 11:24:23 +000029494 if test "$have_fontconfig" = 'yes'; then
29495 FONTCONFIG_DELEGATE_TRUE=
29496 FONTCONFIG_DELEGATE_FALSE='#'
29497else
29498 FONTCONFIG_DELEGATE_TRUE='#'
29499 FONTCONFIG_DELEGATE_FALSE=
29500fi
29501
cristy3ed852e2009-09-05 21:47:34 +000029502
29503
29504
29505
29506#
cristy81beccd2011-10-03 18:17:24 +000029507# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000029508#
29509
29510# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000029511if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029512 withval=$with_freetype; with_freetype=$withval
29513else
29514 with_freetype='yes'
29515fi
29516
29517
cristy81beccd2011-10-03 18:17:24 +000029518
cristy3ed852e2009-09-05 21:47:34 +000029519if test "$with_freetype" != 'yes'; then
29520 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
29521fi
29522
cristy81beccd2011-10-03 18:17:24 +000029523have_freetype='no'
29524FREETYPE_LIBS=''
29525if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029526 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29527$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
29529$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29531$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000029532 failed=0
29533 passed=0
cristy98ca0f52011-10-08 23:19:10 +000029534 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029535 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000029536 freetype_config=''
29537 # Allow the user to specify the location of freetype.
29538 if test "$with_freetype" != 'yes'; then
29539 if test -x "${with_freetype}/bin/freetype-config"; then
29540 freetype_config="${with_freetype}/bin/freetype-config"
29541 elif test -x "${with_freetype}"; then
29542 freetype_config=${with_freetype}
29543 fi
29544 fi
29545 if test -z "$freetype_config"; then
29546 # Extract the first word of "freetype-config", so it can be a program name with args.
29547set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000029548{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
29549$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000029550if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000029551 $as_echo_n "(cached) " >&6
29552else
cristy98ca0f52011-10-08 23:19:10 +000029553 case $freetype_config in
29554 [\\/]* | ?:[\\/]*)
29555 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
29556 ;;
29557 *)
29558 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000029559for as_dir in $PATH
29560do
29561 IFS=$as_save_IFS
29562 test -z "$as_dir" && as_dir=.
29563 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000029564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000029565 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000029566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
29567 break 2
29568 fi
29569done
29570 done
29571IFS=$as_save_IFS
29572
cristy98ca0f52011-10-08 23:19:10 +000029573 ;;
29574esac
cristy81beccd2011-10-03 18:17:24 +000029575fi
cristy98ca0f52011-10-08 23:19:10 +000029576freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000029577if test -n "$freetype_config"; then
29578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
29579$as_echo "$freetype_config" >&6; }
29580else
29581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29582$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000029583fi
29584
cristy98ca0f52011-10-08 23:19:10 +000029585 fi
29586 if test -n "$freetype_config"; then
29587 freetype_prefix=`${freetype_config} --prefix`
29588 freetype_exec_prefix=`${freetype_config} --exec-prefix`
29589 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
29590 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000029591 fi
29592
29593 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000029594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000029595$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
29596if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
29597 $as_echo_n "(cached) " >&6
29598else
29599 ac_check_lib_save_LIBS=$LIBS
29600LIBS="-lfreetype $LIBS"
29601cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29602/* end confdefs.h. */
29603
29604/* Override any GCC internal prototype to avoid an error.
29605 Use char because int might match the return type of a GCC
29606 builtin and then its argument prototype would still apply. */
29607#ifdef __cplusplus
29608extern "C"
29609#endif
29610char FT_Init_FreeType ();
29611int
29612main ()
29613{
29614return FT_Init_FreeType ();
29615 ;
29616 return 0;
29617}
29618_ACEOF
29619if ac_fn_c_try_link "$LINENO"; then :
29620 ac_cv_lib_freetype_FT_Init_FreeType=yes
29621else
29622 ac_cv_lib_freetype_FT_Init_FreeType=no
29623fi
29624rm -f core conftest.err conftest.$ac_objext \
29625 conftest$ac_exeext conftest.$ac_ext
29626LIBS=$ac_check_lib_save_LIBS
29627fi
29628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
29629$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
29630if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
29631 FREETYPE_LIBS='-lfreetype'
29632fi
29633
cristy98ca0f52011-10-08 23:19:10 +000029634 if test "$FREETYPE_LIBS" != ''; then
29635 passed=`expr $passed + 1`
29636 else
29637 failed=`expr $failed + 1`
29638 LDFLAGS="$PERSIST_LDFLAGS"
29639 fi
cristy81beccd2011-10-03 18:17:24 +000029640 fi
29641
29642 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
29643if test "x$ac_cv_header_ft2build_h" = xyes; then :
29644 FT2BUILD_H='#include <ft2build.h>'
29645else
29646 ft2build=''
29647fi
29648
29649
29650 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
29651"
29652if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
29653 have_freetype_h='yes'
29654else
29655 have_freetype_h='no'
29656fi
29657
29658
cristy98ca0f52011-10-08 23:19:10 +000029659 if test "$have_freetype_h" = 'yes'; then
29660 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000029661 else
cristy98ca0f52011-10-08 23:19:10 +000029662 failed=`expr $failed + 1`
29663 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000029664 fi
29665
29666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
29667$as_echo_n "checking if FreeType package is complete... " >&6; }
29668 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000029669 if test $failed -gt 0; then
29670 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000029671 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29672$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029673 have_freetype='no (failed tests)'
29674 else
29675 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000029676
cristy8b350f62009-11-15 23:12:43 +000029677$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029678
cristy98ca0f52011-10-08 23:19:10 +000029679 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000029680
29681$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
29682
cristy81beccd2011-10-03 18:17:24 +000029683 fi
cristy09b53e12011-10-14 12:47:22 +000029684 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29685$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000029686 have_freetype='yes'
29687 fi
cristy81beccd2011-10-03 18:17:24 +000029688 else
cristy09b53e12011-10-14 12:47:22 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29690$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029691 fi
29692fi
cristy73bd4a52010-10-05 11:24:23 +000029693 if test "$have_freetype" = 'yes'; then
29694 FREETYPE_DELEGATE_TRUE=
29695 FREETYPE_DELEGATE_FALSE='#'
29696else
29697 FREETYPE_DELEGATE_TRUE='#'
29698 FREETYPE_DELEGATE_FALSE=
29699fi
29700
cristy3ed852e2009-09-05 21:47:34 +000029701
29702
29703
cristy3ed852e2009-09-05 21:47:34 +000029704#
29705# Check for Ghostscript library or framework.
29706#
29707# Test for iapi.h & test for gsapi_new_instance in -lgs
29708# or -framework Ghostscript
29709
29710
29711# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000029712if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029713 withval=$with_gslib; with_gslib=$withval
29714else
29715 with_gslib='no'
29716fi
29717
29718
cristyb7931f12009-09-25 10:22:21 +000029719gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000029720if test "$with_gslib" != 'yes'; then
29721 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
29722fi
29723
29724have_gslib='no'
29725GS_LIBS=''
29726if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029727 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29728$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000029730$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029731 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29732$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000029733 framework=0
cristy3ed852e2009-09-05 21:47:34 +000029734 failed=0
29735 passed=0
cristy8b350f62009-11-15 23:12:43 +000029736 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 +000029737if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029738 passed=`expr $passed + 1`
29739else
29740 failed=`expr $failed + 1`
29741fi
29742
29743
cristy8b350f62009-11-15 23:12:43 +000029744 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 +000029745if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029746 passed=`expr $passed + 1`
29747else
29748 failed=`expr $failed + 1`
29749fi
29750
29751
cristy73bd4a52010-10-05 11:24:23 +000029752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
29753$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029754if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000029755 $as_echo_n "(cached) " >&6
29756else
29757 ac_check_framework_save_LIBS=$LIBS
29758LIBS="-framework Ghostscript $LIBS"
29759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29760/* end confdefs.h. */
29761
29762/* Override any GCC internal prototype to avoid an error.
29763 Use char because int might match the return type of a GCC
29764 builtin and then its argument prototype would still apply. */
29765#ifdef __cplusplus
29766extern "C"
29767#endif
29768char gsapi_new_instance ();
29769int
29770main ()
29771{
29772return gsapi_new_instance ();
29773 ;
29774 return 0;
29775}
29776_ACEOF
29777if ac_fn_c_try_link "$LINENO"; then :
29778 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29779else
29780 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29781fi
29782rm -f core conftest.err conftest.$ac_objext \
29783 conftest$ac_exeext conftest.$ac_ext
29784LIBS=$ac_check_framework_save_LIBS
29785fi
29786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29787$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29788if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29789 framework=`expr $framework + 1`
29790else
29791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029792$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029793if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029794 $as_echo_n "(cached) " >&6
29795else
29796 ac_check_lib_save_LIBS=$LIBS
29797LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029798cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029799/* end confdefs.h. */
29800
29801/* Override any GCC internal prototype to avoid an error.
29802 Use char because int might match the return type of a GCC
29803 builtin and then its argument prototype would still apply. */
29804#ifdef __cplusplus
29805extern "C"
29806#endif
29807char gsapi_new_instance ();
29808int
29809main ()
29810{
29811return gsapi_new_instance ();
29812 ;
29813 return 0;
29814}
29815_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029816if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029817 ac_cv_lib_gs_gsapi_new_instance=yes
29818else
cristy8b350f62009-11-15 23:12:43 +000029819 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029820fi
cristy8b350f62009-11-15 23:12:43 +000029821rm -f core conftest.err conftest.$ac_objext \
29822 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029823LIBS=$ac_check_lib_save_LIBS
29824fi
cristy8b350f62009-11-15 23:12:43 +000029825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029826$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029827if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029828 passed=`expr $passed + 1`
29829else
29830 failed=`expr $failed + 1`
29831fi
cristy73bd4a52010-10-05 11:24:23 +000029832
29833fi
cristy8b350f62009-11-15 23:12:43 +000029834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029835$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29836 if test $passed -gt 0; then
29837 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029838 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29839$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029840 have_gslib='no (failed tests)'
29841 else
29842 if test $framework -gt 0; then
29843 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029844 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029845 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29846$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029847 else
cristy09b53e12011-10-14 12:47:22 +000029848 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29849$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029850 GS_LIBS='-lgs'
29851 fi
29852 LIBS="$GS_LIBS $LIBS"
29853
cristy8b350f62009-11-15 23:12:43 +000029854$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029855
29856 have_gslib='yes'
29857 fi
29858 else
cristy09b53e12011-10-14 12:47:22 +000029859 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29860$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029861 fi
29862fi
cristy73bd4a52010-10-05 11:24:23 +000029863 if test "$have_gslib" = 'yes'; then
29864 GS_DELEGATE_TRUE=
29865 GS_DELEGATE_FALSE='#'
29866else
29867 GS_DELEGATE_TRUE='#'
29868 GS_DELEGATE_FALSE=
29869fi
29870
cristy3ed852e2009-09-05 21:47:34 +000029871
29872
29873# Set default font search path
29874
29875# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029876if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029877 withval=$with_fontpath; with_fontpath=$withval
29878else
29879 with_fontpath=''
29880fi
29881
29882
29883if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29884 with_fontpath=''
29885else
29886
29887cat >>confdefs.h <<_ACEOF
29888#define MAGICK_FONT_PATH "$with_fontpath"
29889_ACEOF
29890
29891fi
29892if test "$with_fontpath=" != ''; then
29893 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29894fi
29895
29896# Set Ghostscript font directory
29897
29898# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029899if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029900 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29901else
29902 with_gs_font_dir='default'
29903fi
29904
29905
29906if test "$with_gs_font_dir" != 'default'; then
29907 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29908fi
29909
29910
29911#
29912# Check for GVC delegate library.
29913#
29914
29915# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029916if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029917 withval=$with_gvc; with_gvc=$withval
29918else
cristy1b70dc82012-07-01 23:15:05 +000029919 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029920fi
29921
29922
29923if test "$with_gvc" != 'yes'; then
29924 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29925fi
29926
29927GVC_PKG=""
29928if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029929 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29930$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029931
29932pkg_failed=no
29933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29934$as_echo_n "checking for GVC... " >&6; }
29935
29936if test -n "$GVC_CFLAGS"; then
29937 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29938 elif test -n "$PKG_CONFIG"; then
29939 if test -n "$PKG_CONFIG" && \
29940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29941 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29942 ac_status=$?
29943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29944 test $ac_status = 0; }; then
29945 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29946else
29947 pkg_failed=yes
29948fi
29949 else
29950 pkg_failed=untried
29951fi
29952if test -n "$GVC_LIBS"; then
29953 pkg_cv_GVC_LIBS="$GVC_LIBS"
29954 elif test -n "$PKG_CONFIG"; then
29955 if test -n "$PKG_CONFIG" && \
29956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29957 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29958 ac_status=$?
29959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29960 test $ac_status = 0; }; then
29961 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29962else
29963 pkg_failed=yes
29964fi
29965 else
29966 pkg_failed=untried
29967fi
29968
29969
29970
29971if test $pkg_failed = yes; then
29972
29973if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29974 _pkg_short_errors_supported=yes
29975else
29976 _pkg_short_errors_supported=no
29977fi
29978 if test $_pkg_short_errors_supported = yes; then
29979 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29980 else
29981 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29982 fi
29983 # Put the nasty error message in config.log where it belongs
29984 echo "$GVC_PKG_ERRORS" >&5
29985
29986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29987$as_echo "no" >&6; }
29988 have_gvc=no
29989elif test $pkg_failed = untried; then
29990 have_gvc=no
29991else
29992 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29993 GVC_LIBS=$pkg_cv_GVC_LIBS
29994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29995$as_echo "yes" >&6; }
29996 have_gvc=yes
29997fi
cristy09b53e12011-10-14 12:47:22 +000029998 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29999$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030000fi
30001
30002if test "$have_gvc" = 'yes'; then
30003
cristy8b350f62009-11-15 23:12:43 +000030004$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030005
cristyc6722092012-10-14 00:19:31 +000030006 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030007 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
30008 fi
30009fi
30010
cristy73bd4a52010-10-05 11:24:23 +000030011 if test "$have_gvc" = 'yes'; then
30012 GVC_DELEGATE_TRUE=
30013 GVC_DELEGATE_FALSE='#'
30014else
30015 GVC_DELEGATE_TRUE='#'
30016 GVC_DELEGATE_FALSE=
30017fi
30018
cristy3ed852e2009-09-05 21:47:34 +000030019
30020
30021
30022
30023#
30024# Check for JBIG delegate library.
30025#
30026
30027
30028# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000030029if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030030 withval=$with_jbig; with_jbig=$withval
30031else
30032 with_jbig='yes'
30033fi
30034
30035
30036have_jbig='no'
30037JBIG_LIBS=''
30038if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030039 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30040$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030042$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030043 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30044$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030045 failed=0
30046 passed=0
cristy8b350f62009-11-15 23:12:43 +000030047 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030048if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030049 passed=`expr $passed + 1`
30050else
30051 failed=`expr $failed + 1`
30052fi
30053
30054
cristy8b350f62009-11-15 23:12:43 +000030055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000030056$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030057if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030058 $as_echo_n "(cached) " >&6
30059else
30060 ac_check_lib_save_LIBS=$LIBS
30061LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030062cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030063/* end confdefs.h. */
30064
30065/* Override any GCC internal prototype to avoid an error.
30066 Use char because int might match the return type of a GCC
30067 builtin and then its argument prototype would still apply. */
30068#ifdef __cplusplus
30069extern "C"
30070#endif
30071char jbg_dec_init ();
30072int
30073main ()
30074{
30075return jbg_dec_init ();
30076 ;
30077 return 0;
30078}
30079_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030080if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030081 ac_cv_lib_jbig_jbg_dec_init=yes
30082else
cristy8b350f62009-11-15 23:12:43 +000030083 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000030084fi
cristy8b350f62009-11-15 23:12:43 +000030085rm -f core conftest.err conftest.$ac_objext \
30086 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030087LIBS=$ac_check_lib_save_LIBS
30088fi
cristy8b350f62009-11-15 23:12:43 +000030089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000030090$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000030091if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030092 passed=`expr $passed + 1`
30093else
30094 failed=`expr $failed + 1`
30095fi
30096
cristy8b350f62009-11-15 23:12:43 +000030097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030098$as_echo_n "checking if JBIG package is complete... " >&6; }
30099 if test $passed -gt 0; then
30100 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030101 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30102$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030103 have_jbig='no (failed tests)'
30104 else
30105 JBIG_LIBS='-ljbig'
30106 LIBS="$JBIG_LIBS $LIBS"
30107
cristy8b350f62009-11-15 23:12:43 +000030108$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030109
cristy09b53e12011-10-14 12:47:22 +000030110 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30111$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030112 have_jbig='yes'
30113 fi
30114 else
cristy09b53e12011-10-14 12:47:22 +000030115 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30116$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030117 fi
30118fi
cristy73bd4a52010-10-05 11:24:23 +000030119 if test "$have_jbig" = 'yes'; then
30120 JBIG_DELEGATE_TRUE=
30121 JBIG_DELEGATE_FALSE='#'
30122else
30123 JBIG_DELEGATE_TRUE='#'
30124 JBIG_DELEGATE_FALSE=
30125fi
30126
cristy3ed852e2009-09-05 21:47:34 +000030127
30128
30129
30130#
30131# Check for JPEG delegate library.
30132#
30133
30134# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000030135if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030136 withval=$with_jpeg; with_jpeg=$withval
30137else
30138 with_jpeg='yes'
30139fi
30140
30141
30142if test "$with_jpeg" != 'yes'; then
30143 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
30144fi
30145
30146have_jpeg='no'
30147JPEG_LIBS=''
30148if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030149 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30150$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000030152$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030153 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30154$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030155 failed=0
30156 passed=0
cristy8b350f62009-11-15 23:12:43 +000030157 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030158if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030159 passed=`expr $passed + 1`
30160else
30161 failed=`expr $failed + 1`
30162fi
30163
30164
cristy8b350f62009-11-15 23:12:43 +000030165 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030166if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030167 passed=`expr $passed + 1`
30168else
30169 failed=`expr $failed + 1`
30170fi
30171
30172
cristy8b350f62009-11-15 23:12:43 +000030173 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030174if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030175 passed=`expr $passed + 1`
30176else
30177 failed=`expr $failed + 1`
30178fi
30179
30180
cristy8b350f62009-11-15 23:12:43 +000030181 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030182if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030183 passed=`expr $passed + 1`
30184else
30185 failed=`expr $failed + 1`
30186fi
30187
30188
cristy8b350f62009-11-15 23:12:43 +000030189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000030190$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030191if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030192 $as_echo_n "(cached) " >&6
30193else
30194 ac_check_lib_save_LIBS=$LIBS
30195LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030196cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030197/* end confdefs.h. */
30198
30199/* Override any GCC internal prototype to avoid an error.
30200 Use char because int might match the return type of a GCC
30201 builtin and then its argument prototype would still apply. */
30202#ifdef __cplusplus
30203extern "C"
30204#endif
30205char jpeg_read_header ();
30206int
30207main ()
30208{
30209return jpeg_read_header ();
30210 ;
30211 return 0;
30212}
30213_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030214if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030215 ac_cv_lib_jpeg_jpeg_read_header=yes
30216else
cristy8b350f62009-11-15 23:12:43 +000030217 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000030218fi
cristy8b350f62009-11-15 23:12:43 +000030219rm -f core conftest.err conftest.$ac_objext \
30220 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030221LIBS=$ac_check_lib_save_LIBS
30222fi
cristy8b350f62009-11-15 23:12:43 +000030223{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000030224$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000030225if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030226 passed=`expr $passed + 1`
30227else
30228 failed=`expr $failed + 1`
30229fi
30230
30231
30232# Test for compatible JPEG library
30233if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000030234{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000030235$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030236if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030237 $as_echo_n "(cached) " >&6
30238else
cristy8b350f62009-11-15 23:12:43 +000030239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030240/* end confdefs.h. */
30241#include <stdio.h>
30242#include <stdlib.h>
30243#include <jpeglib.h>
30244
30245int
30246main ()
30247{
30248
30249#if JPEG_LIB_VERSION < 62
30250#error IJG JPEG library must be version 6b or newer!
30251#endif
30252return 0;
30253
30254 ;
30255 return 0;
30256}
30257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030258if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030259 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
30260else
cristy8b350f62009-11-15 23:12:43 +000030261 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030262fi
cristy3ed852e2009-09-05 21:47:34 +000030263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30264fi
cristy8b350f62009-11-15 23:12:43 +000030265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000030266$as_echo "$ac_cv_jpeg_version_ok" >&6; }
30267fi
cristy8b350f62009-11-15 23:12:43 +000030268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030269$as_echo_n "checking if JPEG package is complete... " >&6; }
30270 if test $passed -gt 0; then
30271 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030272 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30273$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030274 have_jpeg='no (failed tests)'
30275 else
30276 JPEG_LIBS='-ljpeg'
30277 LIBS="$JPEG_LIBS $LIBS"
30278
cristy8b350f62009-11-15 23:12:43 +000030279$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030280
cristy09b53e12011-10-14 12:47:22 +000030281 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30282$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030283 have_jpeg='yes'
30284 fi
30285 else
cristy09b53e12011-10-14 12:47:22 +000030286 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30287$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030288 fi
30289fi
cristy73bd4a52010-10-05 11:24:23 +000030290 if test "$have_jpeg" = 'yes'; then
30291 JPEG_DELEGATE_TRUE=
30292 JPEG_DELEGATE_FALSE='#'
30293else
30294 JPEG_DELEGATE_TRUE='#'
30295 JPEG_DELEGATE_FALSE=
30296fi
30297
cristy3ed852e2009-09-05 21:47:34 +000030298
30299
30300
30301#
30302# Check for JPEG Version 2 delegate library.
30303#
30304
30305# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000030306if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030307 withval=$with_jp2; with_jp2=$withval
30308else
30309 with_jp2='yes'
30310fi
30311
30312
30313if test "$with_jp2" != 'yes'; then
30314 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
30315fi
30316
30317have_jp2='no'
30318JP2_LIBS=''
30319if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030320 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30321$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000030322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000030323$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030324 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30325$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030326 failed=0
30327 passed=0
cristy8b350f62009-11-15 23:12:43 +000030328 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 +000030329if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030330 passed=`expr $passed + 1`
30331else
30332 failed=`expr $failed + 1`
30333fi
30334
30335
cristy8b350f62009-11-15 23:12:43 +000030336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000030337$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030338if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030339 $as_echo_n "(cached) " >&6
30340else
30341 ac_check_lib_save_LIBS=$LIBS
30342LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030343cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030344/* end confdefs.h. */
30345
30346/* Override any GCC internal prototype to avoid an error.
30347 Use char because int might match the return type of a GCC
30348 builtin and then its argument prototype would still apply. */
30349#ifdef __cplusplus
30350extern "C"
30351#endif
30352char jas_stream_fopen ();
30353int
30354main ()
30355{
30356return jas_stream_fopen ();
30357 ;
30358 return 0;
30359}
30360_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030361if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000030362 ac_cv_lib_jasper_jas_stream_fopen=yes
30363else
cristy8b350f62009-11-15 23:12:43 +000030364 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000030365fi
cristy8b350f62009-11-15 23:12:43 +000030366rm -f core conftest.err conftest.$ac_objext \
30367 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030368LIBS=$ac_check_lib_save_LIBS
30369fi
cristy8b350f62009-11-15 23:12:43 +000030370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000030371$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000030372if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030373 passed=`expr $passed + 1`
30374else
30375 failed=`expr $failed + 1`
30376fi
30377
cristy8b350f62009-11-15 23:12:43 +000030378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030379$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
30380 if test $passed -gt 0; then
30381 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030382 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30383$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030384 have_jp2='no (failed tests)'
30385 else
30386 JP2_LIBS='-ljasper'
30387 LIBS="$JP2_LIBS $LIBS"
30388
cristy8b350f62009-11-15 23:12:43 +000030389$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030390
cristy09b53e12011-10-14 12:47:22 +000030391 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30392$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030393 have_jp2='yes'
30394 fi
30395 else
cristy09b53e12011-10-14 12:47:22 +000030396 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30397$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030398 fi
30399fi
cristy73bd4a52010-10-05 11:24:23 +000030400 if test "$have_jp2" = 'yes'; then
30401 JP2_DELEGATE_TRUE=
30402 JP2_DELEGATE_FALSE='#'
30403else
30404 JP2_DELEGATE_TRUE='#'
30405 JP2_DELEGATE_FALSE=
30406fi
30407
cristy3ed852e2009-09-05 21:47:34 +000030408
30409
30410
30411#
30412# Check for LCMS delegate library.
30413#
cristy71203402010-06-18 13:12:03 +000030414# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000030415
30416# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000030417if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030418 withval=$with_lcms; with_lcms=$withval
30419else
30420 with_lcms='yes'
30421fi
30422
cristy71203402010-06-18 13:12:03 +000030423if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000030424 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
30425fi
30426
cristy71203402010-06-18 13:12:03 +000030427# Disable LCMS2.
30428
30429# Check whether --with-lcms2 was given.
30430if test "${with_lcms2+set}" = set; then :
30431 withval=$with_lcms2; with_lcms2=$withval
30432else
30433 with_lcms2='yes'
30434fi
30435
30436if test "$with_lcms2" != 'yes' ; then
30437 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
30438fi
30439
30440have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000030441LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000030442if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030443 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30444$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
30446$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030447 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30448$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030449 failed=0
30450 passed=0
30451 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030452
30453 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000030454 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030455if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030456 have_lcms_header='yes'
30457fi
30458
30459
30460 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000030461
30462$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
30463
cristy71203402010-06-18 13:12:03 +000030464 passed=`expr $passed + 1`
30465 fi
30466
30467 # Check for <lcms2/lcms2.h)
30468 if test "$have_lcms_header" != 'yes'; then
30469 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 +000030470if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030471 have_lcms_header='yes'
30472fi
30473
30474
cristy71203402010-06-18 13:12:03 +000030475 if test "$have_lcms_header" = 'yes'; then
30476 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000030477
cristy71203402010-06-18 13:12:03 +000030478$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000030479
cristy71203402010-06-18 13:12:03 +000030480 fi
cristyd09bcf92010-03-25 03:04:45 +000030481 fi
cristy71203402010-06-18 13:12:03 +000030482
30483 # Failed to find lcms header?
30484 if test "$have_lcms_header" != 'yes'; then
30485 failed=`expr $failed + 1`
30486 fi
30487
30488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
30489$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030490if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000030491 $as_echo_n "(cached) " >&6
30492else
30493 ac_check_lib_save_LIBS=$LIBS
30494LIBS="-llcms2 $LIBS"
30495cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30496/* end confdefs.h. */
30497
30498/* Override any GCC internal prototype to avoid an error.
30499 Use char because int might match the return type of a GCC
30500 builtin and then its argument prototype would still apply. */
30501#ifdef __cplusplus
30502extern "C"
30503#endif
cristy71203402010-06-18 13:12:03 +000030504char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030505int
30506main ()
30507{
cristy71203402010-06-18 13:12:03 +000030508return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000030509 ;
30510 return 0;
30511}
30512_ACEOF
30513if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030514 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000030515else
cristy71203402010-06-18 13:12:03 +000030516 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000030517fi
30518rm -f core conftest.err conftest.$ac_objext \
30519 conftest$ac_exeext conftest.$ac_ext
30520LIBS=$ac_check_lib_save_LIBS
30521fi
cristy71203402010-06-18 13:12:03 +000030522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
30523$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030524if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000030525 passed=`expr $passed + 1`
30526else
30527 failed=`expr $failed + 1`
30528fi
30529
cristy71203402010-06-18 13:12:03 +000030530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
30531$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000030532 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030533 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030534 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30535$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030536 have_lcms2='no (failed tests)'
30537 else
30538 LCMS_LIBS='-llcms2'
30539 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030540 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30541$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030542 have_lcms2='yes'
30543 fi
cristyd09bcf92010-03-25 03:04:45 +000030544 else
cristy09b53e12011-10-14 12:47:22 +000030545 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30546$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030547 fi
30548fi
30549
cristy71203402010-06-18 13:12:03 +000030550#
30551# Check for LCMS v1 (1.11 or later)
30552#
30553if test $have_lcms2 = 'yes'; then
30554 with_lcms='no'
30555fi
30556
30557have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000030558if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000030559 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30560$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000030561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
30562$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030563 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30564$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000030565 failed=0
30566 passed=0
30567 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000030568
30569 # Check for <lcms.h>
30570 if test "$have_lcms_header" != 'yes'; then
30571 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000030572if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030573 have_lcms_header='yes'
30574fi
30575
30576
cristy71203402010-06-18 13:12:03 +000030577 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000030578 passed=`expr $passed + 1`
30579
cristy8b350f62009-11-15 23:12:43 +000030580$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030581
cristy71203402010-06-18 13:12:03 +000030582 fi
30583 fi
30584
30585 # Check for <lcms/lcms.h>
30586 if test "$have_lcms_header" != 'yes'; then
30587 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 +000030588if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030589 have_lcms_header='yes'
30590fi
30591
30592
cristy71203402010-06-18 13:12:03 +000030593 if test "$have_lcms_header" = 'yes'; then
30594 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000030595
cristy8b350f62009-11-15 23:12:43 +000030596$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030597
cristy71203402010-06-18 13:12:03 +000030598 fi
cristy3ed852e2009-09-05 21:47:34 +000030599 fi
cristy71203402010-06-18 13:12:03 +000030600
30601 # Failed to find lcms header?
30602 if test "$have_lcms_header" != 'yes'; then
30603 failed=`expr $failed + 1`
30604 fi
30605
30606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
30607$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000030608if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000030609 $as_echo_n "(cached) " >&6
30610else
30611 ac_check_lib_save_LIBS=$LIBS
30612LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000030613cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030614/* end confdefs.h. */
30615
30616/* Override any GCC internal prototype to avoid an error.
30617 Use char because int might match the return type of a GCC
30618 builtin and then its argument prototype would still apply. */
30619#ifdef __cplusplus
30620extern "C"
30621#endif
cristy71203402010-06-18 13:12:03 +000030622char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030623int
30624main ()
30625{
cristy71203402010-06-18 13:12:03 +000030626return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000030627 ;
30628 return 0;
30629}
30630_ACEOF
cristy8b350f62009-11-15 23:12:43 +000030631if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000030632 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000030633else
cristy71203402010-06-18 13:12:03 +000030634 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000030635fi
cristy8b350f62009-11-15 23:12:43 +000030636rm -f core conftest.err conftest.$ac_objext \
30637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000030638LIBS=$ac_check_lib_save_LIBS
30639fi
cristy71203402010-06-18 13:12:03 +000030640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
30641$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000030642if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000030643 passed=`expr $passed + 1`
30644else
30645 failed=`expr $failed + 1`
30646fi
30647
cristy8b350f62009-11-15 23:12:43 +000030648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000030649$as_echo_n "checking if LCMS package is complete... " >&6; }
30650 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000030651 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000030652 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30653$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000030654 have_lcms='no (failed tests)'
30655 else
30656 LCMS_LIBS='-llcms'
30657 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000030658 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30659$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000030660 have_lcms='yes'
30661 fi
cristy3ed852e2009-09-05 21:47:34 +000030662 else
cristy09b53e12011-10-14 12:47:22 +000030663 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30664$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030665 fi
30666fi
cristy71203402010-06-18 13:12:03 +000030667
cristy73bd4a52010-10-05 11:24:23 +000030668 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30669 LCMS_DELEGATE_TRUE=
30670 LCMS_DELEGATE_FALSE='#'
30671else
30672 LCMS_DELEGATE_TRUE='#'
30673 LCMS_DELEGATE_FALSE=
30674fi
30675
cristy71203402010-06-18 13:12:03 +000030676if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
30677
30678$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
30679
30680fi
30681
cristy3ed852e2009-09-05 21:47:34 +000030682
30683
30684
30685#
30686# Check for the LQR (Liquid Rescale) delegate library.
30687#
30688
30689# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000030690if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030691 withval=$with_lqr; with_lqr=$withval
30692else
30693 with_lqr='yes'
30694fi
30695
30696
30697if test "$with_lqr" != 'yes'; then
30698 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
30699fi
30700
30701have_lqr='no'
30702LQR_CFLAGS=""
30703LQR_LIBS=""
30704LQR_PKG=""
30705if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030706 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30707$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030708
30709pkg_failed=no
30710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
30711$as_echo_n "checking for LQR... " >&6; }
30712
30713if test -n "$LQR_CFLAGS"; then
30714 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
30715 elif test -n "$PKG_CONFIG"; then
30716 if test -n "$PKG_CONFIG" && \
30717 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30718 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30719 ac_status=$?
30720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30721 test $ac_status = 0; }; then
30722 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
30723else
30724 pkg_failed=yes
30725fi
30726 else
30727 pkg_failed=untried
30728fi
30729if test -n "$LQR_LIBS"; then
30730 pkg_cv_LQR_LIBS="$LQR_LIBS"
30731 elif test -n "$PKG_CONFIG"; then
30732 if test -n "$PKG_CONFIG" && \
30733 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
30734 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
30735 ac_status=$?
30736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30737 test $ac_status = 0; }; then
30738 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
30739else
30740 pkg_failed=yes
30741fi
30742 else
30743 pkg_failed=untried
30744fi
30745
30746
30747
30748if test $pkg_failed = yes; then
30749
30750if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30751 _pkg_short_errors_supported=yes
30752else
30753 _pkg_short_errors_supported=no
30754fi
30755 if test $_pkg_short_errors_supported = yes; then
30756 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30757 else
30758 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30759 fi
30760 # Put the nasty error message in config.log where it belongs
30761 echo "$LQR_PKG_ERRORS" >&5
30762
30763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30764$as_echo "no" >&6; }
30765 have_lqr=no
30766elif test $pkg_failed = untried; then
30767 have_lqr=no
30768else
30769 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30770 LQR_LIBS=$pkg_cv_LQR_LIBS
30771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30772$as_echo "yes" >&6; }
30773 have_lqr=yes
30774fi
cristy09b53e12011-10-14 12:47:22 +000030775 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30776$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030777fi
30778
30779if test "$have_lqr" = 'yes'; then
30780
cristy8b350f62009-11-15 23:12:43 +000030781$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030782
30783 CFLAGS="$LQR_CFLAGS $CFLAGS"
30784fi
30785
cristy73bd4a52010-10-05 11:24:23 +000030786 if test "$have_lqr" = 'yes'; then
30787 LQR_DELEGATE_TRUE=
30788 LQR_DELEGATE_FALSE='#'
30789else
30790 LQR_DELEGATE_TRUE='#'
30791 LQR_DELEGATE_FALSE=
30792fi
30793
cristy3ed852e2009-09-05 21:47:34 +000030794
30795
30796
30797
cristy81beccd2011-10-03 18:17:24 +000030798# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030799
30800# Check whether --with-lzma was given.
30801if test "${with_lzma+set}" = set; then :
30802 withval=$with_lzma; with_lzma=$withval
30803else
30804 with_lzma='yes'
30805fi
30806
cristy81beccd2011-10-03 18:17:24 +000030807if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030808 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30809fi
30810
cristyb94e5002011-11-14 13:20:10 +000030811LZMA_PKG=""
30812if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030813 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30814$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030815
30816pkg_failed=no
30817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030818$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030819
30820if test -n "$LZMA_CFLAGS"; then
30821 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30822 elif test -n "$PKG_CONFIG"; then
30823 if test -n "$PKG_CONFIG" && \
30824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30825 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30826 ac_status=$?
30827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30828 test $ac_status = 0; }; then
30829 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30830else
30831 pkg_failed=yes
30832fi
30833 else
30834 pkg_failed=untried
30835fi
30836if test -n "$LZMA_LIBS"; then
30837 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30838 elif test -n "$PKG_CONFIG"; then
30839 if test -n "$PKG_CONFIG" && \
30840 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30841 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30842 ac_status=$?
30843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30844 test $ac_status = 0; }; then
30845 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30846else
30847 pkg_failed=yes
30848fi
30849 else
30850 pkg_failed=untried
30851fi
30852
30853
30854
30855if test $pkg_failed = yes; then
30856
30857if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30858 _pkg_short_errors_supported=yes
30859else
30860 _pkg_short_errors_supported=no
30861fi
30862 if test $_pkg_short_errors_supported = yes; then
30863 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30864 else
30865 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30866 fi
30867 # Put the nasty error message in config.log where it belongs
30868 echo "$LZMA_PKG_ERRORS" >&5
30869
30870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30871$as_echo "no" >&6; }
30872 have_lzma=no
30873elif test $pkg_failed = untried; then
30874 have_lzma=no
30875else
30876 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30877 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30879$as_echo "yes" >&6; }
30880 have_lzma=yes
30881fi
30882 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030883$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030884fi
30885
cristyb94e5002011-11-14 13:20:10 +000030886if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030887
30888$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30889
cristyc6722092012-10-14 00:19:31 +000030890 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030891 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030892 fi
cristyfbb0ef02010-12-19 02:32:11 +000030893fi
cristyb94e5002011-11-14 13:20:10 +000030894
cristyfbb0ef02010-12-19 02:32:11 +000030895 if test "$have_lzma" = 'yes'; then
30896 LZMA_DELEGATE_TRUE=
30897 LZMA_DELEGATE_FALSE='#'
30898else
30899 LZMA_DELEGATE_TRUE='#'
30900 LZMA_DELEGATE_FALSE=
30901fi
30902
30903
30904
30905
cristyb94e5002011-11-14 13:20:10 +000030906
cristy3ed852e2009-09-05 21:47:34 +000030907#
30908# Check for the OpenEXR delegate library.
30909#
30910
30911# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030912if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030913 withval=$with_openexr; with_openexr=$withval
30914else
30915 with_openexr='yes'
30916fi
30917
30918
30919if test "$with_openexr" != 'yes'; then
30920 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30921fi
30922
30923have_openexr='no'
30924OPENEXR_CFLAGS=""
30925OPENEXR_LIBS=""
30926OPENEXR_PKG=""
30927if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030928 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30929$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030930
30931pkg_failed=no
30932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30933$as_echo_n "checking for OPENEXR... " >&6; }
30934
30935if test -n "$OPENEXR_CFLAGS"; then
30936 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30937 elif test -n "$PKG_CONFIG"; then
30938 if test -n "$PKG_CONFIG" && \
30939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30940 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30941 ac_status=$?
30942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30943 test $ac_status = 0; }; then
30944 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30945else
30946 pkg_failed=yes
30947fi
30948 else
30949 pkg_failed=untried
30950fi
30951if test -n "$OPENEXR_LIBS"; then
30952 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30953 elif test -n "$PKG_CONFIG"; then
30954 if test -n "$PKG_CONFIG" && \
30955 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30956 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30957 ac_status=$?
30958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30959 test $ac_status = 0; }; then
30960 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30961else
30962 pkg_failed=yes
30963fi
30964 else
30965 pkg_failed=untried
30966fi
30967
30968
30969
30970if test $pkg_failed = yes; then
30971
30972if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30973 _pkg_short_errors_supported=yes
30974else
30975 _pkg_short_errors_supported=no
30976fi
30977 if test $_pkg_short_errors_supported = yes; then
30978 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30979 else
30980 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30981 fi
30982 # Put the nasty error message in config.log where it belongs
30983 echo "$OPENEXR_PKG_ERRORS" >&5
30984
30985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30986$as_echo "no" >&6; }
30987 have_openexr=no
30988elif test $pkg_failed = untried; then
30989 have_openexr=no
30990else
30991 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30992 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30994$as_echo "yes" >&6; }
30995 have_openexr=yes
30996fi
cristy09b53e12011-10-14 12:47:22 +000030997 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30998$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030999fi
31000
31001if test "$have_openexr" = 'yes'; then
31002
cristy8b350f62009-11-15 23:12:43 +000031003$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031004
cristyc6722092012-10-14 00:19:31 +000031005 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031006 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
31007 fi
31008fi
31009
cristy73bd4a52010-10-05 11:24:23 +000031010 if test "$have_openexr" = 'yes'; then
31011 OPENEXR_DELEGATE_TRUE=
31012 OPENEXR_DELEGATE_FALSE='#'
31013else
31014 OPENEXR_DELEGATE_TRUE='#'
31015 OPENEXR_DELEGATE_FALSE=
31016fi
31017
cristy3ed852e2009-09-05 21:47:34 +000031018
31019
31020
31021
31022#
cristy41cbe8a2011-10-27 01:35:18 +000031023# Check for PANGO delegate library.
31024#
31025
31026# Check whether --with-pango was given.
31027if test "${with_pango+set}" = set; then :
31028 withval=$with_pango; with_pango=$withval
31029else
cristyfc3d0222012-02-07 15:05:57 +000031030 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000031031fi
31032
31033
31034if test "$with_pango" != 'yes'; then
31035 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
31036fi
31037
31038have_pango='no'
cristya054b762012-03-26 23:16:00 +000031039have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000031040PANGO_CFLAGS=""
31041PANGO_LIBS=""
31042PANGO_PKG=""
31043if test "x$with_pango" = "xyes"; then
31044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31045$as_echo "-------------------------------------------------------------" >&6; }
31046
31047pkg_failed=no
31048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31049$as_echo_n "checking for PANGO... " >&6; }
31050
31051if test -n "$PANGO_CFLAGS"; then
31052 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31053 elif test -n "$PKG_CONFIG"; then
31054 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031055 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31056 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031057 ac_status=$?
31058 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31059 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031060 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031061else
31062 pkg_failed=yes
31063fi
31064 else
31065 pkg_failed=untried
31066fi
31067if test -n "$PANGO_LIBS"; then
31068 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31069 elif test -n "$PKG_CONFIG"; then
31070 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000031071 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
31072 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000031073 ac_status=$?
31074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31075 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000031076 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000031077else
31078 pkg_failed=yes
31079fi
31080 else
31081 pkg_failed=untried
31082fi
31083
31084
31085
31086if test $pkg_failed = yes; then
31087
31088if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31089 _pkg_short_errors_supported=yes
31090else
31091 _pkg_short_errors_supported=no
31092fi
31093 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000031094 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031095 else
cristya054b762012-03-26 23:16:00 +000031096 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000031097 fi
31098 # Put the nasty error message in config.log where it belongs
31099 echo "$PANGO_PKG_ERRORS" >&5
31100
31101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31102$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000031103 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031104elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000031105 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000031106else
31107 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31108 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31110$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000031111 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000031112fi
31113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31114$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000031115
31116pkg_failed=no
31117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
31118$as_echo_n "checking for PANGO... " >&6; }
31119
31120if test -n "$PANGO_CFLAGS"; then
31121 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
31122 elif test -n "$PKG_CONFIG"; then
31123 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031124 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31125 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031126 ac_status=$?
31127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31128 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031129 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031130else
31131 pkg_failed=yes
31132fi
31133 else
31134 pkg_failed=untried
31135fi
31136if test -n "$PANGO_LIBS"; then
31137 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
31138 elif test -n "$PKG_CONFIG"; then
31139 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000031140 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
31141 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000031142 ac_status=$?
31143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31144 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000031145 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000031146else
31147 pkg_failed=yes
31148fi
31149 else
31150 pkg_failed=untried
31151fi
31152
31153
31154
31155if test $pkg_failed = yes; then
31156
31157if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31158 _pkg_short_errors_supported=yes
31159else
31160 _pkg_short_errors_supported=no
31161fi
31162 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000031163 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031164 else
cristy2542fc62011-12-06 17:50:25 +000031165 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000031166 fi
31167 # Put the nasty error message in config.log where it belongs
31168 echo "$PANGO_PKG_ERRORS" >&5
31169
31170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31171$as_echo "no" >&6; }
31172 have_pango=no
31173elif test $pkg_failed = untried; then
31174 have_pango=no
31175else
31176 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
31177 PANGO_LIBS=$pkg_cv_PANGO_LIBS
31178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31179$as_echo "yes" >&6; }
31180 have_pango=yes
31181fi
31182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31183$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000031184fi
31185
31186if test "$have_pango" = 'yes'; then
31187
31188$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
31189
cristyc6722092012-10-14 00:19:31 +000031190 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000031191 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
31192 fi
31193fi
31194
cristya054b762012-03-26 23:16:00 +000031195if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000031196
cristya054b762012-03-26 23:16:00 +000031197$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000031198
cristyc6722092012-10-14 00:19:31 +000031199 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000031200 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000031201 fi
31202fi
31203
31204 if test "$have_pango" = 'yes'; then
31205 PANGO_DELEGATE_TRUE=
31206 PANGO_DELEGATE_FALSE='#'
31207else
31208 PANGO_DELEGATE_TRUE='#'
31209 PANGO_DELEGATE_FALSE=
31210fi
31211
cristya054b762012-03-26 23:16:00 +000031212 if test "$have_pangocairo" = 'yes'; then
31213 PANGOCAIRO_DELEGATE_TRUE=
31214 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000031215else
cristya054b762012-03-26 23:16:00 +000031216 PANGOCAIRO_DELEGATE_TRUE='#'
31217 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000031218fi
31219
31220
31221
31222
31223
31224#
cristy3ed852e2009-09-05 21:47:34 +000031225# Check for PNG delegate library.
31226#
31227
31228# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000031229if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031230 withval=$with_png; with_png=$withval
31231else
31232 with_png='yes'
31233fi
31234
31235
31236if test "$with_png" != 'yes'; then
31237 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
31238fi
31239
cristy81beccd2011-10-03 18:17:24 +000031240have_png='no'
31241PNG_LIBS=''
31242
31243if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000031244 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31245$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
31247$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031248 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31249$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031250 failed=0
31251 passed=0
31252 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
31253if test "x$ac_cv_header_png_h" = xyes; then :
31254 passed=`expr $passed + 1`
31255else
31256 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000031257fi
31258
cristy81beccd2011-10-03 18:17:24 +000031259
31260
31261 if test $passed -gt 0; then
31262 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000031263 if test "$have_png" = 'no' ; then
31264 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000031265 pnglib='png'
31266 else
31267 pnglib="png1${var}"
31268 fi
31269
31270# Test for compatible LIBPNG library
31271 failed=0
31272 passed=0
cristy0615f0e2011-10-12 11:36:46 +000031273 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000031274 if test "${pnglib}" != 'png' ; then
31275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
31276$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
31277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31278/* end confdefs.h. */
31279#include <stdio.h>
31280#include <stdlib.h>
31281#include <png.h>
31282
31283int
31284main ()
31285{
31286
31287#if PNG_LIBPNG_VER_MINOR != ${var}
31288#error LIBPNG library must be version 1${var}!
31289Kaboom, Kaboom
31290#endif
31291return 0;
31292
31293 ;
31294 return 0;
31295}
31296_ACEOF
31297if ac_fn_c_try_compile "$LINENO"; then :
31298 ac_cv_libpng_ok='yes'
31299else
31300 ac_cv_libpng_ok='no'
31301fi
31302rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
31303 if test "$ac_cv_libpng_ok" = 'yes' ; then
31304 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031305 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31306$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031307 else
31308 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000031309 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31310$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031311 fi
31312 else
31313 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000031314 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31315$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031316 fi
31317 fi
31318
31319 if test $passed -gt 0 -a $failed -le 0; then
31320 if test "1${var}" = '15' ; then
31321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
31322$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
31323if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
31324 $as_echo_n "(cached) " >&6
31325else
31326 ac_check_lib_save_LIBS=$LIBS
31327LIBS="-lpng15 $LIBS"
31328cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31329/* end confdefs.h. */
31330
31331/* Override any GCC internal prototype to avoid an error.
31332 Use char because int might match the return type of a GCC
31333 builtin and then its argument prototype would still apply. */
31334#ifdef __cplusplus
31335extern "C"
31336#endif
31337char png_get_io_ptr ();
31338int
31339main ()
31340{
31341return png_get_io_ptr ();
31342 ;
31343 return 0;
31344}
31345_ACEOF
31346if ac_fn_c_try_link "$LINENO"; then :
31347 ac_cv_lib_png15_png_get_io_ptr=yes
31348else
31349 ac_cv_lib_png15_png_get_io_ptr=no
31350fi
31351rm -f core conftest.err conftest.$ac_objext \
31352 conftest$ac_exeext conftest.$ac_ext
31353LIBS=$ac_check_lib_save_LIBS
31354fi
31355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
31356$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
31357if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
31358 passed=`expr $passed + 1`
31359else
31360 failed=`expr $failed + 1`
31361fi
31362
31363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
31364$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
31365if ${ac_cv_lib_png15_png_longjmp+:} false; then :
31366 $as_echo_n "(cached) " >&6
31367else
31368 ac_check_lib_save_LIBS=$LIBS
31369LIBS="-lpng15 $LIBS"
31370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31371/* end confdefs.h. */
31372
31373/* Override any GCC internal prototype to avoid an error.
31374 Use char because int might match the return type of a GCC
31375 builtin and then its argument prototype would still apply. */
31376#ifdef __cplusplus
31377extern "C"
31378#endif
31379char png_longjmp ();
31380int
31381main ()
31382{
31383return png_longjmp ();
31384 ;
31385 return 0;
31386}
31387_ACEOF
31388if ac_fn_c_try_link "$LINENO"; then :
31389 ac_cv_lib_png15_png_longjmp=yes
31390else
31391 ac_cv_lib_png15_png_longjmp=no
31392fi
31393rm -f core conftest.err conftest.$ac_objext \
31394 conftest$ac_exeext conftest.$ac_ext
31395LIBS=$ac_check_lib_save_LIBS
31396fi
31397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
31398$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
31399if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
31400 passed=`expr $passed + 1`
31401else
31402 failed=`expr $failed + 1`
31403fi
31404
31405 fi
31406 if test "1${var}" = '14' ; then
31407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
31408$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
31409if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
31410 $as_echo_n "(cached) " >&6
31411else
31412 ac_check_lib_save_LIBS=$LIBS
31413LIBS="-lpng14 $LIBS"
31414cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31415/* end confdefs.h. */
31416
31417/* Override any GCC internal prototype to avoid an error.
31418 Use char because int might match the return type of a GCC
31419 builtin and then its argument prototype would still apply. */
31420#ifdef __cplusplus
31421extern "C"
31422#endif
31423char png_get_io_ptr ();
31424int
31425main ()
31426{
31427return png_get_io_ptr ();
31428 ;
31429 return 0;
31430}
31431_ACEOF
31432if ac_fn_c_try_link "$LINENO"; then :
31433 ac_cv_lib_png14_png_get_io_ptr=yes
31434else
31435 ac_cv_lib_png14_png_get_io_ptr=no
31436fi
31437rm -f core conftest.err conftest.$ac_objext \
31438 conftest$ac_exeext conftest.$ac_ext
31439LIBS=$ac_check_lib_save_LIBS
31440fi
31441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
31442$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
31443if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
31444 passed=`expr $passed + 1`
31445else
31446 failed=`expr $failed + 1`
31447fi
31448
31449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
31450$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
31451if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
31452 $as_echo_n "(cached) " >&6
31453else
31454 ac_check_lib_save_LIBS=$LIBS
31455LIBS="-lpng14 $LIBS"
31456cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31457/* end confdefs.h. */
31458
31459/* Override any GCC internal prototype to avoid an error.
31460 Use char because int might match the return type of a GCC
31461 builtin and then its argument prototype would still apply. */
31462#ifdef __cplusplus
31463extern "C"
31464#endif
31465char png_get_io_state ();
31466int
31467main ()
31468{
31469return png_get_io_state ();
31470 ;
31471 return 0;
31472}
31473_ACEOF
31474if ac_fn_c_try_link "$LINENO"; then :
31475 ac_cv_lib_png14_png_get_io_state=yes
31476else
31477 ac_cv_lib_png14_png_get_io_state=no
31478fi
31479rm -f core conftest.err conftest.$ac_objext \
31480 conftest$ac_exeext conftest.$ac_ext
31481LIBS=$ac_check_lib_save_LIBS
31482fi
31483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
31484$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
31485if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
31486 passed=`expr $passed + 1`
31487else
31488 failed=`expr $failed + 1`
31489fi
31490
31491 fi
31492 if test "1${var}" = '12' ; then
31493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
31494$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
31495if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
31496 $as_echo_n "(cached) " >&6
31497else
31498 ac_check_lib_save_LIBS=$LIBS
31499LIBS="-lpng12 $LIBS"
31500cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31501/* end confdefs.h. */
31502
31503/* Override any GCC internal prototype to avoid an error.
31504 Use char because int might match the return type of a GCC
31505 builtin and then its argument prototype would still apply. */
31506#ifdef __cplusplus
31507extern "C"
31508#endif
31509char png_get_io_ptr ();
31510int
31511main ()
31512{
31513return png_get_io_ptr ();
31514 ;
31515 return 0;
31516}
31517_ACEOF
31518if ac_fn_c_try_link "$LINENO"; then :
31519 ac_cv_lib_png12_png_get_io_ptr=yes
31520else
31521 ac_cv_lib_png12_png_get_io_ptr=no
31522fi
31523rm -f core conftest.err conftest.$ac_objext \
31524 conftest$ac_exeext conftest.$ac_ext
31525LIBS=$ac_check_lib_save_LIBS
31526fi
31527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
31528$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
31529if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
31530 passed=`expr $passed + 1`
31531else
31532 failed=`expr $failed + 1`
31533fi
31534
31535 fi
31536 if test "1${var}" = '1' ; then
31537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
31538$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
31539if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
31540 $as_echo_n "(cached) " >&6
31541else
31542 ac_check_lib_save_LIBS=$LIBS
31543LIBS="-lpng $LIBS"
31544cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31545/* end confdefs.h. */
31546
31547/* Override any GCC internal prototype to avoid an error.
31548 Use char because int might match the return type of a GCC
31549 builtin and then its argument prototype would still apply. */
31550#ifdef __cplusplus
31551extern "C"
31552#endif
31553char png_get_io_ptr ();
31554int
31555main ()
31556{
31557return png_get_io_ptr ();
31558 ;
31559 return 0;
31560}
31561_ACEOF
31562if ac_fn_c_try_link "$LINENO"; then :
31563 ac_cv_lib_png_png_get_io_ptr=yes
31564else
31565 ac_cv_lib_png_png_get_io_ptr=no
31566fi
31567rm -f core conftest.err conftest.$ac_objext \
31568 conftest$ac_exeext conftest.$ac_ext
31569LIBS=$ac_check_lib_save_LIBS
31570fi
31571{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
31572$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
31573if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
31574 passed=`expr $passed + 1`
31575else
31576 failed=`expr $failed + 1`
31577fi
31578
31579 fi
31580 if test $passed -gt 0 -a $failed -le 0 ; then
31581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
31582$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
31583 if test $passed -gt 0 ; then
31584 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000031585 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31586$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031587 have_png='no (failed tests)'
31588 else
31589 PNG_LIBS="-l${pnglib}"
31590 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031591
cristy8b350f62009-11-15 23:12:43 +000031592$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031593
cristy09b53e12011-10-14 12:47:22 +000031594 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31595$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031596 have_png='yes'
31597 fi
31598 fi
31599 fi
31600 fi
31601 fi
31602 done
31603 fi
cristy3ed852e2009-09-05 21:47:34 +000031604fi
cristy64877302011-08-23 19:10:31 +000031605
cristy73bd4a52010-10-05 11:24:23 +000031606 if test "$have_png" = 'yes'; then
31607 PNG_DELEGATE_TRUE=
31608 PNG_DELEGATE_FALSE='#'
31609else
31610 PNG_DELEGATE_TRUE='#'
31611 PNG_DELEGATE_FALSE=
31612fi
31613
cristy3ed852e2009-09-05 21:47:34 +000031614
cristy50d3f5c2011-09-10 20:09:06 +000031615
cristy3ed852e2009-09-05 21:47:34 +000031616
31617
31618#
31619# Check for RSVG delegate library.
31620#
31621
31622# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000031623if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031624 withval=$with_rsvg; with_rsvg=$withval
31625else
cristy1164d5f2012-08-15 00:58:25 +000031626 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000031627fi
31628
31629
31630if test "$with_rsvg" != 'yes'; then
31631 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
31632fi
31633
31634have_rsvg='no'
31635have_cairo='no'
31636RSVG_CFLAGS=""
31637RSVG_LIBS=""
31638RSVG_PKG=""
31639if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000031640 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31641$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031642
31643pkg_failed=no
31644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
31645$as_echo_n "checking for RSVG... " >&6; }
31646
31647if test -n "$RSVG_CFLAGS"; then
31648 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
31649 elif test -n "$PKG_CONFIG"; then
31650 if test -n "$PKG_CONFIG" && \
31651 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31652 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31653 ac_status=$?
31654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31655 test $ac_status = 0; }; then
31656 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31657else
31658 pkg_failed=yes
31659fi
31660 else
31661 pkg_failed=untried
31662fi
31663if test -n "$RSVG_LIBS"; then
31664 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
31665 elif test -n "$PKG_CONFIG"; then
31666 if test -n "$PKG_CONFIG" && \
31667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
31668 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
31669 ac_status=$?
31670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31671 test $ac_status = 0; }; then
31672 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
31673else
31674 pkg_failed=yes
31675fi
31676 else
31677 pkg_failed=untried
31678fi
31679
31680
31681
31682if test $pkg_failed = yes; then
31683
31684if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31685 _pkg_short_errors_supported=yes
31686else
31687 _pkg_short_errors_supported=no
31688fi
31689 if test $_pkg_short_errors_supported = yes; then
31690 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31691 else
31692 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
31693 fi
31694 # Put the nasty error message in config.log where it belongs
31695 echo "$RSVG_PKG_ERRORS" >&5
31696
31697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31698$as_echo "no" >&6; }
31699 have_rsvg=no
31700elif test $pkg_failed = untried; then
31701 have_rsvg=no
31702else
31703 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
31704 RSVG_LIBS=$pkg_cv_RSVG_LIBS
31705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31706$as_echo "yes" >&6; }
31707 have_rsvg=yes
31708fi
cristy09b53e12011-10-14 12:47:22 +000031709 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31710$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000031711
31712pkg_failed=no
31713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
31714$as_echo_n "checking for CAIRO_SVG... " >&6; }
31715
31716if test -n "$CAIRO_SVG_CFLAGS"; then
31717 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
31718 elif test -n "$PKG_CONFIG"; then
31719 if test -n "$PKG_CONFIG" && \
31720 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31721 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31722 ac_status=$?
31723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31724 test $ac_status = 0; }; then
31725 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
31726else
31727 pkg_failed=yes
31728fi
31729 else
31730 pkg_failed=untried
31731fi
31732if test -n "$CAIRO_SVG_LIBS"; then
31733 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
31734 elif test -n "$PKG_CONFIG"; then
31735 if test -n "$PKG_CONFIG" && \
31736 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
31737 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
31738 ac_status=$?
31739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
31740 test $ac_status = 0; }; then
31741 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
31742else
31743 pkg_failed=yes
31744fi
31745 else
31746 pkg_failed=untried
31747fi
31748
31749
31750
31751if test $pkg_failed = yes; then
31752
31753if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
31754 _pkg_short_errors_supported=yes
31755else
31756 _pkg_short_errors_supported=no
31757fi
31758 if test $_pkg_short_errors_supported = yes; then
31759 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31760 else
31761 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31762 fi
31763 # Put the nasty error message in config.log where it belongs
31764 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31765
31766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31767$as_echo "no" >&6; }
31768 have_cairo=no
31769elif test $pkg_failed = untried; then
31770 have_cairo=no
31771else
31772 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31773 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31775$as_echo "yes" >&6; }
31776 have_cairo=yes
31777fi
cristy09b53e12011-10-14 12:47:22 +000031778 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31779$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031780fi
31781
31782if test "$have_rsvg" = 'yes'; then
31783
cristy8b350f62009-11-15 23:12:43 +000031784$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031785
cristyc6722092012-10-14 00:19:31 +000031786 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031787 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31788 fi
31789fi
31790
31791if test "$have_cairo" = 'yes'; then
31792
cristy8b350f62009-11-15 23:12:43 +000031793$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031794
cristyc6722092012-10-14 00:19:31 +000031795 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031796 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31797 fi
31798fi
31799
cristy73bd4a52010-10-05 11:24:23 +000031800 if test "$have_rsvg" = 'yes'; then
31801 RSVG_DELEGATE_TRUE=
31802 RSVG_DELEGATE_FALSE='#'
31803else
31804 RSVG_DELEGATE_TRUE='#'
31805 RSVG_DELEGATE_FALSE=
31806fi
31807
31808 if test "$have_cairo" = 'yes'; then
31809 CAIRO_DELEGATE_TRUE=
31810 CAIRO_DELEGATE_FALSE='#'
31811else
31812 CAIRO_DELEGATE_TRUE='#'
31813 CAIRO_DELEGATE_FALSE=
31814fi
31815
cristy3ed852e2009-09-05 21:47:34 +000031816
31817
31818
31819
31820#
31821# Check for TIFF delegate library.
31822#
31823
31824# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031825if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031826 withval=$with_tiff; with_tiff=$withval
31827else
31828 with_tiff='yes'
31829fi
31830
31831
31832if test "$with_tiff" != 'yes'; then
31833 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31834fi
31835
31836have_tiff='no'
31837TIFF_LIBS=''
31838if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031839 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31840$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031842$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031843 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31844$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031845 failed=0
31846 passed=0
cristy8b350f62009-11-15 23:12:43 +000031847 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031848if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031849 passed=`expr $passed + 1`
31850else
31851 failed=`expr $failed + 1`
31852fi
31853
31854
cristy8b350f62009-11-15 23:12:43 +000031855 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031856if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031857 passed=`expr $passed + 1`
31858else
31859 failed=`expr $failed + 1`
31860fi
31861
31862
cristy8b350f62009-11-15 23:12:43 +000031863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031864$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031865if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031866 $as_echo_n "(cached) " >&6
31867else
31868 ac_check_lib_save_LIBS=$LIBS
31869LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031870cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031871/* end confdefs.h. */
31872
31873/* Override any GCC internal prototype to avoid an error.
31874 Use char because int might match the return type of a GCC
31875 builtin and then its argument prototype would still apply. */
31876#ifdef __cplusplus
31877extern "C"
31878#endif
31879char TIFFOpen ();
31880int
31881main ()
31882{
31883return TIFFOpen ();
31884 ;
31885 return 0;
31886}
31887_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031888if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031889 ac_cv_lib_tiff_TIFFOpen=yes
31890else
cristy8b350f62009-11-15 23:12:43 +000031891 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031892fi
cristy8b350f62009-11-15 23:12:43 +000031893rm -f core conftest.err conftest.$ac_objext \
31894 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031895LIBS=$ac_check_lib_save_LIBS
31896fi
cristy8b350f62009-11-15 23:12:43 +000031897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031898$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031899if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031900 passed=`expr $passed + 1`
31901else
31902 failed=`expr $failed + 1`
31903fi
31904
cristy8b350f62009-11-15 23:12:43 +000031905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031906$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031907if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031908 $as_echo_n "(cached) " >&6
31909else
31910 ac_check_lib_save_LIBS=$LIBS
31911LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031913/* end confdefs.h. */
31914
31915/* Override any GCC internal prototype to avoid an error.
31916 Use char because int might match the return type of a GCC
31917 builtin and then its argument prototype would still apply. */
31918#ifdef __cplusplus
31919extern "C"
31920#endif
31921char TIFFClientOpen ();
31922int
31923main ()
31924{
31925return TIFFClientOpen ();
31926 ;
31927 return 0;
31928}
31929_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031930if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031931 ac_cv_lib_tiff_TIFFClientOpen=yes
31932else
cristy8b350f62009-11-15 23:12:43 +000031933 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031934fi
cristy8b350f62009-11-15 23:12:43 +000031935rm -f core conftest.err conftest.$ac_objext \
31936 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031937LIBS=$ac_check_lib_save_LIBS
31938fi
cristy8b350f62009-11-15 23:12:43 +000031939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031940$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031941if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031942 passed=`expr $passed + 1`
31943else
31944 failed=`expr $failed + 1`
31945fi
31946
cristy8b350f62009-11-15 23:12:43 +000031947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031948$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031949if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031950 $as_echo_n "(cached) " >&6
31951else
31952 ac_check_lib_save_LIBS=$LIBS
31953LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031954cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031955/* end confdefs.h. */
31956
31957/* Override any GCC internal prototype to avoid an error.
31958 Use char because int might match the return type of a GCC
31959 builtin and then its argument prototype would still apply. */
31960#ifdef __cplusplus
31961extern "C"
31962#endif
31963char TIFFIsByteSwapped ();
31964int
31965main ()
31966{
31967return TIFFIsByteSwapped ();
31968 ;
31969 return 0;
31970}
31971_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031972if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031973 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31974else
cristy8b350f62009-11-15 23:12:43 +000031975 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031976fi
cristy8b350f62009-11-15 23:12:43 +000031977rm -f core conftest.err conftest.$ac_objext \
31978 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031979LIBS=$ac_check_lib_save_LIBS
31980fi
cristy8b350f62009-11-15 23:12:43 +000031981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031982$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031983if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031984 passed=`expr $passed + 1`
31985else
31986 failed=`expr $failed + 1`
31987fi
31988
cristy8b350f62009-11-15 23:12:43 +000031989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031990$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031991if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031992 $as_echo_n "(cached) " >&6
31993else
31994 ac_check_lib_save_LIBS=$LIBS
31995LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031997/* end confdefs.h. */
31998
31999/* Override any GCC internal prototype to avoid an error.
32000 Use char because int might match the return type of a GCC
32001 builtin and then its argument prototype would still apply. */
32002#ifdef __cplusplus
32003extern "C"
32004#endif
32005char TIFFReadRGBATile ();
32006int
32007main ()
32008{
32009return TIFFReadRGBATile ();
32010 ;
32011 return 0;
32012}
32013_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032014if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032015 ac_cv_lib_tiff_TIFFReadRGBATile=yes
32016else
cristy8b350f62009-11-15 23:12:43 +000032017 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000032018fi
cristy8b350f62009-11-15 23:12:43 +000032019rm -f core conftest.err conftest.$ac_objext \
32020 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032021LIBS=$ac_check_lib_save_LIBS
32022fi
cristy8b350f62009-11-15 23:12:43 +000032023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000032024$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000032025if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032026 passed=`expr $passed + 1`
32027else
32028 failed=`expr $failed + 1`
32029fi
32030
cristy8b350f62009-11-15 23:12:43 +000032031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000032032$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032033if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032034 $as_echo_n "(cached) " >&6
32035else
32036 ac_check_lib_save_LIBS=$LIBS
32037LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032038cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032039/* end confdefs.h. */
32040
32041/* Override any GCC internal prototype to avoid an error.
32042 Use char because int might match the return type of a GCC
32043 builtin and then its argument prototype would still apply. */
32044#ifdef __cplusplus
32045extern "C"
32046#endif
32047char TIFFReadRGBAStrip ();
32048int
32049main ()
32050{
32051return TIFFReadRGBAStrip ();
32052 ;
32053 return 0;
32054}
32055_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032056if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000032057 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
32058else
cristy8b350f62009-11-15 23:12:43 +000032059 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000032060fi
cristy8b350f62009-11-15 23:12:43 +000032061rm -f core conftest.err conftest.$ac_objext \
32062 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032063LIBS=$ac_check_lib_save_LIBS
32064fi
cristy8b350f62009-11-15 23:12:43 +000032065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000032066$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000032067if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032068 passed=`expr $passed + 1`
32069else
32070 failed=`expr $failed + 1`
32071fi
32072
cristy8b350f62009-11-15 23:12:43 +000032073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000032074$as_echo_n "checking if TIFF package is complete... " >&6; }
32075 if test $passed -gt 0; then
32076 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032077 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32078$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032079 have_tiff='no (failed tests)'
32080 else
32081 TIFF_LIBS='-ltiff'
32082 LIBS="$TIFF_LIBS $LIBS"
32083
cristy8b350f62009-11-15 23:12:43 +000032084$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032085
cristy09b53e12011-10-14 12:47:22 +000032086 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32087$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032088 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000032089 for ac_header in tiffconf.h
32090do :
32091 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000032092if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000032093 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032094#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000032095_ACEOF
32096
32097fi
32098
32099done
32100
cristy8b350f62009-11-15 23:12:43 +000032101 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000032102 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
32103 TIFFSetTagExtender TIFFSetWarningHandlerExt \
32104 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000032105do :
32106 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
32107ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000032108if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000032109 cat >>confdefs.h <<_ACEOF
32110#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
32111_ACEOF
32112
32113fi
32114done
32115
32116 fi
32117 else
cristy09b53e12011-10-14 12:47:22 +000032118 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32119$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032120 fi
32121fi
cristy73bd4a52010-10-05 11:24:23 +000032122 if test "$have_tiff" = 'yes'; then
32123 TIFF_DELEGATE_TRUE=
32124 TIFF_DELEGATE_FALSE='#'
32125else
32126 TIFF_DELEGATE_TRUE='#'
32127 TIFF_DELEGATE_FALSE=
32128fi
32129
cristy3ed852e2009-09-05 21:47:34 +000032130
32131
32132
32133#
cristyb1860752011-03-14 00:27:46 +000032134# Check for WEBP delegate library.
32135#
32136
32137# Check whether --with-webp was given.
32138if test "${with_webp+set}" = set; then :
32139 withval=$with_webp; with_webp=$withval
32140else
32141 with_webp='yes'
32142fi
32143
32144
32145if test "$with_webp" != 'yes'; then
32146 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
32147fi
32148
32149have_webp='no'
32150WEBP_LIBS=''
32151if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032152 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32153$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000032154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
32155$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032156 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32157$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000032158 failed=0
32159 passed=0
32160 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
32161if test "x$ac_cv_header_webp_decode_h" = xyes; then :
32162 passed=`expr $passed + 1`
32163else
32164 failed=`expr $failed + 1`
32165fi
32166
32167
32168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
32169$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
32170if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
32171 $as_echo_n "(cached) " >&6
32172else
32173 ac_check_lib_save_LIBS=$LIBS
32174LIBS="-lwebp $LIBS"
32175cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32176/* end confdefs.h. */
32177
32178/* Override any GCC internal prototype to avoid an error.
32179 Use char because int might match the return type of a GCC
32180 builtin and then its argument prototype would still apply. */
32181#ifdef __cplusplus
32182extern "C"
32183#endif
32184char WebPDecodeRGB ();
32185int
32186main ()
32187{
32188return WebPDecodeRGB ();
32189 ;
32190 return 0;
32191}
32192_ACEOF
32193if ac_fn_c_try_link "$LINENO"; then :
32194 ac_cv_lib_webp_WebPDecodeRGB=yes
32195else
32196 ac_cv_lib_webp_WebPDecodeRGB=no
32197fi
32198rm -f core conftest.err conftest.$ac_objext \
32199 conftest$ac_exeext conftest.$ac_ext
32200LIBS=$ac_check_lib_save_LIBS
32201fi
32202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
32203$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
32204if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
32205 passed=`expr $passed + 1`
32206else
32207 failed=`expr $failed + 1`
32208fi
32209
32210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
32211$as_echo_n "checking if WEBP package is complete... " >&6; }
32212 if test $passed -gt 0; then
32213 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032214 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32215$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000032216 have_webp='no (failed tests)'
32217 else
32218 WEBP_LIBS='-lwebp'
32219 LIBS="$WEBP_LIBS $LIBS"
32220
32221$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
32222
cristy09b53e12011-10-14 12:47:22 +000032223 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32224$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000032225 have_webp='yes'
32226 fi
32227 else
cristy09b53e12011-10-14 12:47:22 +000032228 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32229$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000032230 fi
32231fi
32232 if test "$have_webp" = 'yes'; then
32233 WEBP_DELEGATE_TRUE=
32234 WEBP_DELEGATE_FALSE='#'
32235else
32236 WEBP_DELEGATE_TRUE='#'
32237 WEBP_DELEGATE_FALSE=
32238fi
32239
32240
32241
32242
32243#
cristy3ed852e2009-09-05 21:47:34 +000032244# Set Windows font directory.
32245#
32246
32247# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000032248if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032249 withval=$with_windows_font_dir; with_windows_font_dir=$withval
32250else
32251 with_windows_font_dir=''
32252fi
32253
32254if test "$with_windows_font_dir" != '' ; then
32255 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
32256fi
32257
32258
32259#
32260# Check for WMF delegate library.
32261#
32262
32263# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000032264if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032265 withval=$with_wmf; with_wmf=$withval
32266else
cristyfc3d0222012-02-07 15:05:57 +000032267 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000032268fi
32269
32270
32271if test "$with_wmf" != 'yes'; then
32272 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
32273fi
32274
32275have_wmf='no'
32276WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000032277WMF_LIBS_DEPS=''
32278OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032279if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000032280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
32281$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000032283$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000032284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
32285$as_echo "" >&6; }
32286 have_libwmf='no'
32287 have_libwmflite='no'
32288 have_libwmf_ipa_h='no'
32289
32290 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
32291"
32292if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
32293 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000032294fi
32295
32296
cristy03f7cf92011-12-15 01:40:41 +000032297 if test "$have_libwmf_ipa_h" = 'yes'; then
32298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
32299$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
32300if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032301 $as_echo_n "(cached) " >&6
32302else
32303 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000032304LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000032305cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032306/* end confdefs.h. */
32307
32308/* Override any GCC internal prototype to avoid an error.
32309 Use char because int might match the return type of a GCC
32310 builtin and then its argument prototype would still apply. */
32311#ifdef __cplusplus
32312extern "C"
32313#endif
cristy03f7cf92011-12-15 01:40:41 +000032314char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032315int
32316main ()
32317{
cristy03f7cf92011-12-15 01:40:41 +000032318return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000032319 ;
32320 return 0;
32321}
32322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000032323if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000032324 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000032325else
cristy03f7cf92011-12-15 01:40:41 +000032326 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000032327fi
cristy8b350f62009-11-15 23:12:43 +000032328rm -f core conftest.err conftest.$ac_objext \
32329 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000032330LIBS=$ac_check_lib_save_LIBS
32331fi
cristy03f7cf92011-12-15 01:40:41 +000032332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
32333$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
32334if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
32335 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000032336fi
32337
cristy03f7cf92011-12-15 01:40:41 +000032338 if test "$have_libwmflite" = 'yes'; then
32339
32340$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
32341
32342 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000032343 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000032344 have_wmf='yes'
32345 else
32346 WMF_LIBS_DEPS=''
32347 WMF_CONFIG_LIBS=`libwmf-config --libs`
32348 for lib in xml2 expat freetype jpeg png z; do
32349 testlib="-l${lib}"
32350 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
32351 done
32352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
32353$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
32354if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
32355 $as_echo_n "(cached) " >&6
32356else
32357 ac_check_lib_save_LIBS=$LIBS
32358LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
32359cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32360/* end confdefs.h. */
32361
32362/* Override any GCC internal prototype to avoid an error.
32363 Use char because int might match the return type of a GCC
32364 builtin and then its argument prototype would still apply. */
32365#ifdef __cplusplus
32366extern "C"
32367#endif
32368char wmf_api_create ();
32369int
32370main ()
32371{
32372return wmf_api_create ();
32373 ;
32374 return 0;
32375}
32376_ACEOF
32377if ac_fn_c_try_link "$LINENO"; then :
32378 ac_cv_lib_wmf_wmf_api_create=yes
32379else
32380 ac_cv_lib_wmf_wmf_api_create=no
32381fi
32382rm -f core conftest.err conftest.$ac_objext \
32383 conftest$ac_exeext conftest.$ac_ext
32384LIBS=$ac_check_lib_save_LIBS
32385fi
32386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
32387$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
32388if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
32389 have_libwmf='yes'
32390fi
32391
32392 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032393
cristy8b350f62009-11-15 23:12:43 +000032394$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032395
cristy03f7cf92011-12-15 01:40:41 +000032396 WMF_LIBS='-lwmf'
32397 LIBS="$WMF_LIBS $LIBS"
32398 have_wmf='yes'
32399 else
32400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
32401$as_echo "no -- some components failed test" >&6; }
32402 have_wmf='no (failed tests)'
32403 have_wmflite='no (failed tests)'
32404 LIBS="$OLIBS"
32405 WMF_LIBS=''
32406 fi
glennrp33e524b2011-08-24 17:41:57 +000032407 fi
cristy03f7cf92011-12-15 01:40:41 +000032408 fi
32409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
32410$as_echo_n "checking if WMF package is complete... " >&6; }
32411 if test "$have_wmf" = 'yes'; then
32412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
32413$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032414 else
cristy03f7cf92011-12-15 01:40:41 +000032415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32416$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000032417 fi
cristy3ed852e2009-09-05 21:47:34 +000032418fi
cristy73bd4a52010-10-05 11:24:23 +000032419 if test "$have_wmf" = 'yes'; then
32420 WMF_DELEGATE_TRUE=
32421 WMF_DELEGATE_FALSE='#'
32422else
32423 WMF_DELEGATE_TRUE='#'
32424 WMF_DELEGATE_FALSE=
32425fi
32426
cristy3ed852e2009-09-05 21:47:34 +000032427
32428
32429
cristy81beccd2011-10-03 18:17:24 +000032430
32431
cristy3ed852e2009-09-05 21:47:34 +000032432#
32433# Check for XML delegate library.
32434#
32435
32436# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000032437if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000032438 withval=$with_xml; with_xml=$withval
32439else
cristyfc3d0222012-02-07 15:05:57 +000032440 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000032441fi
32442
32443
cristy81beccd2011-10-03 18:17:24 +000032444if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000032445 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
32446fi
32447
cristy81beccd2011-10-03 18:17:24 +000032448have_xml='no'
32449XML_LIBS=''
32450if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000032451 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32452$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
32454$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032455 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32456$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000032457 PERSIST_LDFLAGS=$LDFLAGS
32458 PERSIST_CPPFLAGS=$CPPFLAGS
32459 xml2_config=''
32460 # Extract the first word of "xml2-config", so it can be a program name with args.
32461set dummy xml2-config; ac_word=$2
32462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
32463$as_echo_n "checking for $ac_word... " >&6; }
32464if ${ac_cv_path_xml2_config+:} false; then :
32465 $as_echo_n "(cached) " >&6
32466else
32467 case $xml2_config in
32468 [\\/]* | ?:[\\/]*)
32469 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
32470 ;;
32471 *)
32472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32473for as_dir in $PATH
32474do
32475 IFS=$as_save_IFS
32476 test -z "$as_dir" && as_dir=.
32477 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032478 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000032479 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
32480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
32481 break 2
32482 fi
32483done
32484 done
32485IFS=$as_save_IFS
32486
32487 ;;
32488esac
32489fi
32490xml2_config=$ac_cv_path_xml2_config
32491if test -n "$xml2_config"; then
32492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
32493$as_echo "$xml2_config" >&6; }
32494else
32495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
32496$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000032497fi
32498
cristy81beccd2011-10-03 18:17:24 +000032499 if test -n "$xml2_config"; then
32500 # Debian installs libxml headers under /usr/include/libxml2/libxml with
32501 # the shared library installed under /usr/lib, whereas the package
32502 # installs itself under $prefix/libxml and $prefix/lib.
32503 xml2_prefix=`xml2-config --prefix`
32504 if test -d "${xml2_prefix}/include/libxml2"; then
32505 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
32506 fi
32507 if test "${xml2_prefix}" != '/usr'; then
32508 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
32509 fi
32510 fi
32511 failed=0
32512 passed=0
32513 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
32514if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
32515 passed=`expr $passed + 1`
32516else
32517 failed=`expr $failed + 1`
32518fi
32519
32520
32521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
32522$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
32523if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
32524 $as_echo_n "(cached) " >&6
32525else
32526 ac_check_lib_save_LIBS=$LIBS
32527LIBS="-lxml2 $LIBS"
32528cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32529/* end confdefs.h. */
32530
32531/* Override any GCC internal prototype to avoid an error.
32532 Use char because int might match the return type of a GCC
32533 builtin and then its argument prototype would still apply. */
32534#ifdef __cplusplus
32535extern "C"
32536#endif
32537char xmlSAXVersion ();
32538int
32539main ()
32540{
32541return xmlSAXVersion ();
32542 ;
32543 return 0;
32544}
32545_ACEOF
32546if ac_fn_c_try_link "$LINENO"; then :
32547 ac_cv_lib_xml2_xmlSAXVersion=yes
32548else
32549 ac_cv_lib_xml2_xmlSAXVersion=no
32550fi
32551rm -f core conftest.err conftest.$ac_objext \
32552 conftest$ac_exeext conftest.$ac_ext
32553LIBS=$ac_check_lib_save_LIBS
32554fi
32555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
32556$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
32557if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
32558 passed=`expr $passed + 1`
32559else
32560 failed=`expr $failed + 1`
32561fi
32562
32563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
32564$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
32565if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
32566 $as_echo_n "(cached) " >&6
32567else
32568 ac_check_lib_save_LIBS=$LIBS
32569LIBS="-lxml2 $LIBS"
32570cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32571/* end confdefs.h. */
32572
32573/* Override any GCC internal prototype to avoid an error.
32574 Use char because int might match the return type of a GCC
32575 builtin and then its argument prototype would still apply. */
32576#ifdef __cplusplus
32577extern "C"
32578#endif
32579char xmlParseChunk ();
32580int
32581main ()
32582{
32583return xmlParseChunk ();
32584 ;
32585 return 0;
32586}
32587_ACEOF
32588if ac_fn_c_try_link "$LINENO"; then :
32589 ac_cv_lib_xml2_xmlParseChunk=yes
32590else
32591 ac_cv_lib_xml2_xmlParseChunk=no
32592fi
32593rm -f core conftest.err conftest.$ac_objext \
32594 conftest$ac_exeext conftest.$ac_ext
32595LIBS=$ac_check_lib_save_LIBS
32596fi
32597{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
32598$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
32599if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
32600 passed=`expr $passed + 1`
32601else
32602 failed=`expr $failed + 1`
32603fi
32604
32605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
32606$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
32607if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
32608 $as_echo_n "(cached) " >&6
32609else
32610 ac_check_lib_save_LIBS=$LIBS
32611LIBS="-lxml2 $LIBS"
32612cat confdefs.h - <<_ACEOF >conftest.$ac_ext
32613/* end confdefs.h. */
32614
32615/* Override any GCC internal prototype to avoid an error.
32616 Use char because int might match the return type of a GCC
32617 builtin and then its argument prototype would still apply. */
32618#ifdef __cplusplus
32619extern "C"
32620#endif
32621char xmlCreatePushParserCtxt ();
32622int
32623main ()
32624{
32625return xmlCreatePushParserCtxt ();
32626 ;
32627 return 0;
32628}
32629_ACEOF
32630if ac_fn_c_try_link "$LINENO"; then :
32631 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
32632else
32633 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
32634fi
32635rm -f core conftest.err conftest.$ac_objext \
32636 conftest$ac_exeext conftest.$ac_ext
32637LIBS=$ac_check_lib_save_LIBS
32638fi
32639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
32640$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
32641if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
32642 passed=`expr $passed + 1`
32643else
32644 failed=`expr $failed + 1`
32645fi
32646
32647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
32648$as_echo_n "checking if XML package is complete... " >&6; }
32649 if test $passed -gt 0; then
32650 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000032651 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
32652$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032653 have_xml='no (failed tests)'
32654 LDFLAGS="$PERSIST_LDFLAGS"
32655 CPPFLAGS="$PERSIST_CPPFLAGS"
32656 else
32657 XML_LIBS='-lxml2'
32658 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000032659
cristy8b350f62009-11-15 23:12:43 +000032660$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000032661
cristy09b53e12011-10-14 12:47:22 +000032662 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
32663$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000032664 have_xml='yes'
32665 fi
32666 else
cristy09b53e12011-10-14 12:47:22 +000032667 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
32668$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032669 fi
32670fi
cristy73bd4a52010-10-05 11:24:23 +000032671 if test "$have_xml" = 'yes'; then
32672 XML_DELEGATE_TRUE=
32673 XML_DELEGATE_FALSE='#'
32674else
32675 XML_DELEGATE_TRUE='#'
32676 XML_DELEGATE_FALSE=
32677fi
32678
cristy3ed852e2009-09-05 21:47:34 +000032679
32680
32681
32682# Substitute compiler name to build/link PerlMagick
32683#
32684
32685
32686#
32687# Configure install Paths
32688#
cristy7def36a2011-10-28 19:04:41 +000032689
cristy2a11bef2011-10-28 18:33:11 +000032690# Path to ImageMagick header files
32691INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000032692INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
32693DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000032694case "${build_os}" in
32695 mingw* )
32696 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
32697 ;;
32698esac
32699
32700cat >>confdefs.h <<_ACEOF
32701#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
32702_ACEOF
32703
32704
cristy3ed852e2009-09-05 21:47:34 +000032705
32706# Subdirectory under lib to place ImageMagick lib files
32707LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
32708
32709cat >>confdefs.h <<_ACEOF
32710#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
32711_ACEOF
32712
32713
32714# Path to ImageMagick bin directory
32715EXECUTABLE_PATH="${BIN_DIR}"
32716DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
32717case "${build_os}" in
32718 mingw* )
32719 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
32720 ;;
32721esac
32722
32723cat >>confdefs.h <<_ACEOF
32724#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
32725_ACEOF
32726
32727
32728
32729# Path to ImageMagick lib
32730LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
32731DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
32732case "${build_os}" in
32733 mingw* )
32734 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
32735 ;;
32736esac
32737
32738cat >>confdefs.h <<_ACEOF
32739#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
32740_ACEOF
32741
32742
32743
cristy3ed852e2009-09-05 21:47:34 +000032744#
32745# Subdirectory under lib to place ImageMagick coder module files
32746CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
32747
32748cat >>confdefs.h <<_ACEOF
32749#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
32750_ACEOF
32751
32752CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
32753DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
32754case "${build_os}" in
32755 mingw* )
32756 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32757 ;;
32758esac
32759
32760cat >>confdefs.h <<_ACEOF
32761#define CODER_PATH "$DEFINE_CODER_PATH"
32762_ACEOF
32763
32764
32765
32766#
32767# Subdirectory under lib to place ImageMagick filter module files
32768FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32769
32770cat >>confdefs.h <<_ACEOF
32771#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32772_ACEOF
32773
32774FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32775DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32776case "${build_os}" in
32777 mingw* )
32778 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32779 ;;
32780esac
32781
32782cat >>confdefs.h <<_ACEOF
32783#define FILTER_PATH "$DEFINE_FILTER_PATH"
32784_ACEOF
32785
32786
32787
32788#
32789# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032790DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032791DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32792DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032793case "${build_os}" in
32794 mingw* )
32795 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32796 ;;
32797esac
32798
32799cat >>confdefs.h <<_ACEOF
32800#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32801_ACEOF
32802
32803
32804
cristy2a11bef2011-10-28 18:33:11 +000032805# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032806CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032807
32808cat >>confdefs.h <<_ACEOF
32809#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32810_ACEOF
32811
cristy7def36a2011-10-28 19:04:41 +000032812CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032813DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32814case "${build_os}" in
32815 mingw* )
32816 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32817 ;;
32818esac
32819
32820cat >>confdefs.h <<_ACEOF
32821#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32822_ACEOF
32823
32824
32825
cristy2a11bef2011-10-28 18:33:11 +000032826# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032827SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032828
32829cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032830#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032831_ACEOF
32832
cristy670aa3c2011-11-03 00:54:00 +000032833SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032834DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032835case "${build_os}" in
32836 mingw* )
cristy4f820712011-04-01 12:35:43 +000032837 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032838 ;;
32839esac
32840
32841cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032842#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032843_ACEOF
32844
32845
32846
cristy408ebcd2011-11-14 01:36:57 +000032847# Subdirectory to place architecture-dependent configuration files
32848SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032849
32850cat >>confdefs.h <<_ACEOF
32851#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32852_ACEOF
32853
cristy408ebcd2011-11-14 01:36:57 +000032854SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32855DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032856case "${build_os}" in
32857 mingw* )
32858 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32859 ;;
32860esac
32861
32862cat >>confdefs.h <<_ACEOF
32863#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32864_ACEOF
32865
32866
32867
cristy3ed852e2009-09-05 21:47:34 +000032868#
32869# program_transform_name is formed for use in a Makefile, so create a
32870# modified version for use in a shell script.
32871configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32872
32873# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032874{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32875$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032876{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032877$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032878{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32879$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032880AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032881BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032882BZIPDelegateDefault='bzip2'
32883BrowseDelegateDefault='xdg-open'
32884CGMDecodeDelegateDefault='ralcgm'
32885CatDelegateDefault='cat'
32886DNGDecodeDelegateDefault='ufraw-batch'
32887GVCDecodeDelegateDefault='dot'
32888DVIDecodeDelegateDefault='dvips'
32889EchoDelegateDefault='echo'
32890EditorDelegateDefault='xterm'
32891FIGDecodeDelegateDefault='fig2dev'
32892ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32893DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32894MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32895GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032896HPGLDecodeDelegateDefault='hp2xx'
32897HTMLDecodeDelegateDefault='html2ps'
32898ILBMDecodeDelegateDefault='ilbmtoppm'
32899ILBMEncodeDelegateDefault='ppmtoilbm'
32900LPDelegateDefault='lp'
32901LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032902LaunchDelegateDefault='gimp'
32903MANDelegateDefault='groff'
32904MPEGDecodeDelegateDefault='ffmpeg'
32905MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032906MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032907MVDelegateDefault='mv'
32908PCLDelegateDefault='pcl6'
32909PGPDecodeDelegateDefault='pgpv'
32910POVDelegateDefault='povray'
32911if test "$native_win32_build" = 'yes'; then
32912 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032913elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032914 PSDelegateDefault='gsc'
32915else
32916 PSDelegateDefault='gs'
32917fi
32918RLEEncodeDelegateDefault='rawtorle'
32919RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032920RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032921SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032922SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032923TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032924UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032925WMFDecodeDelegateDefault='wmf2eps'
32926WWWDecodeDelegateDefault='curl'
32927XPSDelegateDefault='gxps'
32928ZipDelegateDefault='gzip'
32929
32930# Search for delegates
32931# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32932set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032934$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032935if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032936 $as_echo_n "(cached) " >&6
32937else
32938 case $AutotraceDecodeDelegate in
32939 [\\/]* | ?:[\\/]*)
32940 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32941 ;;
32942 *)
32943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32944for as_dir in $PATH
32945do
32946 IFS=$as_save_IFS
32947 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032948 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032950 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952 break 2
32953 fi
32954done
cristy8b350f62009-11-15 23:12:43 +000032955 done
cristy3ed852e2009-09-05 21:47:34 +000032956IFS=$as_save_IFS
32957
32958 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32959 ;;
32960esac
32961fi
32962AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32963if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032965$as_echo "$AutotraceDecodeDelegate" >&6; }
32966else
cristy8b350f62009-11-15 23:12:43 +000032967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032968$as_echo "no" >&6; }
32969fi
32970
32971
cristy3ed852e2009-09-05 21:47:34 +000032972# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32973set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032974{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032975$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032976if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032977 $as_echo_n "(cached) " >&6
32978else
32979 case $BlenderDecodeDelegate in
32980 [\\/]* | ?:[\\/]*)
32981 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32982 ;;
32983 *)
32984 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32985for as_dir in $PATH
32986do
32987 IFS=$as_save_IFS
32988 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032989 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032990 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032991 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032992 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993 break 2
32994 fi
32995done
cristy8b350f62009-11-15 23:12:43 +000032996 done
cristy3ed852e2009-09-05 21:47:34 +000032997IFS=$as_save_IFS
32998
32999 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
33000 ;;
33001esac
33002fi
33003BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
33004if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033006$as_echo "$BlenderDecodeDelegate" >&6; }
33007else
cristy8b350f62009-11-15 23:12:43 +000033008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033009$as_echo "no" >&6; }
33010fi
33011
33012
33013# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
33014set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033016$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033017if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033018 $as_echo_n "(cached) " >&6
33019else
33020 case $BZIPDelegate in
33021 [\\/]* | ?:[\\/]*)
33022 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
33023 ;;
33024 *)
33025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33026for as_dir in $PATH
33027do
33028 IFS=$as_save_IFS
33029 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033030 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033031 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033032 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033033 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034 break 2
33035 fi
33036done
cristy8b350f62009-11-15 23:12:43 +000033037 done
cristy3ed852e2009-09-05 21:47:34 +000033038IFS=$as_save_IFS
33039
33040 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
33041 ;;
33042esac
33043fi
33044BZIPDelegate=$ac_cv_path_BZIPDelegate
33045if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033047$as_echo "$BZIPDelegate" >&6; }
33048else
cristy8b350f62009-11-15 23:12:43 +000033049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033050$as_echo "no" >&6; }
33051fi
33052
33053
cristyc59f0e72012-08-27 12:59:33 +000033054for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
33055do
33056 # Extract the first word of "$ac_prog", so it can be a program name with args.
33057set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033059$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033060if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033061 $as_echo_n "(cached) " >&6
33062else
33063 case $BrowseDelegate in
33064 [\\/]* | ?:[\\/]*)
33065 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
33066 ;;
33067 *)
33068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33069for as_dir in $PATH
33070do
33071 IFS=$as_save_IFS
33072 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033073 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033075 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033077 break 2
33078 fi
33079done
cristy8b350f62009-11-15 23:12:43 +000033080 done
cristy3ed852e2009-09-05 21:47:34 +000033081IFS=$as_save_IFS
33082
cristy3ed852e2009-09-05 21:47:34 +000033083 ;;
33084esac
33085fi
33086BrowseDelegate=$ac_cv_path_BrowseDelegate
33087if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033089$as_echo "$BrowseDelegate" >&6; }
33090else
cristy8b350f62009-11-15 23:12:43 +000033091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033092$as_echo "no" >&6; }
33093fi
33094
33095
cristyc59f0e72012-08-27 12:59:33 +000033096 test -n "$BrowseDelegate" && break
33097done
33098test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
33099
cristy3ed852e2009-09-05 21:47:34 +000033100# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
33101set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033104if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033105 $as_echo_n "(cached) " >&6
33106else
33107 case $CGMDecodeDelegate in
33108 [\\/]* | ?:[\\/]*)
33109 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
33110 ;;
33111 *)
33112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33113for as_dir in $PATH
33114do
33115 IFS=$as_save_IFS
33116 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033117 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033119 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033121 break 2
33122 fi
33123done
cristy8b350f62009-11-15 23:12:43 +000033124 done
cristy3ed852e2009-09-05 21:47:34 +000033125IFS=$as_save_IFS
33126
33127 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
33128 ;;
33129esac
33130fi
33131CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
33132if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033134$as_echo "$CGMDecodeDelegate" >&6; }
33135else
cristy8b350f62009-11-15 23:12:43 +000033136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033137$as_echo "no" >&6; }
33138fi
33139
33140
33141# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
33142set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033145if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033146 $as_echo_n "(cached) " >&6
33147else
33148 case $CatDelegate in
33149 [\\/]* | ?:[\\/]*)
33150 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
33151 ;;
33152 *)
33153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33154for as_dir in $PATH
33155do
33156 IFS=$as_save_IFS
33157 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033158 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033160 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033162 break 2
33163 fi
33164done
cristy8b350f62009-11-15 23:12:43 +000033165 done
cristy3ed852e2009-09-05 21:47:34 +000033166IFS=$as_save_IFS
33167
33168 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
33169 ;;
33170esac
33171fi
33172CatDelegate=$ac_cv_path_CatDelegate
33173if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033175$as_echo "$CatDelegate" >&6; }
33176else
cristy8b350f62009-11-15 23:12:43 +000033177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033178$as_echo "no" >&6; }
33179fi
33180
33181
33182# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
33183set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033186if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033187 $as_echo_n "(cached) " >&6
33188else
33189 case $DNGDecodeDelegate in
33190 [\\/]* | ?:[\\/]*)
33191 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
33192 ;;
33193 *)
33194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33195for as_dir in $PATH
33196do
33197 IFS=$as_save_IFS
33198 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033199 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033200 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033201 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033202 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033203 break 2
33204 fi
33205done
cristy8b350f62009-11-15 23:12:43 +000033206 done
cristy3ed852e2009-09-05 21:47:34 +000033207IFS=$as_save_IFS
33208
33209 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
33210 ;;
33211esac
33212fi
33213DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
33214if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033216$as_echo "$DNGDecodeDelegate" >&6; }
33217else
cristy8b350f62009-11-15 23:12:43 +000033218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033219$as_echo "no" >&6; }
33220fi
33221
33222
33223# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
33224set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033227if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033228 $as_echo_n "(cached) " >&6
33229else
33230 case $GVCDecodeDelegate in
33231 [\\/]* | ?:[\\/]*)
33232 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
33233 ;;
33234 *)
33235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33236for as_dir in $PATH
33237do
33238 IFS=$as_save_IFS
33239 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033240 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033242 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033244 break 2
33245 fi
33246done
cristy8b350f62009-11-15 23:12:43 +000033247 done
cristy3ed852e2009-09-05 21:47:34 +000033248IFS=$as_save_IFS
33249
33250 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
33251 ;;
33252esac
33253fi
33254GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
33255if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033257$as_echo "$GVCDecodeDelegate" >&6; }
33258else
cristy8b350f62009-11-15 23:12:43 +000033259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033260$as_echo "no" >&6; }
33261fi
33262
33263
33264# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
33265set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033267$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033268if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033269 $as_echo_n "(cached) " >&6
33270else
33271 case $DVIDecodeDelegate in
33272 [\\/]* | ?:[\\/]*)
33273 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
33274 ;;
33275 *)
33276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33277for as_dir in $PATH
33278do
33279 IFS=$as_save_IFS
33280 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033281 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033282 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033283 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033285 break 2
33286 fi
33287done
cristy8b350f62009-11-15 23:12:43 +000033288 done
cristy3ed852e2009-09-05 21:47:34 +000033289IFS=$as_save_IFS
33290
33291 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
33292 ;;
33293esac
33294fi
33295DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
33296if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033298$as_echo "$DVIDecodeDelegate" >&6; }
33299else
cristy8b350f62009-11-15 23:12:43 +000033300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033301$as_echo "no" >&6; }
33302fi
33303
33304
33305# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
33306set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033309if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033310 $as_echo_n "(cached) " >&6
33311else
33312 case $EchoDelegate in
33313 [\\/]* | ?:[\\/]*)
33314 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
33315 ;;
33316 *)
33317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33318for as_dir in $PATH
33319do
33320 IFS=$as_save_IFS
33321 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033322 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033324 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033326 break 2
33327 fi
33328done
cristy8b350f62009-11-15 23:12:43 +000033329 done
cristy3ed852e2009-09-05 21:47:34 +000033330IFS=$as_save_IFS
33331
33332 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
33333 ;;
33334esac
33335fi
33336EchoDelegate=$ac_cv_path_EchoDelegate
33337if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033339$as_echo "$EchoDelegate" >&6; }
33340else
cristy8b350f62009-11-15 23:12:43 +000033341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033342$as_echo "no" >&6; }
33343fi
33344
33345
33346# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
33347set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033348{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033350if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033351 $as_echo_n "(cached) " >&6
33352else
33353 case $EditorDelegate in
33354 [\\/]* | ?:[\\/]*)
33355 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
33356 ;;
33357 *)
33358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33359for as_dir in $PATH
33360do
33361 IFS=$as_save_IFS
33362 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033363 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033364 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033365 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033367 break 2
33368 fi
33369done
cristy8b350f62009-11-15 23:12:43 +000033370 done
cristy3ed852e2009-09-05 21:47:34 +000033371IFS=$as_save_IFS
33372
33373 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
33374 ;;
33375esac
33376fi
33377EditorDelegate=$ac_cv_path_EditorDelegate
33378if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033380$as_echo "$EditorDelegate" >&6; }
33381else
cristy8b350f62009-11-15 23:12:43 +000033382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033383$as_echo "no" >&6; }
33384fi
33385
33386
33387# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
33388set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033391if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033392 $as_echo_n "(cached) " >&6
33393else
33394 case $FIGDecodeDelegate in
33395 [\\/]* | ?:[\\/]*)
33396 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
33397 ;;
33398 *)
33399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33400for as_dir in $PATH
33401do
33402 IFS=$as_save_IFS
33403 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033404 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033405 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033406 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033407 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033408 break 2
33409 fi
33410done
cristy8b350f62009-11-15 23:12:43 +000033411 done
cristy3ed852e2009-09-05 21:47:34 +000033412IFS=$as_save_IFS
33413
33414 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
33415 ;;
33416esac
33417fi
33418FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
33419if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033421$as_echo "$FIGDecodeDelegate" >&6; }
33422else
cristy8b350f62009-11-15 23:12:43 +000033423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033424$as_echo "no" >&6; }
33425fi
33426
33427
33428# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
33429set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033432if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033433 $as_echo_n "(cached) " >&6
33434else
33435 case $ConvertDelegate in
33436 [\\/]* | ?:[\\/]*)
33437 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
33438 ;;
33439 *)
33440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33441for as_dir in $PATH
33442do
33443 IFS=$as_save_IFS
33444 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033445 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033446 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033447 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033449 break 2
33450 fi
33451done
cristy8b350f62009-11-15 23:12:43 +000033452 done
cristy3ed852e2009-09-05 21:47:34 +000033453IFS=$as_save_IFS
33454
33455 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
33456 ;;
33457esac
33458fi
33459ConvertDelegate=$ac_cv_path_ConvertDelegate
33460if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033462$as_echo "$ConvertDelegate" >&6; }
33463else
cristy8b350f62009-11-15 23:12:43 +000033464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033465$as_echo "no" >&6; }
33466fi
33467
33468
33469# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
33470set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033472$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033473if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033474 $as_echo_n "(cached) " >&6
33475else
33476 case $DisplayDelegate in
33477 [\\/]* | ?:[\\/]*)
33478 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
33479 ;;
33480 *)
33481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33482for as_dir in $PATH
33483do
33484 IFS=$as_save_IFS
33485 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033486 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033488 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033490 break 2
33491 fi
33492done
cristy8b350f62009-11-15 23:12:43 +000033493 done
cristy3ed852e2009-09-05 21:47:34 +000033494IFS=$as_save_IFS
33495
33496 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
33497 ;;
33498esac
33499fi
33500DisplayDelegate=$ac_cv_path_DisplayDelegate
33501if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033503$as_echo "$DisplayDelegate" >&6; }
33504else
cristy8b350f62009-11-15 23:12:43 +000033505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033506$as_echo "no" >&6; }
33507fi
33508
33509
33510# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
33511set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033514if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033515 $as_echo_n "(cached) " >&6
33516else
33517 case $MogrifyDelegate in
33518 [\\/]* | ?:[\\/]*)
33519 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
33520 ;;
33521 *)
33522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33523for as_dir in $PATH
33524do
33525 IFS=$as_save_IFS
33526 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033527 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033529 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531 break 2
33532 fi
33533done
cristy8b350f62009-11-15 23:12:43 +000033534 done
cristy3ed852e2009-09-05 21:47:34 +000033535IFS=$as_save_IFS
33536
33537 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
33538 ;;
33539esac
33540fi
33541MogrifyDelegate=$ac_cv_path_MogrifyDelegate
33542if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033544$as_echo "$MogrifyDelegate" >&6; }
33545else
cristy8b350f62009-11-15 23:12:43 +000033546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033547$as_echo "no" >&6; }
33548fi
33549
33550
33551# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
33552set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033553{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033554$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033555if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033556 $as_echo_n "(cached) " >&6
33557else
33558 case $GnuplotDecodeDelegate in
33559 [\\/]* | ?:[\\/]*)
33560 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
33561 ;;
33562 *)
33563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33564for as_dir in $PATH
33565do
33566 IFS=$as_save_IFS
33567 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033568 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033570 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572 break 2
33573 fi
33574done
cristy8b350f62009-11-15 23:12:43 +000033575 done
cristy3ed852e2009-09-05 21:47:34 +000033576IFS=$as_save_IFS
33577
33578 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
33579 ;;
33580esac
33581fi
33582GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
33583if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033585$as_echo "$GnuplotDecodeDelegate" >&6; }
33586else
cristy8b350f62009-11-15 23:12:43 +000033587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033588$as_echo "no" >&6; }
33589fi
33590
33591
cristy3ed852e2009-09-05 21:47:34 +000033592# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
33593set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033595$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033596if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033597 $as_echo_n "(cached) " >&6
33598else
33599 case $HPGLDecodeDelegate in
33600 [\\/]* | ?:[\\/]*)
33601 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
33602 ;;
33603 *)
33604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33605for as_dir in $PATH
33606do
33607 IFS=$as_save_IFS
33608 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033609 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033611 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033613 break 2
33614 fi
33615done
cristy8b350f62009-11-15 23:12:43 +000033616 done
cristy3ed852e2009-09-05 21:47:34 +000033617IFS=$as_save_IFS
33618
33619 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
33620 ;;
33621esac
33622fi
33623HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
33624if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033626$as_echo "$HPGLDecodeDelegate" >&6; }
33627else
cristy8b350f62009-11-15 23:12:43 +000033628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033629$as_echo "no" >&6; }
33630fi
33631
33632
33633# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
33634set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033636$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033637if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033638 $as_echo_n "(cached) " >&6
33639else
33640 case $HTMLDecodeDelegate in
33641 [\\/]* | ?:[\\/]*)
33642 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
33643 ;;
33644 *)
33645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33646for as_dir in $PATH
33647do
33648 IFS=$as_save_IFS
33649 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033652 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654 break 2
33655 fi
33656done
cristy8b350f62009-11-15 23:12:43 +000033657 done
cristy3ed852e2009-09-05 21:47:34 +000033658IFS=$as_save_IFS
33659
33660 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
33661 ;;
33662esac
33663fi
33664HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
33665if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033667$as_echo "$HTMLDecodeDelegate" >&6; }
33668else
cristy8b350f62009-11-15 23:12:43 +000033669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033670$as_echo "no" >&6; }
33671fi
33672
33673
33674# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
33675set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033677$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033678if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033679 $as_echo_n "(cached) " >&6
33680else
33681 case $ILBMDecodeDelegate in
33682 [\\/]* | ?:[\\/]*)
33683 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
33684 ;;
33685 *)
33686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33687for as_dir in $PATH
33688do
33689 IFS=$as_save_IFS
33690 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033691 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033693 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033695 break 2
33696 fi
33697done
cristy8b350f62009-11-15 23:12:43 +000033698 done
cristy3ed852e2009-09-05 21:47:34 +000033699IFS=$as_save_IFS
33700
33701 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
33702 ;;
33703esac
33704fi
33705ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
33706if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033708$as_echo "$ILBMDecodeDelegate" >&6; }
33709else
cristy8b350f62009-11-15 23:12:43 +000033710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033711$as_echo "no" >&6; }
33712fi
33713
33714
33715# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
33716set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033718$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033719if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033720 $as_echo_n "(cached) " >&6
33721else
33722 case $ILBMEncodeDelegate in
33723 [\\/]* | ?:[\\/]*)
33724 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
33725 ;;
33726 *)
33727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33728for as_dir in $PATH
33729do
33730 IFS=$as_save_IFS
33731 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033732 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033734 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736 break 2
33737 fi
33738done
cristy8b350f62009-11-15 23:12:43 +000033739 done
cristy3ed852e2009-09-05 21:47:34 +000033740IFS=$as_save_IFS
33741
33742 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
33743 ;;
33744esac
33745fi
33746ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
33747if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033749$as_echo "$ILBMEncodeDelegate" >&6; }
33750else
cristy8b350f62009-11-15 23:12:43 +000033751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033752$as_echo "no" >&6; }
33753fi
33754
33755
33756# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33757set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033758{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033759$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033760if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033761 $as_echo_n "(cached) " >&6
33762else
33763 case $LPDelegate in
33764 [\\/]* | ?:[\\/]*)
33765 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33766 ;;
33767 *)
33768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33769for as_dir in $PATH
33770do
33771 IFS=$as_save_IFS
33772 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033773 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033775 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033777 break 2
33778 fi
33779done
cristy8b350f62009-11-15 23:12:43 +000033780 done
cristy3ed852e2009-09-05 21:47:34 +000033781IFS=$as_save_IFS
33782
33783 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33784 ;;
33785esac
33786fi
33787LPDelegate=$ac_cv_path_LPDelegate
33788if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033790$as_echo "$LPDelegate" >&6; }
33791else
cristy8b350f62009-11-15 23:12:43 +000033792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033793$as_echo "no" >&6; }
33794fi
33795
33796
33797# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33798set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033800$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033801if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033802 $as_echo_n "(cached) " >&6
33803else
33804 case $LPRDelegate in
33805 [\\/]* | ?:[\\/]*)
33806 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33807 ;;
33808 *)
33809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33810for as_dir in $PATH
33811do
33812 IFS=$as_save_IFS
33813 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033814 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033816 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818 break 2
33819 fi
33820done
cristy8b350f62009-11-15 23:12:43 +000033821 done
cristy3ed852e2009-09-05 21:47:34 +000033822IFS=$as_save_IFS
33823
33824 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33825 ;;
33826esac
33827fi
33828LPRDelegate=$ac_cv_path_LPRDelegate
33829if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033831$as_echo "$LPRDelegate" >&6; }
33832else
cristy8b350f62009-11-15 23:12:43 +000033833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033834$as_echo "no" >&6; }
33835fi
33836
33837
cristy3ed852e2009-09-05 21:47:34 +000033838# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33839set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033841$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033842if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033843 $as_echo_n "(cached) " >&6
33844else
33845 case $LaunchDelegate in
33846 [\\/]* | ?:[\\/]*)
33847 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33848 ;;
33849 *)
33850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33851for as_dir in $PATH
33852do
33853 IFS=$as_save_IFS
33854 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033855 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033856 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033857 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859 break 2
33860 fi
33861done
cristy8b350f62009-11-15 23:12:43 +000033862 done
cristy3ed852e2009-09-05 21:47:34 +000033863IFS=$as_save_IFS
33864
33865 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33866 ;;
33867esac
33868fi
33869LaunchDelegate=$ac_cv_path_LaunchDelegate
33870if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033872$as_echo "$LaunchDelegate" >&6; }
33873else
cristy8b350f62009-11-15 23:12:43 +000033874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033875$as_echo "no" >&6; }
33876fi
33877
33878
33879# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33880set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033882$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033883if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033884 $as_echo_n "(cached) " >&6
33885else
33886 case $MANDelegate in
33887 [\\/]* | ?:[\\/]*)
33888 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33889 ;;
33890 *)
33891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33892for as_dir in $PATH
33893do
33894 IFS=$as_save_IFS
33895 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033896 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033898 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900 break 2
33901 fi
33902done
cristy8b350f62009-11-15 23:12:43 +000033903 done
cristy3ed852e2009-09-05 21:47:34 +000033904IFS=$as_save_IFS
33905
33906 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33907 ;;
33908esac
33909fi
33910MANDelegate=$ac_cv_path_MANDelegate
33911if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033913$as_echo "$MANDelegate" >&6; }
33914else
cristy8b350f62009-11-15 23:12:43 +000033915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033916$as_echo "no" >&6; }
33917fi
33918
33919
33920# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33921set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033922{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033923$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033924if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033925 $as_echo_n "(cached) " >&6
33926else
33927 case $MPEGDecodeDelegate in
33928 [\\/]* | ?:[\\/]*)
33929 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33930 ;;
33931 *)
33932 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33933for as_dir in $PATH
33934do
33935 IFS=$as_save_IFS
33936 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033937 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033938 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033939 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941 break 2
33942 fi
33943done
cristy8b350f62009-11-15 23:12:43 +000033944 done
cristy3ed852e2009-09-05 21:47:34 +000033945IFS=$as_save_IFS
33946
33947 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33948 ;;
33949esac
33950fi
33951MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33952if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033954$as_echo "$MPEGDecodeDelegate" >&6; }
33955else
cristy8b350f62009-11-15 23:12:43 +000033956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033957$as_echo "no" >&6; }
33958fi
33959
33960
33961# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33962set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033964$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033965if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033966 $as_echo_n "(cached) " >&6
33967else
33968 case $MPEGEncodeDelegate in
33969 [\\/]* | ?:[\\/]*)
33970 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33971 ;;
33972 *)
33973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33974for as_dir in $PATH
33975do
33976 IFS=$as_save_IFS
33977 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033978 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033980 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033982 break 2
33983 fi
33984done
cristy8b350f62009-11-15 23:12:43 +000033985 done
cristy3ed852e2009-09-05 21:47:34 +000033986IFS=$as_save_IFS
33987
33988 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33989 ;;
33990esac
33991fi
33992MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33993if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033995$as_echo "$MPEGEncodeDelegate" >&6; }
33996else
cristy8b350f62009-11-15 23:12:43 +000033997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033998$as_echo "no" >&6; }
33999fi
34000
34001
cristy935c86e2010-06-05 23:50:07 +000034002# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
34003set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
34004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34005$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034006if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000034007 $as_echo_n "(cached) " >&6
34008else
34009 case $MrSIDDecodeDelegate in
34010 [\\/]* | ?:[\\/]*)
34011 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
34012 ;;
34013 *)
34014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34015for as_dir in $PATH
34016do
34017 IFS=$as_save_IFS
34018 test -z "$as_dir" && as_dir=.
34019 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000034021 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34023 break 2
34024 fi
34025done
34026 done
34027IFS=$as_save_IFS
34028
34029 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
34030 ;;
34031esac
34032fi
34033MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
34034if test -n "$MrSIDDecodeDelegate"; then
34035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
34036$as_echo "$MrSIDDecodeDelegate" >&6; }
34037else
34038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34039$as_echo "no" >&6; }
34040fi
34041
34042
cristy3ed852e2009-09-05 21:47:34 +000034043# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
34044set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034045{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034046$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034047if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034048 $as_echo_n "(cached) " >&6
34049else
34050 case $MVDelegate in
34051 [\\/]* | ?:[\\/]*)
34052 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
34053 ;;
34054 *)
34055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34056for as_dir in $PATH
34057do
34058 IFS=$as_save_IFS
34059 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034060 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034062 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034064 break 2
34065 fi
34066done
cristy8b350f62009-11-15 23:12:43 +000034067 done
cristy3ed852e2009-09-05 21:47:34 +000034068IFS=$as_save_IFS
34069
34070 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
34071 ;;
34072esac
34073fi
34074MVDelegate=$ac_cv_path_MVDelegate
34075if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034077$as_echo "$MVDelegate" >&6; }
34078else
cristy8b350f62009-11-15 23:12:43 +000034079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034080$as_echo "no" >&6; }
34081fi
34082
34083
34084# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
34085set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034086{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034087$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034088if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034089 $as_echo_n "(cached) " >&6
34090else
34091 case $PCLDelegate in
34092 [\\/]* | ?:[\\/]*)
34093 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
34094 ;;
34095 *)
34096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34097for as_dir in $PATH
34098do
34099 IFS=$as_save_IFS
34100 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034101 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034103 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034105 break 2
34106 fi
34107done
cristy8b350f62009-11-15 23:12:43 +000034108 done
cristy3ed852e2009-09-05 21:47:34 +000034109IFS=$as_save_IFS
34110
34111 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
34112 ;;
34113esac
34114fi
34115PCLDelegate=$ac_cv_path_PCLDelegate
34116if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034118$as_echo "$PCLDelegate" >&6; }
34119else
cristy8b350f62009-11-15 23:12:43 +000034120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034121$as_echo "no" >&6; }
34122fi
34123
34124
34125# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
34126set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034128$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034129if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034130 $as_echo_n "(cached) " >&6
34131else
34132 case $PGPDecodeDelegate in
34133 [\\/]* | ?:[\\/]*)
34134 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
34135 ;;
34136 *)
34137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34138for as_dir in $PATH
34139do
34140 IFS=$as_save_IFS
34141 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034142 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034143 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034144 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034145 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034146 break 2
34147 fi
34148done
cristy8b350f62009-11-15 23:12:43 +000034149 done
cristy3ed852e2009-09-05 21:47:34 +000034150IFS=$as_save_IFS
34151
34152 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
34153 ;;
34154esac
34155fi
34156PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
34157if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034159$as_echo "$PGPDecodeDelegate" >&6; }
34160else
cristy8b350f62009-11-15 23:12:43 +000034161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034162$as_echo "no" >&6; }
34163fi
34164
34165
34166# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
34167set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034169$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034170if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034171 $as_echo_n "(cached) " >&6
34172else
34173 case $POVDelegate in
34174 [\\/]* | ?:[\\/]*)
34175 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
34176 ;;
34177 *)
34178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34179for as_dir in $PATH
34180do
34181 IFS=$as_save_IFS
34182 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034183 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034184 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034185 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034186 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034187 break 2
34188 fi
34189done
cristy8b350f62009-11-15 23:12:43 +000034190 done
cristy3ed852e2009-09-05 21:47:34 +000034191IFS=$as_save_IFS
34192
34193 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
34194 ;;
34195esac
34196fi
34197POVDelegate=$ac_cv_path_POVDelegate
34198if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034200$as_echo "$POVDelegate" >&6; }
34201else
cristy8b350f62009-11-15 23:12:43 +000034202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034203$as_echo "no" >&6; }
34204fi
34205
34206
34207for ac_prog in gsx gsc "$PSDelegateDefault"
34208do
34209 # Extract the first word of "$ac_prog", so it can be a program name with args.
34210set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034211{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034212$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034213if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034214 $as_echo_n "(cached) " >&6
34215else
34216 case $PSDelegate in
34217 [\\/]* | ?:[\\/]*)
34218 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
34219 ;;
34220 *)
34221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34222for as_dir in $PATH
34223do
34224 IFS=$as_save_IFS
34225 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034226 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034227 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034228 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034230 break 2
34231 fi
34232done
cristy8b350f62009-11-15 23:12:43 +000034233 done
cristy3ed852e2009-09-05 21:47:34 +000034234IFS=$as_save_IFS
34235
34236 ;;
34237esac
34238fi
34239PSDelegate=$ac_cv_path_PSDelegate
34240if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034242$as_echo "$PSDelegate" >&6; }
34243else
cristy8b350f62009-11-15 23:12:43 +000034244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034245$as_echo "no" >&6; }
34246fi
34247
34248
34249 test -n "$PSDelegate" && break
34250done
34251test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
34252
34253# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
34254set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034256$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034257if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034258 $as_echo_n "(cached) " >&6
34259else
34260 case $RLEEncodeDelegate in
34261 [\\/]* | ?:[\\/]*)
34262 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
34263 ;;
34264 *)
34265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34266for as_dir in $PATH
34267do
34268 IFS=$as_save_IFS
34269 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034270 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034271 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034272 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034273 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034274 break 2
34275 fi
34276done
cristy8b350f62009-11-15 23:12:43 +000034277 done
cristy3ed852e2009-09-05 21:47:34 +000034278IFS=$as_save_IFS
34279
34280 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
34281 ;;
34282esac
34283fi
34284RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
34285if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034287$as_echo "$RLEEncodeDelegate" >&6; }
34288else
cristy8b350f62009-11-15 23:12:43 +000034289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034290$as_echo "no" >&6; }
34291fi
34292
34293
34294# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
34295set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034297$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034298if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034299 $as_echo_n "(cached) " >&6
34300else
34301 case $RMDelegate in
34302 [\\/]* | ?:[\\/]*)
34303 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
34304 ;;
34305 *)
34306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34307for as_dir in $PATH
34308do
34309 IFS=$as_save_IFS
34310 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034311 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034312 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034313 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034315 break 2
34316 fi
34317done
cristy8b350f62009-11-15 23:12:43 +000034318 done
cristy3ed852e2009-09-05 21:47:34 +000034319IFS=$as_save_IFS
34320
34321 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
34322 ;;
34323esac
34324fi
34325RMDelegate=$ac_cv_path_RMDelegate
34326if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034328$as_echo "$RMDelegate" >&6; }
34329else
cristy8b350f62009-11-15 23:12:43 +000034330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034331$as_echo "no" >&6; }
34332fi
34333
34334
cristy4689cf02010-02-17 21:15:45 +000034335# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
34336set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
34337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34338$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034339if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000034340 $as_echo_n "(cached) " >&6
34341else
34342 case $RSVGDecodeDelegate in
34343 [\\/]* | ?:[\\/]*)
34344 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
34345 ;;
34346 *)
34347 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34348for as_dir in $PATH
34349do
34350 IFS=$as_save_IFS
34351 test -z "$as_dir" && as_dir=.
34352 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034353 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000034354 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34356 break 2
34357 fi
34358done
34359 done
34360IFS=$as_save_IFS
34361
34362 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
34363 ;;
34364esac
34365fi
34366RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
34367if test -n "$RSVGDecodeDelegate"; then
34368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
34369$as_echo "$RSVGDecodeDelegate" >&6; }
34370else
34371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34372$as_echo "no" >&6; }
34373fi
34374
34375
cristy3ed852e2009-09-05 21:47:34 +000034376# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
34377set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034379$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034380if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034381 $as_echo_n "(cached) " >&6
34382else
34383 case $SCANDecodeDelegate in
34384 [\\/]* | ?:[\\/]*)
34385 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
34386 ;;
34387 *)
34388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34389for as_dir in $PATH
34390do
34391 IFS=$as_save_IFS
34392 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034393 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034395 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034397 break 2
34398 fi
34399done
cristy8b350f62009-11-15 23:12:43 +000034400 done
cristy3ed852e2009-09-05 21:47:34 +000034401IFS=$as_save_IFS
34402
34403 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
34404 ;;
34405esac
34406fi
34407SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
34408if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo "$SCANDecodeDelegate" >&6; }
34411else
cristy8b350f62009-11-15 23:12:43 +000034412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034413$as_echo "no" >&6; }
34414fi
34415
34416
cristyec6934f2012-08-14 18:38:40 +000034417# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
34418set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
34419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34420$as_echo_n "checking for $ac_word... " >&6; }
34421if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
34422 $as_echo_n "(cached) " >&6
34423else
34424 case $SVGDecodeDelegate in
34425 [\\/]* | ?:[\\/]*)
34426 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
34427 ;;
34428 *)
34429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34430for as_dir in $PATH
34431do
34432 IFS=$as_save_IFS
34433 test -z "$as_dir" && as_dir=.
34434 for ac_exec_ext in '' $ac_executable_extensions; do
34435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
34436 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
34437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34438 break 2
34439 fi
34440done
34441 done
34442IFS=$as_save_IFS
34443
34444 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
34445 ;;
34446esac
34447fi
34448SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
34449if test -n "$SVGDecodeDelegate"; then
34450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
34451$as_echo "$SVGDecodeDelegate" >&6; }
34452else
34453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34454$as_echo "no" >&6; }
34455fi
34456
34457
cristy3ed852e2009-09-05 21:47:34 +000034458# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
34459set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034461$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034462if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034463 $as_echo_n "(cached) " >&6
34464else
34465 case $TXTDelegate in
34466 [\\/]* | ?:[\\/]*)
34467 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
34468 ;;
34469 *)
34470 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34471for as_dir in $PATH
34472do
34473 IFS=$as_save_IFS
34474 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034475 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034476 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034477 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034479 break 2
34480 fi
34481done
cristy8b350f62009-11-15 23:12:43 +000034482 done
cristy3ed852e2009-09-05 21:47:34 +000034483IFS=$as_save_IFS
34484
34485 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
34486 ;;
34487esac
34488fi
34489TXTDelegate=$ac_cv_path_TXTDelegate
34490if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034492$as_echo "$TXTDelegate" >&6; }
34493else
cristy8b350f62009-11-15 23:12:43 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo "no" >&6; }
34496fi
34497
34498
cristy5ac9ac82010-07-29 13:24:24 +000034499# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
34500set dummy "$UniconvertorDelegateDefault"; ac_word=$2
34501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
34502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034503if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000034504 $as_echo_n "(cached) " >&6
34505else
34506 case $UniconvertorDelegate in
34507 [\\/]* | ?:[\\/]*)
34508 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
34509 ;;
34510 *)
34511 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34512for as_dir in $PATH
34513do
34514 IFS=$as_save_IFS
34515 test -z "$as_dir" && as_dir=.
34516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000034518 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
34519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
34520 break 2
34521 fi
34522done
34523 done
34524IFS=$as_save_IFS
34525
34526 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
34527 ;;
34528esac
34529fi
34530UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
34531if test -n "$UniconvertorDelegate"; then
34532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
34533$as_echo "$UniconvertorDelegate" >&6; }
34534else
34535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
34536$as_echo "no" >&6; }
34537fi
34538
34539
cristy3ed852e2009-09-05 21:47:34 +000034540# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
34541set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034543$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034544if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034545 $as_echo_n "(cached) " >&6
34546else
34547 case $WMFDecodeDelegate in
34548 [\\/]* | ?:[\\/]*)
34549 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
34550 ;;
34551 *)
34552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34553for as_dir in $PATH
34554do
34555 IFS=$as_save_IFS
34556 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034557 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034558 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034559 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034561 break 2
34562 fi
34563done
cristy8b350f62009-11-15 23:12:43 +000034564 done
cristy3ed852e2009-09-05 21:47:34 +000034565IFS=$as_save_IFS
34566
34567 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
34568 ;;
34569esac
34570fi
34571WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
34572if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034574$as_echo "$WMFDecodeDelegate" >&6; }
34575else
cristy8b350f62009-11-15 23:12:43 +000034576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034577$as_echo "no" >&6; }
34578fi
34579
34580
34581# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
34582set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034584$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034585if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034586 $as_echo_n "(cached) " >&6
34587else
34588 case $WWWDecodeDelegate in
34589 [\\/]* | ?:[\\/]*)
34590 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
34591 ;;
34592 *)
34593 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34594for as_dir in $PATH
34595do
34596 IFS=$as_save_IFS
34597 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034600 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034602 break 2
34603 fi
34604done
cristy8b350f62009-11-15 23:12:43 +000034605 done
cristy3ed852e2009-09-05 21:47:34 +000034606IFS=$as_save_IFS
34607
34608 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
34609 ;;
34610esac
34611fi
34612WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
34613if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034615$as_echo "$WWWDecodeDelegate" >&6; }
34616else
cristy8b350f62009-11-15 23:12:43 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034618$as_echo "no" >&6; }
34619fi
34620
34621
34622# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
34623set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034625$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034626if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034627 $as_echo_n "(cached) " >&6
34628else
34629 case $XPSDelegate in
34630 [\\/]* | ?:[\\/]*)
34631 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
34632 ;;
34633 *)
34634 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34635for as_dir in $PATH
34636do
34637 IFS=$as_save_IFS
34638 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034639 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034640 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034641 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034642 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034643 break 2
34644 fi
34645done
cristy8b350f62009-11-15 23:12:43 +000034646 done
cristy3ed852e2009-09-05 21:47:34 +000034647IFS=$as_save_IFS
34648
34649 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
34650 ;;
34651esac
34652fi
34653XPSDelegate=$ac_cv_path_XPSDelegate
34654if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034656$as_echo "$XPSDelegate" >&6; }
34657else
cristy8b350f62009-11-15 23:12:43 +000034658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034659$as_echo "no" >&6; }
34660fi
34661
34662
34663# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
34664set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034665{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034666$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034667if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034668 $as_echo_n "(cached) " >&6
34669else
34670 case $ZipDelegate in
34671 [\\/]* | ?:[\\/]*)
34672 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
34673 ;;
34674 *)
34675 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34676for as_dir in $PATH
34677do
34678 IFS=$as_save_IFS
34679 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034680 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034681 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034682 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034683 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034684 break 2
34685 fi
34686done
cristy8b350f62009-11-15 23:12:43 +000034687 done
cristy3ed852e2009-09-05 21:47:34 +000034688IFS=$as_save_IFS
34689
34690 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
34691 ;;
34692esac
34693fi
34694ZipDelegate=$ac_cv_path_ZipDelegate
34695if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000034696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000034697$as_echo "$ZipDelegate" >&6; }
34698else
cristy8b350f62009-11-15 23:12:43 +000034699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034700$as_echo "no" >&6; }
34701fi
34702
34703
34704
34705# Prefer lpr to lp; lp needs options tacked on.
34706if test "$LPRDelegate" != no; then
34707 PrintDelegate="$LPRDelegate"
34708else
34709 PrintDelegate="$LPDelegate -c -s"
34710fi
34711
34712
34713# Installed ImageMagick utiltity paths
34714ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
34715DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
34716MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
34717
34718# Set delegate booleans
34719have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
34720have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
34721have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
34722have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
34723have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000034724have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034725have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
34726have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000034727have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
34728have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
34729
34730#
34731# Test for font directories
34732#
34733type_include_files=''
34734
cristy430a7312010-01-21 20:44:04 +000034735# Dejavu fonts.
34736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
34737$as_echo_n "checking for Dejavu fonts directory... " >&6; }
34738dejavu_font_dir=''
34739if test "${with_dejavu_font_dir}" != 'default'; then
34740 dejavu_font_dir="${with_dejavu_font_dir}/"
34741else
34742 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
34743 if test -f "${font_dir}DejaVuSerif.ttf"; then
34744 dejavu_font_dir="${font_dir}"
34745 break 1
34746 fi
34747 done
34748fi
34749if test "${dejavu_font_dir}x" != 'x'; then
34750 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034751 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
34752$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000034753else
cristy09b53e12011-10-14 12:47:22 +000034754 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34755$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034756fi
34757
34758
cristy3ed852e2009-09-05 21:47:34 +000034759# Windows
34760windows_font_dir=''
34761if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34762 windows_font_dir="${with_windows_font_dir}/"
34763fi
cristy430a7312010-01-21 20:44:04 +000034764if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034765 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34766 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34767 fi
34768 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34769 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34770 fi
34771 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34772 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34773 fi
34774fi
cristy430a7312010-01-21 20:44:04 +000034775if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034776 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34777fi
34778
34779
34780# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034782$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34783ghostscript_font_dir=''
34784if test "${with_gs_font_dir}" != 'default'; then
34785 ghostscript_font_dir="${with_gs_font_dir}/"
34786else
34787 if test "${native_win32_build}" = 'yes'; then
34788 # Native Windows Build
34789 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34790 if test -f "${font_dir}a010013l.pfb"; then
34791 ghostscript_font_dir="$font_dir"
34792 break 1
34793 fi
34794 done
34795 if test "${PSDelegate}" != 'gswin32c'; then
34796 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34797 fi
34798 else
34799 # Linux / Mac OS X / Unix Build
34800 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
34801 if test -f "${font_dir}a010013l.pfb"; then
34802 ghostscript_font_dir="${font_dir}"
34803 break 1
34804 fi
34805 done
34806 if test "${ghostscript_font_dir}x" = 'x'; then
34807 if test "$PSDelegate" != 'gs'; then
34808 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34809 fi
34810 fi
34811 fi
34812fi
34813if test "${ghostscript_font_dir}x" != 'x'; then
34814 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034815 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34816$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034817else
cristy09b53e12011-10-14 12:47:22 +000034818 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34819$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034820fi
34821
34822case "${build_os}" in
34823 mingw* )
34824 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34825 ;;
34826esac
34827
34828
34829
34830#
34831# Handle case where user doesn't want frozen paths
34832#
34833if test "$with_frozenpaths" != 'yes'; then
34834 # Re-set delegate definitions to default (no paths)
34835 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034836 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34837 BZIPDelegate="$BZIPDelegateDefault"
34838 BrowseDelegate="$BrowseDelegateDefault"
34839 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34840 CatDelegate="$CatDelegateDefault"
34841 ConvertDelegate="$ConvertDelegateDefault"
34842 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34843 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34844 EchoDelegate="$EchoDelegateDefault"
34845 EditorDelegate="$EditorDelegateDefault"
34846 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34847 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34848 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34849 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34850 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34851 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34852 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034853 LaunchDelegate="$LaunchDelegateDefault"
34854 MANDelegate="$MANDelegateDefault"
34855 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34856 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034857 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034858 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34859 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034860 PCLDelegate="$PCLDelegateDefault"
34861 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34862 POVDelegate="$POVDelegateDefault"
34863 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034864 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34865 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034866 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034867 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034868 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034869 ShowImageDelegate="$ShowImageDelegateDefault"
34870 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034871 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034872 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34873 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34874 XPSDelegate="$XPSDelegateDefault"
34875 ZipDelegate="$ZipDelegateDefault"
34876fi
34877
34878# Delegate substitutions
34879
34880
34881
34882
34883
34884
34885
34886
34887
34888
34889
34890
34891
34892
34893
34894
34895
34896
34897
34898
34899
34900
34901
34902
34903
34904
34905
34906
34907
34908
34909
34910
34911
34912
34913
34914
34915
34916
34917
34918
cristy3ed852e2009-09-05 21:47:34 +000034919#
34920# RPM support.
34921#
34922RPM=''
34923for ac_prog in gnutar gtar tar
34924do
34925 # Extract the first word of "$ac_prog", so it can be a program name with args.
34926set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034928$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034929if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034930 $as_echo_n "(cached) " >&6
34931else
34932 if test -n "$TAR"; then
34933 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34934else
34935as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34936for as_dir in $PATH
34937do
34938 IFS=$as_save_IFS
34939 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034940 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034941 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034942 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034943 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944 break 2
34945 fi
34946done
cristy8b350f62009-11-15 23:12:43 +000034947 done
cristy3ed852e2009-09-05 21:47:34 +000034948IFS=$as_save_IFS
34949
34950fi
34951fi
34952TAR=$ac_cv_prog_TAR
34953if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034955$as_echo "$TAR" >&6; }
34956else
cristy8b350f62009-11-15 23:12:43 +000034957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034958$as_echo "no" >&6; }
34959fi
34960
34961
34962 test -n "$TAR" && break
34963done
34964
34965for ac_prog in perl
34966do
34967 # Extract the first word of "$ac_prog", so it can be a program name with args.
34968set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034970$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034971if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034972 $as_echo_n "(cached) " >&6
34973else
34974 if test -n "$PERL"; then
34975 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34976else
34977as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34978for as_dir in $PATH
34979do
34980 IFS=$as_save_IFS
34981 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034982 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034983 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034984 ac_cv_prog_PERL="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034985 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034986 break 2
34987 fi
34988done
cristy8b350f62009-11-15 23:12:43 +000034989 done
cristy3ed852e2009-09-05 21:47:34 +000034990IFS=$as_save_IFS
34991
34992fi
34993fi
34994PERL=$ac_cv_prog_PERL
34995if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034997$as_echo "$PERL" >&6; }
34998else
cristy8b350f62009-11-15 23:12:43 +000034999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035000$as_echo "no" >&6; }
35001fi
35002
35003
35004 test -n "$PERL" && break
35005done
35006
35007for ac_prog in rpmbuild rpm
35008do
35009 # Extract the first word of "$ac_prog", so it can be a program name with args.
35010set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035012$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035013if ${ac_cv_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035014 $as_echo_n "(cached) " >&6
35015else
35016 if test -n "$RPM"; then
35017 ac_cv_prog_RPM="$RPM" # Let the user override the test.
35018else
35019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35020for as_dir in $PATH
35021do
35022 IFS=$as_save_IFS
35023 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035024 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035025 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035026 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035027 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035028 break 2
35029 fi
35030done
cristy8b350f62009-11-15 23:12:43 +000035031 done
cristy3ed852e2009-09-05 21:47:34 +000035032IFS=$as_save_IFS
35033
35034fi
35035fi
35036RPM=$ac_cv_prog_RPM
35037if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000035038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000035039$as_echo "$RPM" >&6; }
35040else
cristy8b350f62009-11-15 23:12:43 +000035041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035042$as_echo "no" >&6; }
35043fi
35044
35045
35046 test -n "$RPM" && break
35047done
35048
35049
cristy73bd4a52010-10-05 11:24:23 +000035050ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
35051
35052
35053AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
35054
35055
35056AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
35057
35058
35059AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
35060
35061
35062 if test "x$RPM" != "x" ; then
35063 RPM_DELEGATE_TRUE=
35064 RPM_DELEGATE_FALSE='#'
35065else
35066 RPM_DELEGATE_TRUE='#'
35067 RPM_DELEGATE_FALSE=
35068fi
35069
cristy3ed852e2009-09-05 21:47:34 +000035070
35071#
35072# 7ZIP support (http://p7zip.sourceforge.net/)
35073#
35074P7ZIP=''
35075for ac_prog in 7za
35076do
35077 # Extract the first word of "$ac_prog", so it can be a program name with args.
35078set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035080$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035081if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035082 $as_echo_n "(cached) " >&6
35083else
35084 if test -n "$P7ZIP"; then
35085 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
35086else
35087as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35088for as_dir in $PATH
35089do
35090 IFS=$as_save_IFS
35091 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035092 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035094 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035096 break 2
35097 fi
35098done
cristy8b350f62009-11-15 23:12:43 +000035099 done
cristy3ed852e2009-09-05 21:47:34 +000035100IFS=$as_save_IFS
35101
35102fi
35103fi
35104P7ZIP=$ac_cv_prog_P7ZIP
35105if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035107$as_echo "$P7ZIP" >&6; }
35108else
cristy8b350f62009-11-15 23:12:43 +000035109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035110$as_echo "no" >&6; }
35111fi
35112
35113
35114 test -n "$P7ZIP" && break
35115done
35116
35117
cristy73bd4a52010-10-05 11:24:23 +000035118 if test "x$P7ZIP" != "x" ; then
35119 P7ZIP_DELEGATE_TRUE=
35120 P7ZIP_DELEGATE_FALSE='#'
35121else
35122 P7ZIP_DELEGATE_TRUE='#'
35123 P7ZIP_DELEGATE_FALSE=
35124fi
35125
cristy3ed852e2009-09-05 21:47:34 +000035126
35127#
35128# ZIP support (http://www.info-zip.org/Zip.html)
35129#
35130ZIP=''
35131for ac_prog in zip
35132do
35133 # Extract the first word of "$ac_prog", so it can be a program name with args.
35134set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035136$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035137if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035138 $as_echo_n "(cached) " >&6
35139else
35140 if test -n "$ZIP"; then
35141 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
35142else
35143as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35144for as_dir in $PATH
35145do
35146 IFS=$as_save_IFS
35147 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035148 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035149 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035150 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000035151 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152 break 2
35153 fi
35154done
cristy8b350f62009-11-15 23:12:43 +000035155 done
cristy3ed852e2009-09-05 21:47:34 +000035156IFS=$as_save_IFS
35157
35158fi
35159fi
35160ZIP=$ac_cv_prog_ZIP
35161if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000035162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000035163$as_echo "$ZIP" >&6; }
35164else
cristy8b350f62009-11-15 23:12:43 +000035165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035166$as_echo "no" >&6; }
35167fi
35168
35169
35170 test -n "$ZIP" && break
35171done
35172
35173
cristy73bd4a52010-10-05 11:24:23 +000035174 if test "x$ZIP" != "x" ; then
35175 ZIP_DELEGATE_TRUE=
35176 ZIP_DELEGATE_FALSE='#'
35177else
35178 ZIP_DELEGATE_TRUE='#'
35179 ZIP_DELEGATE_FALSE=
35180fi
35181
cristy3ed852e2009-09-05 21:47:34 +000035182
35183#
35184# GhostPCL related configuration.
35185#
35186PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000035187PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000035188PCLMonoDevice=pbmraw
35189if test -z "$PCLVersion"; then
35190 PCLVersion='unknown'
35191fi
35192if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035193 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35194$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035196$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035197 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35198$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035199 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000035200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035201$as_echo_n "checking for pcl color device... " >&6; }
35202 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35203 :
35204 else
35205 PCLColorDevice=ppmraw
35206 fi
cristy09b53e12011-10-14 12:47:22 +000035207 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
35208$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035209
35210 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035212$as_echo_n "checking for pcl CMYK device... " >&6; }
35213 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35214 :
35215 else
35216 PCLCMYKDevice=$PCLColorDevice
35217 fi
cristy09b53e12011-10-14 12:47:22 +000035218 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
35219$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035220
35221 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035223$as_echo_n "checking for pcl mono device... " >&6; }
35224 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35225 :
35226 else
35227 PCLMonoDevice=$PCLColorDevice
35228 fi
cristy09b53e12011-10-14 12:47:22 +000035229 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
35230$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035231fi
35232
35233
35234
35235
35236
35237
35238#
35239# GhostXPS related configuration.
35240#
35241XPSColorDevice=ppmraw
35242XPSCMYKDevice=bmpsep8
35243XPSMonoDevice=pbmraw
35244if test -z "$XPSVersion"; then
35245 XPSVersion='unknown'
35246fi
35247if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035248 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35249$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035251$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035252 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35253$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035254 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035256$as_echo_n "checking for xps color device... " >&6; }
35257 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35258 :
35259 else
35260 XPSColorDevice=ppmraw
35261 fi
cristy09b53e12011-10-14 12:47:22 +000035262 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
35263$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035264
35265 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035267$as_echo_n "checking for xps CMYK device... " >&6; }
35268 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35269 :
35270 else
35271 XPSCMYKDevice=$XPSColorDevice
35272 fi
cristy09b53e12011-10-14 12:47:22 +000035273 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
35274$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035275
35276 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035278$as_echo_n "checking for xps mono device... " >&6; }
35279 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35280 :
35281 else
35282 XPSMonoDevice=$XPSColorDevice
35283 fi
cristy09b53e12011-10-14 12:47:22 +000035284 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
35285$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035286fi
35287
35288
35289
35290
35291
35292
35293#
35294# Ghostscript related configuration.
35295#
cristya97426c2011-02-04 01:41:27 +000035296GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000035297GSColorDevice=pnmraw
35298GSCMYKDevice=pam
35299GSMonoDevice=pbmraw
35300GSPDFDevice=pdfwrite
35301GSPSDevice=pswrite
35302GSEPSDevice=epswrite
35303GSVersion='unknown'
35304if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000035305 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35306$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000035308$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035309 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35310$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000035311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000035312$as_echo_n "checking for Ghostscript version... " >&6; }
35313 if GSVersion=`$PSDelegate --version`; then
35314 :
35315 else
35316 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
35317 fi
cristy09b53e12011-10-14 12:47:22 +000035318 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
35319$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035320
35321 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000035322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035323$as_echo_n "checking for gs alpha device... " >&6; }
35324 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35325 :
35326 else
35327 GSAlphaDevice=pnmraw
35328 fi
cristy09b53e12011-10-14 12:47:22 +000035329 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
35330$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035331
35332 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000035333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035334$as_echo_n "checking for gs color device... " >&6; }
35335 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35336 :
35337 else
35338 GSColorDevice=pnmraw
35339 fi
cristy09b53e12011-10-14 12:47:22 +000035340 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
35341$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035342
35343 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000035344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035345$as_echo_n "checking for gs CMYK device... " >&6; }
35346 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35347 :
35348 else
35349 GSCMYKDevice=bmpsep8
35350 fi
cristy09b53e12011-10-14 12:47:22 +000035351 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
35352$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035353
35354 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000035355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035356$as_echo_n "checking for gs mono device... " >&6; }
35357 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35358 :
35359 else
35360 GSMonoDevice=$GSColorDevice
35361 fi
cristy09b53e12011-10-14 12:47:22 +000035362 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
35363$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035364
35365 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000035366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035367$as_echo_n "checking for gs PDF writing device... " >&6; }
35368 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35369 :
35370 else
35371 GSPDFDevice=nodevice
35372 fi
cristy09b53e12011-10-14 12:47:22 +000035373 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
35374$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035375
35376 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000035377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035378$as_echo_n "checking for gs PS writing device... " >&6; }
35379 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35380 :
35381 else
35382 GSPSDevice=nodevice
35383 fi
cristy09b53e12011-10-14 12:47:22 +000035384 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
35385$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035386
35387 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000035388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000035389$as_echo_n "checking for gs EPS writing device... " >&6; }
35390 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
35391 :
35392 else
35393 GSEPSDevice=nodevice
35394 fi
cristy09b53e12011-10-14 12:47:22 +000035395 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
35396$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035397fi
35398
35399
35400
35401
35402
35403
35404
35405
35406
35407
35408#
35409# PerlMagick-related configuration
35410#
35411
35412# Look for PERL if PerlMagick requested
35413# If name/path of desired PERL interpreter is specified, look for that one first
35414have_perl='no'
35415if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000035416 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35417$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035419$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000035420 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
35421$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035422 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000035424$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035425if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035426 $as_echo_n "(cached) " >&6
35427else
35428 ac_cv_path_PERL="$with_perl"
35429fi
cristy8b350f62009-11-15 23:12:43 +000035430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035431$as_echo "$ac_cv_path_PERL" >&6; };
35432 PERL=$ac_cv_path_PERL
35433 have_perl="$ac_cv_path_PERL"
35434 else
35435 for ac_prog in perl perl5
35436do
35437 # Extract the first word of "$ac_prog", so it can be a program name with args.
35438set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000035439{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000035440$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035441if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035442 $as_echo_n "(cached) " >&6
35443else
35444 case $PERL in
35445 [\\/]* | ?:[\\/]*)
35446 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
35447 ;;
35448 *)
35449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35450for as_dir in $PATH
35451do
35452 IFS=$as_save_IFS
35453 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035454 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000035455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000035456 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000035457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000035458 break 2
35459 fi
35460done
cristy8b350f62009-11-15 23:12:43 +000035461 done
cristy3ed852e2009-09-05 21:47:34 +000035462IFS=$as_save_IFS
35463
35464 ;;
35465esac
35466fi
35467PERL=$ac_cv_path_PERL
35468if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000035469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000035470$as_echo "$PERL" >&6; }
35471else
cristy8b350f62009-11-15 23:12:43 +000035472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000035473$as_echo "no" >&6; }
35474fi
35475
35476
35477 test -n "$PERL" && break
35478done
35479 if test "$ac_cv_path_PERL"; then
35480 have_perl="$ac_cv_path_PERL"
35481 fi
35482 fi
35483fi
35484
cristy949301e2010-01-06 01:38:40 +000035485if test "$with_perl" != 'yes' ; then
35486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
35487fi
35488
35489PERL_SUPPORTS_DESTDIR='no'
35490
cristy3ed852e2009-09-05 21:47:34 +000035491with_perl_static='no'
35492with_perl_dynamic='no'
35493if test "$have_perl" != 'no'; then
35494 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
35495 with_perl_static='yes'
35496 fi
35497 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
35498 with_perl_dynamic='yes'
35499 fi
35500 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000035501
35502
35503
35504
35505 if test -n "$PERL"; then :
35506
35507 ax_perl_version="5.8.1"
35508
35509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
35510$as_echo_n "checking for perl version... " >&6; }
35511
35512 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
35513
35514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
35515$as_echo "$perl_version" >&6; }
35516
35517 PERL_VERSION=$perl_version
35518
35519
35520
35521
35522
35523 # Used to indicate true or false condition
35524 ax_compare_version=false
35525
35526 # Convert the two version strings to be compared into a format that
35527 # allows a simple string comparison. The end result is that a version
35528 # string of the form 1.12.5-r617 will be converted to the form
35529 # 0001001200050617. In other words, each number is zero padded to four
35530 # digits, and non digits are removed.
35531
35532 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35533 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35534 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35535 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35536 -e 's/[^0-9]//g'`
35537
35538
35539 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
35540 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
35541 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
35542 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
35543 -e 's/[^0-9]//g'`
35544
35545
35546 ax_compare_version=`echo "x$ax_compare_version_A
35547x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
35548
35549
35550
35551 if test "$ax_compare_version" = "true" ; then
35552
35553 :
35554 PERL_SUPPORTS_DESTDIR='yes'
35555
35556 else
35557 :
35558 PERL_SUPPORTS_DESTDIR='no'
35559
35560 fi
35561
35562
35563else
35564
35565 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
35566$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
35567 PERL_SUPPORTS_DESTDIR='no'
35568
cristy3ed852e2009-09-05 21:47:34 +000035569fi
cristy73bd4a52010-10-05 11:24:23 +000035570
35571fi
35572 if test "$have_perl" != 'no'; then
35573 WITH_PERL_TRUE=
35574 WITH_PERL_FALSE='#'
35575else
35576 WITH_PERL_TRUE='#'
35577 WITH_PERL_FALSE=
35578fi
35579
35580 if test $with_perl_static = 'yes'; then
35581 WITH_PERL_STATIC_TRUE=
35582 WITH_PERL_STATIC_FALSE='#'
35583else
35584 WITH_PERL_STATIC_TRUE='#'
35585 WITH_PERL_STATIC_FALSE=
35586fi
35587
35588 if test $with_perl_dynamic = 'yes'; then
35589 WITH_PERL_DYNAMIC_TRUE=
35590 WITH_PERL_DYNAMIC_FALSE='#'
35591else
35592 WITH_PERL_DYNAMIC_TRUE='#'
35593 WITH_PERL_DYNAMIC_FALSE=
35594fi
35595
cristy3ed852e2009-09-05 21:47:34 +000035596
35597
35598# Determine path to pick up MagickCore library from for use with building PerlMagick
35599MAGICKCORE_PATH="${LIB_DIR}"
35600if test $with_perl_static = 'yes'; then
35601 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
35602 libtool_objdir=$objdir
35603
35604 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000035605 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000035606fi
35607
35608
35609# Create a simple string containing format names for all delegate libraries
35610DELEGATES=''
35611if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
35612if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
35613if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
35614if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
35615if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
35616if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
35617if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
35618if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
35619if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
35620if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
35621if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
35622if test "$have_jpeg" = 'yes'; then
35623 DELEGATES="$DELEGATES jpeg";
35624 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
35625fi
35626if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000035627if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000035628if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
35629if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000035630if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000035631if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
35632if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000035633if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000035634if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
35635if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
35636if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
35637if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
35638if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
35639if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
35640if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
35641
35642
35643
35644#
35645# Handle special compiler flags
35646#
35647
35648# Add '-p' if prof source profiling support enabled
35649if test "$enable_prof" = 'yes'; then
35650 CFLAGS="-p $CFLAGS"
35651 CXXFLAGS="-p $CXXFLAGS"
35652 LDFLAGS="-p $LDFLAGS"
35653fi
35654
35655# Add '-pg' if gprof source profiling support enabled
35656if test "$enable_gprof" = 'yes'; then
35657 CFLAGS="-pg $CFLAGS"
35658 CXXFLAGS="-pg $CXXFLAGS"
35659 LDFLAGS="-pg $LDFLAGS"
35660fi
35661
35662# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
35663# This is a gcc-specific feature
35664if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000035665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035666$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035667if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035668 $as_echo_n "(cached) " >&6
35669else
35670 ac_check_lib_save_LIBS=$LIBS
35671LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035672cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035673/* end confdefs.h. */
35674
35675/* Override any GCC internal prototype to avoid an error.
35676 Use char because int might match the return type of a GCC
35677 builtin and then its argument prototype would still apply. */
35678#ifdef __cplusplus
35679extern "C"
35680#endif
35681char _gcov_init ();
35682int
35683main ()
35684{
35685return _gcov_init ();
35686 ;
35687 return 0;
35688}
35689_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035690if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035691 ac_cv_lib_gcov__gcov_init=yes
35692else
cristy8b350f62009-11-15 23:12:43 +000035693 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035694fi
cristy8b350f62009-11-15 23:12:43 +000035695rm -f core conftest.err conftest.$ac_objext \
35696 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035697LIBS=$ac_check_lib_save_LIBS
35698fi
cristy8b350f62009-11-15 23:12:43 +000035699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035700$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035701if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035702 cat >>confdefs.h <<_ACEOF
35703#define HAVE_LIBGCOV 1
35704_ACEOF
35705
35706 LIBS="-lgcov $LIBS"
35707
35708fi
35709
cristy8b350f62009-11-15 23:12:43 +000035710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000035711$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000035712if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000035713 $as_echo_n "(cached) " >&6
35714else
35715 ac_check_lib_save_LIBS=$LIBS
35716LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000035717cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035718/* end confdefs.h. */
35719
35720/* Override any GCC internal prototype to avoid an error.
35721 Use char because int might match the return type of a GCC
35722 builtin and then its argument prototype would still apply. */
35723#ifdef __cplusplus
35724extern "C"
35725#endif
35726char __gcov_init ();
35727int
35728main ()
35729{
35730return __gcov_init ();
35731 ;
35732 return 0;
35733}
35734_ACEOF
cristy8b350f62009-11-15 23:12:43 +000035735if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000035736 ac_cv_lib_gcov___gcov_init=yes
35737else
cristy8b350f62009-11-15 23:12:43 +000035738 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000035739fi
cristy8b350f62009-11-15 23:12:43 +000035740rm -f core conftest.err conftest.$ac_objext \
35741 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000035742LIBS=$ac_check_lib_save_LIBS
35743fi
cristy8b350f62009-11-15 23:12:43 +000035744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000035745$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000035746if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000035747 cat >>confdefs.h <<_ACEOF
35748#define HAVE_LIBGCOV 1
35749_ACEOF
35750
35751 LIBS="-lgcov $LIBS"
35752
35753fi
35754
35755 case "$target_os" in
35756 darwin*)
35757 OSX_GCOV_LDFLAG="-Wl,-single_module"
35758 ;;
35759 *)
35760 OSX_GCOV_LDFLAG=""
35761 ;;
35762 esac
35763
35764 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35765 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35766 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35767fi
35768
35769#
35770# Build library dependency list for libMagickCore
35771#
35772
35773MAGICK_LIBLTDL='' # Libltdl for build
35774MAGICK_API_LIBLTDL='' # libltdl for dependent application (API) build
35775MAGICK_LTDLDEPS='' # extra libltdl dependencies
cristyc6722092012-10-14 00:19:31 +000035776if test "$with_ltdl" != 'no' ; then
35777 MAGICK_API_LIBLTDL='-lltdl'
cristy3ed852e2009-09-05 21:47:34 +000035778 MAGICK_LIBLTDL=${LIBLTDL}
35779 MAGICK_LTDLDEPS=${LTDLDEPS}
35780fi
35781
35782
35783
cristyc6722092012-10-14 00:19:31 +000035784if test "$build_modules" != 'no'; then
cristy3a75f062012-09-08 23:29:40 +000035785 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 +000035786else
cristy3a75f062012-09-08 23:29:40 +000035787 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 +000035788fi
35789
35790
35791#
35792# Remove extraneous spaces from output variables (asthetic)
35793#
35794X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35795X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35796X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35797X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35798
35799CC=`echo $CC | sed -e 's/ */ /g'`
35800CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35801CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35802CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35803DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35804DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35805LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35806TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35807MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35808#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35809
35810# Pass only user-provided LIBS as "global" libraries
35811LIBS=$USER_LIBS
35812
35813#AC_SUBST(CPPFLAGS)
35814
35815#AC_SUBST(LDFLAGS)
35816#AC_SUBST(X_PRE_LIBS)
35817#AC_SUBST(X_LIBS)
35818#AC_SUBST(X_EXTRA_LIBS)
35819
35820MAGICK_CFLAGS=$CFLAGS
35821MAGICK_CXXFLAGS="$CXXFLAGS"
35822MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35823MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35824MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035825MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035826
35827
35828
35829
35830
35831
35832
35833
cristyfd9dcd42010-08-08 18:07:02 +000035834
cristy3ed852e2009-09-05 21:47:34 +000035835# Set configured scripts to executable.
35836ac_config_commands="$ac_config_commands default"
35837
cristy2bd4b6e2012-07-22 15:29:11 +000035838ac_config_commands="$ac_config_commands magick.sh.in"
35839
cristy3ed852e2009-09-05 21:47:34 +000035840ac_config_commands="$ac_config_commands MagickCore-config.in"
35841
cristy3ed852e2009-09-05 21:47:34 +000035842ac_config_commands="$ac_config_commands MagickWand-config.in"
35843
cristy3ed852e2009-09-05 21:47:34 +000035844ac_config_commands="$ac_config_commands Magick++-config.in"
35845
35846ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35847
35848
cristy09b53e12011-10-14 12:47:22 +000035849{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35850$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35851{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35852$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035853cat >confcache <<\_ACEOF
35854# This file is a shell script that caches the results of configure
35855# tests run on this system so they can be shared between configure
35856# scripts and configure runs, see configure's option --config-cache.
35857# It is not useful on other systems. If it contains results you don't
35858# want to keep, you may remove or edit it.
35859#
35860# config.status only pays attention to the cache file if you give it
35861# the --recheck option to rerun configure.
35862#
35863# `ac_cv_env_foo' variables (set or unset) will be overridden when
35864# loading this file, other *unset* `ac_cv_foo' will be assigned the
35865# following values.
35866
35867_ACEOF
35868
35869# The following way of writing the cache mishandles newlines in values,
35870# but we know of no workaround that is simple, portable, and efficient.
35871# So, we kill variables containing newlines.
35872# Ultrix sh set writes to stderr and can't be redirected directly,
35873# and sets the high bit in the cache file unless we assign to the vars.
35874(
35875 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35876 eval ac_val=\$$ac_var
35877 case $ac_val in #(
35878 *${as_nl}*)
35879 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035880 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035881$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35882 esac
35883 case $ac_var in #(
35884 _ | IFS | as_nl) ;; #(
35885 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035886 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035887 esac ;;
35888 esac
35889 done
35890
35891 (set) 2>&1 |
35892 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35893 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035894 # `set' does not quote correctly, so add quotes: double-quote
35895 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035896 sed -n \
35897 "s/'/'\\\\''/g;
35898 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35899 ;; #(
35900 *)
35901 # `set' quotes correctly as required by POSIX, so do not add quotes.
35902 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35903 ;;
35904 esac |
35905 sort
35906) |
35907 sed '
35908 /^ac_cv_env_/b end
35909 t clear
35910 :clear
35911 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35912 t end
35913 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35914 :end' >>confcache
35915if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35916 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035917 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035918 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035919$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035920 if test ! -f "$cache_file" || test -h "$cache_file"; then
35921 cat confcache >"$cache_file"
35922 else
35923 case $cache_file in #(
35924 */* | ?:*)
35925 mv -f confcache "$cache_file"$$ &&
35926 mv -f "$cache_file"$$ "$cache_file" ;; #(
35927 *)
35928 mv -f confcache "$cache_file" ;;
35929 esac
35930 fi
35931 fi
cristy3ed852e2009-09-05 21:47:34 +000035932 else
cristy8b350f62009-11-15 23:12:43 +000035933 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035934$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35935 fi
35936fi
35937rm -f confcache
35938
35939test "x$prefix" = xNONE && prefix=$ac_default_prefix
35940# Let make expand exec_prefix.
35941test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35942
35943DEFS=-DHAVE_CONFIG_H
35944
35945ac_libobjs=
35946ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035947U=
cristy3ed852e2009-09-05 21:47:34 +000035948for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35949 # 1. Remove the extension, and $U if already installed.
35950 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35951 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35952 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35953 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035954 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35955 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035956done
35957LIBOBJS=$ac_libobjs
35958
35959LTLIBOBJS=$ac_ltlibobjs
35960
35961
cristyc0890a62012-07-19 00:18:20 +000035962{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35963$as_echo_n "checking that generated files are newer than configure... " >&6; }
35964 if test -n "$am_sleep_pid"; then
35965 # Hide warnings about reused PIDs.
35966 wait $am_sleep_pid 2>/dev/null
35967 fi
35968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35969$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035970 if test -n "$EXEEXT"; then
35971 am__EXEEXT_TRUE=
35972 am__EXEEXT_FALSE='#'
35973else
35974 am__EXEEXT_TRUE='#'
35975 am__EXEEXT_FALSE=
35976fi
cristy3ed852e2009-09-05 21:47:34 +000035977
cristy73bd4a52010-10-05 11:24:23 +000035978if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035979 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035980Usually this means the macro was only invoked conditionally." "$LINENO" 5
35981fi
35982if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035983 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035984Usually this means the macro was only invoked conditionally." "$LINENO" 5
35985fi
35986if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035987 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035988Usually this means the macro was only invoked conditionally." "$LINENO" 5
35989fi
35990if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035991 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035992Usually this means the macro was only invoked conditionally." "$LINENO" 5
35993fi
35994if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035995 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035996Usually this means the macro was only invoked conditionally." "$LINENO" 5
35997fi
35998if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035999 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036000Usually this means the macro was only invoked conditionally." "$LINENO" 5
36001fi
36002if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036003 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036004Usually this means the macro was only invoked conditionally." "$LINENO" 5
36005fi
36006if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036007 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036008Usually this means the macro was only invoked conditionally." "$LINENO" 5
36009fi
cristy73bd4a52010-10-05 11:24:23 +000036010if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036011 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036012Usually this means the macro was only invoked conditionally." "$LINENO" 5
36013fi
36014if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036015 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036016Usually this means the macro was only invoked conditionally." "$LINENO" 5
36017fi
36018LT_CONFIG_H=config/config.h
36019
36020 _ltdl_libobjs=
36021 _ltdl_ltlibobjs=
36022 if test -n "$_LT_LIBOBJS"; then
36023 # Remove the extension.
36024 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36025 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36026 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36027 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36028 done
36029 fi
36030 ltdl_LIBOBJS=$_ltdl_libobjs
36031
36032 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36033
36034
36035if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036036 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036037Usually this means the macro was only invoked conditionally." "$LINENO" 5
36038fi
36039if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036040 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036041Usually this means the macro was only invoked conditionally." "$LINENO" 5
36042fi
36043if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036044 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036045Usually this means the macro was only invoked conditionally." "$LINENO" 5
36046fi
36047if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036048 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036049Usually this means the macro was only invoked conditionally." "$LINENO" 5
36050fi
cristy71d8c202012-03-20 17:05:01 +000036051if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
36052 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
36053Usually this means the macro was only invoked conditionally." "$LINENO" 5
36054fi
cristy73bd4a52010-10-05 11:24:23 +000036055
36056if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036057 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036058Usually this means the macro was only invoked conditionally." "$LINENO" 5
36059fi
36060if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036061 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036062Usually this means the macro was only invoked conditionally." "$LINENO" 5
36063fi
36064if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036065 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036066Usually this means the macro was only invoked conditionally." "$LINENO" 5
36067fi
36068if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036069 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036070Usually this means the macro was only invoked conditionally." "$LINENO" 5
36071fi
36072if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036073 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036074Usually this means the macro was only invoked conditionally." "$LINENO" 5
36075fi
36076if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036077 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036078Usually this means the macro was only invoked conditionally." "$LINENO" 5
36079fi
36080if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036081 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036082Usually this means the macro was only invoked conditionally." "$LINENO" 5
36083fi
36084if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036085 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036086Usually this means the macro was only invoked conditionally." "$LINENO" 5
36087fi
36088if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036089 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036090Usually this means the macro was only invoked conditionally." "$LINENO" 5
36091fi
36092if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036093 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036094Usually this means the macro was only invoked conditionally." "$LINENO" 5
36095fi
36096if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036097 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036098Usually this means the macro was only invoked conditionally." "$LINENO" 5
36099fi
36100if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036101 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036102Usually this means the macro was only invoked conditionally." "$LINENO" 5
36103fi
36104if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036105 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036106Usually this means the macro was only invoked conditionally." "$LINENO" 5
36107fi
36108if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036109 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036110Usually this means the macro was only invoked conditionally." "$LINENO" 5
36111fi
36112if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036113 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036114Usually this means the macro was only invoked conditionally." "$LINENO" 5
36115fi
36116if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036117 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036118Usually this means the macro was only invoked conditionally." "$LINENO" 5
36119fi
36120if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036121 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036122Usually this means the macro was only invoked conditionally." "$LINENO" 5
36123fi
36124if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036125 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036126Usually this means the macro was only invoked conditionally." "$LINENO" 5
36127fi
36128if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036129 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036130Usually this means the macro was only invoked conditionally." "$LINENO" 5
36131fi
36132if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036133 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036134Usually this means the macro was only invoked conditionally." "$LINENO" 5
36135fi
cristyfbb0ef02010-12-19 02:32:11 +000036136if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
36137 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
36138Usually this means the macro was only invoked conditionally." "$LINENO" 5
36139fi
cristy73bd4a52010-10-05 11:24:23 +000036140if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036141 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036142Usually this means the macro was only invoked conditionally." "$LINENO" 5
36143fi
cristy41cbe8a2011-10-27 01:35:18 +000036144if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
36145 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
36146Usually this means the macro was only invoked conditionally." "$LINENO" 5
36147fi
cristya054b762012-03-26 23:16:00 +000036148if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
36149 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000036150Usually this means the macro was only invoked conditionally." "$LINENO" 5
36151fi
cristy73bd4a52010-10-05 11:24:23 +000036152if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036153 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036154Usually this means the macro was only invoked conditionally." "$LINENO" 5
36155fi
36156if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036157 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036158Usually this means the macro was only invoked conditionally." "$LINENO" 5
36159fi
36160if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036161 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036162Usually this means the macro was only invoked conditionally." "$LINENO" 5
36163fi
36164if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036165 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036166Usually this means the macro was only invoked conditionally." "$LINENO" 5
36167fi
cristyb1860752011-03-14 00:27:46 +000036168if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
36169 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
36170Usually this means the macro was only invoked conditionally." "$LINENO" 5
36171fi
cristy73bd4a52010-10-05 11:24:23 +000036172if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036173 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036174Usually this means the macro was only invoked conditionally." "$LINENO" 5
36175fi
36176if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036177 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036178Usually this means the macro was only invoked conditionally." "$LINENO" 5
36179fi
36180if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036181 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036182Usually this means the macro was only invoked conditionally." "$LINENO" 5
36183fi
36184if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036185 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036186Usually this means the macro was only invoked conditionally." "$LINENO" 5
36187fi
36188if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036189 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036190Usually this means the macro was only invoked conditionally." "$LINENO" 5
36191fi
36192if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036193 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036194Usually this means the macro was only invoked conditionally." "$LINENO" 5
36195fi
36196if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036197 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036198Usually this means the macro was only invoked conditionally." "$LINENO" 5
36199fi
36200if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000036201 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000036202Usually this means the macro was only invoked conditionally." "$LINENO" 5
36203fi
cristy3ed852e2009-09-05 21:47:34 +000036204
cristyda16f162011-02-19 23:52:17 +000036205: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000036206ac_write_fail=0
36207ac_clean_files_save=$ac_clean_files
36208ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000036209{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000036210$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000036211as_write_fail=0
36212cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036213#! $SHELL
36214# Generated by $as_me.
36215# Run this file to recreate the current configuration.
36216# Compiler output produced by configure, useful for debugging
36217# configure, is in config.log if it exists.
36218
36219debug=false
36220ac_cs_recheck=false
36221ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000036222
cristy8b350f62009-11-15 23:12:43 +000036223SHELL=\${CONFIG_SHELL-$SHELL}
36224export SHELL
36225_ASEOF
36226cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
36227## -------------------- ##
36228## M4sh Initialization. ##
36229## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000036230
36231# Be more Bourne compatible
36232DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000036233if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000036234 emulate sh
36235 NULLCMD=:
36236 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
36237 # is contrary to our usage. Disable this feature.
36238 alias -g '${1+"$@"}'='"$@"'
36239 setopt NO_GLOB_SUBST
36240else
cristy8b350f62009-11-15 23:12:43 +000036241 case `(set -o) 2>/dev/null` in #(
36242 *posix*) :
36243 set -o posix ;; #(
36244 *) :
36245 ;;
cristy3ed852e2009-09-05 21:47:34 +000036246esac
cristy3ed852e2009-09-05 21:47:34 +000036247fi
36248
36249
cristy3ed852e2009-09-05 21:47:34 +000036250as_nl='
36251'
36252export as_nl
36253# Printing a long string crashes Solaris 7 /usr/bin/printf.
36254as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
36255as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
36256as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000036257# Prefer a ksh shell builtin over an external printf program on Solaris,
36258# but without wasting forks for bash or zsh.
36259if test -z "$BASH_VERSION$ZSH_VERSION" \
36260 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
36261 as_echo='print -r --'
36262 as_echo_n='print -rn --'
36263elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000036264 as_echo='printf %s\n'
36265 as_echo_n='printf %s'
36266else
36267 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
36268 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
36269 as_echo_n='/usr/ucb/echo -n'
36270 else
36271 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
36272 as_echo_n_body='eval
36273 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000036274 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000036275 *"$as_nl"*)
36276 expr "X$arg" : "X\\(.*\\)$as_nl";
36277 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
36278 esac;
36279 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
36280 '
36281 export as_echo_n_body
36282 as_echo_n='sh -c $as_echo_n_body as_echo'
36283 fi
36284 export as_echo_body
36285 as_echo='sh -c $as_echo_body as_echo'
36286fi
36287
36288# The user is always right.
36289if test "${PATH_SEPARATOR+set}" != set; then
36290 PATH_SEPARATOR=:
36291 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
36292 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
36293 PATH_SEPARATOR=';'
36294 }
36295fi
36296
cristy3ed852e2009-09-05 21:47:34 +000036297
36298# IFS
36299# We need space, tab and new line, in precisely that order. Quoting is
36300# there to prevent editors from complaining about space-tab.
36301# (If _AS_PATH_WALK were called with IFS unset, it would disable word
36302# splitting by setting IFS to empty value.)
36303IFS=" "" $as_nl"
36304
36305# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000036306as_myself=
cristy8b350f62009-11-15 23:12:43 +000036307case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000036308 *[\\/]* ) as_myself=$0 ;;
36309 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
36310for as_dir in $PATH
36311do
36312 IFS=$as_save_IFS
36313 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000036314 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
36315 done
cristy3ed852e2009-09-05 21:47:34 +000036316IFS=$as_save_IFS
36317
36318 ;;
36319esac
36320# We did not find ourselves, most probably we were run as `sh COMMAND'
36321# in which case we are not to be found in the path.
36322if test "x$as_myself" = x; then
36323 as_myself=$0
36324fi
36325if test ! -f "$as_myself"; then
36326 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000036327 exit 1
cristy3ed852e2009-09-05 21:47:34 +000036328fi
36329
cristy8b350f62009-11-15 23:12:43 +000036330# Unset variables that we do not need and which cause bugs (e.g. in
36331# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
36332# suppresses any "Segmentation fault" message there. '((' could
36333# trigger a bug in pdksh 5.2.14.
36334for as_var in BASH_ENV ENV MAIL MAILPATH
36335do eval test x\${$as_var+set} = xset \
36336 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000036337done
36338PS1='$ '
36339PS2='> '
36340PS4='+ '
36341
36342# NLS nuisances.
36343LC_ALL=C
36344export LC_ALL
36345LANGUAGE=C
36346export LANGUAGE
36347
cristy8b350f62009-11-15 23:12:43 +000036348# CDPATH.
36349(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36350
36351
cristy98dddb52010-11-04 00:30:15 +000036352# as_fn_error STATUS ERROR [LINENO LOG_FD]
36353# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000036354# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
36355# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000036356# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000036357as_fn_error ()
36358{
cristy98dddb52010-11-04 00:30:15 +000036359 as_status=$1; test $as_status -eq 0 && as_status=1
36360 if test "$4"; then
36361 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
36362 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000036363 fi
cristy98dddb52010-11-04 00:30:15 +000036364 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000036365 as_fn_exit $as_status
36366} # as_fn_error
36367
36368
36369# as_fn_set_status STATUS
36370# -----------------------
36371# Set $? to STATUS, without forking.
36372as_fn_set_status ()
36373{
36374 return $1
36375} # as_fn_set_status
36376
36377# as_fn_exit STATUS
36378# -----------------
36379# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
36380as_fn_exit ()
36381{
36382 set +e
36383 as_fn_set_status $1
36384 exit $1
36385} # as_fn_exit
36386
36387# as_fn_unset VAR
36388# ---------------
36389# Portably unset VAR.
36390as_fn_unset ()
36391{
36392 { eval $1=; unset $1;}
36393}
36394as_unset=as_fn_unset
36395# as_fn_append VAR VALUE
36396# ----------------------
36397# Append the text in VALUE to the end of the definition contained in VAR. Take
36398# advantage of any shell optimizations that allow amortized linear growth over
36399# repeated appends, instead of the typical quadratic growth present in naive
36400# implementations.
36401if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
36402 eval 'as_fn_append ()
36403 {
36404 eval $1+=\$2
36405 }'
36406else
36407 as_fn_append ()
36408 {
36409 eval $1=\$$1\$2
36410 }
36411fi # as_fn_append
36412
36413# as_fn_arith ARG...
36414# ------------------
36415# Perform arithmetic evaluation on the ARGs, and store the result in the
36416# global $as_val. Take advantage of shells that can avoid forks. The arguments
36417# must be portable across $(()) and expr.
36418if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
36419 eval 'as_fn_arith ()
36420 {
36421 as_val=$(( $* ))
36422 }'
36423else
36424 as_fn_arith ()
36425 {
36426 as_val=`expr "$@" || test $? -eq 1`
36427 }
36428fi # as_fn_arith
36429
36430
cristy3ed852e2009-09-05 21:47:34 +000036431if expr a : '\(a\)' >/dev/null 2>&1 &&
36432 test "X`expr 00001 : '.*\(...\)'`" = X001; then
36433 as_expr=expr
36434else
36435 as_expr=false
36436fi
36437
36438if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
36439 as_basename=basename
36440else
36441 as_basename=false
36442fi
36443
cristy8b350f62009-11-15 23:12:43 +000036444if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
36445 as_dirname=dirname
36446else
36447 as_dirname=false
36448fi
cristy3ed852e2009-09-05 21:47:34 +000036449
cristy3ed852e2009-09-05 21:47:34 +000036450as_me=`$as_basename -- "$0" ||
36451$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
36452 X"$0" : 'X\(//\)$' \| \
36453 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
36454$as_echo X/"$0" |
36455 sed '/^.*\/\([^/][^/]*\)\/*$/{
36456 s//\1/
36457 q
36458 }
36459 /^X\/\(\/\/\)$/{
36460 s//\1/
36461 q
36462 }
36463 /^X\/\(\/\).*/{
36464 s//\1/
36465 q
36466 }
36467 s/.*/./; q'`
36468
cristy8b350f62009-11-15 23:12:43 +000036469# Avoid depending upon Character Ranges.
36470as_cr_letters='abcdefghijklmnopqrstuvwxyz'
36471as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36472as_cr_Letters=$as_cr_letters$as_cr_LETTERS
36473as_cr_digits='0123456789'
36474as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000036475
36476ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000036477case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000036478-n*)
cristy8b350f62009-11-15 23:12:43 +000036479 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000036480 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000036481 xy) ECHO_C='\c';;
36482 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
36483 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000036484 esac;;
36485*)
36486 ECHO_N='-n';;
36487esac
cristy3ed852e2009-09-05 21:47:34 +000036488
36489rm -f conf$$ conf$$.exe conf$$.file
36490if test -d conf$$.dir; then
36491 rm -f conf$$.dir/conf$$.file
36492else
36493 rm -f conf$$.dir
36494 mkdir conf$$.dir 2>/dev/null
36495fi
36496if (echo >conf$$.file) 2>/dev/null; then
36497 if ln -s conf$$.file conf$$ 2>/dev/null; then
36498 as_ln_s='ln -s'
36499 # ... but there are two gotchas:
36500 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
36501 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000036502 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000036503 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000036504 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036505 elif ln conf$$.file conf$$ 2>/dev/null; then
36506 as_ln_s=ln
36507 else
cristy14fefe52012-05-21 00:59:18 +000036508 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036509 fi
36510else
cristy14fefe52012-05-21 00:59:18 +000036511 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000036512fi
36513rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
36514rmdir conf$$.dir 2>/dev/null
36515
cristy8b350f62009-11-15 23:12:43 +000036516
36517# as_fn_mkdir_p
36518# -------------
36519# Create "$as_dir" as a directory, including parents if necessary.
36520as_fn_mkdir_p ()
36521{
36522
36523 case $as_dir in #(
36524 -*) as_dir=./$as_dir;;
36525 esac
36526 test -d "$as_dir" || eval $as_mkdir_p || {
36527 as_dirs=
36528 while :; do
36529 case $as_dir in #(
36530 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
36531 *) as_qdir=$as_dir;;
36532 esac
36533 as_dirs="'$as_qdir' $as_dirs"
36534 as_dir=`$as_dirname -- "$as_dir" ||
36535$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36536 X"$as_dir" : 'X\(//\)[^/]' \| \
36537 X"$as_dir" : 'X\(//\)$' \| \
36538 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
36539$as_echo X"$as_dir" |
36540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36541 s//\1/
36542 q
36543 }
36544 /^X\(\/\/\)[^/].*/{
36545 s//\1/
36546 q
36547 }
36548 /^X\(\/\/\)$/{
36549 s//\1/
36550 q
36551 }
36552 /^X\(\/\).*/{
36553 s//\1/
36554 q
36555 }
36556 s/.*/./; q'`
36557 test -d "$as_dir" && break
36558 done
36559 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000036560 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000036561
36562
36563} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036564if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000036565 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000036566else
36567 test -d ./-p && rmdir ./-p
36568 as_mkdir_p=false
36569fi
36570
cristy14fefe52012-05-21 00:59:18 +000036571
36572# as_fn_executable_p FILE
36573# -----------------------
36574# Test if FILE is an executable regular file.
36575as_fn_executable_p ()
36576{
36577 test -f "$1" && test -x "$1"
36578} # as_fn_executable_p
36579as_test_x='test -x'
36580as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000036581
36582# Sed expression to map a string onto a valid CPP name.
36583as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
36584
36585# Sed expression to map a string onto a valid variable name.
36586as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
36587
36588
36589exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000036590## ----------------------------------- ##
36591## Main body of $CONFIG_STATUS script. ##
36592## ----------------------------------- ##
36593_ASEOF
36594test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000036595
cristy8b350f62009-11-15 23:12:43 +000036596cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36597# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000036598# report actual input values of CONFIG_FILES etc. instead of their
36599# values after options handling.
36600ac_log="
cristy29eb34e2011-10-16 00:46:08 +000036601This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000036602generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000036603
36604 CONFIG_FILES = $CONFIG_FILES
36605 CONFIG_HEADERS = $CONFIG_HEADERS
36606 CONFIG_LINKS = $CONFIG_LINKS
36607 CONFIG_COMMANDS = $CONFIG_COMMANDS
36608 $ $0 $@
36609
36610on `(hostname || uname -n) 2>/dev/null | sed 1q`
36611"
36612
36613_ACEOF
36614
36615case $ac_config_files in *"
36616"*) set x $ac_config_files; shift; ac_config_files=$*;;
36617esac
36618
36619case $ac_config_headers in *"
36620"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
36621esac
36622
36623
36624cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36625# Files that config.status was made for.
36626config_files="$ac_config_files"
36627config_headers="$ac_config_headers"
36628config_commands="$ac_config_commands"
36629
36630_ACEOF
36631
36632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36633ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000036634\`$as_me' instantiates files and other configuration actions
36635from templates according to the current configuration. Unless the files
36636and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000036637
cristy8b350f62009-11-15 23:12:43 +000036638Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000036639
36640 -h, --help print this help, then exit
36641 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000036642 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000036643 -q, --quiet, --silent
36644 do not print progress messages
36645 -d, --debug don't remove temporary files
36646 --recheck update $as_me by reconfiguring in the same conditions
36647 --file=FILE[:TEMPLATE]
36648 instantiate the configuration file FILE
36649 --header=FILE[:TEMPLATE]
36650 instantiate the configuration header FILE
36651
36652Configuration files:
36653$config_files
36654
36655Configuration headers:
36656$config_headers
36657
36658Configuration commands:
36659$config_commands
36660
cristy8b350f62009-11-15 23:12:43 +000036661Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000036662
36663_ACEOF
36664cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000036665ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000036666ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000036667ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000036668configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000036669 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000036670
cristy14fefe52012-05-21 00:59:18 +000036671Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000036672This config.status script is free software; the Free Software Foundation
36673gives unlimited permission to copy, distribute and modify it."
36674
36675ac_pwd='$ac_pwd'
36676srcdir='$srcdir'
36677INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000036678MKDIR_P='$MKDIR_P'
36679AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000036680test -n "\$AWK" || AWK=awk
36681_ACEOF
36682
36683cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36684# The default lists apply if the user does not specify any file.
36685ac_need_defaults=:
36686while test $# != 0
36687do
36688 case $1 in
cristyda16f162011-02-19 23:52:17 +000036689 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000036690 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36691 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
36692 ac_shift=:
36693 ;;
cristyda16f162011-02-19 23:52:17 +000036694 --*=)
36695 ac_option=`expr "X$1" : 'X\([^=]*\)='`
36696 ac_optarg=
36697 ac_shift=:
36698 ;;
cristy3ed852e2009-09-05 21:47:34 +000036699 *)
36700 ac_option=$1
36701 ac_optarg=$2
36702 ac_shift=shift
36703 ;;
36704 esac
36705
36706 case $ac_option in
36707 # Handling of the options.
36708 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
36709 ac_cs_recheck=: ;;
36710 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
36711 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000036712 --config | --confi | --conf | --con | --co | --c )
36713 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000036714 --debug | --debu | --deb | --de | --d | -d )
36715 debug=: ;;
36716 --file | --fil | --fi | --f )
36717 $ac_shift
36718 case $ac_optarg in
36719 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000036720 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000036721 esac
cristy8b350f62009-11-15 23:12:43 +000036722 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036723 ac_need_defaults=false;;
36724 --header | --heade | --head | --hea )
36725 $ac_shift
36726 case $ac_optarg in
36727 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
36728 esac
cristy8b350f62009-11-15 23:12:43 +000036729 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000036730 ac_need_defaults=false;;
36731 --he | --h)
36732 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000036733 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036734Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000036735 --help | --hel | -h )
36736 $as_echo "$ac_cs_usage"; exit ;;
36737 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
36738 | -silent | --silent | --silen | --sile | --sil | --si | --s)
36739 ac_cs_silent=: ;;
36740
36741 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000036742 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000036743Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000036744
cristy8b350f62009-11-15 23:12:43 +000036745 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000036746 ac_need_defaults=false ;;
36747
36748 esac
36749 shift
36750done
36751
36752ac_configure_extra_args=
36753
36754if $ac_cs_silent; then
36755 exec 6>/dev/null
36756 ac_configure_extra_args="$ac_configure_extra_args --silent"
36757fi
36758
36759_ACEOF
36760cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36761if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000036762 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000036763 shift
36764 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
36765 CONFIG_SHELL='$SHELL'
36766 export CONFIG_SHELL
36767 exec "\$@"
36768fi
36769
36770_ACEOF
36771cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36772exec 5>>config.log
36773{
36774 echo
36775 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
36776## Running $as_me. ##
36777_ASBOX
36778 $as_echo "$ac_log"
36779} >&5
36780
36781_ACEOF
36782cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000036783#
36784# INIT-COMMANDS
36785#
36786PACKAGE="$PACKAGE"
36787AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36788
36789
36790# The HP-UX ksh and POSIX shell print the target directory to stdout
36791# if CDPATH is set.
36792(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36793
36794sed_quote_subst='$sed_quote_subst'
36795double_quote_subst='$double_quote_subst'
36796delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036797SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36798Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36799GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36800EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36801FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36802SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36803ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36804LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36805macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36806macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36807AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36808DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36809OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36810enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36811enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36812pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36813enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036814PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036815host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36816host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36817host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36818build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36819build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36820build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36821NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36822LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36823max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36824ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36825exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36826lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36827lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36828lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036829lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36830lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036831reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36832reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36833deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36834file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036835file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36836want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36837sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036838AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36839AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036840archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036841STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36842RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36843old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36844old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36845old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36846lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36847CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36848CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36849compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36850GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36851lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36852lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36853lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36854lt_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 +000036855nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36856lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036857objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36858MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36859lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036860lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036861lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036862lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36863lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36864need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036865MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036866DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36867NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36868LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36869OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36870OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36871libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36872shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36873extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36874archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36875enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36876export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36877whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36878compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36879old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36880old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36881archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36882archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36883module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36884module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36885with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36886allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36887no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36888hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036889hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36890hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36891hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36892hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36893hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36894hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36895inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36896link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036897always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36898export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36899exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36900include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36901prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036902postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036903file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36904variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36905need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36906need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36907version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36908runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36909shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36910shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36911libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36912library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36913soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36914install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36915postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36916postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36917finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36918finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36919hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36920sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36921sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36922hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36923enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36924enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36925enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36926old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36927striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36928compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36929predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36930postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36931predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36932postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36933compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36934LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36935reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36936reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36937old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36938compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36939GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36940lt_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 +000036941lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036942lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036943lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36944lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36945archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36946enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36947export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36948whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36949compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36950old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36951old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36952archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36953archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36954module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36955module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36956with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36957allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36958no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36959hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036960hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36961hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36962hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36963hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36964hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36965hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36966inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36967link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036968always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36969export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36970exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36971include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36972prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036973postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036974file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36975hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36976compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36977predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36978postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36979predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36980postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36981compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036982
36983LTCC='$LTCC'
36984LTCFLAGS='$LTCFLAGS'
36985compiler='$compiler_DEFAULT'
36986
cristy0c60a692010-11-04 01:09:47 +000036987# A function that is used when there is no print builtin or printf.
36988func_fallback_echo ()
36989{
36990 eval 'cat <<_LTECHO_EOF
36991\$1
36992_LTECHO_EOF'
36993}
36994
cristy73bd4a52010-10-05 11:24:23 +000036995# Quote evaled strings.
36996for var in SED \
36997GREP \
36998EGREP \
36999FGREP \
cristy0c60a692010-11-04 01:09:47 +000037000SHELL \
37001ECHO \
cristy73bd4a52010-10-05 11:24:23 +000037002LD \
cristy0c60a692010-11-04 01:09:47 +000037003AS \
37004DLLTOOL \
37005OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000037006PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000037007NM \
37008LN_S \
37009lt_SP2NL \
37010lt_NL2SP \
37011reload_flag \
37012deplibs_check_method \
37013file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000037014file_magic_glob \
37015want_nocaseglob \
37016sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000037017AR \
37018AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000037019archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037020STRIP \
37021RANLIB \
37022CC \
37023CFLAGS \
37024compiler \
37025lt_cv_sys_global_symbol_pipe \
37026lt_cv_sys_global_symbol_to_cdecl \
37027lt_cv_sys_global_symbol_to_c_name_address \
37028lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000037029nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000037030lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000037031lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000037032lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000037033lt_prog_compiler_static \
37034lt_cv_prog_compiler_c_o \
37035need_locks \
cristyda16f162011-02-19 23:52:17 +000037036MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000037037DSYMUTIL \
37038NMEDIT \
37039LIPO \
37040OTOOL \
37041OTOOL64 \
37042shrext_cmds \
37043export_dynamic_flag_spec \
37044whole_archive_flag_spec \
37045compiler_needs_object \
37046with_gnu_ld \
37047allow_undefined_flag \
37048no_undefined_flag \
37049hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000037050hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000037051exclude_expsyms \
37052include_expsyms \
37053file_list_spec \
37054variables_saved_for_relink \
37055libname_spec \
37056library_names_spec \
37057soname_spec \
cristy0c60a692010-11-04 01:09:47 +000037058install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000037059finish_eval \
37060old_striplib \
37061striplib \
37062compiler_lib_search_dirs \
37063predep_objects \
37064postdep_objects \
37065predeps \
37066postdeps \
37067compiler_lib_search_path \
37068LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000037069reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037070compiler_CXX \
37071lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037072lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000037073lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037074lt_prog_compiler_static_CXX \
37075lt_cv_prog_compiler_c_o_CXX \
37076export_dynamic_flag_spec_CXX \
37077whole_archive_flag_spec_CXX \
37078compiler_needs_object_CXX \
37079with_gnu_ld_CXX \
37080allow_undefined_flag_CXX \
37081no_undefined_flag_CXX \
37082hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037083hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037084exclude_expsyms_CXX \
37085include_expsyms_CXX \
37086file_list_spec_CXX \
37087compiler_lib_search_dirs_CXX \
37088predep_objects_CXX \
37089postdep_objects_CXX \
37090predeps_CXX \
37091postdeps_CXX \
37092compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037093 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037094 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037095 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037096 ;;
37097 *)
37098 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37099 ;;
37100 esac
37101done
37102
37103# Double-quote double-evaled strings.
37104for var in reload_cmds \
37105old_postinstall_cmds \
37106old_postuninstall_cmds \
37107old_archive_cmds \
37108extract_expsyms_cmds \
37109old_archive_from_new_cmds \
37110old_archive_from_expsyms_cmds \
37111archive_cmds \
37112archive_expsym_cmds \
37113module_cmds \
37114module_expsym_cmds \
37115export_symbols_cmds \
37116prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000037117postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000037118postinstall_cmds \
37119postuninstall_cmds \
37120finish_cmds \
37121sys_lib_search_path_spec \
37122sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000037123reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000037124old_archive_cmds_CXX \
37125old_archive_from_new_cmds_CXX \
37126old_archive_from_expsyms_cmds_CXX \
37127archive_cmds_CXX \
37128archive_expsym_cmds_CXX \
37129module_cmds_CXX \
37130module_expsym_cmds_CXX \
37131export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000037132prelink_cmds_CXX \
37133postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000037134 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000037135 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000037136 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000037137 ;;
37138 *)
37139 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37140 ;;
37141 esac
37142done
37143
cristy73bd4a52010-10-05 11:24:23 +000037144ac_aux_dir='$ac_aux_dir'
37145xsi_shell='$xsi_shell'
37146lt_shell_append='$lt_shell_append'
37147
37148# See if we are running on zsh, and set the options which allow our
37149# commands through without removal of \ escapes INIT.
37150if test -n "\${ZSH_VERSION+set}" ; then
37151 setopt NO_GLOB_SUBST
37152fi
37153
37154
37155 PACKAGE='$PACKAGE'
37156 VERSION='$VERSION'
37157 TIMESTAMP='$TIMESTAMP'
37158 RM='$RM'
37159 ofile='$ofile'
37160
37161
37162
37163
37164
37165
cristy3ed852e2009-09-05 21:47:34 +000037166_ACEOF
37167
37168cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37169
37170# Handling of arguments.
37171for ac_config_target in $ac_config_targets
37172do
37173 case $ac_config_target in
37174 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000037175 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000037176 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000037177 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
37178 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
37179 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
37180 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
37181 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000037182 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000037183 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000037184 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
37185 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
37186 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
37187 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
37188 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000037189 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000037190 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
37191 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000037192 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
37193 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
37194 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000037195 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37196 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
37197 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
37198 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
37199 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
37200 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
37201 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
37202 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
37203 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
37204 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
37205 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
37206 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
37207 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
37208 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
37209 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
37210 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
37211 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000037212 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
37213 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000037214 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37215 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000037216 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000037217 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037218 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037219 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000037220 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
37221 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
37222
cristy98dddb52010-11-04 00:30:15 +000037223 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037224 esac
37225done
37226
37227
37228# If the user did not use the arguments to specify the items to instantiate,
37229# then the envvar interface is used. Set only those that are not.
37230# We use the long form for the default assignment because of an extremely
37231# bizarre bug on SunOS 4.1.3.
37232if $ac_need_defaults; then
37233 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37234 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37235 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37236fi
37237
37238# Have a temporary directory for convenience. Make it in the build tree
37239# simply because there is no reason against having it here, and in addition,
37240# creating and moving files from /tmp can sometimes cause problems.
37241# Hook for its removal unless debugging.
37242# Note that there is a small window in which the directory will not be cleaned:
37243# after its creation but before its name has been assigned to `$tmp'.
37244$debug ||
37245{
cristyda16f162011-02-19 23:52:17 +000037246 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000037247 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000037248 : "${ac_tmp:=$tmp}"
37249 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000037250' 0
cristy8b350f62009-11-15 23:12:43 +000037251 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000037252}
37253# Create a (secure) tmp directory for tmp files.
37254
37255{
37256 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000037257 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000037258} ||
37259{
37260 tmp=./conf$$-$RANDOM
37261 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000037262} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037263ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000037264
37265# Set up the scripts for CONFIG_FILES section.
37266# No need to generate them if there are no CONFIG_FILES.
37267# This happens for instance with `./config.status config.h'.
37268if test -n "$CONFIG_FILES"; then
37269
37270
cristy8b350f62009-11-15 23:12:43 +000037271ac_cr=`echo X | tr X '\015'`
37272# On cygwin, bash can eat \r inside `` if the user requested igncr.
37273# But we know of no other shell where ac_cr would be empty at this
37274# point, so we can use a bashism as a fallback.
37275if test "x$ac_cr" = x; then
37276 eval ac_cr=\$\'\\r\'
37277fi
cristy3ed852e2009-09-05 21:47:34 +000037278ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
37279if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000037280 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000037281else
37282 ac_cs_awk_cr=$ac_cr
37283fi
37284
cristyda16f162011-02-19 23:52:17 +000037285echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000037286_ACEOF
37287
37288
37289{
37290 echo "cat >conf$$subs.awk <<_ACEOF" &&
37291 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
37292 echo "_ACEOF"
37293} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037294 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
37295ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000037296ac_delim='%!_!# '
37297for ac_last_try in false false false false false :; do
37298 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000037299 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037300
37301 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
37302 if test $ac_delim_n = $ac_delim_num; then
37303 break
37304 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037305 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037306 else
37307 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37308 fi
37309done
37310rm -f conf$$subs.sh
37311
37312cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000037313cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037314_ACEOF
37315sed -n '
37316h
37317s/^/S["/; s/!.*/"]=/
37318p
37319g
37320s/^[^!]*!//
37321:repl
37322t repl
37323s/'"$ac_delim"'$//
37324t delim
37325:nl
37326h
cristycd4c5312009-11-22 01:19:08 +000037327s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037328t more1
37329s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
37330p
37331n
37332b repl
37333:more1
37334s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37335p
37336g
37337s/.\{148\}//
37338t nl
37339:delim
37340h
cristycd4c5312009-11-22 01:19:08 +000037341s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000037342t more2
37343s/["\\]/\\&/g; s/^/"/; s/$/"/
37344p
37345b
37346:more2
37347s/["\\]/\\&/g; s/^/"/; s/$/"\\/
37348p
37349g
37350s/.\{148\}//
37351t delim
37352' <conf$$subs.awk | sed '
37353/^[^""]/{
37354 N
37355 s/\n//
37356}
37357' >>$CONFIG_STATUS || ac_write_fail=1
37358rm -f conf$$subs.awk
37359cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37360_ACAWK
cristyda16f162011-02-19 23:52:17 +000037361cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000037362 for (key in S) S_is_set[key] = 1
37363 FS = ""
37364
37365}
37366{
37367 line = $ 0
37368 nfields = split(line, field, "@")
37369 substed = 0
37370 len = length(field[1])
37371 for (i = 2; i < nfields; i++) {
37372 key = field[i]
37373 keylen = length(key)
37374 if (S_is_set[key]) {
37375 value = S[key]
37376 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
37377 len += length(value) + length(field[++i])
37378 substed = 1
37379 } else
37380 len += 1 + keylen
37381 }
37382
37383 print line
37384}
37385
37386_ACAWK
37387_ACEOF
37388cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37389if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
37390 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
37391else
37392 cat
cristyda16f162011-02-19 23:52:17 +000037393fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000037394 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037395_ACEOF
37396
cristy98dddb52010-11-04 00:30:15 +000037397# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
37398# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000037399# trailing colons and then remove the whole line if VPATH becomes empty
37400# (actually we leave an empty line to preserve line numbers).
37401if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000037402 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
37403h
37404s///
37405s/^/:/
37406s/[ ]*$/:/
37407s/:\$(srcdir):/:/g
37408s/:\${srcdir}:/:/g
37409s/:@srcdir@:/:/g
37410s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000037411s/:*$//
cristy98dddb52010-11-04 00:30:15 +000037412x
37413s/\(=[ ]*\).*/\1/
37414G
37415s/\n//
cristy3ed852e2009-09-05 21:47:34 +000037416s/^[^=]*=[ ]*$//
37417}'
37418fi
37419
37420cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37421fi # test -n "$CONFIG_FILES"
37422
37423# Set up the scripts for CONFIG_HEADERS section.
37424# No need to generate them if there are no CONFIG_HEADERS.
37425# This happens for instance with `./config.status Makefile'.
37426if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000037427cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000037428BEGIN {
37429_ACEOF
37430
37431# Transform confdefs.h into an awk script `defines.awk', embedded as
37432# here-document in config.status, that substitutes the proper values into
37433# config.h.in to produce config.h.
37434
37435# Create a delimiter string that does not exist in confdefs.h, to ease
37436# handling of long lines.
37437ac_delim='%!_!# '
37438for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000037439 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
37440 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000037441 break
37442 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000037443 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037444 else
37445 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
37446 fi
37447done
37448
37449# For the awk script, D is an array of macro values keyed by name,
37450# likewise P contains macro parameters if any. Preserve backslash
37451# newline sequences.
37452
37453ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
37454sed -n '
37455s/.\{148\}/&'"$ac_delim"'/g
37456t rset
37457:rset
37458s/^[ ]*#[ ]*define[ ][ ]*/ /
37459t def
37460d
37461:def
37462s/\\$//
37463t bsnl
37464s/["\\]/\\&/g
37465s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37466D["\1"]=" \3"/p
37467s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
37468d
37469:bsnl
37470s/["\\]/\\&/g
37471s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
37472D["\1"]=" \3\\\\\\n"\\/p
37473t cont
37474s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
37475t cont
37476d
37477:cont
37478n
37479s/.\{148\}/&'"$ac_delim"'/g
37480t clear
37481:clear
37482s/\\$//
37483t bsnlc
37484s/["\\]/\\&/g; s/^/"/; s/$/"/p
37485d
37486:bsnlc
37487s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
37488b cont
37489' <confdefs.h | sed '
37490s/'"$ac_delim"'/"\\\
37491"/g' >>$CONFIG_STATUS || ac_write_fail=1
37492
37493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37494 for (key in D) D_is_set[key] = 1
37495 FS = ""
37496}
37497/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
37498 line = \$ 0
37499 split(line, arg, " ")
37500 if (arg[1] == "#") {
37501 defundef = arg[2]
37502 mac1 = arg[3]
37503 } else {
37504 defundef = substr(arg[1], 2)
37505 mac1 = arg[2]
37506 }
37507 split(mac1, mac2, "(") #)
37508 macro = mac2[1]
37509 prefix = substr(line, 1, index(line, defundef) - 1)
37510 if (D_is_set[macro]) {
37511 # Preserve the white space surrounding the "#".
37512 print prefix "define", macro P[macro] D[macro]
37513 next
37514 } else {
37515 # Replace #undef with comments. This is necessary, for example,
37516 # in the case of _POSIX_SOURCE, which is predefined and required
37517 # on some systems where configure will not decide to define it.
37518 if (defundef == "undef") {
37519 print "/*", prefix defundef, macro, "*/"
37520 next
37521 }
37522 }
37523}
37524{ print }
37525_ACAWK
37526_ACEOF
37527cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000037528 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037529fi # test -n "$CONFIG_HEADERS"
37530
37531
37532eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
37533shift
37534for ac_tag
37535do
37536 case $ac_tag in
37537 :[FHLC]) ac_mode=$ac_tag; continue;;
37538 esac
37539 case $ac_mode$ac_tag in
37540 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000037541 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037542 :[FH]-) ac_tag=-:-;;
37543 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
37544 esac
37545 ac_save_IFS=$IFS
37546 IFS=:
37547 set x $ac_tag
37548 IFS=$ac_save_IFS
37549 shift
37550 ac_file=$1
37551 shift
37552
37553 case $ac_mode in
37554 :L) ac_source=$1;;
37555 :[FH])
37556 ac_file_inputs=
37557 for ac_f
37558 do
37559 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000037560 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000037561 *) # Look for the file first in the build tree, then in the source tree
37562 # (if the path is not absolute). The absolute path cannot be DOS-style,
37563 # because $ac_f cannot contain `:'.
37564 test -f "$ac_f" ||
37565 case $ac_f in
37566 [\\/$]*) false;;
37567 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
37568 esac ||
cristy98dddb52010-11-04 00:30:15 +000037569 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000037570 esac
37571 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000037572 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000037573 done
37574
37575 # Let's still pretend it is `configure' which instantiates (i.e., don't
37576 # use $as_me), people would be surprised to read:
37577 # /* config.h. Generated by config.status. */
37578 configure_input='Generated from '`
37579 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
37580 `' by configure.'
37581 if test x"$ac_file" != x-; then
37582 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000037583 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000037584$as_echo "$as_me: creating $ac_file" >&6;}
37585 fi
37586 # Neutralize special characters interpreted by sed in replacement strings.
37587 case $configure_input in #(
37588 *\&* | *\|* | *\\* )
37589 ac_sed_conf_input=`$as_echo "$configure_input" |
37590 sed 's/[\\\\&|]/\\\\&/g'`;; #(
37591 *) ac_sed_conf_input=$configure_input;;
37592 esac
37593
37594 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000037595 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000037596 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000037597 esac
37598 ;;
37599 esac
37600
37601 ac_dir=`$as_dirname -- "$ac_file" ||
37602$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37603 X"$ac_file" : 'X\(//\)[^/]' \| \
37604 X"$ac_file" : 'X\(//\)$' \| \
37605 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
37606$as_echo X"$ac_file" |
37607 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37608 s//\1/
37609 q
37610 }
37611 /^X\(\/\/\)[^/].*/{
37612 s//\1/
37613 q
37614 }
37615 /^X\(\/\/\)$/{
37616 s//\1/
37617 q
37618 }
37619 /^X\(\/\).*/{
37620 s//\1/
37621 q
37622 }
37623 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000037624 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000037625 ac_builddir=.
37626
37627case "$ac_dir" in
37628.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
37629*)
37630 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
37631 # A ".." for each directory in $ac_dir_suffix.
37632 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
37633 case $ac_top_builddir_sub in
37634 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
37635 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
37636 esac ;;
37637esac
37638ac_abs_top_builddir=$ac_pwd
37639ac_abs_builddir=$ac_pwd$ac_dir_suffix
37640# for backward compatibility:
37641ac_top_builddir=$ac_top_build_prefix
37642
37643case $srcdir in
37644 .) # We are building in place.
37645 ac_srcdir=.
37646 ac_top_srcdir=$ac_top_builddir_sub
37647 ac_abs_top_srcdir=$ac_pwd ;;
37648 [\\/]* | ?:[\\/]* ) # Absolute name.
37649 ac_srcdir=$srcdir$ac_dir_suffix;
37650 ac_top_srcdir=$srcdir
37651 ac_abs_top_srcdir=$srcdir ;;
37652 *) # Relative name.
37653 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
37654 ac_top_srcdir=$ac_top_build_prefix$srcdir
37655 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
37656esac
37657ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
37658
37659
37660 case $ac_mode in
37661 :F)
37662 #
37663 # CONFIG_FILE
37664 #
37665
37666 case $INSTALL in
37667 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
37668 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
37669 esac
cristy73bd4a52010-10-05 11:24:23 +000037670 ac_MKDIR_P=$MKDIR_P
37671 case $MKDIR_P in
37672 [\\/$]* | ?:[\\/]* ) ;;
37673 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
37674 esac
cristy3ed852e2009-09-05 21:47:34 +000037675_ACEOF
37676
37677cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37678# If the template does not know about datarootdir, expand it.
37679# FIXME: This hack should be removed a few years after 2.60.
37680ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000037681ac_sed_dataroot='
37682/datarootdir/ {
37683 p
37684 q
37685}
37686/@datadir@/p
37687/@docdir@/p
37688/@infodir@/p
37689/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000037690/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000037691case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
37692*datarootdir*) ac_datarootdir_seen=yes;;
37693*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000037694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000037695$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
37696_ACEOF
37697cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37698 ac_datarootdir_hack='
37699 s&@datadir@&$datadir&g
37700 s&@docdir@&$docdir&g
37701 s&@infodir@&$infodir&g
37702 s&@localedir@&$localedir&g
37703 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000037704 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000037705esac
37706_ACEOF
37707
37708# Neutralize VPATH when `$srcdir' = `.'.
37709# Shell code in configure.ac might set extrasub.
37710# FIXME: do we really want to maintain this feature?
37711cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37712ac_sed_extra="$ac_vpsub
37713$extrasub
37714_ACEOF
37715cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37716:t
37717/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
37718s|@configure_input@|$ac_sed_conf_input|;t t
37719s&@top_builddir@&$ac_top_builddir_sub&;t t
37720s&@top_build_prefix@&$ac_top_build_prefix&;t t
37721s&@srcdir@&$ac_srcdir&;t t
37722s&@abs_srcdir@&$ac_abs_srcdir&;t t
37723s&@top_srcdir@&$ac_top_srcdir&;t t
37724s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
37725s&@builddir@&$ac_builddir&;t t
37726s&@abs_builddir@&$ac_abs_builddir&;t t
37727s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
37728s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000037729s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000037730$ac_datarootdir_hack
37731"
cristyda16f162011-02-19 23:52:17 +000037732eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
37733 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037734
37735test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000037736 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
37737 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
37738 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000037739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037740which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000037741$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000037742which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000037743
cristyda16f162011-02-19 23:52:17 +000037744 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000037745 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000037746 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
37747 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000037748 esac \
cristy98dddb52010-11-04 00:30:15 +000037749 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037750 ;;
37751 :H)
37752 #
37753 # CONFIG_HEADER
37754 #
37755 if test x"$ac_file" != x-; then
37756 {
37757 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037758 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
37759 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000037760 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000037761 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000037762 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000037763$as_echo "$as_me: $ac_file is unchanged" >&6;}
37764 else
37765 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000037766 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000037767 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037768 fi
37769 else
37770 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000037771 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000037772 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000037773 fi
cristy73bd4a52010-10-05 11:24:23 +000037774# Compute "$ac_file"'s index in $config_headers.
37775_am_arg="$ac_file"
37776_am_stamp_count=1
37777for _am_header in $config_headers :; do
37778 case $_am_header in
37779 $_am_arg | $_am_arg:* )
37780 break ;;
37781 * )
37782 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
37783 esac
37784done
37785echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
37786$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37787 X"$_am_arg" : 'X\(//\)[^/]' \| \
37788 X"$_am_arg" : 'X\(//\)$' \| \
37789 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37790$as_echo X"$_am_arg" |
37791 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37792 s//\1/
37793 q
37794 }
37795 /^X\(\/\/\)[^/].*/{
37796 s//\1/
37797 q
37798 }
37799 /^X\(\/\/\)$/{
37800 s//\1/
37801 q
37802 }
37803 /^X\(\/\).*/{
37804 s//\1/
37805 q
37806 }
37807 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037808 ;;
37809
cristy8b350f62009-11-15 23:12:43 +000037810 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037811$as_echo "$as_me: executing $ac_file commands" >&6;}
37812 ;;
37813 esac
37814
37815
37816 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037817 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037818ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37819ac_prefix_conf_PKG=`echo MagickCore`
37820ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37821ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37822ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37823if test ".$ac_prefix_conf_INP" = "."; then
37824 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37825 case "$ac_file" in
37826 *.h) ac_prefix_conf_INP=$ac_file ;;
37827 *)
37828 esac
37829 test ".$ac_prefix_conf_INP" != "." && break
37830 done
37831fi
37832if test ".$ac_prefix_conf_INP" = "."; then
37833 case "$ac_prefix_conf_OUT" in
37834 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37835 ;;
37836 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37837 ;;
37838 *) ac_prefix_conf_INP=config.h
37839 ;;
37840 esac
37841fi
37842if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037843 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037844else
37845 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37846 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37847 fi fi
37848 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37849$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37850 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037851 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37852 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37853 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37854 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37855 $as_echo "#endif/" >> conftest.prefix
37856 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37857 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37858 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037859 # now executing _script on _DEF input to create _OUT output file
37860 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37861 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37862 echo ' ' >>$tmp/pconfig.h
37863 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37864
37865 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37866 echo ' ' >>$tmp/pconfig.h
37867 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37868 echo "#endif" >>$tmp/pconfig.h
37869 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37870 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37871$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37872 else
37873 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37874$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37875 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37876 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37877 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37878$as_echo X"$ac_prefix_conf_OUT" |
37879 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37880 s//\1/
37881 q
37882 }
37883 /^X\(\/\/\)[^/].*/{
37884 s//\1/
37885 q
37886 }
37887 /^X\(\/\/\)$/{
37888 s//\1/
37889 q
37890 }
37891 /^X\(\/\).*/{
37892 s//\1/
37893 q
37894 }
37895 s/.*/./; q'`
37896 as_dir="$ac_dir"; as_fn_mkdir_p
37897 rm -f "$ac_prefix_conf_OUT"
37898 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37899 fi
37900 cp conftest.prefix _configs.sed
37901 else
cristy98dddb52010-11-04 00:30:15 +000037902 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 +000037903 fi
37904 rm -f conftest.*
37905fi
37906 ;;
37907 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37908 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37909 # are listed without --file. Let's play safe and only enable the eval
37910 # if we detect the quoting.
37911 case $CONFIG_FILES in
37912 *\'*) eval set x "$CONFIG_FILES" ;;
37913 *) set x $CONFIG_FILES ;;
37914 esac
37915 shift
37916 for mf
37917 do
37918 # Strip MF so we end up with the name of the file.
37919 mf=`echo "$mf" | sed -e 's/:.*$//'`
37920 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037921 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037922 # some people rename them; so instead we look at the file content.
37923 # Grep'ing the first line is not enough: some people post-process
37924 # each Makefile.in and add a new line on top of each file to say so.
37925 # Grep'ing the whole file is not good either: AIX grep has a line
37926 # limit of 2048, but all sed's we know have understand at least 4000.
37927 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37928 dirpart=`$as_dirname -- "$mf" ||
37929$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37930 X"$mf" : 'X\(//\)[^/]' \| \
37931 X"$mf" : 'X\(//\)$' \| \
37932 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37933$as_echo X"$mf" |
37934 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37935 s//\1/
37936 q
37937 }
37938 /^X\(\/\/\)[^/].*/{
37939 s//\1/
37940 q
37941 }
37942 /^X\(\/\/\)$/{
37943 s//\1/
37944 q
37945 }
37946 /^X\(\/\).*/{
37947 s//\1/
37948 q
37949 }
37950 s/.*/./; q'`
37951 else
37952 continue
37953 fi
37954 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037955 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037956 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37957 test -z "$DEPDIR" && continue
37958 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37959 test -z "am__include" && continue
37960 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037961 # Find all dependency output files, they are included files with
37962 # $(DEPDIR) in their names. We invoke sed twice because it is the
37963 # simplest approach to changing $(DEPDIR) to its actual value in the
37964 # expansion.
37965 for file in `sed -n "
37966 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037967 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037968 # Make sure the directory exists.
37969 test -f "$dirpart/$file" && continue
37970 fdir=`$as_dirname -- "$file" ||
37971$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37972 X"$file" : 'X\(//\)[^/]' \| \
37973 X"$file" : 'X\(//\)$' \| \
37974 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37975$as_echo X"$file" |
37976 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37977 s//\1/
37978 q
37979 }
37980 /^X\(\/\/\)[^/].*/{
37981 s//\1/
37982 q
37983 }
37984 /^X\(\/\/\)$/{
37985 s//\1/
37986 q
37987 }
37988 /^X\(\/\).*/{
37989 s//\1/
37990 q
37991 }
37992 s/.*/./; q'`
37993 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37994 # echo "creating $dirpart/$file"
37995 echo '# dummy' > "$dirpart/$file"
37996 done
37997 done
37998}
37999 ;;
38000 "libtool":C)
38001
38002 # See if we are running on zsh, and set the options which allow our
38003 # commands through without removal of \ escapes.
38004 if test -n "${ZSH_VERSION+set}" ; then
38005 setopt NO_GLOB_SUBST
38006 fi
38007
38008 cfgfile="${ofile}T"
38009 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38010 $RM "$cfgfile"
38011
38012 cat <<_LT_EOF >> "$cfgfile"
38013#! $SHELL
38014
38015# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38016# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38017# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38018# NOTE: Changes made to this file will be lost: look at ltmain.sh.
38019#
38020# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000038021# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38022# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000038023# Written by Gordon Matzigkeit, 1996
38024#
38025# This file is part of GNU Libtool.
38026#
38027# GNU Libtool is free software; you can redistribute it and/or
38028# modify it under the terms of the GNU General Public License as
38029# published by the Free Software Foundation; either version 2 of
38030# the License, or (at your option) any later version.
38031#
38032# As a special exception to the GNU General Public License,
38033# if you distribute this file as part of a program or library that
38034# is built using GNU Libtool, you may include this file under the
38035# same distribution terms that you use for the rest of that program.
38036#
38037# GNU Libtool is distributed in the hope that it will be useful,
38038# but WITHOUT ANY WARRANTY; without even the implied warranty of
38039# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38040# GNU General Public License for more details.
38041#
38042# You should have received a copy of the GNU General Public License
38043# along with GNU Libtool; see the file COPYING. If not, a copy
38044# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38045# obtained by writing to the Free Software Foundation, Inc.,
38046# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38047
38048
38049# The names of the tagged configurations supported by this script.
38050available_tags="CXX "
38051
38052# ### BEGIN LIBTOOL CONFIG
38053
38054# A sed program that does not truncate output.
38055SED=$lt_SED
38056
38057# Sed that helps us avoid accidentally triggering echo(1) options like -n.
38058Xsed="\$SED -e 1s/^X//"
38059
38060# A grep program that handles long lines.
38061GREP=$lt_GREP
38062
38063# An ERE matcher.
38064EGREP=$lt_EGREP
38065
38066# A literal string matcher.
38067FGREP=$lt_FGREP
38068
cristy0c60a692010-11-04 01:09:47 +000038069# Shell to use when invoking shell scripts.
38070SHELL=$lt_SHELL
38071
38072# An echo program that protects backslashes.
38073ECHO=$lt_ECHO
38074
cristy73bd4a52010-10-05 11:24:23 +000038075# Which release of libtool.m4 was used?
38076macro_version=$macro_version
38077macro_revision=$macro_revision
38078
38079# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000038080AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000038081
38082# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000038083DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000038084
38085# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000038086OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000038087
38088# Whether or not to build shared libraries.
38089build_libtool_libs=$enable_shared
38090
38091# Whether or not to build static libraries.
38092build_old_libs=$enable_static
38093
38094# What type of objects to build.
38095pic_mode=$pic_mode
38096
38097# Whether or not to optimize for fast installation.
38098fast_install=$enable_fast_install
38099
cristy99bd5232011-12-07 14:38:20 +000038100# The PATH separator for the build system.
38101PATH_SEPARATOR=$lt_PATH_SEPARATOR
38102
cristy73bd4a52010-10-05 11:24:23 +000038103# The host system.
38104host_alias=$host_alias
38105host=$host
38106host_os=$host_os
38107
38108# The build system.
38109build_alias=$build_alias
38110build=$build
38111build_os=$build_os
38112
38113# A BSD- or MS-compatible name lister.
38114NM=$lt_NM
38115
38116# Whether we need soft or hard links.
38117LN_S=$lt_LN_S
38118
38119# What is the maximum length of a command?
38120max_cmd_len=$max_cmd_len
38121
38122# Object file suffix (normally "o").
38123objext=$ac_objext
38124
38125# Executable file suffix (normally "").
38126exeext=$exeext
38127
38128# whether the shell understands "unset".
38129lt_unset=$lt_unset
38130
38131# turn spaces into newlines.
38132SP2NL=$lt_lt_SP2NL
38133
38134# turn newlines into spaces.
38135NL2SP=$lt_lt_NL2SP
38136
cristyda16f162011-02-19 23:52:17 +000038137# convert \$build file names to \$host format.
38138to_host_file_cmd=$lt_cv_to_host_file_cmd
38139
38140# convert \$build files to toolchain format.
38141to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38142
cristy73bd4a52010-10-05 11:24:23 +000038143# Method to check whether dependent libraries are shared objects.
38144deplibs_check_method=$lt_deplibs_check_method
38145
cristyda16f162011-02-19 23:52:17 +000038146# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000038147file_magic_cmd=$lt_file_magic_cmd
38148
cristyda16f162011-02-19 23:52:17 +000038149# How to find potential files when deplibs_check_method = "file_magic".
38150file_magic_glob=$lt_file_magic_glob
38151
38152# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38153want_nocaseglob=$lt_want_nocaseglob
38154
38155# Command to associate shared and link libraries.
38156sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38157
cristy73bd4a52010-10-05 11:24:23 +000038158# The archiver.
38159AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000038160
38161# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000038162AR_FLAGS=$lt_AR_FLAGS
38163
cristyda16f162011-02-19 23:52:17 +000038164# How to feed a file listing to the archiver.
38165archiver_list_spec=$lt_archiver_list_spec
38166
cristy73bd4a52010-10-05 11:24:23 +000038167# A symbol stripping program.
38168STRIP=$lt_STRIP
38169
38170# Commands used to install an old-style archive.
38171RANLIB=$lt_RANLIB
38172old_postinstall_cmds=$lt_old_postinstall_cmds
38173old_postuninstall_cmds=$lt_old_postuninstall_cmds
38174
cristy0c60a692010-11-04 01:09:47 +000038175# Whether to use a lock for old archive extraction.
38176lock_old_archive_extraction=$lock_old_archive_extraction
38177
cristy73bd4a52010-10-05 11:24:23 +000038178# A C compiler.
38179LTCC=$lt_CC
38180
38181# LTCC compiler flags.
38182LTCFLAGS=$lt_CFLAGS
38183
38184# Take the output of nm and produce a listing of raw symbols and C names.
38185global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38186
38187# Transform the output of nm in a proper C declaration.
38188global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38189
38190# Transform the output of nm in a C name address pair.
38191global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38192
38193# Transform the output of nm in a C name address pair when lib prefix is needed.
38194global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38195
cristyda16f162011-02-19 23:52:17 +000038196# Specify filename containing input files for \$NM.
38197nm_file_list_spec=$lt_nm_file_list_spec
38198
38199# The root where to search for dependent libraries,and in which our libraries should be installed.
38200lt_sysroot=$lt_sysroot
38201
cristy73bd4a52010-10-05 11:24:23 +000038202# The name of the directory that contains temporary libtool files.
38203objdir=$objdir
38204
cristy73bd4a52010-10-05 11:24:23 +000038205# Used to examine libraries when file_magic_cmd begins with "file".
38206MAGIC_CMD=$MAGIC_CMD
38207
38208# Must we lock files when doing compilation?
38209need_locks=$lt_need_locks
38210
cristyda16f162011-02-19 23:52:17 +000038211# Manifest tool.
38212MANIFEST_TOOL=$lt_MANIFEST_TOOL
38213
cristy73bd4a52010-10-05 11:24:23 +000038214# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38215DSYMUTIL=$lt_DSYMUTIL
38216
38217# Tool to change global to local symbols on Mac OS X.
38218NMEDIT=$lt_NMEDIT
38219
38220# Tool to manipulate fat objects and archives on Mac OS X.
38221LIPO=$lt_LIPO
38222
38223# ldd/readelf like tool for Mach-O binaries on Mac OS X.
38224OTOOL=$lt_OTOOL
38225
38226# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38227OTOOL64=$lt_OTOOL64
38228
38229# Old archive suffix (normally "a").
38230libext=$libext
38231
38232# Shared library suffix (normally ".so").
38233shrext_cmds=$lt_shrext_cmds
38234
38235# The commands to extract the exported symbol list from a shared archive.
38236extract_expsyms_cmds=$lt_extract_expsyms_cmds
38237
38238# Variables whose values should be saved in libtool wrapper scripts and
38239# restored at link time.
38240variables_saved_for_relink=$lt_variables_saved_for_relink
38241
38242# Do we need the "lib" prefix for modules?
38243need_lib_prefix=$need_lib_prefix
38244
38245# Do we need a version for libraries?
38246need_version=$need_version
38247
38248# Library versioning type.
38249version_type=$version_type
38250
38251# Shared library runtime path variable.
38252runpath_var=$runpath_var
38253
38254# Shared library path variable.
38255shlibpath_var=$shlibpath_var
38256
38257# Is shlibpath searched before the hard-coded library search path?
38258shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38259
38260# Format of library name prefix.
38261libname_spec=$lt_libname_spec
38262
38263# List of archive names. First name is the real one, the rest are links.
38264# The last name is the one that the linker finds with -lNAME
38265library_names_spec=$lt_library_names_spec
38266
38267# The coded name of the library, if different from the real name.
38268soname_spec=$lt_soname_spec
38269
cristy0c60a692010-11-04 01:09:47 +000038270# Permission mode override for installation of shared libraries.
38271install_override_mode=$lt_install_override_mode
38272
cristy73bd4a52010-10-05 11:24:23 +000038273# Command to use after installation of a shared archive.
38274postinstall_cmds=$lt_postinstall_cmds
38275
38276# Command to use after uninstallation of a shared archive.
38277postuninstall_cmds=$lt_postuninstall_cmds
38278
38279# Commands used to finish a libtool library installation in a directory.
38280finish_cmds=$lt_finish_cmds
38281
38282# As "finish_cmds", except a single script fragment to be evaled but
38283# not shown.
38284finish_eval=$lt_finish_eval
38285
38286# Whether we should hardcode library paths into libraries.
38287hardcode_into_libs=$hardcode_into_libs
38288
38289# Compile-time system search path for libraries.
38290sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38291
38292# Run-time system search path for libraries.
38293sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38294
38295# Whether dlopen is supported.
38296dlopen_support=$enable_dlopen
38297
38298# Whether dlopen of programs is supported.
38299dlopen_self=$enable_dlopen_self
38300
38301# Whether dlopen of statically linked programs is supported.
38302dlopen_self_static=$enable_dlopen_self_static
38303
38304# Commands to strip libraries.
38305old_striplib=$lt_old_striplib
38306striplib=$lt_striplib
38307
38308
38309# The linker used to build libraries.
38310LD=$lt_LD
38311
cristy0c60a692010-11-04 01:09:47 +000038312# How to create reloadable object files.
38313reload_flag=$lt_reload_flag
38314reload_cmds=$lt_reload_cmds
38315
cristy73bd4a52010-10-05 11:24:23 +000038316# Commands used to build an old-style archive.
38317old_archive_cmds=$lt_old_archive_cmds
38318
38319# A language specific compiler.
38320CC=$lt_compiler
38321
38322# Is the compiler the GNU compiler?
38323with_gcc=$GCC
38324
38325# Compiler flag to turn off builtin functions.
38326no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38327
cristy73bd4a52010-10-05 11:24:23 +000038328# Additional compiler flags for building library objects.
38329pic_flag=$lt_lt_prog_compiler_pic
38330
cristyda16f162011-02-19 23:52:17 +000038331# How to pass a linker flag through the compiler.
38332wl=$lt_lt_prog_compiler_wl
38333
cristy73bd4a52010-10-05 11:24:23 +000038334# Compiler flag to prevent dynamic linking.
38335link_static_flag=$lt_lt_prog_compiler_static
38336
38337# Does compiler simultaneously support -c and -o options?
38338compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38339
38340# Whether or not to add -lc for building shared libraries.
38341build_libtool_need_lc=$archive_cmds_need_lc
38342
38343# Whether or not to disallow shared libs when runtime libs are static.
38344allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38345
38346# Compiler flag to allow reflexive dlopens.
38347export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38348
38349# Compiler flag to generate shared objects directly from archives.
38350whole_archive_flag_spec=$lt_whole_archive_flag_spec
38351
38352# Whether the compiler copes with passing no objects directly.
38353compiler_needs_object=$lt_compiler_needs_object
38354
38355# Create an old-style archive from a shared archive.
38356old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38357
38358# Create a temporary old-style archive to link instead of a shared archive.
38359old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38360
38361# Commands used to build a shared archive.
38362archive_cmds=$lt_archive_cmds
38363archive_expsym_cmds=$lt_archive_expsym_cmds
38364
38365# Commands used to build a loadable module if different from building
38366# a shared archive.
38367module_cmds=$lt_module_cmds
38368module_expsym_cmds=$lt_module_expsym_cmds
38369
38370# Whether we are building with GNU ld or not.
38371with_gnu_ld=$lt_with_gnu_ld
38372
38373# Flag that allows shared libraries with undefined symbols to be built.
38374allow_undefined_flag=$lt_allow_undefined_flag
38375
38376# Flag that enforces no undefined symbols.
38377no_undefined_flag=$lt_no_undefined_flag
38378
38379# Flag to hardcode \$libdir into a binary during linking.
38380# This must work even if \$libdir does not exist
38381hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38382
cristy73bd4a52010-10-05 11:24:23 +000038383# Whether we need a single "-rpath" flag with a separated argument.
38384hardcode_libdir_separator=$lt_hardcode_libdir_separator
38385
38386# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38387# DIR into the resulting binary.
38388hardcode_direct=$hardcode_direct
38389
38390# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38391# DIR into the resulting binary and the resulting library dependency is
38392# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38393# library is relocated.
38394hardcode_direct_absolute=$hardcode_direct_absolute
38395
38396# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38397# into the resulting binary.
38398hardcode_minus_L=$hardcode_minus_L
38399
38400# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38401# into the resulting binary.
38402hardcode_shlibpath_var=$hardcode_shlibpath_var
38403
38404# Set to "yes" if building a shared library automatically hardcodes DIR
38405# into the library and all subsequent libraries and executables linked
38406# against it.
38407hardcode_automatic=$hardcode_automatic
38408
38409# Set to yes if linker adds runtime paths of dependent libraries
38410# to runtime path list.
38411inherit_rpath=$inherit_rpath
38412
38413# Whether libtool must link a program against all its dependency libraries.
38414link_all_deplibs=$link_all_deplibs
38415
cristy73bd4a52010-10-05 11:24:23 +000038416# Set to "yes" if exported symbols are required.
38417always_export_symbols=$always_export_symbols
38418
38419# The commands to list exported symbols.
38420export_symbols_cmds=$lt_export_symbols_cmds
38421
38422# Symbols that should not be listed in the preloaded symbols.
38423exclude_expsyms=$lt_exclude_expsyms
38424
38425# Symbols that must always be exported.
38426include_expsyms=$lt_include_expsyms
38427
38428# Commands necessary for linking programs (against libraries) with templates.
38429prelink_cmds=$lt_prelink_cmds
38430
cristyda16f162011-02-19 23:52:17 +000038431# Commands necessary for finishing linking programs.
38432postlink_cmds=$lt_postlink_cmds
38433
cristy73bd4a52010-10-05 11:24:23 +000038434# Specify filename containing input files.
38435file_list_spec=$lt_file_list_spec
38436
38437# How to hardcode a shared library path into an executable.
38438hardcode_action=$hardcode_action
38439
38440# The directories searched by this compiler when creating a shared library.
38441compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
38442
38443# Dependencies to place before and after the objects being linked to
38444# create a shared library.
38445predep_objects=$lt_predep_objects
38446postdep_objects=$lt_postdep_objects
38447predeps=$lt_predeps
38448postdeps=$lt_postdeps
38449
38450# The library search path used internally by the compiler when linking
38451# a shared library.
38452compiler_lib_search_path=$lt_compiler_lib_search_path
38453
38454# ### END LIBTOOL CONFIG
38455
38456_LT_EOF
38457
38458 case $host_os in
38459 aix3*)
38460 cat <<\_LT_EOF >> "$cfgfile"
38461# AIX sometimes has problems with the GCC collect2 program. For some
38462# reason, if we set the COLLECT_NAMES environment variable, the problems
38463# vanish in a puff of smoke.
38464if test "X${COLLECT_NAMES+set}" != Xset; then
38465 COLLECT_NAMES=
38466 export COLLECT_NAMES
38467fi
38468_LT_EOF
38469 ;;
38470 esac
38471
38472
38473ltmain="$ac_aux_dir/ltmain.sh"
38474
38475
38476 # We use sed instead of cat because bash on DJGPP gets confused if
38477 # if finds mixed CR/LF and LF-only lines. Since sed operates in
38478 # text mode, it properly converts lines to CR/LF. This bash problem
38479 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000038480 sed '$q' "$ltmain" >> "$cfgfile" \
38481 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000038482
cristyda16f162011-02-19 23:52:17 +000038483 if test x"$xsi_shell" = xyes; then
38484 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
38485func_dirname ()\
38486{\
38487\ case ${1} in\
38488\ */*) func_dirname_result="${1%/*}${2}" ;;\
38489\ * ) func_dirname_result="${3}" ;;\
38490\ esac\
38491} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
38492 && mv -f "$cfgfile.tmp" "$cfgfile" \
38493 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38494test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038495
38496
cristyda16f162011-02-19 23:52:17 +000038497 sed -e '/^func_basename ()$/,/^} # func_basename /c\
38498func_basename ()\
38499{\
38500\ func_basename_result="${1##*/}"\
38501} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
38502 && mv -f "$cfgfile.tmp" "$cfgfile" \
38503 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38504test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038505
38506
cristyda16f162011-02-19 23:52:17 +000038507 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
38508func_dirname_and_basename ()\
38509{\
38510\ case ${1} in\
38511\ */*) func_dirname_result="${1%/*}${2}" ;;\
38512\ * ) func_dirname_result="${3}" ;;\
38513\ esac\
38514\ func_basename_result="${1##*/}"\
38515} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
38516 && mv -f "$cfgfile.tmp" "$cfgfile" \
38517 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38518test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000038519
cristyda16f162011-02-19 23:52:17 +000038520
38521 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
38522func_stripname ()\
38523{\
38524\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
38525\ # positional parameters, so assign one to ordinary parameter first.\
38526\ func_stripname_result=${3}\
38527\ func_stripname_result=${func_stripname_result#"${1}"}\
38528\ func_stripname_result=${func_stripname_result%"${2}"}\
38529} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
38530 && mv -f "$cfgfile.tmp" "$cfgfile" \
38531 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38532test 0 -eq $? || _lt_function_replace_fail=:
38533
38534
38535 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
38536func_split_long_opt ()\
38537{\
38538\ func_split_long_opt_name=${1%%=*}\
38539\ func_split_long_opt_arg=${1#*=}\
38540} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
38541 && mv -f "$cfgfile.tmp" "$cfgfile" \
38542 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38543test 0 -eq $? || _lt_function_replace_fail=:
38544
38545
38546 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
38547func_split_short_opt ()\
38548{\
38549\ func_split_short_opt_arg=${1#??}\
38550\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
38551} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
38552 && mv -f "$cfgfile.tmp" "$cfgfile" \
38553 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38554test 0 -eq $? || _lt_function_replace_fail=:
38555
38556
38557 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
38558func_lo2o ()\
38559{\
38560\ case ${1} in\
38561\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
38562\ *) func_lo2o_result=${1} ;;\
38563\ esac\
38564} # Extended-shell func_lo2o 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=:
38568
38569
38570 sed -e '/^func_xform ()$/,/^} # func_xform /c\
38571func_xform ()\
38572{\
38573 func_xform_result=${1%.*}.lo\
38574} # Extended-shell func_xform 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=:
38578
38579
38580 sed -e '/^func_arith ()$/,/^} # func_arith /c\
38581func_arith ()\
38582{\
38583 func_arith_result=$(( $* ))\
38584} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
38585 && mv -f "$cfgfile.tmp" "$cfgfile" \
38586 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38587test 0 -eq $? || _lt_function_replace_fail=:
38588
38589
38590 sed -e '/^func_len ()$/,/^} # func_len /c\
38591func_len ()\
38592{\
38593 func_len_result=${#1}\
38594} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
38595 && mv -f "$cfgfile.tmp" "$cfgfile" \
38596 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38597test 0 -eq $? || _lt_function_replace_fail=:
38598
38599fi
38600
38601if test x"$lt_shell_append" = xyes; then
38602 sed -e '/^func_append ()$/,/^} # func_append /c\
38603func_append ()\
38604{\
38605 eval "${1}+=\\${2}"\
38606} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
38607 && mv -f "$cfgfile.tmp" "$cfgfile" \
38608 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38609test 0 -eq $? || _lt_function_replace_fail=:
38610
38611
38612 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
38613func_append_quoted ()\
38614{\
38615\ func_quote_for_eval "${2}"\
38616\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
38617} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
38618 && mv -f "$cfgfile.tmp" "$cfgfile" \
38619 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38620test 0 -eq $? || _lt_function_replace_fail=:
38621
38622
38623 # Save a `func_append' function call where possible by direct use of '+='
38624 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
38625 && mv -f "$cfgfile.tmp" "$cfgfile" \
38626 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38627 test 0 -eq $? || _lt_function_replace_fail=:
38628else
38629 # Save a `func_append' function call even when '+=' is not available
38630 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
38631 && mv -f "$cfgfile.tmp" "$cfgfile" \
38632 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
38633 test 0 -eq $? || _lt_function_replace_fail=:
38634fi
38635
38636if test x"$_lt_function_replace_fail" = x":"; then
38637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
38638$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
38639fi
38640
38641
38642 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000038643 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
38644 chmod +x "$ofile"
38645
38646
38647 cat <<_LT_EOF >> "$ofile"
38648
38649# ### BEGIN LIBTOOL TAG CONFIG: CXX
38650
38651# The linker used to build libraries.
38652LD=$lt_LD_CXX
38653
cristy0c60a692010-11-04 01:09:47 +000038654# How to create reloadable object files.
38655reload_flag=$lt_reload_flag_CXX
38656reload_cmds=$lt_reload_cmds_CXX
38657
cristy73bd4a52010-10-05 11:24:23 +000038658# Commands used to build an old-style archive.
38659old_archive_cmds=$lt_old_archive_cmds_CXX
38660
38661# A language specific compiler.
38662CC=$lt_compiler_CXX
38663
38664# Is the compiler the GNU compiler?
38665with_gcc=$GCC_CXX
38666
38667# Compiler flag to turn off builtin functions.
38668no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
38669
cristy73bd4a52010-10-05 11:24:23 +000038670# Additional compiler flags for building library objects.
38671pic_flag=$lt_lt_prog_compiler_pic_CXX
38672
cristyda16f162011-02-19 23:52:17 +000038673# How to pass a linker flag through the compiler.
38674wl=$lt_lt_prog_compiler_wl_CXX
38675
cristy73bd4a52010-10-05 11:24:23 +000038676# Compiler flag to prevent dynamic linking.
38677link_static_flag=$lt_lt_prog_compiler_static_CXX
38678
38679# Does compiler simultaneously support -c and -o options?
38680compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
38681
38682# Whether or not to add -lc for building shared libraries.
38683build_libtool_need_lc=$archive_cmds_need_lc_CXX
38684
38685# Whether or not to disallow shared libs when runtime libs are static.
38686allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
38687
38688# Compiler flag to allow reflexive dlopens.
38689export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
38690
38691# Compiler flag to generate shared objects directly from archives.
38692whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
38693
38694# Whether the compiler copes with passing no objects directly.
38695compiler_needs_object=$lt_compiler_needs_object_CXX
38696
38697# Create an old-style archive from a shared archive.
38698old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
38699
38700# Create a temporary old-style archive to link instead of a shared archive.
38701old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
38702
38703# Commands used to build a shared archive.
38704archive_cmds=$lt_archive_cmds_CXX
38705archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
38706
38707# Commands used to build a loadable module if different from building
38708# a shared archive.
38709module_cmds=$lt_module_cmds_CXX
38710module_expsym_cmds=$lt_module_expsym_cmds_CXX
38711
38712# Whether we are building with GNU ld or not.
38713with_gnu_ld=$lt_with_gnu_ld_CXX
38714
38715# Flag that allows shared libraries with undefined symbols to be built.
38716allow_undefined_flag=$lt_allow_undefined_flag_CXX
38717
38718# Flag that enforces no undefined symbols.
38719no_undefined_flag=$lt_no_undefined_flag_CXX
38720
38721# Flag to hardcode \$libdir into a binary during linking.
38722# This must work even if \$libdir does not exist
38723hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
38724
cristy73bd4a52010-10-05 11:24:23 +000038725# Whether we need a single "-rpath" flag with a separated argument.
38726hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
38727
38728# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38729# DIR into the resulting binary.
38730hardcode_direct=$hardcode_direct_CXX
38731
38732# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38733# DIR into the resulting binary and the resulting library dependency is
38734# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38735# library is relocated.
38736hardcode_direct_absolute=$hardcode_direct_absolute_CXX
38737
38738# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38739# into the resulting binary.
38740hardcode_minus_L=$hardcode_minus_L_CXX
38741
38742# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38743# into the resulting binary.
38744hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
38745
38746# Set to "yes" if building a shared library automatically hardcodes DIR
38747# into the library and all subsequent libraries and executables linked
38748# against it.
38749hardcode_automatic=$hardcode_automatic_CXX
38750
38751# Set to yes if linker adds runtime paths of dependent libraries
38752# to runtime path list.
38753inherit_rpath=$inherit_rpath_CXX
38754
38755# Whether libtool must link a program against all its dependency libraries.
38756link_all_deplibs=$link_all_deplibs_CXX
38757
cristy73bd4a52010-10-05 11:24:23 +000038758# Set to "yes" if exported symbols are required.
38759always_export_symbols=$always_export_symbols_CXX
38760
38761# The commands to list exported symbols.
38762export_symbols_cmds=$lt_export_symbols_cmds_CXX
38763
38764# Symbols that should not be listed in the preloaded symbols.
38765exclude_expsyms=$lt_exclude_expsyms_CXX
38766
38767# Symbols that must always be exported.
38768include_expsyms=$lt_include_expsyms_CXX
38769
38770# Commands necessary for linking programs (against libraries) with templates.
38771prelink_cmds=$lt_prelink_cmds_CXX
38772
cristyda16f162011-02-19 23:52:17 +000038773# Commands necessary for finishing linking programs.
38774postlink_cmds=$lt_postlink_cmds_CXX
38775
cristy73bd4a52010-10-05 11:24:23 +000038776# Specify filename containing input files.
38777file_list_spec=$lt_file_list_spec_CXX
38778
38779# How to hardcode a shared library path into an executable.
38780hardcode_action=$hardcode_action_CXX
38781
38782# The directories searched by this compiler when creating a shared library.
38783compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
38784
38785# Dependencies to place before and after the objects being linked to
38786# create a shared library.
38787predep_objects=$lt_predep_objects_CXX
38788postdep_objects=$lt_postdep_objects_CXX
38789predeps=$lt_predeps_CXX
38790postdeps=$lt_postdeps_CXX
38791
38792# The library search path used internally by the compiler when linking
38793# a shared library.
38794compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38795
38796# ### END LIBTOOL TAG CONFIG: CXX
38797_LT_EOF
38798
38799 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038800 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038801 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038802 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038803 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38804 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38805
38806 esac
38807done # for ac_tag
38808
38809
cristy8b350f62009-11-15 23:12:43 +000038810as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038811_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038812ac_clean_files=$ac_clean_files_save
38813
38814test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038815 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038816
38817
38818# configure is writing to config.log, and then calls config.status.
38819# config.status does its own redirection, appending to config.log.
38820# Unfortunately, on DOS this fails, as config.log is still kept open
38821# by configure, so config.status won't be able to write to it; its
38822# output is simply discarded. So we exec the FD to /dev/null,
38823# effectively closing config.log, so it can be properly (re)opened and
38824# appended to by config.status. When coming back to configure, we
38825# need to make the FD available again.
38826if test "$no_create" != yes; then
38827 ac_cs_success=:
38828 ac_config_status_args=
38829 test "$silent" = yes &&
38830 ac_config_status_args="$ac_config_status_args --quiet"
38831 exec 5>/dev/null
38832 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38833 exec 5>>config.log
38834 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38835 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038836 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038837fi
38838if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038839 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038840$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38841fi
38842
38843
38844rm -f magick-version
38845
cristy430a7312010-01-21 20:44:04 +000038846result_dejavu_font_dir='none'
38847if test "${dejavu_font_dir}x" != 'x'; then
38848 result_dejavu_font_dir=$dejavu_font_dir
38849fi
38850
cristy3ed852e2009-09-05 21:47:34 +000038851result_ghostscript_font_dir='none'
38852if test "${ghostscript_font_dir}x" != 'x'; then
38853 result_ghostscript_font_dir=$ghostscript_font_dir
38854fi
38855
38856result_windows_font_dir='none'
38857if test "${windows_font_dir}x" != 'x'; then
38858 result_windows_font_dir=${windows_font_dir}
38859fi
38860
cristy09b53e12011-10-14 12:47:22 +000038861{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038862ImageMagick is configured as follows. Please verify that this configuration
38863matches your expectations.
38864
38865Host system type: $host
38866Build system type: $build
38867
38868 Option Value
38869-------------------------------------------------------------------------------
38870Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38871Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038872Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038873GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38874Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38875High Dynamic Range Imagery
38876 --enable-hdri=$enable_hdri $enable_hdri
38877
38878Delegate Configuration:
38879BZLIB --with-bzlib=$with_bzlib $have_bzlib
38880Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038881Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038882DJVU --with-djvu=$with_djvu $have_djvu
38883DPS --with-dps=$with_dps $have_dps
38884FFTW --with-fftw=$with_fftw $have_fftw
38885FlashPIX --with-fpx=$with_fpx $have_fpx
38886FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38887FreeType --with-freetype=$with_freetype $have_freetype
38888GhostPCL None $PCLDelegate ($PCLVersion)
38889GhostXPS None $XPSDelegate ($XPSVersion)
38890Ghostscript None $PSDelegate ($GSVersion)
38891Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38892Ghostscript lib --with-gslib=$with_gslib $have_gslib
38893Graphviz --with-gvc=$with_gvc $have_gvc
38894JBIG --with-jbig=$with_jbig $have_jbig
38895JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38896JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038897LCMS v1 --with-lcms=$with_lcms $have_lcms
38898LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038899LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038900LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038901Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38902OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038903PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038904PERL --with-perl=$with_perl $have_perl
38905PNG --with-png=$with_png $have_png
38906RSVG --with-rsvg=$with_rsvg $have_rsvg
38907TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038908WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038909Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38910WMF --with-wmf=$with_wmf $have_wmf
38911X11 --with-x=$with_x $have_x
38912XML --with-xml=$with_xml $have_xml
38913ZLIB --with-zlib=$with_zlib $have_zlib
38914
38915X11 Configuration:
38916 X_CFLAGS = $X_CFLAGS
38917 X_PRE_LIBS = $X_PRE_LIBS
38918 X_LIBS = $X_LIBS
38919 X_EXTRA_LIBS = $X_EXTRA_LIBS
38920
38921Options used to compile and link:
38922 PREFIX = $PREFIX_DIR
38923 EXEC-PREFIX = $EXEC_PREFIX_DIR
38924 VERSION = $PACKAGE_VERSION
38925 CC = $CC
38926 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038927 CPPFLAGS = $MAGICK_CPPFLAGS
38928 PCFLAGS = $MAGICK_PCFLAGS
38929 DEFS = $DEFS
38930 LDFLAGS = $LDFLAGS
38931 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38932 LIBS = $MAGICK_LIBS
38933 CXX = $CXX
38934 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038935 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038936" >&5
cristy09b53e12011-10-14 12:47:22 +000038937$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038938ImageMagick is configured as follows. Please verify that this configuration
38939matches your expectations.
38940
38941Host system type: $host
38942Build system type: $build
38943
38944 Option Value
38945-------------------------------------------------------------------------------
38946Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38947Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038948Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038949GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38950Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38951High Dynamic Range Imagery
38952 --enable-hdri=$enable_hdri $enable_hdri
38953
38954Delegate Configuration:
38955BZLIB --with-bzlib=$with_bzlib $have_bzlib
38956Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038957Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038958DJVU --with-djvu=$with_djvu $have_djvu
38959DPS --with-dps=$with_dps $have_dps
38960FFTW --with-fftw=$with_fftw $have_fftw
38961FlashPIX --with-fpx=$with_fpx $have_fpx
38962FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38963FreeType --with-freetype=$with_freetype $have_freetype
38964GhostPCL None $PCLDelegate ($PCLVersion)
38965GhostXPS None $XPSDelegate ($XPSVersion)
38966Ghostscript None $PSDelegate ($GSVersion)
38967Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38968Ghostscript lib --with-gslib=$with_gslib $have_gslib
38969Graphviz --with-gvc=$with_gvc $have_gvc
38970JBIG --with-jbig=$with_jbig $have_jbig
38971JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38972JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038973LCMS v1 --with-lcms=$with_lcms $have_lcms
38974LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038975LQR --with-lqr=$with_lqr $have_lqr
cristyfbb0ef02010-12-19 02:32:11 +000038976LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038977Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38978OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038979PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038980PERL --with-perl=$with_perl $have_perl
38981PNG --with-png=$with_png $have_png
38982RSVG --with-rsvg=$with_rsvg $have_rsvg
38983TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038984WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038985Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
38986WMF --with-wmf=$with_wmf $have_wmf
38987X11 --with-x=$with_x $have_x
38988XML --with-xml=$with_xml $have_xml
38989ZLIB --with-zlib=$with_zlib $have_zlib
38990
38991X11 Configuration:
38992 X_CFLAGS = $X_CFLAGS
38993 X_PRE_LIBS = $X_PRE_LIBS
38994 X_LIBS = $X_LIBS
38995 X_EXTRA_LIBS = $X_EXTRA_LIBS
38996
38997Options used to compile and link:
38998 PREFIX = $PREFIX_DIR
38999 EXEC-PREFIX = $EXEC_PREFIX_DIR
39000 VERSION = $PACKAGE_VERSION
39001 CC = $CC
39002 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000039003 CPPFLAGS = $MAGICK_CPPFLAGS
39004 PCFLAGS = $MAGICK_PCFLAGS
39005 DEFS = $DEFS
39006 LDFLAGS = $LDFLAGS
39007 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
39008 LIBS = $MAGICK_LIBS
39009 CXX = $CXX
39010 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000039011 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000039012" >&6;}