blob: ffbe2f2e00ffa15a89798c2df8bbb929cde413b0 [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
cristy0c60a692010-11-04 01:09:47 +0000569
cristycd4c5312009-11-22 01:19:08 +0000570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
cristy3ed852e2009-09-05 21:47:34 +0000572
573# Name of the host.
cristy98dddb52010-11-04 00:30:15 +0000574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
cristy3ed852e2009-09-05 21:47:34 +0000575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
cristy3ed852e2009-09-05 21:47:34 +0000589
590# Identity of this package.
591PACKAGE_NAME='ImageMagick'
cristy09b53e12011-10-14 12:47:22 +0000592PACKAGE_TARNAME='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +0000593PACKAGE_VERSION='7.0.0-0'
594PACKAGE_STRING='ImageMagick 7.0.0-0'
cristy3ed852e2009-09-05 21:47:34 +0000595PACKAGE_BUGREPORT='http://www.imagemagick.org'
cristy8b350f62009-11-15 23:12:43 +0000596PACKAGE_URL=''
cristy3ed852e2009-09-05 21:47:34 +0000597
cristy4c08aed2011-07-01 19:47:50 +0000598ac_unique_file="MagickCore/MagickCore.h"
cristy3ed852e2009-09-05 21:47:34 +0000599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613# include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618# include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
cristycd4c5312009-11-22 01:19:08 +0000635ac_header_list=
cristy5eef09f2012-10-16 12:08:28 +0000636ac_subst_vars='am__EXEEXT_FALSE
cristy73bd4a52010-10-05 11:24:23 +0000637am__EXEEXT_TRUE
638LTLIBOBJS
cristyfd9dcd42010-08-08 18:07:02 +0000639MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +0000640MAGICK_LIBS
641MAGICK_LDFLAGS
642MAGICK_PCFLAGS
643MAGICK_CPPFLAGS
644MAGICK_CXXFLAGS
645MAGICK_CFLAGS
646MAGICK_DEP_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000647OSX_GCOV_LDFLAG
648DELEGATES
649MAGICKCORE_PATH
650PERL_SUPPORTS_DESTDIR
cristy73bd4a52010-10-05 11:24:23 +0000651WITH_PERL_DYNAMIC_FALSE
652WITH_PERL_DYNAMIC_TRUE
653WITH_PERL_STATIC_FALSE
654WITH_PERL_STATIC_TRUE
655WITH_PERL_FALSE
656WITH_PERL_TRUE
657PERL_VERSION
cristy3ed852e2009-09-05 21:47:34 +0000658GSVersion
659GSPSDevice
660GSPDFDevice
661GSMonoDevice
662GSEPSDevice
663GSColorDevice
664GSCMYKDevice
665GSAlphaDevice
666XPSVersion
667XPSCMYKDevice
668XPSColorDevice
669XPSMonoDevice
670PCLVersion
671PCLCMYKDevice
672PCLColorDevice
673PCLMonoDevice
cristy73bd4a52010-10-05 11:24:23 +0000674ZIP_DELEGATE_FALSE
675ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000676ZIP
cristy73bd4a52010-10-05 11:24:23 +0000677P7ZIP_DELEGATE_FALSE
678P7ZIP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000679P7ZIP
cristy73bd4a52010-10-05 11:24:23 +0000680RPM_DELEGATE_FALSE
681RPM_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000682RPM
683PERL
684TAR
685ShowImageDelegate
686type_include_files
687ghostscript_font_dir
688windows_font_dir
cristy430a7312010-01-21 20:44:04 +0000689dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +0000690PrintDelegate
691ZipDelegate
692XPSDelegate
693WWWDecodeDelegate
694WMFDecodeDelegate
cristy5ac9ac82010-07-29 13:24:24 +0000695UniconvertorDelegate
cristy3ed852e2009-09-05 21:47:34 +0000696TXTDelegate
cristyec6934f2012-08-14 18:38:40 +0000697SVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000698SCANDecodeDelegate
cristy4689cf02010-02-17 21:15:45 +0000699RSVGDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000700RMDelegate
701RLEEncodeDelegate
702PSDelegate
703POVDelegate
704PGPDecodeDelegate
705PCLDelegate
706MVDelegate
cristy935c86e2010-06-05 23:50:07 +0000707MrSIDDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000708MPEGEncodeDelegate
709MPEGDecodeDelegate
710MANDelegate
711LaunchDelegate
cristy3ed852e2009-09-05 21:47:34 +0000712LPRDelegate
713LPDelegate
714ILBMEncodeDelegate
715ILBMDecodeDelegate
716HTMLDecodeDelegate
717HPGLDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000718GnuplotDecodeDelegate
719MogrifyDelegate
720DisplayDelegate
721ConvertDelegate
722FIGDecodeDelegate
723EditorDelegate
724EchoDelegate
725DVIDecodeDelegate
726GVCDecodeDelegate
727DNGDecodeDelegate
728CatDelegate
729CGMDecodeDelegate
730BrowseDelegate
731BZIPDelegate
732BlenderDecodeDelegate
cristy3ed852e2009-09-05 21:47:34 +0000733AutotraceDecodeDelegate
cristy670aa3c2011-11-03 00:54:00 +0000734SHAREARCH_PATH
cristy3ed852e2009-09-05 21:47:34 +0000735SHARE_PATH
cristy4f820712011-04-01 12:35:43 +0000736CONFIGURE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000737DOCUMENTATION_PATH
738FILTER_PATH
739CODER_PATH
cristy3ed852e2009-09-05 21:47:34 +0000740LIBRARY_PATH
741EXECUTABLE_PATH
cristy2a11bef2011-10-28 18:33:11 +0000742INCLUDE_PATH
cristy3ed852e2009-09-05 21:47:34 +0000743PERLMAINCC
744XML_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000745XML_DELEGATE_FALSE
746XML_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000747xml2_config
cristy03f7cf92011-12-15 01:40:41 +0000748WMF_LIBS_DEPS
cristy3ed852e2009-09-05 21:47:34 +0000749WMF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000750WMF_DELEGATE_FALSE
751WMF_DELEGATE_TRUE
cristyb1860752011-03-14 00:27:46 +0000752WEBP_LIBS
753WEBP_DELEGATE_FALSE
754WEBP_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000755TIFF_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000756TIFF_DELEGATE_FALSE
757TIFF_DELEGATE_TRUE
758CAIRO_DELEGATE_FALSE
759CAIRO_DELEGATE_TRUE
760RSVG_DELEGATE_FALSE
761RSVG_DELEGATE_TRUE
762CAIRO_SVG_LIBS
763CAIRO_SVG_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000764RSVG_LIBS
765RSVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +0000766PNG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000767PNG_DELEGATE_FALSE
768PNG_DELEGATE_TRUE
cristya054b762012-03-26 23:16:00 +0000769PANGOCAIRO_DELEGATE_FALSE
770PANGOCAIRO_DELEGATE_TRUE
cristy41cbe8a2011-10-27 01:35:18 +0000771PANGO_DELEGATE_FALSE
772PANGO_DELEGATE_TRUE
773PANGO_LIBS
774PANGO_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000775OPENEXR_DELEGATE_FALSE
776OPENEXR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000777OPENEXR_LIBS
778OPENEXR_CFLAGS
cristyfbb0ef02010-12-19 02:32:11 +0000779LZMA_DELEGATE_FALSE
780LZMA_DELEGATE_TRUE
cristyb94e5002011-11-14 13:20:10 +0000781LZMA_LIBS
782LZMA_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000783LQR_DELEGATE_FALSE
784LQR_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000785LQR_LIBS
786LQR_CFLAGS
787LCMS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000788LCMS_DELEGATE_FALSE
789LCMS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000790JP2_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000791JP2_DELEGATE_FALSE
792JP2_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000793JPEG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000794JPEG_DELEGATE_FALSE
795JPEG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000796JBIG_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000797JBIG_DELEGATE_FALSE
798JBIG_DELEGATE_TRUE
799GVC_DELEGATE_FALSE
800GVC_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000801GVC_LIBS
802GVC_CFLAGS
803GS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000804GS_DELEGATE_FALSE
805GS_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000806FREETYPE_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000807FREETYPE_DELEGATE_FALSE
808FREETYPE_DELEGATE_TRUE
cristy81beccd2011-10-03 18:17:24 +0000809freetype_config
cristy73bd4a52010-10-05 11:24:23 +0000810FONTCONFIG_DELEGATE_FALSE
811FONTCONFIG_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000812FONTCONFIG_LIBS
813FONTCONFIG_CFLAGS
814FPX_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000815FPX_DELEGATE_FALSE
816FPX_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000817FFTW_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000818FFTW_DELEGATE_FALSE
819FFTW_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000820DJVU_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000821DJVU_DELEGATE_FALSE
822DJVU_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000823DPS_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000824DPS_DELEGATE_FALSE
825DPS_DELEGATE_TRUE
826AUTOTRACE_DELEGATE_FALSE
827AUTOTRACE_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000828AUTOTRACE_LIBS
829AUTOTRACE_CFLAGS
830LIB_DL
cristy5eef09f2012-10-16 12:08:28 +0000831WITH_LTDL_FALSE
832WITH_LTDL_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000833ZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000834ZLIB_DELEGATE_FALSE
835ZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000836XEXT_LIBS
837X11_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000838X11_DELEGATE_FALSE
839X11_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000840X_EXTRA_LIBS
841X_LIBS
842X_PRE_LIBS
843X_CFLAGS
cristyc7083c12009-10-14 03:16:55 +0000844XMKMF
cristy3ed852e2009-09-05 21:47:34 +0000845BZLIB_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000846BZLIB_DELEGATE_FALSE
847BZLIB_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000848CCMALLOCDelegate
849UMEM_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000850HasUMEM_FALSE
851HasUMEM_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000852THREAD_LIBS
853GOMP_LIBS
cristy73bd4a52010-10-05 11:24:23 +0000854WITH_MAGICK_PLUS_PLUS_FALSE
855WITH_MAGICK_PLUS_PLUS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000856OPENMP_CXXFLAGS
cristy161b9262010-03-20 19:34:32 +0000857MATH_LIBS
cristy3ed852e2009-09-05 21:47:34 +0000858POW_LIB
859LIBOBJS
cristy6d5e20f2011-04-25 13:48:54 +0000860UINTPTR_F
cristy3ed852e2009-09-05 21:47:34 +0000861UINTPTR_T
cristy6d5e20f2011-04-25 13:48:54 +0000862UINTMAX_F
cristy3ed852e2009-09-05 21:47:34 +0000863UINTMAX_T
cristy6d5e20f2011-04-25 13:48:54 +0000864UINT64_F
cristy3ed852e2009-09-05 21:47:34 +0000865UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000866INT64_F
cristy3ed852e2009-09-05 21:47:34 +0000867INT64_T
cristy6d5e20f2011-04-25 13:48:54 +0000868UINT32_F
cristy3ed852e2009-09-05 21:47:34 +0000869UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +0000870INT32_F
cristy3ed852e2009-09-05 21:47:34 +0000871INT32_T
872UINT16_T
873INT16_T
874UINT8_T
875INT8_T
876LIBRARY_EXTRA_CPPFLAGS
877MODULE_EXTRA_CPPFLAGS
878LIBSTDCLDFLAGS
879PERL_MAKE_OPTIONS
cristy3a75f062012-09-08 23:29:40 +0000880MAGICK_LT_RELEASE_OPTS
cristy3ed852e2009-09-05 21:47:34 +0000881QUANTUM_DEPTH
cristy71d8c202012-03-20 17:05:01 +0000882LEGACY_SUPPORT_FALSE
883LEGACY_SUPPORT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000884MAINT
885MAINTAINER_MODE_FALSE
886MAINTAINER_MODE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000887MAGICK_HDRI
cristy73bd4a52010-10-05 11:24:23 +0000888WITH_MODULES_FALSE
889WITH_MODULES_TRUE
890WITH_SHARED_LIBS_FALSE
891WITH_SHARED_LIBS_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000892LIBTOOL_DEPS
cristy73bd4a52010-10-05 11:24:23 +0000893CXXCPP
894OTOOL64
895OTOOL
896LIPO
897NMEDIT
898DSYMUTIL
cristyda16f162011-02-19 23:52:17 +0000899MANIFEST_TOOL
cristy73bd4a52010-10-05 11:24:23 +0000900RANLIB
cristyda16f162011-02-19 23:52:17 +0000901ac_ct_AR
cristy73bd4a52010-10-05 11:24:23 +0000902AR
903NM
904ac_ct_DUMPBIN
905DUMPBIN
906LIBTOOL
907OBJDUMP
908DLLTOOL
909AS
cristy3ed852e2009-09-05 21:47:34 +0000910LFS_CPPFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000911CL_LIBS
cristy736173a2009-09-20 21:18:22 +0000912CL_CFLAGS
cristy3ed852e2009-09-05 21:47:34 +0000913OPENMP_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +0000914PTHREAD_CFLAGS
915PTHREAD_LIBS
916PTHREAD_CC
917ax_pthread_config
cristy670aa3c2011-11-03 00:54:00 +0000918SHAREARCH_DIR
919INCLUDEARCH_DIR
cristy3ed852e2009-09-05 21:47:34 +0000920WinPathScript
cristy73bd4a52010-10-05 11:24:23 +0000921USING_CL_FALSE
922USING_CL_TRUE
923CYGWIN_BUILD_FALSE
924CYGWIN_BUILD_TRUE
925WIN32_NATIVE_BUILD_FALSE
926WIN32_NATIVE_BUILD_TRUE
927WINGDI32_DELEGATE_FALSE
928WINGDI32_DELEGATE_TRUE
cristy3ed852e2009-09-05 21:47:34 +0000929GDI32_LIBS
cristy9b86f202012-11-28 21:55:35 +0000930HAVE_LD_VERSION_SCRIPT_FALSE
931HAVE_LD_VERSION_SCRIPT_TRUE
cristy73bd4a52010-10-05 11:24:23 +0000932PKG_CONFIG
cristy37110d62012-03-01 18:38:20 +0000933PRTDIAG
cristy3ed852e2009-09-05 21:47:34 +0000934LN_S
cristy3ed852e2009-09-05 21:47:34 +0000935LD
cristy73bd4a52010-10-05 11:24:23 +0000936FGREP
937SED
938am__fastdepCXX_FALSE
939am__fastdepCXX_TRUE
940CXXDEPMODE
cristy95646052009-11-28 23:05:30 +0000941ac_ct_CXX
942CXXFLAGS
943CXX
cristya0b81c32010-01-22 02:54:33 +0000944EGREP
945GREP
946CPP
cristy73bd4a52010-10-05 11:24:23 +0000947am__fastdepCC_FALSE
948am__fastdepCC_TRUE
949CCDEPMODE
cristy7247bba2012-02-05 16:37:27 +0000950am__nodep
cristy73bd4a52010-10-05 11:24:23 +0000951AMDEPBACKSLASH
952AMDEP_FALSE
953AMDEP_TRUE
954am__quote
955am__include
956DEPDIR
cristy3ed852e2009-09-05 21:47:34 +0000957OBJEXT
958EXEEXT
959ac_ct_CC
960CPPFLAGS
961LDFLAGS
962CFLAGS
963CC
964DIRSEP
965MAGICK_FILTER_MODULE_PATH
966MAGICK_CONFIGURE_BUILD_PATH
967MAGICK_CONFIGURE_SRC_PATH
968MAGICK_CODER_MODULE_PATH
969MAN_DIR
970INFO_DIR
971PERSISTINCLUDE_DIR
972INCLUDE_DIR
973LIB_DIR
974LOCALSTATE_DIR
975SHAREDSTATE_DIR
976SYSCONF_DIR
cristyd55889c2011-03-27 00:50:24 +0000977DOC_DIR
cristy3ed852e2009-09-05 21:47:34 +0000978DATA_DIR
979LIBEXEC_DIR
980SBIN_DIR
981BIN_DIR
982EXEC_PREFIX_DIR
983PREFIX_DIR
984CONFIG_STATUS_DEPENDENCIES
985MAGICK_LIB_VERSION_NUMBER
986MAGICK_LIB_VERSION_TEXT
987MAGICK_LIB_VERSION
cristy73bd4a52010-10-05 11:24:23 +0000988AM_BACKSLASH
989AM_DEFAULT_VERBOSITY
cristyc3fb77b2012-02-06 01:49:41 +0000990AM_DEFAULT_V
991AM_V
cristy73bd4a52010-10-05 11:24:23 +0000992am__untar
993am__tar
994AMTAR
995am__leading_dot
996SET_MAKE
997AWK
998mkdir_p
999MKDIR_P
1000INSTALL_STRIP_PROGRAM
1001STRIP
1002install_sh
1003MAKEINFO
1004AUTOHEADER
1005AUTOMAKE
1006AUTOCONF
1007ACLOCAL
1008VERSION
1009PACKAGE
1010CYGPATH_W
1011am__isrc
1012INSTALL_DATA
1013INSTALL_SCRIPT
1014INSTALL_PROGRAM
cristy15a88782010-01-31 23:24:49 +00001015PACKAGE_VERSION_ADDENDUM
cristy3ed852e2009-09-05 21:47:34 +00001016PACKAGE_RELEASE_DATE
1017PACKAGE_LIB_VERSION_NUMBER
1018PACKAGE_LIB_VERSION
1019PACKAGE_CHANGE_DATE
1020PACKAGE_RELEASE
cristy878c2f12011-08-19 00:25:19 +00001021PACKAGE_PERL_VERSION
cristyd694ca32011-03-27 21:42:54 +00001022MAGICK_SVN_REVISION
cristybab87c32010-02-09 20:54:22 +00001023MAGICK_LIBRARY_VERSION_INFO
1024MAGICK_LIBRARY_CURRENT_MIN
cristy3ed852e2009-09-05 21:47:34 +00001025MAGICK_LIBRARY_AGE
1026MAGICK_LIBRARY_REVISION
1027MAGICK_LIBRARY_CURRENT
cristy3225a072010-04-17 01:47:28 +00001028MAGICK_TARGET_OS
1029MAGICK_TARGET_VENDOR
1030MAGICK_TARGET_CPU
cristy3ed852e2009-09-05 21:47:34 +00001031target_os
1032target_vendor
1033target_cpu
1034target
1035host_os
1036host_vendor
1037host_cpu
1038host
1039build_os
1040build_vendor
1041build_cpu
1042build
1043CONFIGURE_ARGS
1044DISTCHECK_CONFIG_FLAGS
1045target_alias
1046host_alias
1047build_alias
1048LIBS
1049ECHO_T
1050ECHO_N
1051ECHO_C
1052DEFS
1053mandir
1054localedir
1055libdir
1056psdir
1057pdfdir
1058dvidir
1059htmldir
1060infodir
1061docdir
1062oldincludedir
1063includedir
1064localstatedir
1065sharedstatedir
1066sysconfdir
1067datadir
1068datarootdir
1069libexecdir
1070sbindir
1071bindir
1072program_transform_name
1073prefix
1074exec_prefix
cristy8b350f62009-11-15 23:12:43 +00001075PACKAGE_URL
cristy3ed852e2009-09-05 21:47:34 +00001076PACKAGE_BUGREPORT
1077PACKAGE_STRING
1078PACKAGE_VERSION
1079PACKAGE_TARNAME
1080PACKAGE_NAME
1081PATH_SEPARATOR
1082SHELL'
1083ac_subst_files=''
1084ac_user_opts='
1085enable_option_checking
cristy73bd4a52010-10-05 11:24:23 +00001086enable_silent_rules
1087enable_dependency_tracking
1088with_gnu_ld
1089with_dmalloc
cristy37110d62012-03-01 18:38:20 +00001090with_gcc_arch
cristy9b86f202012-11-28 21:55:35 +00001091enable_ld_version_script
cristy3ed852e2009-09-05 21:47:34 +00001092enable_bounds_checking
1093enable_osx_universal_binary
cristy670aa3c2011-11-03 00:54:00 +00001094with_includearch_dir
1095with_sharearch_dir
cristy3ed852e2009-09-05 21:47:34 +00001096with_threads
1097enable_openmp
cristy73bd4a52010-10-05 11:24:23 +00001098enable_opencl
cristy3ed852e2009-09-05 21:47:34 +00001099enable_largefile
cristy73bd4a52010-10-05 11:24:23 +00001100enable_shared
1101enable_static
1102with_pic
1103enable_fast_install
cristyda16f162011-02-19 23:52:17 +00001104with_sysroot
cristy73bd4a52010-10-05 11:24:23 +00001105enable_libtool_lock
cristy3ed852e2009-09-05 21:47:34 +00001106with_modules
1107enable_delegate_build
1108enable_deprecated
1109enable_installed
1110enable_cipher
cristy6e3607c2011-09-13 13:59:17 +00001111enable_zero_configuration
cristy3ed852e2009-09-05 21:47:34 +00001112enable_hdri
cristy3ed852e2009-09-05 21:47:34 +00001113enable_assert
cristy73bd4a52010-10-05 11:24:23 +00001114enable_maintainer_mode
cristy3ed852e2009-09-05 21:47:34 +00001115enable_ccmalloc
1116enable_efence
1117enable_prof
1118enable_gprof
1119enable_gcov
1120with_method_prefix
cristy71d8c202012-03-20 17:05:01 +00001121enable_legacy_support
cristy3ed852e2009-09-05 21:47:34 +00001122with_quantum_depth
1123with_cache
1124with_frozenpaths
1125with_magick_plus_plus
cristy3a75f062012-09-08 23:29:40 +00001126with_package_release_name
cristy3ed852e2009-09-05 21:47:34 +00001127with_perl
1128with_perl_options
1129with_umem
1130with_libstdc
1131with_bzlib
cristyc7083c12009-10-14 03:16:55 +00001132with_x
cristy3ed852e2009-09-05 21:47:34 +00001133with_zlib
1134with_autotrace
1135with_dps
1136with_djvu
cristy430a7312010-01-21 20:44:04 +00001137with_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +00001138with_fftw
1139with_fpx
1140with_fontconfig
1141with_freetype
1142with_gslib
1143with_fontpath
1144with_gs_font_dir
1145with_gvc
1146with_jbig
1147with_jpeg
1148with_jp2
1149with_lcms
cristy71203402010-06-18 13:12:03 +00001150with_lcms2
cristy3ed852e2009-09-05 21:47:34 +00001151with_lqr
cristyfbb0ef02010-12-19 02:32:11 +00001152with_lzma
cristy3ed852e2009-09-05 21:47:34 +00001153with_openexr
cristy41cbe8a2011-10-27 01:35:18 +00001154with_pango
cristy3ed852e2009-09-05 21:47:34 +00001155with_png
1156with_rsvg
1157with_tiff
cristyb1860752011-03-14 00:27:46 +00001158with_webp
cristy3ed852e2009-09-05 21:47:34 +00001159with_windows_font_dir
1160with_wmf
1161with_xml
1162'
1163 ac_precious_vars='build_alias
1164host_alias
1165target_alias
1166CC
1167CFLAGS
1168LDFLAGS
1169LIBS
1170CPPFLAGS
cristya0b81c32010-01-22 02:54:33 +00001171CPP
cristy3ed852e2009-09-05 21:47:34 +00001172CXX
1173CXXFLAGS
1174CCC
cristy73bd4a52010-10-05 11:24:23 +00001175PKG_CONFIG
1176CXXCPP
cristyc7083c12009-10-14 03:16:55 +00001177XMKMF
cristy73bd4a52010-10-05 11:24:23 +00001178AUTOTRACE_CFLAGS
1179AUTOTRACE_LIBS
1180FONTCONFIG_CFLAGS
1181FONTCONFIG_LIBS
1182GVC_CFLAGS
1183GVC_LIBS
1184LQR_CFLAGS
1185LQR_LIBS
cristyb94e5002011-11-14 13:20:10 +00001186LZMA_CFLAGS
1187LZMA_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001188OPENEXR_CFLAGS
1189OPENEXR_LIBS
cristy41cbe8a2011-10-27 01:35:18 +00001190PANGO_CFLAGS
1191PANGO_LIBS
cristy73bd4a52010-10-05 11:24:23 +00001192RSVG_CFLAGS
1193RSVG_LIBS
1194CAIRO_SVG_CFLAGS
cristy81beccd2011-10-03 18:17:24 +00001195CAIRO_SVG_LIBS'
cristy3ed852e2009-09-05 21:47:34 +00001196
1197
1198# Initialize some variables set by options.
1199ac_init_help=
1200ac_init_version=false
1201ac_unrecognized_opts=
1202ac_unrecognized_sep=
1203# The variables have the same names as the options, with
1204# dashes changed to underlines.
1205cache_file=/dev/null
1206exec_prefix=NONE
1207no_create=
1208no_recursion=
1209prefix=NONE
1210program_prefix=NONE
1211program_suffix=NONE
1212program_transform_name=s,x,x,
1213silent=
1214site=
1215srcdir=
1216verbose=
1217x_includes=NONE
1218x_libraries=NONE
1219
1220# Installation directory options.
1221# These are left unexpanded so users can "make install exec_prefix=/foo"
1222# and all the variables that are supposed to be based on exec_prefix
1223# by default will actually change.
1224# Use braces instead of parens because sh, perl, etc. also accept them.
1225# (The list follows the same order as the GNU Coding Standards.)
1226bindir='${exec_prefix}/bin'
1227sbindir='${exec_prefix}/sbin'
1228libexecdir='${exec_prefix}/libexec'
1229datarootdir='${prefix}/share'
1230datadir='${datarootdir}'
1231sysconfdir='${prefix}/etc'
1232sharedstatedir='${prefix}/com'
1233localstatedir='${prefix}/var'
1234includedir='${prefix}/include'
1235oldincludedir='/usr/include'
1236docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1237infodir='${datarootdir}/info'
1238htmldir='${docdir}'
1239dvidir='${docdir}'
1240pdfdir='${docdir}'
1241psdir='${docdir}'
1242libdir='${exec_prefix}/lib'
1243localedir='${datarootdir}/locale'
1244mandir='${datarootdir}/man'
1245
1246ac_prev=
1247ac_dashdash=
1248for ac_option
1249do
1250 # If the previous option needs an argument, assign it.
1251 if test -n "$ac_prev"; then
1252 eval $ac_prev=\$ac_option
1253 ac_prev=
1254 continue
1255 fi
1256
1257 case $ac_option in
cristyda16f162011-02-19 23:52:17 +00001258 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1259 *=) ac_optarg= ;;
1260 *) ac_optarg=yes ;;
cristy3ed852e2009-09-05 21:47:34 +00001261 esac
1262
1263 # Accept the important Cygnus configure options, so we can diagnose typos.
1264
1265 case $ac_dashdash$ac_option in
1266 --)
1267 ac_dashdash=yes ;;
1268
1269 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1270 ac_prev=bindir ;;
1271 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1272 bindir=$ac_optarg ;;
1273
1274 -build | --build | --buil | --bui | --bu)
1275 ac_prev=build_alias ;;
1276 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1277 build_alias=$ac_optarg ;;
1278
1279 -cache-file | --cache-file | --cache-fil | --cache-fi \
1280 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1281 ac_prev=cache_file ;;
1282 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1283 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1284 cache_file=$ac_optarg ;;
1285
1286 --config-cache | -C)
1287 cache_file=config.cache ;;
1288
1289 -datadir | --datadir | --datadi | --datad)
1290 ac_prev=datadir ;;
1291 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1292 datadir=$ac_optarg ;;
1293
1294 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1295 | --dataroo | --dataro | --datar)
1296 ac_prev=datarootdir ;;
1297 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1298 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1299 datarootdir=$ac_optarg ;;
1300
1301 -disable-* | --disable-*)
1302 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1303 # Reject names that are not valid shell variable names.
1304 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001305 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001306 ac_useropt_orig=$ac_useropt
1307 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1308 case $ac_user_opts in
1309 *"
1310"enable_$ac_useropt"
1311"*) ;;
1312 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1313 ac_unrecognized_sep=', ';;
1314 esac
1315 eval enable_$ac_useropt=no ;;
1316
1317 -docdir | --docdir | --docdi | --doc | --do)
1318 ac_prev=docdir ;;
1319 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1320 docdir=$ac_optarg ;;
1321
1322 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1323 ac_prev=dvidir ;;
1324 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1325 dvidir=$ac_optarg ;;
1326
1327 -enable-* | --enable-*)
1328 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1329 # Reject names that are not valid shell variable names.
1330 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001331 as_fn_error $? "invalid feature name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001332 ac_useropt_orig=$ac_useropt
1333 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1334 case $ac_user_opts in
1335 *"
1336"enable_$ac_useropt"
1337"*) ;;
1338 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1339 ac_unrecognized_sep=', ';;
1340 esac
1341 eval enable_$ac_useropt=\$ac_optarg ;;
1342
1343 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1344 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1345 | --exec | --exe | --ex)
1346 ac_prev=exec_prefix ;;
1347 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1348 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1349 | --exec=* | --exe=* | --ex=*)
1350 exec_prefix=$ac_optarg ;;
1351
1352 -gas | --gas | --ga | --g)
1353 # Obsolete; use --with-gas.
1354 with_gas=yes ;;
1355
1356 -help | --help | --hel | --he | -h)
1357 ac_init_help=long ;;
1358 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1359 ac_init_help=recursive ;;
1360 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1361 ac_init_help=short ;;
1362
1363 -host | --host | --hos | --ho)
1364 ac_prev=host_alias ;;
1365 -host=* | --host=* | --hos=* | --ho=*)
1366 host_alias=$ac_optarg ;;
1367
1368 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1369 ac_prev=htmldir ;;
1370 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1371 | --ht=*)
1372 htmldir=$ac_optarg ;;
1373
1374 -includedir | --includedir | --includedi | --included | --include \
1375 | --includ | --inclu | --incl | --inc)
1376 ac_prev=includedir ;;
1377 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1378 | --includ=* | --inclu=* | --incl=* | --inc=*)
1379 includedir=$ac_optarg ;;
1380
1381 -infodir | --infodir | --infodi | --infod | --info | --inf)
1382 ac_prev=infodir ;;
1383 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1384 infodir=$ac_optarg ;;
1385
1386 -libdir | --libdir | --libdi | --libd)
1387 ac_prev=libdir ;;
1388 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1389 libdir=$ac_optarg ;;
1390
1391 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1392 | --libexe | --libex | --libe)
1393 ac_prev=libexecdir ;;
1394 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1395 | --libexe=* | --libex=* | --libe=*)
1396 libexecdir=$ac_optarg ;;
1397
1398 -localedir | --localedir | --localedi | --localed | --locale)
1399 ac_prev=localedir ;;
1400 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1401 localedir=$ac_optarg ;;
1402
1403 -localstatedir | --localstatedir | --localstatedi | --localstated \
1404 | --localstate | --localstat | --localsta | --localst | --locals)
1405 ac_prev=localstatedir ;;
1406 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1407 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1408 localstatedir=$ac_optarg ;;
1409
1410 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1411 ac_prev=mandir ;;
1412 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1413 mandir=$ac_optarg ;;
1414
1415 -nfp | --nfp | --nf)
1416 # Obsolete; use --without-fp.
1417 with_fp=no ;;
1418
1419 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1420 | --no-cr | --no-c | -n)
1421 no_create=yes ;;
1422
1423 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1424 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1425 no_recursion=yes ;;
1426
1427 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1428 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1429 | --oldin | --oldi | --old | --ol | --o)
1430 ac_prev=oldincludedir ;;
1431 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1432 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1433 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1434 oldincludedir=$ac_optarg ;;
1435
1436 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1437 ac_prev=prefix ;;
1438 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1439 prefix=$ac_optarg ;;
1440
1441 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1442 | --program-pre | --program-pr | --program-p)
1443 ac_prev=program_prefix ;;
1444 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1445 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1446 program_prefix=$ac_optarg ;;
1447
1448 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1449 | --program-suf | --program-su | --program-s)
1450 ac_prev=program_suffix ;;
1451 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1452 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1453 program_suffix=$ac_optarg ;;
1454
1455 -program-transform-name | --program-transform-name \
1456 | --program-transform-nam | --program-transform-na \
1457 | --program-transform-n | --program-transform- \
1458 | --program-transform | --program-transfor \
1459 | --program-transfo | --program-transf \
1460 | --program-trans | --program-tran \
1461 | --progr-tra | --program-tr | --program-t)
1462 ac_prev=program_transform_name ;;
1463 -program-transform-name=* | --program-transform-name=* \
1464 | --program-transform-nam=* | --program-transform-na=* \
1465 | --program-transform-n=* | --program-transform-=* \
1466 | --program-transform=* | --program-transfor=* \
1467 | --program-transfo=* | --program-transf=* \
1468 | --program-trans=* | --program-tran=* \
1469 | --progr-tra=* | --program-tr=* | --program-t=*)
1470 program_transform_name=$ac_optarg ;;
1471
1472 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1473 ac_prev=pdfdir ;;
1474 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1475 pdfdir=$ac_optarg ;;
1476
1477 -psdir | --psdir | --psdi | --psd | --ps)
1478 ac_prev=psdir ;;
1479 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1480 psdir=$ac_optarg ;;
1481
1482 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1483 | -silent | --silent | --silen | --sile | --sil)
1484 silent=yes ;;
1485
1486 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1487 ac_prev=sbindir ;;
1488 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1489 | --sbi=* | --sb=*)
1490 sbindir=$ac_optarg ;;
1491
1492 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1493 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1494 | --sharedst | --shareds | --shared | --share | --shar \
1495 | --sha | --sh)
1496 ac_prev=sharedstatedir ;;
1497 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1498 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1499 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1500 | --sha=* | --sh=*)
1501 sharedstatedir=$ac_optarg ;;
1502
1503 -site | --site | --sit)
1504 ac_prev=site ;;
1505 -site=* | --site=* | --sit=*)
1506 site=$ac_optarg ;;
1507
1508 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1509 ac_prev=srcdir ;;
1510 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1511 srcdir=$ac_optarg ;;
1512
1513 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1514 | --syscon | --sysco | --sysc | --sys | --sy)
1515 ac_prev=sysconfdir ;;
1516 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1517 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1518 sysconfdir=$ac_optarg ;;
1519
1520 -target | --target | --targe | --targ | --tar | --ta | --t)
1521 ac_prev=target_alias ;;
1522 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1523 target_alias=$ac_optarg ;;
1524
1525 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1526 verbose=yes ;;
1527
1528 -version | --version | --versio | --versi | --vers | -V)
1529 ac_init_version=: ;;
1530
1531 -with-* | --with-*)
1532 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1533 # Reject names that are not valid shell variable names.
1534 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001535 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001536 ac_useropt_orig=$ac_useropt
1537 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1538 case $ac_user_opts in
1539 *"
1540"with_$ac_useropt"
1541"*) ;;
1542 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1543 ac_unrecognized_sep=', ';;
1544 esac
1545 eval with_$ac_useropt=\$ac_optarg ;;
1546
1547 -without-* | --without-*)
1548 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1549 # Reject names that are not valid shell variable names.
1550 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
cristy98dddb52010-11-04 00:30:15 +00001551 as_fn_error $? "invalid package name: $ac_useropt"
cristy3ed852e2009-09-05 21:47:34 +00001552 ac_useropt_orig=$ac_useropt
1553 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1554 case $ac_user_opts in
1555 *"
1556"with_$ac_useropt"
1557"*) ;;
1558 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1559 ac_unrecognized_sep=', ';;
1560 esac
1561 eval with_$ac_useropt=no ;;
1562
1563 --x)
1564 # Obsolete; use --with-x.
1565 with_x=yes ;;
1566
1567 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1568 | --x-incl | --x-inc | --x-in | --x-i)
1569 ac_prev=x_includes ;;
1570 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1571 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1572 x_includes=$ac_optarg ;;
1573
1574 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1575 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1576 ac_prev=x_libraries ;;
1577 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1578 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1579 x_libraries=$ac_optarg ;;
1580
cristy98dddb52010-11-04 00:30:15 +00001581 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1582Try \`$0 --help' for more information"
cristy3ed852e2009-09-05 21:47:34 +00001583 ;;
1584
1585 *=*)
1586 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1587 # Reject names that are not valid shell variable names.
cristy8b350f62009-11-15 23:12:43 +00001588 case $ac_envvar in #(
1589 '' | [0-9]* | *[!_$as_cr_alnum]* )
cristy98dddb52010-11-04 00:30:15 +00001590 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
cristy8b350f62009-11-15 23:12:43 +00001591 esac
cristy3ed852e2009-09-05 21:47:34 +00001592 eval $ac_envvar=\$ac_optarg
1593 export $ac_envvar ;;
1594
1595 *)
1596 # FIXME: should be removed in autoconf 3.0.
1597 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1598 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1599 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
cristyda16f162011-02-19 23:52:17 +00001600 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
cristy3ed852e2009-09-05 21:47:34 +00001601 ;;
1602
1603 esac
1604done
1605
1606if test -n "$ac_prev"; then
1607 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
cristy98dddb52010-11-04 00:30:15 +00001608 as_fn_error $? "missing argument to $ac_option"
cristy3ed852e2009-09-05 21:47:34 +00001609fi
1610
1611if test -n "$ac_unrecognized_opts"; then
1612 case $enable_option_checking in
1613 no) ;;
cristy98dddb52010-11-04 00:30:15 +00001614 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
cristy3ed852e2009-09-05 21:47:34 +00001615 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1616 esac
1617fi
1618
1619# Check all directory arguments for consistency.
1620for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1621 datadir sysconfdir sharedstatedir localstatedir includedir \
1622 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1623 libdir localedir mandir
1624do
1625 eval ac_val=\$$ac_var
1626 # Remove trailing slashes.
1627 case $ac_val in
1628 */ )
1629 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1630 eval $ac_var=\$ac_val;;
1631 esac
1632 # Be sure to have absolute directory names.
1633 case $ac_val in
1634 [\\/$]* | ?:[\\/]* ) continue;;
1635 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1636 esac
cristy98dddb52010-11-04 00:30:15 +00001637 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
cristy3ed852e2009-09-05 21:47:34 +00001638done
1639
1640# There might be people who depend on the old broken behavior: `$host'
1641# used to hold the argument of --host etc.
1642# FIXME: To remove some day.
1643build=$build_alias
1644host=$host_alias
1645target=$target_alias
1646
1647# FIXME: To remove some day.
1648if test "x$host_alias" != x; then
1649 if test "x$build_alias" = x; then
1650 cross_compiling=maybe
cristy3ed852e2009-09-05 21:47:34 +00001651 elif test "x$build_alias" != "x$host_alias"; then
1652 cross_compiling=yes
1653 fi
1654fi
1655
1656ac_tool_prefix=
1657test -n "$host_alias" && ac_tool_prefix=$host_alias-
1658
1659test "$silent" = yes && exec 6>/dev/null
1660
1661
1662ac_pwd=`pwd` && test -n "$ac_pwd" &&
1663ac_ls_di=`ls -di .` &&
1664ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
cristy98dddb52010-11-04 00:30:15 +00001665 as_fn_error $? "working directory cannot be determined"
cristy3ed852e2009-09-05 21:47:34 +00001666test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
cristy98dddb52010-11-04 00:30:15 +00001667 as_fn_error $? "pwd does not report name of working directory"
cristy3ed852e2009-09-05 21:47:34 +00001668
1669
1670# Find the source files, if location was not specified.
1671if test -z "$srcdir"; then
1672 ac_srcdir_defaulted=yes
1673 # Try the directory containing this script, then the parent directory.
1674 ac_confdir=`$as_dirname -- "$as_myself" ||
1675$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1676 X"$as_myself" : 'X\(//\)[^/]' \| \
1677 X"$as_myself" : 'X\(//\)$' \| \
1678 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1679$as_echo X"$as_myself" |
1680 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1681 s//\1/
1682 q
1683 }
1684 /^X\(\/\/\)[^/].*/{
1685 s//\1/
1686 q
1687 }
1688 /^X\(\/\/\)$/{
1689 s//\1/
1690 q
1691 }
1692 /^X\(\/\).*/{
1693 s//\1/
1694 q
1695 }
1696 s/.*/./; q'`
1697 srcdir=$ac_confdir
1698 if test ! -r "$srcdir/$ac_unique_file"; then
1699 srcdir=..
1700 fi
1701else
1702 ac_srcdir_defaulted=no
1703fi
1704if test ! -r "$srcdir/$ac_unique_file"; then
1705 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
cristy98dddb52010-11-04 00:30:15 +00001706 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
cristy3ed852e2009-09-05 21:47:34 +00001707fi
1708ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1709ac_abs_confdir=`(
cristy98dddb52010-11-04 00:30:15 +00001710 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
cristy3ed852e2009-09-05 21:47:34 +00001711 pwd)`
1712# When building in place, set srcdir=.
1713if test "$ac_abs_confdir" = "$ac_pwd"; then
1714 srcdir=.
1715fi
1716# Remove unnecessary trailing slashes from srcdir.
1717# Double slashes in file names in object file debugging info
1718# mess up M-x gdb in Emacs.
1719case $srcdir in
1720*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1721esac
1722for ac_var in $ac_precious_vars; do
1723 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1724 eval ac_env_${ac_var}_value=\$${ac_var}
1725 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1726 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1727done
1728
1729#
1730# Report the --help message.
1731#
1732if test "$ac_init_help" = "long"; then
1733 # Omit some internal or obsolete options to make the list less imposing.
1734 # This message is too long to be a string in the A/UX 3.1 sh.
1735 cat <<_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00001736\`configure' configures ImageMagick 7.0.0-0 to adapt to many kinds of systems.
cristy3ed852e2009-09-05 21:47:34 +00001737
1738Usage: $0 [OPTION]... [VAR=VALUE]...
1739
1740To assign environment variables (e.g., CC, CFLAGS...), specify them as
1741VAR=VALUE. See below for descriptions of some of the useful variables.
1742
1743Defaults for the options are specified in brackets.
1744
1745Configuration:
1746 -h, --help display this help and exit
1747 --help=short display options specific to this package
1748 --help=recursive display the short help of all the included packages
1749 -V, --version display version information and exit
cristy98dddb52010-11-04 00:30:15 +00001750 -q, --quiet, --silent do not print \`checking ...' messages
cristy3ed852e2009-09-05 21:47:34 +00001751 --cache-file=FILE cache test results in FILE [disabled]
1752 -C, --config-cache alias for \`--cache-file=config.cache'
1753 -n, --no-create do not create output files
1754 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1755
1756Installation directories:
1757 --prefix=PREFIX install architecture-independent files in PREFIX
1758 [$ac_default_prefix]
1759 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1760 [PREFIX]
1761
1762By default, \`make install' will install all the files in
1763\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1764an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1765for instance \`--prefix=\$HOME'.
1766
1767For better control, use the options below.
1768
1769Fine tuning of the installation directories:
1770 --bindir=DIR user executables [EPREFIX/bin]
1771 --sbindir=DIR system admin executables [EPREFIX/sbin]
1772 --libexecdir=DIR program executables [EPREFIX/libexec]
1773 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1774 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1775 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1776 --libdir=DIR object code libraries [EPREFIX/lib]
1777 --includedir=DIR C header files [PREFIX/include]
1778 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1779 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1780 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1781 --infodir=DIR info documentation [DATAROOTDIR/info]
1782 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1783 --mandir=DIR man documentation [DATAROOTDIR/man]
cristy09b53e12011-10-14 12:47:22 +00001784 --docdir=DIR documentation root [DATAROOTDIR/doc/ImageMagick]
cristy3ed852e2009-09-05 21:47:34 +00001785 --htmldir=DIR html documentation [DOCDIR]
1786 --dvidir=DIR dvi documentation [DOCDIR]
1787 --pdfdir=DIR pdf documentation [DOCDIR]
1788 --psdir=DIR ps documentation [DOCDIR]
1789_ACEOF
1790
1791 cat <<\_ACEOF
1792
cristy73bd4a52010-10-05 11:24:23 +00001793Program names:
1794 --program-prefix=PREFIX prepend PREFIX to installed program names
1795 --program-suffix=SUFFIX append SUFFIX to installed program names
1796 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1797
cristy3ed852e2009-09-05 21:47:34 +00001798X features:
1799 --x-includes=DIR X include files are in DIR
1800 --x-libraries=DIR X library files are in DIR
1801
1802System types:
1803 --build=BUILD configure for building on BUILD [guessed]
1804 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1805 --target=TARGET configure for building compilers for TARGET [HOST]
1806_ACEOF
1807fi
1808
1809if test -n "$ac_init_help"; then
1810 case $ac_init_help in
cristy29eb34e2011-10-16 00:46:08 +00001811 short | recursive ) echo "Configuration of ImageMagick 7.0.0-0:";;
cristy3ed852e2009-09-05 21:47:34 +00001812 esac
1813 cat <<\_ACEOF
1814
1815Optional Features:
1816 --disable-option-checking ignore unrecognized --enable/--with options
1817 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1818 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
cristyc0890a62012-07-19 00:18:20 +00001819 --enable-silent-rules less verbose build output (undo: "make V=1")
1820 --disable-silent-rules verbose build output (undo: "make V=0")
1821 --enable-dependency-tracking
1822 do not reject slow dependency extractors
1823 --disable-dependency-tracking
1824 speeds up one-time build
cristy9b86f202012-11-28 21:55:35 +00001825 --enable-ld-version-script
1826 enable linker version script (default is enabled
1827 when possible)
cristya3824692012-03-30 17:22:07 +00001828 --enable-bounds-checking
1829 enable run-time bounds-checking
cristy3ed852e2009-09-05 21:47:34 +00001830 --enable-osx-universal-binary
cristycd4c5312009-11-22 01:19:08 +00001831 build universal binary on OS X [[default=no]]
cristy3ed852e2009-09-05 21:47:34 +00001832 --disable-openmp do not use OpenMP
cristy48794642012-09-02 15:19:08 +00001833 --enable-opencl enable OpenCL support
cristy3ed852e2009-09-05 21:47:34 +00001834 --disable-largefile omit support for large files
cristy73bd4a52010-10-05 11:24:23 +00001835 --enable-shared[=PKGS] build shared libraries [default=yes]
1836 --enable-static[=PKGS] build static libraries [default=yes]
1837 --enable-fast-install[=PKGS]
1838 optimize for fast installation [default=yes]
1839 --disable-libtool-lock avoid locking (might break parallel builds)
cristy3ed852e2009-09-05 21:47:34 +00001840 --enable-delegate-build look for delegate libraries in build directory
1841 --disable-deprecated exclude deprecated methods in MagickCore and
cristy3a75f062012-09-08 23:29:40 +00001842 MagickWand APIs
cristy3ed852e2009-09-05 21:47:34 +00001843 --disable-installed Formally install ImageMagick under PREFIX
1844 --disable-cipher disable enciphering and deciphering image pixels
cristy6e3607c2011-09-13 13:59:17 +00001845 --enable-zero-configuration
1846 enable self-contained, embeddable,
cristy3ed852e2009-09-05 21:47:34 +00001847 zero-configuration ImageMagick
cristyf314dbd2012-11-15 13:35:28 +00001848 --enable-hdri accurately represent the wide range of intensity
cristy3ed852e2009-09-05 21:47:34 +00001849 levels found in real scenes
cristy3ed852e2009-09-05 21:47:34 +00001850 --disable-assert disable assert() statements in build
cristyc0890a62012-07-19 00:18:20 +00001851 --enable-maintainer-mode
1852 enable make rules and dependencies not useful (and
1853 sometimes confusing) to the casual installer
cristy3ed852e2009-09-05 21:47:34 +00001854 --enable-ccmalloc enable 'ccmalloc' memory debug support
1855 --enable-efence enable 'efence' memory debug support
1856 --enable-prof enable 'prof' profiling support
1857 --enable-gprof enable 'gprof' profiling support
1858 --enable-gcov enable 'gcov' profiling support
cristy71d8c202012-03-20 17:05:01 +00001859 --enable-legacy-support install legacy command-line utilities (default disabled)
cristya0b81c32010-01-22 02:54:33 +00001860 --disable-assert turn off assertions
cristy3ed852e2009-09-05 21:47:34 +00001861
1862Optional Packages:
1863 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1864 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
cristy73bd4a52010-10-05 11:24:23 +00001865 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
cristy7247bba2012-02-05 16:37:27 +00001866 --with-dmalloc use dmalloc, as in http://www.dmalloc.com
cristy37110d62012-03-01 18:38:20 +00001867 --with-gcc-arch=<arch> use architecture <arch> for gcc -march/-mtune,
1868 instead of guessing
cristy670aa3c2011-11-03 00:54:00 +00001869 --includearch-dir=DIR ARCH specific include directory
1870 --sharearch-dir=DIR ARCH specific config directory
cristy3ed852e2009-09-05 21:47:34 +00001871 --without-threads disable threads support
cristy99bd5232011-12-07 14:38:20 +00001872 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
cristy73bd4a52010-10-05 11:24:23 +00001873 both]
cristyda16f162011-02-19 23:52:17 +00001874 --with-sysroot=DIR Search for dependent libraries within DIR
1875 (or the compiler's sysroot if not specified).
cristy3ed852e2009-09-05 21:47:34 +00001876 --with-modules enable building dynamically loadable modules
1877 --with-method-prefix=PREFIX
1878 prefix MagickCore API methods
1879 --with-quantum-depth=DEPTH
1880 number of bits in a pixel quantum (default 16)
1881 --with-cache=THRESHOLD set pixel cache threshhold in MB (default available
1882 memory)
1883 --with-frozenpaths freeze delegate paths
1884 --without-magick-plus-plus
1885 disable build/install of Magick++
cristy3a75f062012-09-08 23:29:40 +00001886 --with-package-release-name=NAME
1887 encode this name into the shared library
cristy3ed852e2009-09-05 21:47:34 +00001888 --with-perl enable build/install of PerlMagick
1889 --with-perl-options=OPTIONS
1890 options to pass on command-line when generating
cristyfc3d0222012-02-07 15:05:57 +00001891 PerlMagick build file
cristy3ed852e2009-09-05 21:47:34 +00001892 --with-umem enable umem memory allocation library support
1893 --with-libstdc=DIR use libstdc++ in DIR (for GNU C++)
1894 --without-bzlib disable BZLIB support
cristyc7083c12009-10-14 03:16:55 +00001895 --with-x use the X Window System
cristy3ed852e2009-09-05 21:47:34 +00001896 --without-zlib disable ZLIB support
1897 --with-autotrace enable autotrace support
1898 --without-dps disable Display Postscript support
1899 --without-djvu disable DjVu support
cristy430a7312010-01-21 20:44:04 +00001900 --with-dejavu-font-dir=DIR
1901 DejaVu font directory
cristy3ed852e2009-09-05 21:47:34 +00001902 --without-fftw disable FFTW support
1903 --without-fpx disable FlashPIX support
1904 --without-fontconfig disable fontconfig support
cristy81beccd2011-10-03 18:17:24 +00001905 --without-freetype disable Freetype support
cristy3ed852e2009-09-05 21:47:34 +00001906 --without-gslib enable Ghostscript library support
1907 --with-fontpath=DIR prepend to default font search path
1908 --with-gs-font-dir=DIR Ghostscript font directory
cristy1b70dc82012-07-01 23:15:05 +00001909 --with-gvc disable GVC support
cristy3ed852e2009-09-05 21:47:34 +00001910 --without-jbig disable JBIG support
1911 --without-jpeg disable JPEG support
1912 --without-jp2 disable JPEG-2000 support
cristy71203402010-06-18 13:12:03 +00001913 --without-lcms disable lcms (v1.1X) support
1914 --without-lcms2 disable lcms (v2.X) support
cristyf0c78232010-03-15 12:53:40 +00001915 --without-lqr disable Liquid Rescale support
cristyfbb0ef02010-12-19 02:32:11 +00001916 --without-lzma disable LZMA support
cristy3ed852e2009-09-05 21:47:34 +00001917 --without-openexr disable OpenEXR support
cristy41cbe8a2011-10-27 01:35:18 +00001918 --without-pango disable PANGO support
cristy3ed852e2009-09-05 21:47:34 +00001919 --without-png disable PNG support
cristy1164d5f2012-08-15 00:58:25 +00001920 --without-rsvg enable RSVG support
cristy3ed852e2009-09-05 21:47:34 +00001921 --without-tiff disable TIFF support
cristyb1860752011-03-14 00:27:46 +00001922 --without-webp disable WEBP support
cristy3ed852e2009-09-05 21:47:34 +00001923 --with-windows-font-dir=DIR
1924 directory containing MS-Windows fonts
cristyde3fc5d2012-02-12 15:40:47 +00001925 --with-wmf enable WMF support
cristy3ed852e2009-09-05 21:47:34 +00001926 --without-xml disable XML support
1927
1928Some influential environment variables:
1929 CC C compiler command
1930 CFLAGS C compiler flags
1931 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1932 nonstandard directory <lib dir>
1933 LIBS libraries to pass to the linker, e.g. -l<library>
cristycd4c5312009-11-22 01:19:08 +00001934 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
cristy3ed852e2009-09-05 21:47:34 +00001935 you have headers in a nonstandard directory <include dir>
cristya0b81c32010-01-22 02:54:33 +00001936 CPP C preprocessor
cristy3ed852e2009-09-05 21:47:34 +00001937 CXX C++ compiler command
1938 CXXFLAGS C++ compiler flags
cristy73bd4a52010-10-05 11:24:23 +00001939 PKG_CONFIG path to pkg-config utility
nicolas6237c462010-10-05 06:11:49 +00001940 CXXCPP C++ preprocessor
cristy73bd4a52010-10-05 11:24:23 +00001941 XMKMF Path to xmkmf, Makefile generator for X Window System
1942 AUTOTRACE_CFLAGS
1943 C compiler flags for AUTOTRACE, overriding pkg-config
1944 AUTOTRACE_LIBS
1945 linker flags for AUTOTRACE, overriding pkg-config
1946 FONTCONFIG_CFLAGS
1947 C compiler flags for FONTCONFIG, overriding pkg-config
1948 FONTCONFIG_LIBS
1949 linker flags for FONTCONFIG, overriding pkg-config
1950 GVC_CFLAGS C compiler flags for GVC, overriding pkg-config
1951 GVC_LIBS linker flags for GVC, overriding pkg-config
1952 LQR_CFLAGS C compiler flags for LQR, overriding pkg-config
1953 LQR_LIBS linker flags for LQR, overriding pkg-config
cristyb94e5002011-11-14 13:20:10 +00001954 LZMA_CFLAGS C compiler flags for LZMA, overriding pkg-config
1955 LZMA_LIBS linker flags for LZMA, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001956 OPENEXR_CFLAGS
1957 C compiler flags for OPENEXR, overriding pkg-config
1958 OPENEXR_LIBS
1959 linker flags for OPENEXR, overriding pkg-config
cristy41cbe8a2011-10-27 01:35:18 +00001960 PANGO_CFLAGS
1961 C compiler flags for PANGO, overriding pkg-config
1962 PANGO_LIBS linker flags for PANGO, overriding pkg-config
cristy73bd4a52010-10-05 11:24:23 +00001963 RSVG_CFLAGS C compiler flags for RSVG, overriding pkg-config
1964 RSVG_LIBS linker flags for RSVG, overriding pkg-config
1965 CAIRO_SVG_CFLAGS
1966 C compiler flags for CAIRO_SVG, overriding pkg-config
1967 CAIRO_SVG_LIBS
1968 linker flags for CAIRO_SVG, overriding pkg-config
cristy3ed852e2009-09-05 21:47:34 +00001969
1970Use these variables to override the choices made by `configure' or to help
1971it to find libraries and programs with nonstandard names/locations.
1972
1973Report bugs to <http://www.imagemagick.org>.
1974_ACEOF
1975ac_status=$?
1976fi
1977
1978if test "$ac_init_help" = "recursive"; then
1979 # If there are subdirs, report their specific --help.
1980 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1981 test -d "$ac_dir" ||
1982 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1983 continue
1984 ac_builddir=.
1985
1986case "$ac_dir" in
1987.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1988*)
1989 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1990 # A ".." for each directory in $ac_dir_suffix.
1991 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1992 case $ac_top_builddir_sub in
1993 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1994 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1995 esac ;;
1996esac
1997ac_abs_top_builddir=$ac_pwd
1998ac_abs_builddir=$ac_pwd$ac_dir_suffix
1999# for backward compatibility:
2000ac_top_builddir=$ac_top_build_prefix
2001
2002case $srcdir in
2003 .) # We are building in place.
2004 ac_srcdir=.
2005 ac_top_srcdir=$ac_top_builddir_sub
2006 ac_abs_top_srcdir=$ac_pwd ;;
2007 [\\/]* | ?:[\\/]* ) # Absolute name.
2008 ac_srcdir=$srcdir$ac_dir_suffix;
2009 ac_top_srcdir=$srcdir
2010 ac_abs_top_srcdir=$srcdir ;;
2011 *) # Relative name.
2012 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2013 ac_top_srcdir=$ac_top_build_prefix$srcdir
2014 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2015esac
2016ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2017
2018 cd "$ac_dir" || { ac_status=$?; continue; }
2019 # Check for guested configure.
2020 if test -f "$ac_srcdir/configure.gnu"; then
2021 echo &&
2022 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2023 elif test -f "$ac_srcdir/configure"; then
2024 echo &&
2025 $SHELL "$ac_srcdir/configure" --help=recursive
2026 else
2027 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2028 fi || ac_status=$?
2029 cd "$ac_pwd" || { ac_status=$?; break; }
2030 done
2031fi
2032
2033test -n "$ac_init_help" && exit $ac_status
2034if $ac_init_version; then
2035 cat <<\_ACEOF
cristy29eb34e2011-10-16 00:46:08 +00002036ImageMagick configure 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +00002037generated by GNU Autoconf 2.69
cristy3ed852e2009-09-05 21:47:34 +00002038
cristy14fefe52012-05-21 00:59:18 +00002039Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +00002040This configure script is free software; the Free Software Foundation
2041gives unlimited permission to copy, distribute and modify it.
2042_ACEOF
2043 exit
2044fi
cristy8b350f62009-11-15 23:12:43 +00002045
2046## ------------------------ ##
2047## Autoconf initialization. ##
2048## ------------------------ ##
2049
2050# ac_fn_c_try_compile LINENO
2051# --------------------------
2052# Try to compile conftest.$ac_ext, and return whether this succeeded.
2053ac_fn_c_try_compile ()
2054{
2055 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2056 rm -f conftest.$ac_objext
2057 if { { ac_try="$ac_compile"
2058case "(($ac_try" in
2059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2060 *) ac_try_echo=$ac_try;;
2061esac
2062eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2063$as_echo "$ac_try_echo"; } >&5
2064 (eval "$ac_compile") 2>conftest.err
2065 ac_status=$?
2066 if test -s conftest.err; then
2067 grep -v '^ *+' conftest.err >conftest.er1
2068 cat conftest.er1 >&5
2069 mv -f conftest.er1 conftest.err
2070 fi
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && {
2073 test -z "$ac_c_werror_flag" ||
2074 test ! -s conftest.err
2075 } && test -s conftest.$ac_objext; then :
2076 ac_retval=0
2077else
2078 $as_echo "$as_me: failed program was:" >&5
2079sed 's/^/| /' conftest.$ac_ext >&5
2080
2081 ac_retval=1
2082fi
cristyda16f162011-02-19 23:52:17 +00002083 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002084 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002085
2086} # ac_fn_c_try_compile
2087
cristy95646052009-11-28 23:05:30 +00002088# ac_fn_c_try_cpp LINENO
2089# ----------------------
2090# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2091ac_fn_c_try_cpp ()
2092{
2093 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094 if { { ac_try="$ac_cpp conftest.$ac_ext"
2095case "(($ac_try" in
2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2097 *) ac_try_echo=$ac_try;;
2098esac
2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2100$as_echo "$ac_try_echo"; } >&5
2101 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2102 ac_status=$?
2103 if test -s conftest.err; then
2104 grep -v '^ *+' conftest.err >conftest.er1
2105 cat conftest.er1 >&5
2106 mv -f conftest.er1 conftest.err
2107 fi
2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002109 test $ac_status = 0; } > conftest.i && {
cristy95646052009-11-28 23:05:30 +00002110 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2111 test ! -s conftest.err
2112 }; then :
2113 ac_retval=0
2114else
2115 $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118 ac_retval=1
2119fi
cristyda16f162011-02-19 23:52:17 +00002120 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy95646052009-11-28 23:05:30 +00002121 as_fn_set_status $ac_retval
2122
2123} # ac_fn_c_try_cpp
2124
cristy8b350f62009-11-15 23:12:43 +00002125# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2126# -------------------------------------------------------
2127# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2128# the include files in INCLUDES and setting the cache variable VAR
2129# accordingly.
2130ac_fn_c_check_header_mongrel ()
2131{
2132 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00002133 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2135$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002136if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002137 $as_echo_n "(cached) " >&6
2138fi
2139eval ac_res=\$$3
2140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2141$as_echo "$ac_res" >&6; }
2142else
2143 # Is the header compilable?
2144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2145$as_echo_n "checking $2 usability... " >&6; }
2146cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2147/* end confdefs.h. */
2148$4
2149#include <$2>
2150_ACEOF
2151if ac_fn_c_try_compile "$LINENO"; then :
2152 ac_header_compiler=yes
2153else
2154 ac_header_compiler=no
2155fi
2156rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2158$as_echo "$ac_header_compiler" >&6; }
2159
2160# Is the header present?
2161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2162$as_echo_n "checking $2 presence... " >&6; }
2163cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164/* end confdefs.h. */
2165#include <$2>
2166_ACEOF
2167if ac_fn_c_try_cpp "$LINENO"; then :
2168 ac_header_preproc=yes
2169else
2170 ac_header_preproc=no
2171fi
cristyda16f162011-02-19 23:52:17 +00002172rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00002173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2174$as_echo "$ac_header_preproc" >&6; }
2175
2176# So? What about this header?
2177case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2178 yes:no: )
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2180$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2181 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2182$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2183 ;;
2184 no:yes:* )
2185 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2186$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2188$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2190$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2192$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2194$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00002195( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00002196## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00002197## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00002198 ) | sed "s/^/$as_me: WARNING: /" >&2
2199 ;;
2200esac
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2202$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002203if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002204 $as_echo_n "(cached) " >&6
2205else
2206 eval "$3=\$ac_header_compiler"
2207fi
2208eval ac_res=\$$3
2209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2210$as_echo "$ac_res" >&6; }
2211fi
cristyda16f162011-02-19 23:52:17 +00002212 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002213
2214} # ac_fn_c_check_header_mongrel
2215
2216# ac_fn_c_try_run LINENO
2217# ----------------------
2218# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2219# that executables *can* be run.
2220ac_fn_c_try_run ()
2221{
2222 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2223 if { { ac_try="$ac_link"
2224case "(($ac_try" in
2225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2226 *) ac_try_echo=$ac_try;;
2227esac
2228eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2229$as_echo "$ac_try_echo"; } >&5
2230 (eval "$ac_link") 2>&5
2231 ac_status=$?
2232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2233 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2234 { { case "(($ac_try" in
2235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2236 *) ac_try_echo=$ac_try;;
2237esac
2238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2239$as_echo "$ac_try_echo"; } >&5
2240 (eval "$ac_try") 2>&5
2241 ac_status=$?
2242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2243 test $ac_status = 0; }; }; then :
2244 ac_retval=0
2245else
2246 $as_echo "$as_me: program exited with status $ac_status" >&5
2247 $as_echo "$as_me: failed program was:" >&5
2248sed 's/^/| /' conftest.$ac_ext >&5
2249
2250 ac_retval=$ac_status
2251fi
2252 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002253 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002254 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002255
2256} # ac_fn_c_try_run
2257
2258# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2259# -------------------------------------------------------
2260# Tests whether HEADER exists and can be compiled using the include files in
2261# INCLUDES, setting the cache variable VAR accordingly.
2262ac_fn_c_check_header_compile ()
2263{
2264 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2266$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002267if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002268 $as_echo_n "(cached) " >&6
2269else
2270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2271/* end confdefs.h. */
2272$4
2273#include <$2>
2274_ACEOF
2275if ac_fn_c_try_compile "$LINENO"; then :
2276 eval "$3=yes"
2277else
2278 eval "$3=no"
2279fi
2280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2281fi
2282eval ac_res=\$$3
2283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2284$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002285 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002286
2287} # ac_fn_c_check_header_compile
2288
cristya0b81c32010-01-22 02:54:33 +00002289# ac_fn_cxx_try_compile LINENO
2290# ----------------------------
2291# Try to compile conftest.$ac_ext, and return whether this succeeded.
2292ac_fn_cxx_try_compile ()
2293{
2294 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2295 rm -f conftest.$ac_objext
2296 if { { ac_try="$ac_compile"
2297case "(($ac_try" in
2298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2299 *) ac_try_echo=$ac_try;;
2300esac
2301eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2302$as_echo "$ac_try_echo"; } >&5
2303 (eval "$ac_compile") 2>conftest.err
2304 ac_status=$?
2305 if test -s conftest.err; then
2306 grep -v '^ *+' conftest.err >conftest.er1
2307 cat conftest.er1 >&5
2308 mv -f conftest.er1 conftest.err
2309 fi
2310 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2311 test $ac_status = 0; } && {
2312 test -z "$ac_cxx_werror_flag" ||
2313 test ! -s conftest.err
2314 } && test -s conftest.$ac_objext; then :
2315 ac_retval=0
2316else
2317 $as_echo "$as_me: failed program was:" >&5
2318sed 's/^/| /' conftest.$ac_ext >&5
2319
2320 ac_retval=1
2321fi
cristyda16f162011-02-19 23:52:17 +00002322 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristya0b81c32010-01-22 02:54:33 +00002323 as_fn_set_status $ac_retval
2324
2325} # ac_fn_cxx_try_compile
2326
cristy8b350f62009-11-15 23:12:43 +00002327# ac_fn_c_try_link LINENO
2328# -----------------------
2329# Try to link conftest.$ac_ext, and return whether this succeeded.
2330ac_fn_c_try_link ()
2331{
2332 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2333 rm -f conftest.$ac_objext conftest$ac_exeext
2334 if { { ac_try="$ac_link"
2335case "(($ac_try" in
2336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2337 *) ac_try_echo=$ac_try;;
2338esac
2339eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2340$as_echo "$ac_try_echo"; } >&5
2341 (eval "$ac_link") 2>conftest.err
2342 ac_status=$?
2343 if test -s conftest.err; then
2344 grep -v '^ *+' conftest.err >conftest.er1
2345 cat conftest.er1 >&5
2346 mv -f conftest.er1 conftest.err
2347 fi
2348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2349 test $ac_status = 0; } && {
2350 test -z "$ac_c_werror_flag" ||
2351 test ! -s conftest.err
2352 } && test -s conftest$ac_exeext && {
2353 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002354 test -x conftest$ac_exeext
cristy8b350f62009-11-15 23:12:43 +00002355 }; then :
2356 ac_retval=0
2357else
2358 $as_echo "$as_me: failed program was:" >&5
2359sed 's/^/| /' conftest.$ac_ext >&5
2360
2361 ac_retval=1
2362fi
2363 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2364 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2365 # interfere with the next link command; also delete a directory that is
2366 # left behind by Apple's compiler. We do this before executing the actions.
2367 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002368 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002369 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002370
2371} # ac_fn_c_try_link
2372
cristy73bd4a52010-10-05 11:24:23 +00002373# ac_fn_c_check_func LINENO FUNC VAR
2374# ----------------------------------
2375# Tests whether FUNC exists, setting the cache variable VAR accordingly
2376ac_fn_c_check_func ()
2377{
2378 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2380$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002381if eval \${$3+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00002382 $as_echo_n "(cached) " >&6
2383else
2384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2385/* end confdefs.h. */
2386/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2387 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2388#define $2 innocuous_$2
2389
2390/* System header to define __stub macros and hopefully few prototypes,
2391 which can conflict with char $2 (); below.
2392 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2393 <limits.h> exists even on freestanding compilers. */
2394
2395#ifdef __STDC__
2396# include <limits.h>
2397#else
2398# include <assert.h>
2399#endif
2400
2401#undef $2
2402
2403/* Override any GCC internal prototype to avoid an error.
2404 Use char because int might match the return type of a GCC
2405 builtin and then its argument prototype would still apply. */
2406#ifdef __cplusplus
2407extern "C"
2408#endif
2409char $2 ();
2410/* The GNU C library defines this for functions which it implements
2411 to always fail with ENOSYS. Some functions are actually named
2412 something starting with __ and the normal name is an alias. */
2413#if defined __stub_$2 || defined __stub___$2
2414choke me
2415#endif
2416
2417int
2418main ()
2419{
2420return $2 ();
2421 ;
2422 return 0;
2423}
2424_ACEOF
2425if ac_fn_c_try_link "$LINENO"; then :
2426 eval "$3=yes"
2427else
2428 eval "$3=no"
2429fi
2430rm -f core conftest.err conftest.$ac_objext \
2431 conftest$ac_exeext conftest.$ac_ext
2432fi
2433eval ac_res=\$$3
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2435$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002436 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002437
2438} # ac_fn_c_check_func
2439
2440# ac_fn_cxx_try_cpp LINENO
2441# ------------------------
2442# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2443ac_fn_cxx_try_cpp ()
2444{
2445 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2446 if { { ac_try="$ac_cpp conftest.$ac_ext"
2447case "(($ac_try" in
2448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2449 *) ac_try_echo=$ac_try;;
2450esac
2451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2452$as_echo "$ac_try_echo"; } >&5
2453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2454 ac_status=$?
2455 if test -s conftest.err; then
2456 grep -v '^ *+' conftest.err >conftest.er1
2457 cat conftest.er1 >&5
2458 mv -f conftest.er1 conftest.err
2459 fi
2460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
cristyda16f162011-02-19 23:52:17 +00002461 test $ac_status = 0; } > conftest.i && {
cristy73bd4a52010-10-05 11:24:23 +00002462 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2463 test ! -s conftest.err
2464 }; then :
2465 ac_retval=0
2466else
2467 $as_echo "$as_me: failed program was:" >&5
2468sed 's/^/| /' conftest.$ac_ext >&5
2469
2470 ac_retval=1
2471fi
cristyda16f162011-02-19 23:52:17 +00002472 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002473 as_fn_set_status $ac_retval
2474
2475} # ac_fn_cxx_try_cpp
2476
2477# ac_fn_cxx_try_link LINENO
2478# -------------------------
2479# Try to link conftest.$ac_ext, and return whether this succeeded.
2480ac_fn_cxx_try_link ()
2481{
2482 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2483 rm -f conftest.$ac_objext conftest$ac_exeext
2484 if { { ac_try="$ac_link"
2485case "(($ac_try" in
2486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2487 *) ac_try_echo=$ac_try;;
2488esac
2489eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2490$as_echo "$ac_try_echo"; } >&5
2491 (eval "$ac_link") 2>conftest.err
2492 ac_status=$?
2493 if test -s conftest.err; then
2494 grep -v '^ *+' conftest.err >conftest.er1
2495 cat conftest.er1 >&5
2496 mv -f conftest.er1 conftest.err
2497 fi
2498 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2499 test $ac_status = 0; } && {
2500 test -z "$ac_cxx_werror_flag" ||
2501 test ! -s conftest.err
2502 } && test -s conftest$ac_exeext && {
2503 test "$cross_compiling" = yes ||
cristy14fefe52012-05-21 00:59:18 +00002504 test -x conftest$ac_exeext
cristy73bd4a52010-10-05 11:24:23 +00002505 }; then :
2506 ac_retval=0
2507else
2508 $as_echo "$as_me: failed program was:" >&5
2509sed 's/^/| /' conftest.$ac_ext >&5
2510
2511 ac_retval=1
2512fi
2513 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2514 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2515 # interfere with the next link command; also delete a directory that is
2516 # left behind by Apple's compiler. We do this before executing the actions.
2517 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
cristyda16f162011-02-19 23:52:17 +00002518 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy73bd4a52010-10-05 11:24:23 +00002519 as_fn_set_status $ac_retval
2520
2521} # ac_fn_cxx_try_link
2522
cristy8b350f62009-11-15 23:12:43 +00002523# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2524# -------------------------------------------
2525# Tests whether TYPE exists after having included INCLUDES, setting cache
2526# variable VAR accordingly.
2527ac_fn_c_check_type ()
2528{
2529 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2531$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002532if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00002533 $as_echo_n "(cached) " >&6
2534else
2535 eval "$3=no"
2536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537/* end confdefs.h. */
2538$4
2539int
2540main ()
2541{
2542if (sizeof ($2))
2543 return 0;
2544 ;
2545 return 0;
2546}
2547_ACEOF
2548if ac_fn_c_try_compile "$LINENO"; then :
2549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2550/* end confdefs.h. */
2551$4
2552int
2553main ()
2554{
2555if (sizeof (($2)))
2556 return 0;
2557 ;
2558 return 0;
2559}
2560_ACEOF
2561if ac_fn_c_try_compile "$LINENO"; then :
2562
2563else
2564 eval "$3=yes"
2565fi
2566rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2567fi
2568rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2569fi
2570eval ac_res=\$$3
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2572$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002573 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00002574
2575} # ac_fn_c_check_type
2576
cristy92703d82010-04-26 00:18:18 +00002577# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2578# ----------------------------------------------------
2579# Tries to find if the field MEMBER exists in type AGGR, after including
2580# INCLUDES, setting cache variable VAR accordingly.
2581ac_fn_c_check_member ()
2582{
2583 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2585$as_echo_n "checking for $2.$3... " >&6; }
cristyda16f162011-02-19 23:52:17 +00002586if eval \${$4+:} false; then :
cristy92703d82010-04-26 00:18:18 +00002587 $as_echo_n "(cached) " >&6
2588else
2589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2590/* end confdefs.h. */
2591$5
2592int
2593main ()
2594{
2595static $2 ac_aggr;
2596if (ac_aggr.$3)
2597return 0;
2598 ;
2599 return 0;
2600}
2601_ACEOF
2602if ac_fn_c_try_compile "$LINENO"; then :
2603 eval "$4=yes"
2604else
2605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2606/* end confdefs.h. */
2607$5
2608int
2609main ()
2610{
2611static $2 ac_aggr;
2612if (sizeof ac_aggr.$3)
2613return 0;
2614 ;
2615 return 0;
2616}
2617_ACEOF
2618if ac_fn_c_try_compile "$LINENO"; then :
2619 eval "$4=yes"
2620else
2621 eval "$4=no"
2622fi
2623rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2624fi
2625rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2626fi
2627eval ac_res=\$$4
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2629$as_echo "$ac_res" >&6; }
cristyda16f162011-02-19 23:52:17 +00002630 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy92703d82010-04-26 00:18:18 +00002631
2632} # ac_fn_c_check_member
2633
cristy5eef09f2012-10-16 12:08:28 +00002634# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2635# ---------------------------------------------
2636# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2637# accordingly.
2638ac_fn_c_check_decl ()
2639{
2640 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2641 as_decl_name=`echo $2|sed 's/ *(.*//'`
2642 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2644$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2645if eval \${$3+:} false; then :
2646 $as_echo_n "(cached) " >&6
2647else
2648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2649/* end confdefs.h. */
2650$4
2651int
2652main ()
2653{
2654#ifndef $as_decl_name
2655#ifdef __cplusplus
2656 (void) $as_decl_use;
2657#else
2658 (void) $as_decl_name;
2659#endif
2660#endif
2661
2662 ;
2663 return 0;
2664}
2665_ACEOF
2666if ac_fn_c_try_compile "$LINENO"; then :
2667 eval "$3=yes"
2668else
2669 eval "$3=no"
2670fi
2671rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2672fi
2673eval ac_res=\$$3
2674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2675$as_echo "$ac_res" >&6; }
2676 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2677
2678} # ac_fn_c_check_decl
2679
cristy501c8042011-05-26 17:46:28 +00002680# ac_fn_c_find_intX_t LINENO BITS VAR
2681# -----------------------------------
2682# Finds a signed integer type with width BITS, setting cache variable VAR
2683# accordingly.
2684ac_fn_c_find_intX_t ()
2685{
2686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
2688$as_echo_n "checking for int$2_t... " >&6; }
2689if eval \${$3+:} false; then :
2690 $as_echo_n "(cached) " >&6
2691else
2692 eval "$3=no"
2693 # Order is important - never check a type that is potentially smaller
2694 # than half of the expected target width.
2695 for ac_type in int$2_t 'int' 'long int' \
2696 'long long int' 'short int' 'signed char'; do
2697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2698/* end confdefs.h. */
2699$ac_includes_default
2700 enum { N = $2 / 2 - 1 };
2701int
2702main ()
2703{
2704static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
cristy14fefe52012-05-21 00:59:18 +00002705test_array [0] = 0;
2706return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002707
2708 ;
2709 return 0;
2710}
2711_ACEOF
2712if ac_fn_c_try_compile "$LINENO"; then :
2713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2714/* end confdefs.h. */
2715$ac_includes_default
2716 enum { N = $2 / 2 - 1 };
2717int
2718main ()
2719{
2720static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
2721 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
cristy14fefe52012-05-21 00:59:18 +00002722test_array [0] = 0;
2723return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002724
2725 ;
2726 return 0;
2727}
2728_ACEOF
2729if ac_fn_c_try_compile "$LINENO"; then :
2730
2731else
2732 case $ac_type in #(
2733 int$2_t) :
2734 eval "$3=yes" ;; #(
2735 *) :
2736 eval "$3=\$ac_type" ;;
2737esac
2738fi
2739rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2740fi
2741rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2742 if eval test \"x\$"$3"\" = x"no"; then :
2743
2744else
2745 break
2746fi
2747 done
2748fi
2749eval ac_res=\$$3
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2751$as_echo "$ac_res" >&6; }
2752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2753
2754} # ac_fn_c_find_intX_t
2755
2756# ac_fn_c_find_uintX_t LINENO BITS VAR
2757# ------------------------------------
2758# Finds an unsigned integer type with width BITS, setting cache variable VAR
2759# accordingly.
2760ac_fn_c_find_uintX_t ()
2761{
2762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2764$as_echo_n "checking for uint$2_t... " >&6; }
2765if eval \${$3+:} false; then :
2766 $as_echo_n "(cached) " >&6
2767else
2768 eval "$3=no"
2769 # Order is important - never check a type that is potentially smaller
2770 # than half of the expected target width.
2771 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2772 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2774/* end confdefs.h. */
2775$ac_includes_default
2776int
2777main ()
2778{
2779static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
cristy14fefe52012-05-21 00:59:18 +00002780test_array [0] = 0;
2781return test_array [0];
cristy501c8042011-05-26 17:46:28 +00002782
2783 ;
2784 return 0;
2785}
2786_ACEOF
2787if ac_fn_c_try_compile "$LINENO"; then :
2788 case $ac_type in #(
2789 uint$2_t) :
2790 eval "$3=yes" ;; #(
2791 *) :
2792 eval "$3=\$ac_type" ;;
2793esac
2794fi
2795rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2796 if eval test \"x\$"$3"\" = x"no"; then :
2797
2798else
2799 break
2800fi
2801 done
2802fi
2803eval ac_res=\$$3
2804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2805$as_echo "$ac_res" >&6; }
2806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2807
2808} # ac_fn_c_find_uintX_t
2809
cristy8b350f62009-11-15 23:12:43 +00002810# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2811# --------------------------------------------
2812# Tries to find the compile-time value of EXPR in a program that includes
2813# INCLUDES, setting VAR accordingly. Returns whether the value could be
2814# computed
2815ac_fn_c_compute_int ()
2816{
2817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2818 if test "$cross_compiling" = yes; then
2819 # Depending upon the size, compute the lo and hi bounds.
2820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2821/* end confdefs.h. */
2822$4
2823int
2824main ()
2825{
2826static int test_array [1 - 2 * !(($2) >= 0)];
cristy14fefe52012-05-21 00:59:18 +00002827test_array [0] = 0;
2828return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002829
2830 ;
2831 return 0;
2832}
2833_ACEOF
2834if ac_fn_c_try_compile "$LINENO"; then :
2835 ac_lo=0 ac_mid=0
2836 while :; do
2837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2838/* end confdefs.h. */
2839$4
2840int
2841main ()
2842{
2843static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002844test_array [0] = 0;
2845return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002846
2847 ;
2848 return 0;
2849}
2850_ACEOF
2851if ac_fn_c_try_compile "$LINENO"; then :
2852 ac_hi=$ac_mid; break
2853else
2854 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2855 if test $ac_lo -le $ac_mid; then
2856 ac_lo= ac_hi=
2857 break
2858 fi
2859 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2860fi
2861rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 done
2863else
2864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2865/* end confdefs.h. */
2866$4
2867int
2868main ()
2869{
2870static int test_array [1 - 2 * !(($2) < 0)];
cristy14fefe52012-05-21 00:59:18 +00002871test_array [0] = 0;
2872return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002873
2874 ;
2875 return 0;
2876}
2877_ACEOF
2878if ac_fn_c_try_compile "$LINENO"; then :
2879 ac_hi=-1 ac_mid=-1
2880 while :; do
2881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2882/* end confdefs.h. */
2883$4
2884int
2885main ()
2886{
2887static int test_array [1 - 2 * !(($2) >= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002888test_array [0] = 0;
2889return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002890
2891 ;
2892 return 0;
2893}
2894_ACEOF
2895if ac_fn_c_try_compile "$LINENO"; then :
2896 ac_lo=$ac_mid; break
2897else
2898 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2899 if test $ac_mid -le $ac_hi; then
2900 ac_lo= ac_hi=
2901 break
2902 fi
2903 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2904fi
2905rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 done
2907else
2908 ac_lo= ac_hi=
2909fi
2910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2911fi
2912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2913# Binary search between lo and hi bounds.
2914while test "x$ac_lo" != "x$ac_hi"; do
2915 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2917/* end confdefs.h. */
2918$4
2919int
2920main ()
2921{
2922static int test_array [1 - 2 * !(($2) <= $ac_mid)];
cristy14fefe52012-05-21 00:59:18 +00002923test_array [0] = 0;
2924return test_array [0];
cristy8b350f62009-11-15 23:12:43 +00002925
2926 ;
2927 return 0;
2928}
2929_ACEOF
2930if ac_fn_c_try_compile "$LINENO"; then :
2931 ac_hi=$ac_mid
2932else
2933 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2934fi
2935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2936done
2937case $ac_lo in #((
2938?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2939'') ac_retval=1 ;;
2940esac
2941 else
2942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2943/* end confdefs.h. */
2944$4
2945static long int longval () { return $2; }
2946static unsigned long int ulongval () { return $2; }
2947#include <stdio.h>
2948#include <stdlib.h>
2949int
2950main ()
2951{
2952
2953 FILE *f = fopen ("conftest.val", "w");
2954 if (! f)
2955 return 1;
2956 if (($2) < 0)
2957 {
2958 long int i = longval ();
2959 if (i != ($2))
2960 return 1;
2961 fprintf (f, "%ld", i);
2962 }
2963 else
2964 {
2965 unsigned long int i = ulongval ();
2966 if (i != ($2))
2967 return 1;
2968 fprintf (f, "%lu", i);
2969 }
2970 /* Do not output a trailing newline, as this causes \r\n confusion
2971 on some platforms. */
2972 return ferror (f) || fclose (f) != 0;
2973
2974 ;
2975 return 0;
2976}
2977_ACEOF
2978if ac_fn_c_try_run "$LINENO"; then :
2979 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2980else
2981 ac_retval=1
2982fi
2983rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2984 conftest.$ac_objext conftest.beam conftest.$ac_ext
2985rm -f conftest.val
2986
2987 fi
cristyda16f162011-02-19 23:52:17 +00002988 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristycd4c5312009-11-22 01:19:08 +00002989 as_fn_set_status $ac_retval
cristy8b350f62009-11-15 23:12:43 +00002990
2991} # ac_fn_c_compute_int
2992
2993# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2994# ---------------------------------------------------------
2995# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2996# the include files in INCLUDES and setting the cache variable VAR
2997# accordingly.
2998ac_fn_cxx_check_header_mongrel ()
2999{
3000 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
cristyda16f162011-02-19 23:52:17 +00003001 if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3003$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003004if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003005 $as_echo_n "(cached) " >&6
3006fi
3007eval ac_res=\$$3
3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3009$as_echo "$ac_res" >&6; }
3010else
3011 # Is the header compilable?
3012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
3013$as_echo_n "checking $2 usability... " >&6; }
3014cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h. */
3016$4
3017#include <$2>
3018_ACEOF
3019if ac_fn_cxx_try_compile "$LINENO"; then :
3020 ac_header_compiler=yes
3021else
3022 ac_header_compiler=no
3023fi
3024rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3025{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
3026$as_echo "$ac_header_compiler" >&6; }
3027
3028# Is the header present?
3029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
3030$as_echo_n "checking $2 presence... " >&6; }
3031cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032/* end confdefs.h. */
3033#include <$2>
3034_ACEOF
3035if ac_fn_cxx_try_cpp "$LINENO"; then :
3036 ac_header_preproc=yes
3037else
3038 ac_header_preproc=no
3039fi
cristyda16f162011-02-19 23:52:17 +00003040rm -f conftest.err conftest.i conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00003041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
3042$as_echo "$ac_header_preproc" >&6; }
3043
3044# So? What about this header?
3045case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
3046 yes:no: )
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
3048$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3050$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
3051 ;;
3052 no:yes:* )
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
3054$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
3055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
3056$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
3057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
3058$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
3059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
3060$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
3061 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
3062$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003063( $as_echo "## ----------------------------------------- ##
cristy8b350f62009-11-15 23:12:43 +00003064## Report this to http://www.imagemagick.org ##
cristy98dddb52010-11-04 00:30:15 +00003065## ----------------------------------------- ##"
cristy8b350f62009-11-15 23:12:43 +00003066 ) | sed "s/^/$as_me: WARNING: /" >&2
3067 ;;
3068esac
3069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
3070$as_echo_n "checking for $2... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003071if eval \${$3+:} false; then :
cristy8b350f62009-11-15 23:12:43 +00003072 $as_echo_n "(cached) " >&6
3073else
3074 eval "$3=\$ac_header_compiler"
3075fi
3076eval ac_res=\$$3
3077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3078$as_echo "$ac_res" >&6; }
3079fi
cristyda16f162011-02-19 23:52:17 +00003080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
cristy8b350f62009-11-15 23:12:43 +00003081
3082} # ac_fn_cxx_check_header_mongrel
cristy3ed852e2009-09-05 21:47:34 +00003083cat >config.log <<_ACEOF
3084This file contains any messages produced by compilers while
3085running configure, to aid debugging if configure makes a mistake.
3086
cristy29eb34e2011-10-16 00:46:08 +00003087It was created by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +00003088generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +00003089
3090 $ $0 $@
3091
3092_ACEOF
3093exec 5>>config.log
3094{
3095cat <<_ASUNAME
3096## --------- ##
3097## Platform. ##
3098## --------- ##
3099
3100hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3101uname -m = `(uname -m) 2>/dev/null || echo unknown`
3102uname -r = `(uname -r) 2>/dev/null || echo unknown`
3103uname -s = `(uname -s) 2>/dev/null || echo unknown`
3104uname -v = `(uname -v) 2>/dev/null || echo unknown`
3105
3106/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3107/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3108
3109/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3110/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3111/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3112/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3113/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3114/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3115/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3116
3117_ASUNAME
3118
3119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH
3121do
3122 IFS=$as_save_IFS
3123 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00003124 $as_echo "PATH: $as_dir"
3125 done
cristy3ed852e2009-09-05 21:47:34 +00003126IFS=$as_save_IFS
3127
3128} >&5
3129
3130cat >&5 <<_ACEOF
3131
3132
3133## ----------- ##
3134## Core tests. ##
3135## ----------- ##
3136
3137_ACEOF
3138
3139
3140# Keep a trace of the command line.
3141# Strip out --no-create and --no-recursion so they do not pile up.
3142# Strip out --silent because we don't want to record it for future runs.
3143# Also quote any args containing shell meta-characters.
3144# Make two passes to allow for proper duplicate-argument suppression.
3145ac_configure_args=
3146ac_configure_args0=
3147ac_configure_args1=
3148ac_must_keep_next=false
3149for ac_pass in 1 2
3150do
3151 for ac_arg
3152 do
3153 case $ac_arg in
3154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3156 | -silent | --silent | --silen | --sile | --sil)
3157 continue ;;
3158 *\'*)
3159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3160 esac
3161 case $ac_pass in
cristy8b350f62009-11-15 23:12:43 +00003162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003163 2)
cristy8b350f62009-11-15 23:12:43 +00003164 as_fn_append ac_configure_args1 " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003165 if test $ac_must_keep_next = true; then
3166 ac_must_keep_next=false # Got value, back to normal.
3167 else
3168 case $ac_arg in
3169 *=* | --config-cache | -C | -disable-* | --disable-* \
3170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3172 | -with-* | --with-* | -without-* | --without-* | --x)
3173 case "$ac_configure_args0 " in
3174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3175 esac
3176 ;;
3177 -* ) ac_must_keep_next=true ;;
3178 esac
3179 fi
cristy8b350f62009-11-15 23:12:43 +00003180 as_fn_append ac_configure_args " '$ac_arg'"
cristy3ed852e2009-09-05 21:47:34 +00003181 ;;
3182 esac
3183 done
3184done
cristy8b350f62009-11-15 23:12:43 +00003185{ ac_configure_args0=; unset ac_configure_args0;}
3186{ ac_configure_args1=; unset ac_configure_args1;}
cristy3ed852e2009-09-05 21:47:34 +00003187
3188# When interrupted or exit'd, cleanup temporary files, and complete
3189# config.log. We remove comments because anyway the quotes in there
3190# would cause problems or look ugly.
3191# WARNING: Use '\'' to represent an apostrophe within the trap.
3192# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3193trap 'exit_status=$?
3194 # Save into config.log some information that might help in debugging.
3195 {
3196 echo
3197
cristy98dddb52010-11-04 00:30:15 +00003198 $as_echo "## ---------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003199## Cache variables. ##
cristy98dddb52010-11-04 00:30:15 +00003200## ---------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003201 echo
3202 # The following way of writing the cache mishandles newlines in values,
3203(
3204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3205 eval ac_val=\$$ac_var
3206 case $ac_val in #(
3207 *${as_nl}*)
3208 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +00003209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +00003210$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3211 esac
3212 case $ac_var in #(
3213 _ | IFS | as_nl) ;; #(
3214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +00003215 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +00003216 esac ;;
3217 esac
3218 done
3219 (set) 2>&1 |
3220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3221 *${as_nl}ac_space=\ *)
3222 sed -n \
3223 "s/'\''/'\''\\\\'\'''\''/g;
3224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3225 ;; #(
3226 *)
3227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3228 ;;
3229 esac |
3230 sort
3231)
3232 echo
3233
cristy98dddb52010-11-04 00:30:15 +00003234 $as_echo "## ----------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003235## Output variables. ##
cristy98dddb52010-11-04 00:30:15 +00003236## ----------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003237 echo
3238 for ac_var in $ac_subst_vars
3239 do
3240 eval ac_val=\$$ac_var
3241 case $ac_val in
3242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3243 esac
3244 $as_echo "$ac_var='\''$ac_val'\''"
3245 done | sort
3246 echo
3247
3248 if test -n "$ac_subst_files"; then
cristy98dddb52010-11-04 00:30:15 +00003249 $as_echo "## ------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003250## File substitutions. ##
cristy98dddb52010-11-04 00:30:15 +00003251## ------------------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003252 echo
3253 for ac_var in $ac_subst_files
3254 do
3255 eval ac_val=\$$ac_var
3256 case $ac_val in
3257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3258 esac
3259 $as_echo "$ac_var='\''$ac_val'\''"
3260 done | sort
3261 echo
3262 fi
3263
3264 if test -s confdefs.h; then
cristy98dddb52010-11-04 00:30:15 +00003265 $as_echo "## ----------- ##
cristy3ed852e2009-09-05 21:47:34 +00003266## confdefs.h. ##
cristy98dddb52010-11-04 00:30:15 +00003267## ----------- ##"
cristy3ed852e2009-09-05 21:47:34 +00003268 echo
3269 cat confdefs.h
3270 echo
3271 fi
3272 test "$ac_signal" != 0 &&
3273 $as_echo "$as_me: caught signal $ac_signal"
3274 $as_echo "$as_me: exit $exit_status"
3275 } >&5
3276 rm -f core *.core core.conftest.* &&
3277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3278 exit $exit_status
3279' 0
3280for ac_signal in 1 2 13 15; do
cristy8b350f62009-11-15 23:12:43 +00003281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
cristy3ed852e2009-09-05 21:47:34 +00003282done
3283ac_signal=0
3284
3285# confdefs.h avoids OS command line length limits that DEFS can exceed.
3286rm -f -r conftest* confdefs.h
3287
cristy8b350f62009-11-15 23:12:43 +00003288$as_echo "/* confdefs.h */" > confdefs.h
3289
cristy3ed852e2009-09-05 21:47:34 +00003290# Predefined preprocessor variables.
3291
3292cat >>confdefs.h <<_ACEOF
3293#define PACKAGE_NAME "$PACKAGE_NAME"
3294_ACEOF
3295
cristy3ed852e2009-09-05 21:47:34 +00003296cat >>confdefs.h <<_ACEOF
3297#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3298_ACEOF
3299
cristy3ed852e2009-09-05 21:47:34 +00003300cat >>confdefs.h <<_ACEOF
3301#define PACKAGE_VERSION "$PACKAGE_VERSION"
3302_ACEOF
3303
cristy3ed852e2009-09-05 21:47:34 +00003304cat >>confdefs.h <<_ACEOF
3305#define PACKAGE_STRING "$PACKAGE_STRING"
3306_ACEOF
3307
cristy3ed852e2009-09-05 21:47:34 +00003308cat >>confdefs.h <<_ACEOF
3309#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3310_ACEOF
3311
cristy8b350f62009-11-15 23:12:43 +00003312cat >>confdefs.h <<_ACEOF
3313#define PACKAGE_URL "$PACKAGE_URL"
3314_ACEOF
3315
cristy3ed852e2009-09-05 21:47:34 +00003316
3317# Let the site file select an alternate cache file if it wants to.
3318# Prefer an explicitly selected file to automatically selected ones.
3319ac_site_file1=NONE
3320ac_site_file2=NONE
3321if test -n "$CONFIG_SITE"; then
cristy98dddb52010-11-04 00:30:15 +00003322 # We do not want a PATH search for config.site.
3323 case $CONFIG_SITE in #((
3324 -*) ac_site_file1=./$CONFIG_SITE;;
3325 */*) ac_site_file1=$CONFIG_SITE;;
3326 *) ac_site_file1=./$CONFIG_SITE;;
3327 esac
cristy3ed852e2009-09-05 21:47:34 +00003328elif test "x$prefix" != xNONE; then
3329 ac_site_file1=$prefix/share/config.site
3330 ac_site_file2=$prefix/etc/config.site
3331else
3332 ac_site_file1=$ac_default_prefix/share/config.site
3333 ac_site_file2=$ac_default_prefix/etc/config.site
3334fi
3335for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3336do
3337 test "x$ac_site_file" = xNONE && continue
cristycd4c5312009-11-22 01:19:08 +00003338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
cristy8b350f62009-11-15 23:12:43 +00003339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003340$as_echo "$as_me: loading site script $ac_site_file" >&6;}
3341 sed 's/^/| /' "$ac_site_file" >&5
cristy98dddb52010-11-04 00:30:15 +00003342 . "$ac_site_file" \
3343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3345as_fn_error $? "failed to load site script $ac_site_file
3346See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00003347 fi
3348done
3349
3350if test -r "$cache_file"; then
cristycd4c5312009-11-22 01:19:08 +00003351 # Some versions of bash will fail to source /dev/null (special files
3352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
cristy8b350f62009-11-15 23:12:43 +00003354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003355$as_echo "$as_me: loading cache $cache_file" >&6;}
3356 case $cache_file in
3357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3358 *) . "./$cache_file";;
3359 esac
3360 fi
3361else
cristy8b350f62009-11-15 23:12:43 +00003362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +00003363$as_echo "$as_me: creating cache $cache_file" >&6;}
3364 >$cache_file
3365fi
3366
cristycd4c5312009-11-22 01:19:08 +00003367as_fn_append ac_header_list " stdlib.h"
3368as_fn_append ac_header_list " unistd.h"
3369as_fn_append ac_header_list " sys/param.h"
cristy3ed852e2009-09-05 21:47:34 +00003370# Check that the precious variables saved in the cache have kept the same
3371# value.
3372ac_cache_corrupted=false
3373for ac_var in $ac_precious_vars; do
3374 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3375 eval ac_new_set=\$ac_env_${ac_var}_set
3376 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3377 eval ac_new_val=\$ac_env_${ac_var}_value
3378 case $ac_old_set,$ac_new_set in
3379 set,)
cristy8b350f62009-11-15 23:12:43 +00003380 { $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 +00003381$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3382 ac_cache_corrupted=: ;;
3383 ,set)
cristy8b350f62009-11-15 23:12:43 +00003384 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
cristy3ed852e2009-09-05 21:47:34 +00003385$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3386 ac_cache_corrupted=: ;;
3387 ,);;
3388 *)
3389 if test "x$ac_old_val" != "x$ac_new_val"; then
3390 # differences in whitespace do not lead to failure.
3391 ac_old_val_w=`echo x $ac_old_val`
3392 ac_new_val_w=`echo x $ac_new_val`
3393 if test "$ac_old_val_w" != "$ac_new_val_w"; then
cristy8b350f62009-11-15 23:12:43 +00003394 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
cristy3ed852e2009-09-05 21:47:34 +00003395$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3396 ac_cache_corrupted=:
3397 else
cristy8b350f62009-11-15 23:12:43 +00003398 { $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 +00003399$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3400 eval $ac_var=\$ac_old_val
3401 fi
cristy8b350f62009-11-15 23:12:43 +00003402 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003403$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003404 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
cristy3ed852e2009-09-05 21:47:34 +00003405$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3406 fi;;
3407 esac
3408 # Pass precious variables to config.status.
3409 if test "$ac_new_set" = set; then
3410 case $ac_new_val in
3411 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3412 *) ac_arg=$ac_var=$ac_new_val ;;
3413 esac
3414 case " $ac_configure_args " in
3415 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
cristy8b350f62009-11-15 23:12:43 +00003416 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
cristy3ed852e2009-09-05 21:47:34 +00003417 esac
3418 fi
3419done
3420if $ac_cache_corrupted; then
cristy8b350f62009-11-15 23:12:43 +00003421 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00003422$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy8b350f62009-11-15 23:12:43 +00003423 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003424$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
cristy98dddb52010-11-04 00:30:15 +00003425 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003426fi
cristy8b350f62009-11-15 23:12:43 +00003427## -------------------- ##
3428## Main body of script. ##
3429## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +00003430
3431ac_ext=c
3432ac_cpp='$CPP $CPPFLAGS'
3433ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3434ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3435ac_compiler_gnu=$ac_cv_c_compiler_gnu
3436
3437
3438
3439ac_aux_dir=
3440for ac_dir in config "$srcdir"/config; do
cristy98dddb52010-11-04 00:30:15 +00003441 if test -f "$ac_dir/install-sh"; then
3442 ac_aux_dir=$ac_dir
3443 ac_install_sh="$ac_aux_dir/install-sh -c"
3444 break
3445 elif test -f "$ac_dir/install.sh"; then
3446 ac_aux_dir=$ac_dir
3447 ac_install_sh="$ac_aux_dir/install.sh -c"
3448 break
3449 elif test -f "$ac_dir/shtool"; then
3450 ac_aux_dir=$ac_dir
3451 ac_install_sh="$ac_aux_dir/shtool install -c"
3452 break
3453 fi
cristy3ed852e2009-09-05 21:47:34 +00003454done
3455if test -z "$ac_aux_dir"; then
cristy98dddb52010-11-04 00:30:15 +00003456 as_fn_error $? "cannot find install-sh, install.sh, or shtool in config \"$srcdir\"/config" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003457fi
3458
3459# These three variables are undocumented and unsupported,
3460# and are intended to be withdrawn in a future Autoconf release.
3461# They can cause serious problems if a builder's source tree is in a directory
3462# whose full name contains unusual characters.
3463ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3464ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3465ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3466
3467
3468
3469
3470ac_config_headers="$ac_config_headers config/config.h"
3471
cristy24fc1fe2010-10-23 21:13:01 +00003472
cristy4c08aed2011-07-01 19:47:50 +00003473ac_config_commands="$ac_config_commands MagickCore/magick-config.h"
cristy73bd4a52010-10-05 11:24:23 +00003474
cristy2df32802012-09-17 01:15:28 +00003475ac_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 +00003476
3477
3478#
3479# Save initial user-tunable values
3480#
3481USER_LIBS=$LIBS
3482for var in CC CFLAGS CPPFLAGS CXX CXXCPP LDFLAGS LIBS ; do
3483 eval isset=\${$var+set}
3484 if test "$isset" = 'set'; then
3485 eval val=$`echo $var`
3486 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS}'${var}=${val}' "
3487 fi
3488done
3489
3490
3491CONFIGURE_ARGS="$0 ${ac_configure_args}"
3492
3493
3494# Source file containing package/library versioning information.
3495. ${srcdir}/version.sh
3496
cristy15a88782010-01-31 23:24:49 +00003497echo "configuring ${PACKAGE_NAME} ${PACKAGE_VERSION}${PACKAGE_VERSION_ADDENDUM}"
cristy3ed852e2009-09-05 21:47:34 +00003498# Make sure we can run config.sub.
3499$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
cristy98dddb52010-11-04 00:30:15 +00003500 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003501
cristy8b350f62009-11-15 23:12:43 +00003502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003503$as_echo_n "checking build system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003504if ${ac_cv_build+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003505 $as_echo_n "(cached) " >&6
3506else
3507 ac_build_alias=$build_alias
3508test "x$ac_build_alias" = x &&
3509 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3510test "x$ac_build_alias" = x &&
cristy98dddb52010-11-04 00:30:15 +00003511 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003512ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003513 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003514
3515fi
cristy8b350f62009-11-15 23:12:43 +00003516{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
cristy3ed852e2009-09-05 21:47:34 +00003517$as_echo "$ac_cv_build" >&6; }
3518case $ac_cv_build in
3519*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003520*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003521esac
3522build=$ac_cv_build
3523ac_save_IFS=$IFS; IFS='-'
3524set x $ac_cv_build
3525shift
3526build_cpu=$1
3527build_vendor=$2
3528shift; shift
3529# Remember, the first character of IFS is used to create $*,
3530# except with old shells:
3531build_os=$*
3532IFS=$ac_save_IFS
3533case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3534
3535
cristy8b350f62009-11-15 23:12:43 +00003536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003537$as_echo_n "checking host system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003538if ${ac_cv_host+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003539 $as_echo_n "(cached) " >&6
3540else
3541 if test "x$host_alias" = x; then
3542 ac_cv_host=$ac_cv_build
3543else
3544 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003545 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003546fi
3547
3548fi
cristy8b350f62009-11-15 23:12:43 +00003549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
cristy3ed852e2009-09-05 21:47:34 +00003550$as_echo "$ac_cv_host" >&6; }
3551case $ac_cv_host in
3552*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003553*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003554esac
3555host=$ac_cv_host
3556ac_save_IFS=$IFS; IFS='-'
3557set x $ac_cv_host
3558shift
3559host_cpu=$1
3560host_vendor=$2
3561shift; shift
3562# Remember, the first character of IFS is used to create $*,
3563# except with old shells:
3564host_os=$*
3565IFS=$ac_save_IFS
3566case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3567
3568
cristy8b350f62009-11-15 23:12:43 +00003569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
cristy3ed852e2009-09-05 21:47:34 +00003570$as_echo_n "checking target system type... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003571if ${ac_cv_target+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00003572 $as_echo_n "(cached) " >&6
3573else
3574 if test "x$target_alias" = x; then
3575 ac_cv_target=$ac_cv_host
3576else
3577 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
cristy98dddb52010-11-04 00:30:15 +00003578 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00003579fi
3580
3581fi
cristy8b350f62009-11-15 23:12:43 +00003582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
cristy3ed852e2009-09-05 21:47:34 +00003583$as_echo "$ac_cv_target" >&6; }
3584case $ac_cv_target in
3585*-*-*) ;;
cristy98dddb52010-11-04 00:30:15 +00003586*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +00003587esac
3588target=$ac_cv_target
3589ac_save_IFS=$IFS; IFS='-'
3590set x $ac_cv_target
3591shift
3592target_cpu=$1
3593target_vendor=$2
3594shift; shift
3595# Remember, the first character of IFS is used to create $*,
3596# except with old shells:
3597target_os=$*
3598IFS=$ac_save_IFS
3599case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3600
3601
3602# The aliases save the names the user supplied, while $host etc.
3603# will get canonicalized.
3604test -n "$target_alias" &&
3605 test "$program_prefix$program_suffix$program_transform_name" = \
3606 NONENONEs,x,x, &&
3607 program_prefix=${target_alias}-
3608
cristy837d6dc2010-02-27 01:16:57 +00003609
3610
3611
cristy8be34142012-06-17 14:07:18 +00003612
cristy19615b82011-04-13 20:02:01 +00003613MAGICK_TARGET_CPU=$host_cpu
cristy3225a072010-04-17 01:47:28 +00003614
3615
cristy27d53d62012-07-29 23:30:07 +00003616cat >>confdefs.h <<_ACEOF
3617#define MAGICK_TARGET_CPU $MAGICK_TARGET_CPU
3618_ACEOF
3619
3620
cristy19615b82011-04-13 20:02:01 +00003621MAGICK_TARGET_VENDOR=$host_vendor
cristy3225a072010-04-17 01:47:28 +00003622
3623
cristy27d53d62012-07-29 23:30:07 +00003624cat >>confdefs.h <<_ACEOF
3625#define MAGICK_TARGET_VENDOR $MAGICK_TARGET_VENDOR
3626_ACEOF
3627
3628
cristy19615b82011-04-13 20:02:01 +00003629MAGICK_TARGET_OS=$host_os
cristy3225a072010-04-17 01:47:28 +00003630
3631
cristy27d53d62012-07-29 23:30:07 +00003632cat >>confdefs.h <<_ACEOF
3633#define MAGICK_TARGET_OS $MAGICK_TARGET_OS
3634_ACEOF
3635
3636
cristy3ed852e2009-09-05 21:47:34 +00003637# Substitute library versioning
cristybab87c32010-02-09 20:54:22 +00003638MAGICK_LIBRARY_CURRENT_MIN=`expr $MAGICK_LIBRARY_CURRENT - $MAGICK_LIBRARY_AGE`
3639
3640MAGICK_LIBRARY_VERSION_INFO=$MAGICK_LIBRARY_CURRENT:$MAGICK_LIBRARY_REVISION:$MAGICK_LIBRARY_AGE
3641
cristy9b86f202012-11-28 21:55:35 +00003642MAGICK_SVN_REVISION=10044:10047M
cristyd694ca32011-03-27 21:42:54 +00003643
cristy3ed852e2009-09-05 21:47:34 +00003644
3645
3646# Ensure that make can run correctly
cristy73bd4a52010-10-05 11:24:23 +00003647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3648$as_echo_n "checking whether build environment is sane... " >&6; }
cristy73bd4a52010-10-05 11:24:23 +00003649# Reject unsafe characters in $srcdir or the absolute working directory
3650# name. Accept space and tab only in the latter.
3651am_lf='
3652'
3653case `pwd` in
3654 *[\\\"\#\$\&\'\`$am_lf]*)
cristy98dddb52010-11-04 00:30:15 +00003655 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003656esac
3657case $srcdir in
3658 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
cristyc0890a62012-07-19 00:18:20 +00003659 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
cristy73bd4a52010-10-05 11:24:23 +00003660esac
cristy3ed852e2009-09-05 21:47:34 +00003661
cristyc0890a62012-07-19 00:18:20 +00003662# Do 'set' in a subshell so we don't clobber the current shell's
cristy73bd4a52010-10-05 11:24:23 +00003663# arguments. Must try -L first in case configure is actually a
3664# symlink; some systems play weird games with the mod time of symlinks
3665# (eg FreeBSD returns the mod time of the symlink's containing
3666# directory).
3667if (
cristyc0890a62012-07-19 00:18:20 +00003668 am_has_slept=no
3669 for am_try in 1 2; do
3670 echo "timestamp, slept: $am_has_slept" > conftest.file
3671 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3672 if test "$*" = "X"; then
3673 # -L didn't work.
3674 set X `ls -t "$srcdir/configure" conftest.file`
3675 fi
3676 if test "$*" != "X $srcdir/configure conftest.file" \
3677 && test "$*" != "X conftest.file $srcdir/configure"; then
cristy73bd4a52010-10-05 11:24:23 +00003678
cristyc0890a62012-07-19 00:18:20 +00003679 # If neither matched, then we have a broken ls. This can happen
3680 # if, for instance, CONFIG_SHELL is bash and it inherits a
3681 # broken ls alias from the environment. This has actually
3682 # happened. Such a system could not be considered "sane".
3683 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
3684 alias in your environment" "$LINENO" 5
3685 fi
3686 if test "$2" = conftest.file || test $am_try -eq 2; then
3687 break
3688 fi
3689 # Just in case.
3690 sleep 1
3691 am_has_slept=yes
3692 done
cristy73bd4a52010-10-05 11:24:23 +00003693 test "$2" = conftest.file
3694 )
3695then
3696 # Ok.
3697 :
3698else
cristy98dddb52010-11-04 00:30:15 +00003699 as_fn_error $? "newly created file is older than distributed files!
cristy73bd4a52010-10-05 11:24:23 +00003700Check your system clock" "$LINENO" 5
3701fi
3702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3703$as_echo "yes" >&6; }
cristyc0890a62012-07-19 00:18:20 +00003704# If we didn't sleep, we still need to ensure time stamps of config.status and
3705# generated files are strictly newer.
3706am_sleep_pid=
3707if grep 'slept: no' conftest.file >/dev/null 2>&1; then
3708 ( sleep 1 ) &
3709 am_sleep_pid=$!
3710fi
cristy73bd4a52010-10-05 11:24:23 +00003711
cristyc0890a62012-07-19 00:18:20 +00003712rm -f conftest.file
3713
3714
3715am__api_version='1.12'
cristy73bd4a52010-10-05 11:24:23 +00003716
3717# Find a good install program. We prefer a C program (faster),
3718# so one script is as good as another. But avoid the broken or
3719# incompatible versions:
3720# SysV /etc/install, /usr/sbin/install
3721# SunOS /usr/etc/install
3722# IRIX /sbin/install
3723# AIX /bin/install
3724# AmigaOS /C/install, which installs bootblocks on floppy discs
3725# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3726# AFS /usr/afsws/bin/install, which mishandles nonexistent args
3727# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3728# OS/2's system install, which has a completely different semantic
3729# ./install, which can be erroneously created by make from ./install.sh.
3730# Reject install programs that cannot install multiple files.
3731{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3732$as_echo_n "checking for a BSD-compatible install... " >&6; }
3733if test -z "$INSTALL"; then
cristyda16f162011-02-19 23:52:17 +00003734if ${ac_cv_path_install+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003735 $as_echo_n "(cached) " >&6
3736else
3737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3738for as_dir in $PATH
3739do
3740 IFS=$as_save_IFS
3741 test -z "$as_dir" && as_dir=.
3742 # Account for people who put trailing slashes in PATH elements.
3743case $as_dir/ in #((
3744 ./ | .// | /[cC]/* | \
3745 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3746 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3747 /usr/ucb/* ) ;;
3748 *)
3749 # OSF1 and SCO ODT 3.0 have their own names for install.
3750 # Don't use installbsd from OSF since it installs stuff as root
3751 # by default.
3752 for ac_prog in ginstall scoinst install; do
3753 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003754 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003755 if test $ac_prog = install &&
3756 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3757 # AIX install. It has an incompatible calling convention.
3758 :
3759 elif test $ac_prog = install &&
3760 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3761 # program-specific install script used by HP pwplus--don't use.
3762 :
3763 else
3764 rm -rf conftest.one conftest.two conftest.dir
3765 echo one > conftest.one
3766 echo two > conftest.two
3767 mkdir conftest.dir
3768 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3769 test -s conftest.one && test -s conftest.two &&
3770 test -s conftest.dir/conftest.one &&
3771 test -s conftest.dir/conftest.two
3772 then
3773 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3774 break 3
3775 fi
3776 fi
3777 fi
3778 done
3779 done
3780 ;;
3781esac
3782
3783 done
3784IFS=$as_save_IFS
3785
3786rm -rf conftest.one conftest.two conftest.dir
3787
3788fi
3789 if test "${ac_cv_path_install+set}" = set; then
3790 INSTALL=$ac_cv_path_install
3791 else
3792 # As a last resort, use the slow shell script. Don't cache a
3793 # value for INSTALL within a source directory, because that will
3794 # break other packages using the cache if that directory is
3795 # removed, or if the value is a relative name.
3796 INSTALL=$ac_install_sh
3797 fi
3798fi
3799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3800$as_echo "$INSTALL" >&6; }
3801
3802# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3803# It thinks the first close brace ends the variable substitution.
3804test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3805
3806test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3807
3808test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3809
3810test "$program_prefix" != NONE &&
3811 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3812# Use a double $ so make ignores it.
3813test "$program_suffix" != NONE &&
3814 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3815# Double any \ or $.
3816# By default was `s,x,x', remove it if useless.
3817ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3818program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3819
3820# expand $ac_aux_dir to an absolute path
3821am_aux_dir=`cd $ac_aux_dir && pwd`
3822
3823if test x"${MISSING+set}" != xset; then
3824 case $am_aux_dir in
3825 *\ * | *\ *)
3826 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3827 *)
3828 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3829 esac
3830fi
3831# Use eval to expand $SHELL
3832if eval "$MISSING --run true"; then
3833 am_missing_run="$MISSING --run "
3834else
3835 am_missing_run=
cristyc0890a62012-07-19 00:18:20 +00003836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3837$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
cristy73bd4a52010-10-05 11:24:23 +00003838fi
3839
3840if test x"${install_sh}" != xset; then
3841 case $am_aux_dir in
3842 *\ * | *\ *)
3843 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3844 *)
3845 install_sh="\${SHELL} $am_aux_dir/install-sh"
3846 esac
3847fi
3848
cristyc0890a62012-07-19 00:18:20 +00003849# Installed binaries are usually stripped using 'strip' when the user
3850# run "make install-strip". However 'strip' might not be the right
cristy73bd4a52010-10-05 11:24:23 +00003851# tool to use in cross-compilation environments, therefore Automake
cristyc0890a62012-07-19 00:18:20 +00003852# will honor the 'STRIP' environment variable to overrule this program.
cristy73bd4a52010-10-05 11:24:23 +00003853if test "$cross_compiling" != no; then
3854 if test -n "$ac_tool_prefix"; then
3855 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3856set dummy ${ac_tool_prefix}strip; ac_word=$2
3857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3858$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003859if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003860 $as_echo_n "(cached) " >&6
3861else
3862 if test -n "$STRIP"; then
3863 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3864else
3865as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3866for as_dir in $PATH
3867do
3868 IFS=$as_save_IFS
3869 test -z "$as_dir" && as_dir=.
3870 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003872 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3874 break 2
3875 fi
3876done
3877 done
3878IFS=$as_save_IFS
3879
3880fi
3881fi
3882STRIP=$ac_cv_prog_STRIP
3883if test -n "$STRIP"; then
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3885$as_echo "$STRIP" >&6; }
3886else
3887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888$as_echo "no" >&6; }
3889fi
3890
3891
3892fi
3893if test -z "$ac_cv_prog_STRIP"; then
3894 ac_ct_STRIP=$STRIP
3895 # Extract the first word of "strip", so it can be a program name with args.
3896set dummy strip; ac_word=$2
3897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3898$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003899if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003900 $as_echo_n "(cached) " >&6
3901else
3902 if test -n "$ac_ct_STRIP"; then
3903 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3904else
3905as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3906for as_dir in $PATH
3907do
3908 IFS=$as_save_IFS
3909 test -z "$as_dir" && as_dir=.
3910 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00003912 ac_cv_prog_ac_ct_STRIP="strip"
3913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3914 break 2
3915 fi
3916done
3917 done
3918IFS=$as_save_IFS
3919
3920fi
3921fi
3922ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3923if test -n "$ac_ct_STRIP"; then
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3925$as_echo "$ac_ct_STRIP" >&6; }
3926else
3927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3928$as_echo "no" >&6; }
3929fi
3930
3931 if test "x$ac_ct_STRIP" = x; then
3932 STRIP=":"
3933 else
3934 case $cross_compiling:$ac_tool_warned in
3935yes:)
3936{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3937$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3938ac_tool_warned=yes ;;
3939esac
3940 STRIP=$ac_ct_STRIP
3941 fi
3942else
3943 STRIP="$ac_cv_prog_STRIP"
3944fi
3945
3946fi
3947INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3948
3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3950$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3951if test -z "$MKDIR_P"; then
cristyda16f162011-02-19 23:52:17 +00003952 if ${ac_cv_path_mkdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003953 $as_echo_n "(cached) " >&6
3954else
3955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3956for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3957do
3958 IFS=$as_save_IFS
3959 test -z "$as_dir" && as_dir=.
3960 for ac_prog in mkdir gmkdir; do
3961 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00003962 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
cristy73bd4a52010-10-05 11:24:23 +00003963 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3964 'mkdir (GNU coreutils) '* | \
3965 'mkdir (coreutils) '* | \
3966 'mkdir (fileutils) '4.1*)
3967 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3968 break 3;;
3969 esac
3970 done
3971 done
3972 done
3973IFS=$as_save_IFS
3974
3975fi
3976
3977 test -d ./--version && rmdir ./--version
3978 if test "${ac_cv_path_mkdir+set}" = set; then
3979 MKDIR_P="$ac_cv_path_mkdir -p"
3980 else
3981 # As a last resort, use the slow shell script. Don't cache a
3982 # value for MKDIR_P within a source directory, because that will
3983 # break other packages using the cache if that directory is
3984 # removed, or if the value is a relative name.
3985 MKDIR_P="$ac_install_sh -d"
3986 fi
3987fi
3988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3989$as_echo "$MKDIR_P" >&6; }
3990
cristy73bd4a52010-10-05 11:24:23 +00003991for ac_prog in gawk mawk nawk awk
3992do
3993 # Extract the first word of "$ac_prog", so it can be a program name with args.
3994set dummy $ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00003997if ${ac_cv_prog_AWK+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00003998 $as_echo_n "(cached) " >&6
3999else
4000 if test -n "$AWK"; then
4001 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004for as_dir in $PATH
4005do
4006 IFS=$as_save_IFS
4007 test -z "$as_dir" && as_dir=.
4008 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00004010 ac_cv_prog_AWK="$ac_prog"
4011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4012 break 2
4013 fi
4014done
4015 done
4016IFS=$as_save_IFS
4017
4018fi
4019fi
4020AWK=$ac_cv_prog_AWK
4021if test -n "$AWK"; then
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4023$as_echo "$AWK" >&6; }
4024else
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4026$as_echo "no" >&6; }
4027fi
4028
4029
4030 test -n "$AWK" && break
4031done
4032
4033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4034$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4035set x ${MAKE-make}
4036ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00004037if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00004038 $as_echo_n "(cached) " >&6
4039else
4040 cat >conftest.make <<\_ACEOF
4041SHELL = /bin/sh
4042all:
4043 @echo '@@@%%%=$(MAKE)=@@@%%%'
4044_ACEOF
cristy98dddb52010-11-04 00:30:15 +00004045# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristy73bd4a52010-10-05 11:24:23 +00004046case `${MAKE-make} -f conftest.make 2>/dev/null` in
4047 *@@@%%%=?*=@@@%%%*)
4048 eval ac_cv_prog_make_${ac_make}_set=yes;;
4049 *)
4050 eval ac_cv_prog_make_${ac_make}_set=no;;
4051esac
4052rm -f conftest.make
4053fi
4054if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4056$as_echo "yes" >&6; }
4057 SET_MAKE=
4058else
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4060$as_echo "no" >&6; }
4061 SET_MAKE="MAKE=${MAKE-make}"
4062fi
4063
4064rm -rf .tst 2>/dev/null
4065mkdir .tst 2>/dev/null
4066if test -d .tst; then
4067 am__leading_dot=.
4068else
4069 am__leading_dot=_
4070fi
4071rmdir .tst 2>/dev/null
4072
cristya448bd22011-10-14 12:38:13 +00004073# Check whether --enable-silent-rules was given.
4074if test "${enable_silent_rules+set}" = set; then :
4075 enableval=$enable_silent_rules;
4076fi
4077
cristyc0890a62012-07-19 00:18:20 +00004078case $enable_silent_rules in # (((
4079 yes) AM_DEFAULT_VERBOSITY=0;;
4080 no) AM_DEFAULT_VERBOSITY=1;;
4081 *) AM_DEFAULT_VERBOSITY=1;;
cristya448bd22011-10-14 12:38:13 +00004082esac
cristyc3fb77b2012-02-06 01:49:41 +00004083am_make=${MAKE-make}
4084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4085$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4086if ${am_cv_make_support_nested_variables+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088else
4089 if $as_echo 'TRUE=$(BAR$(V))
4090BAR0=false
4091BAR1=true
4092V=1
4093am__doit:
4094 @$(TRUE)
4095.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4096 am_cv_make_support_nested_variables=yes
4097else
4098 am_cv_make_support_nested_variables=no
4099fi
4100fi
4101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4102$as_echo "$am_cv_make_support_nested_variables" >&6; }
4103if test $am_cv_make_support_nested_variables = yes; then
4104 AM_V='$(V)'
4105 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4106else
4107 AM_V=$AM_DEFAULT_VERBOSITY
4108 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4109fi
cristya448bd22011-10-14 12:38:13 +00004110AM_BACKSLASH='\'
4111
cristy73bd4a52010-10-05 11:24:23 +00004112if test "`cd $srcdir && pwd`" != "`pwd`"; then
4113 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4114 # is not polluted with repeated "-I."
4115 am__isrc=' -I$(srcdir)'
4116 # test to see if srcdir already configured
4117 if test -f $srcdir/config.status; then
cristy98dddb52010-11-04 00:30:15 +00004118 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00004119 fi
4120fi
4121
4122# test whether we have cygpath
4123if test -z "$CYGPATH_W"; then
4124 if (cygpath --version) >/dev/null 2>/dev/null; then
4125 CYGPATH_W='cygpath -w'
4126 else
4127 CYGPATH_W=echo
4128 fi
4129fi
4130
4131
4132# Define the identity of the package.
cristy09b53e12011-10-14 12:47:22 +00004133 PACKAGE='ImageMagick'
cristy29eb34e2011-10-16 00:46:08 +00004134 VERSION='7.0.0-0'
cristy73bd4a52010-10-05 11:24:23 +00004135
4136
cristya448bd22011-10-14 12:38:13 +00004137cat >>confdefs.h <<_ACEOF
4138#define PACKAGE "$PACKAGE"
4139_ACEOF
4140
4141
4142cat >>confdefs.h <<_ACEOF
4143#define VERSION "$VERSION"
4144_ACEOF
4145
cristy73bd4a52010-10-05 11:24:23 +00004146# Some tools Automake needs.
4147
4148ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4149
4150
4151AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4152
4153
4154AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4155
4156
4157AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4158
4159
4160MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4161
cristyc0890a62012-07-19 00:18:20 +00004162# For better backward compatibility. To be removed once Automake 1.9.x
4163# dies out for good. For more background, see:
4164# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4165# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4166mkdir_p='$(MKDIR_P)'
4167
cristy73bd4a52010-10-05 11:24:23 +00004168# We need awk for the "check" target. The system "awk" is bad on
4169# some platforms.
cristyc3fb77b2012-02-06 01:49:41 +00004170# Always define AMTAR for backward compatibility. Yes, it's still used
4171# in the wild :-( We should find a proper way to deprecate it ...
4172AMTAR='$${TAR-tar}'
cristy73bd4a52010-10-05 11:24:23 +00004173
cristyc3fb77b2012-02-06 01:49:41 +00004174am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
cristy73bd4a52010-10-05 11:24:23 +00004175
4176
4177
4178
4179
cristy3ed852e2009-09-05 21:47:34 +00004180
4181# Enable support for silent build rules
cristy73bd4a52010-10-05 11:24:23 +00004182# Check whether --enable-silent-rules was given.
4183if test "${enable_silent_rules+set}" = set; then :
4184 enableval=$enable_silent_rules;
4185fi
4186
cristyc0890a62012-07-19 00:18:20 +00004187case $enable_silent_rules in # (((
4188 yes) AM_DEFAULT_VERBOSITY=0;;
4189 no) AM_DEFAULT_VERBOSITY=1;;
4190 *) AM_DEFAULT_VERBOSITY=0;;
cristy73bd4a52010-10-05 11:24:23 +00004191esac
cristyc3fb77b2012-02-06 01:49:41 +00004192am_make=${MAKE-make}
4193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4194$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4195if ${am_cv_make_support_nested_variables+:} false; then :
4196 $as_echo_n "(cached) " >&6
4197else
4198 if $as_echo 'TRUE=$(BAR$(V))
4199BAR0=false
4200BAR1=true
4201V=1
4202am__doit:
4203 @$(TRUE)
4204.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4205 am_cv_make_support_nested_variables=yes
4206else
4207 am_cv_make_support_nested_variables=no
4208fi
4209fi
4210{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4211$as_echo "$am_cv_make_support_nested_variables" >&6; }
4212if test $am_cv_make_support_nested_variables = yes; then
4213 AM_V='$(V)'
4214 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4215else
4216 AM_V=$AM_DEFAULT_VERBOSITY
4217 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4218fi
cristy73bd4a52010-10-05 11:24:23 +00004219AM_BACKSLASH='\'
4220
cristy3ed852e2009-09-05 21:47:34 +00004221
4222MAGICK_LIB_VERSION="0x"
4223if test ${MAGICK_LIBRARY_CURRENT} -lt 10 ; then
4224 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4225fi
4226MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_CURRENT}
4227if test ${MAGICK_LIBRARY_AGE} -lt 10 ; then
4228 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4229fi
4230MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_AGE}
4231if test ${MAGICK_LIBRARY_REVISION} -lt 10 ; then
4232 MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}0
4233fi
4234MAGICK_LIB_VERSION=${MAGICK_LIB_VERSION}${MAGICK_LIBRARY_REVISION}
4235
4236
4237# Definition used to define MagickLibVersionText in version.h
4238MAGICK_LIB_VERSION_TEXT="${PACKAGE_VERSION}"
4239
4240
4241# Definition used to define MagickLibVersionNumber in version.h
4242MAGICK_LIB_VERSION_NUMBER="${MAGICK_LIBRARY_CURRENT},${MAGICK_LIBRARY_AGE},${MAGICK_LIBRARY_REVISION}"
4243
4244
4245# Regenerate config.status if ChangeLog or version.sh is updated.
4246CONFIG_STATUS_DEPENDENCIES='$(top_srcdir)/version.sh'
4247
4248
4249PERLMAINCC=$CC
4250
4251MAGICK_CFLAGS=''
4252MAGICK_CPPFLAGS=$CPPFLAGS_USER
4253MAGICK_PCFLAGS=$CPPFLAGS_USER
4254MAGICK_LDFLAGS=''
4255MAGICK_LIBS=''
cristyfd9dcd42010-08-08 18:07:02 +00004256MAGICK_FEATURES=''
cristy3ed852e2009-09-05 21:47:34 +00004257
4258#
4259# Evaluate shell variable equivalents to Makefile directory variables
4260#
4261if test "x$prefix" = xNONE; then
4262 prefix=$ac_default_prefix
4263fi
4264# Let make expand exec_prefix.
4265if test "x$exec_prefix" = xNONE; then
4266 exec_prefix='${prefix}'
4267fi
4268
4269#
4270eval "eval PREFIX_DIR=${prefix}"
4271
4272eval "eval EXEC_PREFIX_DIR=${exec_prefix}"
4273
4274eval "eval BIN_DIR=$bindir"
4275
4276eval "eval SBIN_DIR=$sbindir"
4277
4278eval "eval LIBEXEC_DIR=$libexecdir"
4279
4280eval "eval DATA_DIR=$datadir"
4281
cristy4e65ec22012-04-08 01:33:27 +00004282eval "eval DOC_DIR=$datadir/doc"
cristyd55889c2011-03-27 00:50:24 +00004283
cristy3ed852e2009-09-05 21:47:34 +00004284eval "eval SYSCONF_DIR=$sysconfdir"
4285
4286eval "eval SHAREDSTATE_DIR=$sharedstatedir"
4287
4288eval "eval LOCALSTATE_DIR=$localstatedir"
4289
4290eval "eval LIB_DIR=$libdir"
4291
4292eval "eval INCLUDE_DIR=$includedir"
4293
4294eval "eval PERSISTINCLUDE_DIR=$oldincludedir"
4295
4296eval "eval INFO_DIR=$infodir"
4297
4298eval "eval MAN_DIR=$mandir"
4299
4300
4301# Get full paths to source and build directories
4302srcdirfull="`cd $srcdir && pwd`"
4303builddir="`pwd`"
4304
4305#
4306# Compute variables useful for running uninstalled software.
4307#
4308MAGICK_CODER_MODULE_PATH="${builddir}/coders"
4309MAGICK_CONFIGURE_SRC_PATH="${srcdirfull}/config"
4310MAGICK_CONFIGURE_BUILD_PATH="${builddir}/config"
4311MAGICK_FILTER_MODULE_PATH="${builddir}/filters"
4312DIRSEP=':'
4313case "${build_os}" in
4314 mingw* )
4315 MAGICK_CODER_MODULE_PATH=`$WinPathScript "${MAGICK_CODER_MODULE_PATH}" 0`
4316 MAGICK_CONFIGURE_SRC_PATH=`$WinPathScript "${MAGICK_CONFIGURE_SRC_PATH}" 0`
4317 MAGICK_CONFIGURE_BUILD_PATH=`$WinPathScript "${MAGICK_CONFIGURE_BUILD_PATH}" 0`
4318 MAGICK_FILTER_MODULE_PATH=`$WinPathScript "${MAGICK_FILTER_MODULE_PATH}" 0`
4319 DIRSEP=';'
4320 ;;
4321esac
4322case "${host_os}" in
4323 mingw* )
4324 DIRSEP=';'
4325 ;;
4326esac
4327
4328
4329
4330
4331
4332
cristya0b81c32010-01-22 02:54:33 +00004333
4334#
4335# Enable OS features.
4336#
cristy73bd4a52010-10-05 11:24:23 +00004337DEPDIR="${am__leading_dot}deps"
4338
4339ac_config_commands="$ac_config_commands depfiles"
4340
4341
4342am_make=${MAKE-make}
4343cat > confinc << 'END'
4344am__doit:
4345 @echo this is the am__doit target
4346.PHONY: am__doit
4347END
4348# If we don't find an include directive, just comment out the code.
4349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4350$as_echo_n "checking for style of include used by $am_make... " >&6; }
4351am__include="#"
4352am__quote=
4353_am_result=none
4354# First try GNU make style include.
4355echo "include confinc" > confmf
cristyc0890a62012-07-19 00:18:20 +00004356# Ignore all kinds of additional output from 'make'.
cristy73bd4a52010-10-05 11:24:23 +00004357case `$am_make -s -f confmf 2> /dev/null` in #(
4358*the\ am__doit\ target*)
4359 am__include=include
4360 am__quote=
4361 _am_result=GNU
4362 ;;
4363esac
4364# Now try BSD make style include.
4365if test "$am__include" = "#"; then
4366 echo '.include "confinc"' > confmf
4367 case `$am_make -s -f confmf 2> /dev/null` in #(
4368 *the\ am__doit\ target*)
4369 am__include=.include
4370 am__quote="\""
4371 _am_result=BSD
4372 ;;
4373 esac
4374fi
4375
4376
4377{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4378$as_echo "$_am_result" >&6; }
4379rm -f confinc confmf
4380
4381# Check whether --enable-dependency-tracking was given.
4382if test "${enable_dependency_tracking+set}" = set; then :
4383 enableval=$enable_dependency_tracking;
4384fi
4385
4386if test "x$enable_dependency_tracking" != xno; then
4387 am_depcomp="$ac_aux_dir/depcomp"
4388 AMDEPBACKSLASH='\'
cristy7247bba2012-02-05 16:37:27 +00004389 am__nodep='_no'
cristy73bd4a52010-10-05 11:24:23 +00004390fi
4391 if test "x$enable_dependency_tracking" != xno; then
4392 AMDEP_TRUE=
4393 AMDEP_FALSE='#'
4394else
4395 AMDEP_TRUE='#'
4396 AMDEP_FALSE=
4397fi
4398
4399
cristy3ed852e2009-09-05 21:47:34 +00004400ac_ext=c
4401ac_cpp='$CPP $CPPFLAGS'
4402ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4403ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4404ac_compiler_gnu=$ac_cv_c_compiler_gnu
4405if test -n "$ac_tool_prefix"; then
4406 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4407set dummy ${ac_tool_prefix}gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004409$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004410if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004411 $as_echo_n "(cached) " >&6
4412else
4413 if test -n "$CC"; then
4414 ac_cv_prog_CC="$CC" # Let the user override the test.
4415else
4416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4417for as_dir in $PATH
4418do
4419 IFS=$as_save_IFS
4420 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004421 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004423 ac_cv_prog_CC="${ac_tool_prefix}gcc"
cristy8b350f62009-11-15 23:12:43 +00004424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004425 break 2
4426 fi
4427done
cristy8b350f62009-11-15 23:12:43 +00004428 done
cristy3ed852e2009-09-05 21:47:34 +00004429IFS=$as_save_IFS
4430
4431fi
4432fi
4433CC=$ac_cv_prog_CC
4434if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004436$as_echo "$CC" >&6; }
4437else
cristy8b350f62009-11-15 23:12:43 +00004438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004439$as_echo "no" >&6; }
4440fi
4441
4442
4443fi
4444if test -z "$ac_cv_prog_CC"; then
4445 ac_ct_CC=$CC
4446 # Extract the first word of "gcc", so it can be a program name with args.
4447set dummy gcc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004449$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004450if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004451 $as_echo_n "(cached) " >&6
4452else
4453 if test -n "$ac_ct_CC"; then
4454 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4455else
4456as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4457for as_dir in $PATH
4458do
4459 IFS=$as_save_IFS
4460 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004461 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004462 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004463 ac_cv_prog_ac_ct_CC="gcc"
cristy8b350f62009-11-15 23:12:43 +00004464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004465 break 2
4466 fi
4467done
cristy8b350f62009-11-15 23:12:43 +00004468 done
cristy3ed852e2009-09-05 21:47:34 +00004469IFS=$as_save_IFS
4470
4471fi
4472fi
4473ac_ct_CC=$ac_cv_prog_ac_ct_CC
4474if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004476$as_echo "$ac_ct_CC" >&6; }
4477else
cristy8b350f62009-11-15 23:12:43 +00004478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004479$as_echo "no" >&6; }
4480fi
4481
4482 if test "x$ac_ct_CC" = x; then
4483 CC=""
4484 else
4485 case $cross_compiling:$ac_tool_warned in
4486yes:)
cristy8b350f62009-11-15 23:12:43 +00004487{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004488$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4489ac_tool_warned=yes ;;
4490esac
4491 CC=$ac_ct_CC
4492 fi
4493else
4494 CC="$ac_cv_prog_CC"
4495fi
4496
4497if test -z "$CC"; then
4498 if test -n "$ac_tool_prefix"; then
4499 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4500set dummy ${ac_tool_prefix}cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004502$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004503if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004504 $as_echo_n "(cached) " >&6
4505else
4506 if test -n "$CC"; then
4507 ac_cv_prog_CC="$CC" # Let the user override the test.
4508else
4509as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510for as_dir in $PATH
4511do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004516 ac_cv_prog_CC="${ac_tool_prefix}cc"
cristy8b350f62009-11-15 23:12:43 +00004517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004518 break 2
4519 fi
4520done
cristy8b350f62009-11-15 23:12:43 +00004521 done
cristy3ed852e2009-09-05 21:47:34 +00004522IFS=$as_save_IFS
4523
4524fi
4525fi
4526CC=$ac_cv_prog_CC
4527if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004529$as_echo "$CC" >&6; }
4530else
cristy8b350f62009-11-15 23:12:43 +00004531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004532$as_echo "no" >&6; }
4533fi
4534
4535
4536 fi
4537fi
4538if test -z "$CC"; then
4539 # Extract the first word of "cc", so it can be a program name with args.
4540set dummy cc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004542$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004543if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004544 $as_echo_n "(cached) " >&6
4545else
4546 if test -n "$CC"; then
4547 ac_cv_prog_CC="$CC" # Let the user override the test.
4548else
4549 ac_prog_rejected=no
4550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4551for as_dir in $PATH
4552do
4553 IFS=$as_save_IFS
4554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004557 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4558 ac_prog_rejected=yes
4559 continue
4560 fi
4561 ac_cv_prog_CC="cc"
cristy8b350f62009-11-15 23:12:43 +00004562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004563 break 2
4564 fi
4565done
cristy8b350f62009-11-15 23:12:43 +00004566 done
cristy3ed852e2009-09-05 21:47:34 +00004567IFS=$as_save_IFS
4568
4569if test $ac_prog_rejected = yes; then
4570 # We found a bogon in the path, so make sure we never use it.
4571 set dummy $ac_cv_prog_CC
4572 shift
4573 if test $# != 0; then
4574 # We chose a different compiler from the bogus one.
4575 # However, it has the same basename, so the bogon will be chosen
4576 # first if we set CC to just the basename; use the full file name.
4577 shift
4578 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4579 fi
4580fi
4581fi
4582fi
4583CC=$ac_cv_prog_CC
4584if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004586$as_echo "$CC" >&6; }
4587else
cristy8b350f62009-11-15 23:12:43 +00004588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004589$as_echo "no" >&6; }
4590fi
4591
4592
4593fi
4594if test -z "$CC"; then
4595 if test -n "$ac_tool_prefix"; then
4596 for ac_prog in cl.exe
4597 do
4598 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4599set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004600{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004601$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004602if ${ac_cv_prog_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004603 $as_echo_n "(cached) " >&6
4604else
4605 if test -n "$CC"; then
4606 ac_cv_prog_CC="$CC" # Let the user override the test.
4607else
4608as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4609for as_dir in $PATH
4610do
4611 IFS=$as_save_IFS
4612 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004613 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004615 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004617 break 2
4618 fi
4619done
cristy8b350f62009-11-15 23:12:43 +00004620 done
cristy3ed852e2009-09-05 21:47:34 +00004621IFS=$as_save_IFS
4622
4623fi
4624fi
4625CC=$ac_cv_prog_CC
4626if test -n "$CC"; then
cristy8b350f62009-11-15 23:12:43 +00004627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004628$as_echo "$CC" >&6; }
4629else
cristy8b350f62009-11-15 23:12:43 +00004630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004631$as_echo "no" >&6; }
4632fi
4633
4634
4635 test -n "$CC" && break
4636 done
4637fi
4638if test -z "$CC"; then
4639 ac_ct_CC=$CC
4640 for ac_prog in cl.exe
4641do
4642 # Extract the first word of "$ac_prog", so it can be a program name with args.
4643set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +00004644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +00004645$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004646if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004647 $as_echo_n "(cached) " >&6
4648else
4649 if test -n "$ac_ct_CC"; then
4650 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4651else
4652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4653for as_dir in $PATH
4654do
4655 IFS=$as_save_IFS
4656 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +00004657 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00004658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +00004659 ac_cv_prog_ac_ct_CC="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +00004660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004661 break 2
4662 fi
4663done
cristy8b350f62009-11-15 23:12:43 +00004664 done
cristy3ed852e2009-09-05 21:47:34 +00004665IFS=$as_save_IFS
4666
4667fi
4668fi
4669ac_ct_CC=$ac_cv_prog_ac_ct_CC
4670if test -n "$ac_ct_CC"; then
cristy8b350f62009-11-15 23:12:43 +00004671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +00004672$as_echo "$ac_ct_CC" >&6; }
4673else
cristy8b350f62009-11-15 23:12:43 +00004674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +00004675$as_echo "no" >&6; }
4676fi
4677
4678
4679 test -n "$ac_ct_CC" && break
4680done
4681
4682 if test "x$ac_ct_CC" = x; then
4683 CC=""
4684 else
4685 case $cross_compiling:$ac_tool_warned in
4686yes:)
cristy8b350f62009-11-15 23:12:43 +00004687{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +00004688$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4689ac_tool_warned=yes ;;
4690esac
4691 CC=$ac_ct_CC
4692 fi
4693fi
4694
4695fi
4696
4697
cristy8b350f62009-11-15 23:12:43 +00004698test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004699$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004700as_fn_error $? "no acceptable C compiler found in \$PATH
4701See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004702
4703# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +00004704$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +00004705set X $ac_compile
4706ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +00004707for ac_option in --version -v -V -qversion; do
4708 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +00004709case "(($ac_try" in
4710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4711 *) ac_try_echo=$ac_try;;
4712esac
cristy8b350f62009-11-15 23:12:43 +00004713eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4714$as_echo "$ac_try_echo"; } >&5
4715 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +00004716 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004717 if test -s conftest.err; then
4718 sed '10a\
4719... rest of stderr output deleted ...
4720 10q' conftest.err >conftest.er1
4721 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +00004722 fi
cristycd4c5312009-11-22 01:19:08 +00004723 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +00004724 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4725 test $ac_status = 0; }
4726done
cristy3ed852e2009-09-05 21:47:34 +00004727
cristy8b350f62009-11-15 23:12:43 +00004728cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004729/* end confdefs.h. */
cristycd4c5312009-11-22 01:19:08 +00004730
cristy3ed852e2009-09-05 21:47:34 +00004731int
4732main ()
4733{
4734
4735 ;
4736 return 0;
4737}
4738_ACEOF
4739ac_clean_files_save=$ac_clean_files
cristycd4c5312009-11-22 01:19:08 +00004740ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
cristy3ed852e2009-09-05 21:47:34 +00004741# Try to create an executable without -o first, disregard a.out.
4742# It will help us diagnose broken compilers, and finding out an intuition
4743# of exeext.
cristycd4c5312009-11-22 01:19:08 +00004744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4745$as_echo_n "checking whether the C compiler works... " >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004746ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4747
4748# The possible output files:
4749ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4750
4751ac_rmfiles=
4752for ac_file in $ac_files
4753do
4754 case $ac_file in
4755 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4756 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4757 esac
4758done
4759rm -f $ac_rmfiles
4760
cristy8b350f62009-11-15 23:12:43 +00004761if { { ac_try="$ac_link_default"
cristy3ed852e2009-09-05 21:47:34 +00004762case "(($ac_try" in
4763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4764 *) ac_try_echo=$ac_try;;
4765esac
cristy8b350f62009-11-15 23:12:43 +00004766eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4767$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004768 (eval "$ac_link_default") 2>&5
4769 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4771 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004772 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4773# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4774# in a Makefile. We should not override ac_cv_exeext if it was cached,
4775# so that the user can short-circuit this test for compilers unknown to
4776# Autoconf.
4777for ac_file in $ac_files ''
4778do
4779 test -f "$ac_file" || continue
4780 case $ac_file in
4781 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4782 ;;
4783 [ab].out )
4784 # We found the default executable, but exeext='' is most
4785 # certainly right.
4786 break;;
4787 *.* )
cristy8b350f62009-11-15 23:12:43 +00004788 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
cristy3ed852e2009-09-05 21:47:34 +00004789 then :; else
4790 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4791 fi
4792 # We set ac_cv_exeext here because the later test for it is not
4793 # safe: cross compilers may not add the suffix if given an `-o'
4794 # argument, so we may need to know it at that point already.
4795 # Even if this section looks crufty: it has the advantage of
4796 # actually working.
4797 break;;
4798 * )
4799 break;;
4800 esac
4801done
4802test "$ac_cv_exeext" = no && ac_cv_exeext=
4803
4804else
4805 ac_file=''
4806fi
cristy8b350f62009-11-15 23:12:43 +00004807if test -z "$ac_file"; then :
cristycd4c5312009-11-22 01:19:08 +00004808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4809$as_echo "no" >&6; }
4810$as_echo "$as_me: failed program was:" >&5
cristy3ed852e2009-09-05 21:47:34 +00004811sed 's/^/| /' conftest.$ac_ext >&5
4812
cristy8b350f62009-11-15 23:12:43 +00004813{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004815as_fn_error 77 "C compiler cannot create executables
4816See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004817else
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4819$as_echo "yes" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004820fi
cristycd4c5312009-11-22 01:19:08 +00004821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4822$as_echo_n "checking for C compiler default output file name... " >&6; }
4823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4824$as_echo "$ac_file" >&6; }
cristy3ed852e2009-09-05 21:47:34 +00004825ac_exeext=$ac_cv_exeext
4826
cristycd4c5312009-11-22 01:19:08 +00004827rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
cristy3ed852e2009-09-05 21:47:34 +00004828ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
cristy3ed852e2009-09-05 21:47:34 +00004830$as_echo_n "checking for suffix of executables... " >&6; }
cristy8b350f62009-11-15 23:12:43 +00004831if { { ac_try="$ac_link"
cristy3ed852e2009-09-05 21:47:34 +00004832case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835esac
cristy8b350f62009-11-15 23:12:43 +00004836eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4837$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004838 (eval "$ac_link") 2>&5
4839 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4841 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004842 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4843# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4844# work properly (i.e., refer to `conftest.exe'), while it won't with
4845# `rm'.
4846for ac_file in conftest.exe conftest conftest.*; do
4847 test -f "$ac_file" || continue
4848 case $ac_file in
4849 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4850 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4851 break;;
4852 * ) break;;
4853 esac
4854done
4855else
cristy8b350f62009-11-15 23:12:43 +00004856 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004857$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004858as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4859See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004860fi
cristycd4c5312009-11-22 01:19:08 +00004861rm -f conftest conftest$ac_cv_exeext
cristy8b350f62009-11-15 23:12:43 +00004862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004863$as_echo "$ac_cv_exeext" >&6; }
4864
4865rm -f conftest.$ac_ext
4866EXEEXT=$ac_cv_exeext
4867ac_exeext=$EXEEXT
cristycd4c5312009-11-22 01:19:08 +00004868cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869/* end confdefs.h. */
4870#include <stdio.h>
4871int
4872main ()
4873{
4874FILE *f = fopen ("conftest.out", "w");
4875 return ferror (f) || fclose (f) != 0;
4876
4877 ;
4878 return 0;
4879}
4880_ACEOF
4881ac_clean_files="$ac_clean_files conftest.out"
4882# Check that the compiler produces executables we can run. If not, either
4883# the compiler is broken, or we cross compile.
4884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4885$as_echo_n "checking whether we are cross compiling... " >&6; }
4886if test "$cross_compiling" != yes; then
4887 { { ac_try="$ac_link"
4888case "(($ac_try" in
4889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4890 *) ac_try_echo=$ac_try;;
4891esac
4892eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4893$as_echo "$ac_try_echo"; } >&5
4894 (eval "$ac_link") 2>&5
4895 ac_status=$?
4896 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4897 test $ac_status = 0; }
4898 if { ac_try='./conftest$ac_cv_exeext'
4899 { { case "(($ac_try" in
4900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4901 *) ac_try_echo=$ac_try;;
4902esac
4903eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4904$as_echo "$ac_try_echo"; } >&5
4905 (eval "$ac_try") 2>&5
4906 ac_status=$?
4907 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4908 test $ac_status = 0; }; }; then
4909 cross_compiling=no
4910 else
4911 if test "$cross_compiling" = maybe; then
4912 cross_compiling=yes
4913 else
4914 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4915$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004916as_fn_error $? "cannot run C compiled programs.
cristycd4c5312009-11-22 01:19:08 +00004917If you meant to cross compile, use \`--host'.
cristy98dddb52010-11-04 00:30:15 +00004918See \`config.log' for more details" "$LINENO" 5; }
cristycd4c5312009-11-22 01:19:08 +00004919 fi
4920 fi
4921fi
4922{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4923$as_echo "$cross_compiling" >&6; }
4924
4925rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4926ac_clean_files=$ac_clean_files_save
cristy8b350f62009-11-15 23:12:43 +00004927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
cristy3ed852e2009-09-05 21:47:34 +00004928$as_echo_n "checking for suffix of object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004929if ${ac_cv_objext+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004930 $as_echo_n "(cached) " >&6
4931else
cristy8b350f62009-11-15 23:12:43 +00004932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004933/* end confdefs.h. */
4934
4935int
4936main ()
4937{
4938
4939 ;
4940 return 0;
4941}
4942_ACEOF
4943rm -f conftest.o conftest.obj
cristy8b350f62009-11-15 23:12:43 +00004944if { { ac_try="$ac_compile"
cristy3ed852e2009-09-05 21:47:34 +00004945case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948esac
cristy8b350f62009-11-15 23:12:43 +00004949eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4950$as_echo "$ac_try_echo"; } >&5
cristy3ed852e2009-09-05 21:47:34 +00004951 (eval "$ac_compile") 2>&5
4952 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +00004953 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4954 test $ac_status = 0; }; then :
cristy3ed852e2009-09-05 21:47:34 +00004955 for ac_file in conftest.o conftest.obj conftest.*; do
4956 test -f "$ac_file" || continue;
4957 case $ac_file in
4958 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4959 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4960 break;;
4961 esac
4962done
4963else
4964 $as_echo "$as_me: failed program was:" >&5
4965sed 's/^/| /' conftest.$ac_ext >&5
4966
cristy8b350f62009-11-15 23:12:43 +00004967{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00004968$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00004969as_fn_error $? "cannot compute suffix of object files: cannot compile
4970See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00004971fi
cristy3ed852e2009-09-05 21:47:34 +00004972rm -f conftest.$ac_cv_objext conftest.$ac_ext
4973fi
cristy8b350f62009-11-15 23:12:43 +00004974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
cristy3ed852e2009-09-05 21:47:34 +00004975$as_echo "$ac_cv_objext" >&6; }
4976OBJEXT=$ac_cv_objext
4977ac_objext=$OBJEXT
cristy8b350f62009-11-15 23:12:43 +00004978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +00004979$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00004980if ${ac_cv_c_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00004981 $as_echo_n "(cached) " >&6
4982else
cristy8b350f62009-11-15 23:12:43 +00004983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00004984/* end confdefs.h. */
4985
4986int
4987main ()
4988{
4989#ifndef __GNUC__
4990 choke me
4991#endif
4992
4993 ;
4994 return 0;
4995}
4996_ACEOF
cristy8b350f62009-11-15 23:12:43 +00004997if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00004998 ac_compiler_gnu=yes
4999else
cristy8b350f62009-11-15 23:12:43 +00005000 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +00005001fi
cristy3ed852e2009-09-05 21:47:34 +00005002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5003ac_cv_c_compiler_gnu=$ac_compiler_gnu
5004
5005fi
cristy8b350f62009-11-15 23:12:43 +00005006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +00005007$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5008if test $ac_compiler_gnu = yes; then
5009 GCC=yes
5010else
5011 GCC=
5012fi
5013ac_test_CFLAGS=${CFLAGS+set}
5014ac_save_CFLAGS=$CFLAGS
cristy8b350f62009-11-15 23:12:43 +00005015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005016$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005017if ${ac_cv_prog_cc_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005018 $as_echo_n "(cached) " >&6
5019else
5020 ac_save_c_werror_flag=$ac_c_werror_flag
5021 ac_c_werror_flag=yes
5022 ac_cv_prog_cc_g=no
5023 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005025/* end confdefs.h. */
5026
5027int
5028main ()
5029{
5030
5031 ;
5032 return 0;
5033}
5034_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005035if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005036 ac_cv_prog_cc_g=yes
5037else
cristy8b350f62009-11-15 23:12:43 +00005038 CFLAGS=""
5039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005040/* end confdefs.h. */
5041
5042int
5043main ()
5044{
5045
5046 ;
5047 return 0;
5048}
5049_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005050if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005051
cristy8b350f62009-11-15 23:12:43 +00005052else
5053 ac_c_werror_flag=$ac_save_c_werror_flag
cristy3ed852e2009-09-05 21:47:34 +00005054 CFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +00005055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005056/* end confdefs.h. */
5057
5058int
5059main ()
5060{
5061
5062 ;
5063 return 0;
5064}
5065_ACEOF
cristy8b350f62009-11-15 23:12:43 +00005066if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005067 ac_cv_prog_cc_g=yes
cristy3ed852e2009-09-05 21:47:34 +00005068fi
cristy3ed852e2009-09-05 21:47:34 +00005069rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5070fi
cristy3ed852e2009-09-05 21:47:34 +00005071rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5072fi
cristy3ed852e2009-09-05 21:47:34 +00005073rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5074 ac_c_werror_flag=$ac_save_c_werror_flag
5075fi
cristy8b350f62009-11-15 23:12:43 +00005076{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
cristy3ed852e2009-09-05 21:47:34 +00005077$as_echo "$ac_cv_prog_cc_g" >&6; }
5078if test "$ac_test_CFLAGS" = set; then
5079 CFLAGS=$ac_save_CFLAGS
5080elif test $ac_cv_prog_cc_g = yes; then
5081 if test "$GCC" = yes; then
5082 CFLAGS="-g -O2"
5083 else
5084 CFLAGS="-g"
5085 fi
5086else
5087 if test "$GCC" = yes; then
5088 CFLAGS="-O2"
5089 else
5090 CFLAGS=
5091 fi
5092fi
cristy8b350f62009-11-15 23:12:43 +00005093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005094$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005095if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00005096 $as_echo_n "(cached) " >&6
5097else
5098 ac_cv_prog_cc_c89=no
5099ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00005100cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00005101/* end confdefs.h. */
5102#include <stdarg.h>
5103#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00005104struct stat;
cristy3ed852e2009-09-05 21:47:34 +00005105/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5106struct buf { int x; };
5107FILE * (*rcsopen) (struct buf *, struct stat *, int);
5108static char *e (p, i)
5109 char **p;
5110 int i;
5111{
5112 return p[i];
5113}
5114static char *f (char * (*g) (char **, int), char **p, ...)
5115{
5116 char *s;
5117 va_list v;
5118 va_start (v,p);
5119 s = g (p, va_arg (v,int));
5120 va_end (v);
5121 return s;
5122}
5123
5124/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5125 function prototypes and stuff, but not '\xHH' hex character constants.
5126 These don't provoke an error unfortunately, instead are silently treated
5127 as 'x'. The following induces an error, until -std is added to get
5128 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5129 array size at least. It's necessary to write '\x00'==0 to get something
5130 that's true only with -std. */
5131int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5132
5133/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5134 inside strings and character constants. */
5135#define FOO(x) 'x'
5136int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5137
5138int test (int i, double x);
5139struct s1 {int (*f) (int a);};
5140struct s2 {int (*f) (double a);};
5141int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5142int argc;
5143char **argv;
5144int
5145main ()
5146{
5147return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5148 ;
5149 return 0;
5150}
5151_ACEOF
5152for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5153 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5154do
5155 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00005156 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00005157 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00005158fi
cristy3ed852e2009-09-05 21:47:34 +00005159rm -f core conftest.err conftest.$ac_objext
5160 test "x$ac_cv_prog_cc_c89" != "xno" && break
5161done
5162rm -f conftest.$ac_ext
5163CC=$ac_save_CC
5164
5165fi
5166# AC_CACHE_VAL
5167case "x$ac_cv_prog_cc_c89" in
5168 x)
cristy8b350f62009-11-15 23:12:43 +00005169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00005170$as_echo "none needed" >&6; } ;;
5171 xno)
cristy8b350f62009-11-15 23:12:43 +00005172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00005173$as_echo "unsupported" >&6; } ;;
5174 *)
5175 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00005176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00005177$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5178esac
cristy8b350f62009-11-15 23:12:43 +00005179if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00005180
cristy8b350f62009-11-15 23:12:43 +00005181fi
cristy3ed852e2009-09-05 21:47:34 +00005182
5183ac_ext=c
5184ac_cpp='$CPP $CPPFLAGS'
5185ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5186ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5187ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy3ed852e2009-09-05 21:47:34 +00005188
cristy73bd4a52010-10-05 11:24:23 +00005189depcc="$CC" am_compiler_list=
5190
5191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5192$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005193if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00005194 $as_echo_n "(cached) " >&6
5195else
5196 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5197 # We make a subdir and do the tests there. Otherwise we can end up
5198 # making bogus files that we don't know about and never remove. For
5199 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00005200 # making a dummy file named 'D' -- because '-MD' means "put the output
5201 # in D".
cristy7247bba2012-02-05 16:37:27 +00005202 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00005203 mkdir conftest.dir
5204 # Copy depcomp to subdir because otherwise we won't find it if we're
5205 # using a relative directory.
5206 cp "$am_depcomp" conftest.dir
5207 cd conftest.dir
5208 # We will build objects and dependencies in a subdirectory because
5209 # it helps to detect inapplicable dependency modes. For instance
5210 # both Tru64's cc and ICC support -MD to output dependencies as a
5211 # side effect of compilation, but ICC will put the dependencies in
5212 # the current directory while Tru64 will put them in the object
5213 # directory.
5214 mkdir sub
5215
5216 am_cv_CC_dependencies_compiler_type=none
5217 if test "$am_compiler_list" = ""; then
5218 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5219 fi
5220 am__universal=false
5221 case " $depcc " in #(
5222 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5223 esac
5224
5225 for depmode in $am_compiler_list; do
5226 # Setup a source with many dependencies, because some compilers
5227 # like to wrap large dependency lists on column 80 (with \), and
5228 # we should not choose a depcomp mode which is confused by this.
5229 #
5230 # We need to recreate these files for each test, as the compiler may
5231 # overwrite some of them when testing with obscure command lines.
5232 # This happens at least with the AIX C compiler.
5233 : > sub/conftest.c
5234 for i in 1 2 3 4 5 6; do
5235 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00005236 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5237 # Solaris 10 /bin/sh.
5238 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00005239 done
5240 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5241
cristyc0890a62012-07-19 00:18:20 +00005242 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00005243 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00005244 # handle '-M -o', and we need to detect this. Also, some Intel
5245 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00005246 am__obj=sub/conftest.${OBJEXT-o}
5247 am__minus_obj="-o $am__obj"
5248 case $depmode in
5249 gcc)
5250 # This depmode causes a compiler race in universal mode.
5251 test "$am__universal" = false || continue
5252 ;;
5253 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00005254 # After this tag, mechanisms are not by side-effect, so they'll
5255 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00005256 if test "x$enable_dependency_tracking" = xyes; then
5257 continue
5258 else
5259 break
5260 fi
5261 ;;
cristy7247bba2012-02-05 16:37:27 +00005262 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00005263 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00005264 # not run yet. These depmodes are late enough in the game, and
5265 # so weak that their functioning should not be impacted.
5266 am__obj=conftest.${OBJEXT-o}
5267 am__minus_obj=
5268 ;;
5269 none) break ;;
5270 esac
5271 if depmode=$depmode \
5272 source=sub/conftest.c object=$am__obj \
5273 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5274 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5275 >/dev/null 2>conftest.err &&
5276 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5277 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5278 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5279 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5280 # icc doesn't choke on unknown options, it will just issue warnings
5281 # or remarks (even with -Werror). So we grep stderr for any message
5282 # that says an option was ignored or not supported.
5283 # When given -MP, icc 7.0 and 7.1 complain thusly:
5284 # icc: Command line warning: ignoring option '-M'; no argument required
5285 # The diagnosis changed in icc 8.0:
5286 # icc: Command line remark: option '-MP' not supported
5287 if (grep 'ignoring option' conftest.err ||
5288 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5289 am_cv_CC_dependencies_compiler_type=$depmode
5290 break
5291 fi
5292 fi
5293 done
5294
5295 cd ..
5296 rm -rf conftest.dir
5297else
5298 am_cv_CC_dependencies_compiler_type=none
5299fi
5300
5301fi
5302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5303$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5304CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5305
5306 if
5307 test "x$enable_dependency_tracking" != xno \
5308 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5309 am__fastdepCC_TRUE=
5310 am__fastdepCC_FALSE='#'
5311else
5312 am__fastdepCC_TRUE='#'
5313 am__fastdepCC_FALSE=
5314fi
5315
5316
cristy3ed852e2009-09-05 21:47:34 +00005317
cristya0b81c32010-01-22 02:54:33 +00005318ac_ext=c
5319ac_cpp='$CPP $CPPFLAGS'
5320ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5321ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5322ac_compiler_gnu=$ac_cv_c_compiler_gnu
5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5324$as_echo_n "checking how to run the C preprocessor... " >&6; }
5325# On Suns, sometimes $CPP names a directory.
5326if test -n "$CPP" && test -d "$CPP"; then
5327 CPP=
5328fi
5329if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00005330 if ${ac_cv_prog_CPP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005331 $as_echo_n "(cached) " >&6
5332else
5333 # Double quotes because CPP needs to be expanded
5334 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5335 do
5336 ac_preproc_ok=false
5337for ac_c_preproc_warn_flag in '' yes
5338do
5339 # Use a header file that comes with gcc, so configuring glibc
5340 # with a fresh cross-compiler works.
5341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5342 # <limits.h> exists even on freestanding compilers.
5343 # On the NeXT, cc -E runs the code through the compiler's parser,
5344 # not just through cpp. "Syntax error" is here to catch this case.
5345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5346/* end confdefs.h. */
5347#ifdef __STDC__
5348# include <limits.h>
5349#else
5350# include <assert.h>
5351#endif
5352 Syntax error
5353_ACEOF
5354if ac_fn_c_try_cpp "$LINENO"; then :
5355
5356else
5357 # Broken: fails on valid input.
5358continue
5359fi
cristyda16f162011-02-19 23:52:17 +00005360rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005361
5362 # OK, works on sane cases. Now check whether nonexistent headers
5363 # can be detected and how.
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365/* end confdefs.h. */
5366#include <ac_nonexistent.h>
5367_ACEOF
5368if ac_fn_c_try_cpp "$LINENO"; then :
5369 # Broken: success on invalid input.
5370continue
5371else
5372 # Passes both tests.
5373ac_preproc_ok=:
5374break
5375fi
cristyda16f162011-02-19 23:52:17 +00005376rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005377
5378done
5379# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005380rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005381if $ac_preproc_ok; then :
5382 break
5383fi
5384
5385 done
5386 ac_cv_prog_CPP=$CPP
5387
5388fi
5389 CPP=$ac_cv_prog_CPP
5390else
5391 ac_cv_prog_CPP=$CPP
5392fi
5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5394$as_echo "$CPP" >&6; }
5395ac_preproc_ok=false
5396for ac_c_preproc_warn_flag in '' yes
5397do
5398 # Use a header file that comes with gcc, so configuring glibc
5399 # with a fresh cross-compiler works.
5400 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5401 # <limits.h> exists even on freestanding compilers.
5402 # On the NeXT, cc -E runs the code through the compiler's parser,
5403 # not just through cpp. "Syntax error" is here to catch this case.
5404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5405/* end confdefs.h. */
5406#ifdef __STDC__
5407# include <limits.h>
5408#else
5409# include <assert.h>
5410#endif
5411 Syntax error
5412_ACEOF
5413if ac_fn_c_try_cpp "$LINENO"; then :
5414
5415else
5416 # Broken: fails on valid input.
5417continue
5418fi
cristyda16f162011-02-19 23:52:17 +00005419rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005420
5421 # OK, works on sane cases. Now check whether nonexistent headers
5422 # can be detected and how.
5423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5424/* end confdefs.h. */
5425#include <ac_nonexistent.h>
5426_ACEOF
5427if ac_fn_c_try_cpp "$LINENO"; then :
5428 # Broken: success on invalid input.
5429continue
5430else
5431 # Passes both tests.
5432ac_preproc_ok=:
5433break
5434fi
cristyda16f162011-02-19 23:52:17 +00005435rm -f conftest.err conftest.i conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005436
5437done
5438# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00005439rm -f conftest.i conftest.err conftest.$ac_ext
cristya0b81c32010-01-22 02:54:33 +00005440if $ac_preproc_ok; then :
5441
5442else
5443 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00005445as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5446See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00005447fi
5448
5449ac_ext=c
5450ac_cpp='$CPP $CPPFLAGS'
5451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5453ac_compiler_gnu=$ac_cv_c_compiler_gnu
5454
5455
5456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5457$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005458if ${ac_cv_path_GREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005459 $as_echo_n "(cached) " >&6
5460else
5461 if test -z "$GREP"; then
5462 ac_path_GREP_found=false
5463 # Loop through the user's path and test for each of PROGNAME-LIST
5464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5465for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5466do
5467 IFS=$as_save_IFS
5468 test -z "$as_dir" && as_dir=.
5469 for ac_prog in grep ggrep; do
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005472 as_fn_executable_p "$ac_path_GREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005473# Check for GNU ac_path_GREP and select it if it is found.
5474 # Check for GNU $ac_path_GREP
5475case `"$ac_path_GREP" --version 2>&1` in
5476*GNU*)
5477 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5478*)
5479 ac_count=0
5480 $as_echo_n 0123456789 >"conftest.in"
5481 while :
5482 do
5483 cat "conftest.in" "conftest.in" >"conftest.tmp"
5484 mv "conftest.tmp" "conftest.in"
5485 cp "conftest.in" "conftest.nl"
5486 $as_echo 'GREP' >> "conftest.nl"
5487 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5488 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5489 as_fn_arith $ac_count + 1 && ac_count=$as_val
5490 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5491 # Best one so far, save it but keep looking for a better one
5492 ac_cv_path_GREP="$ac_path_GREP"
5493 ac_path_GREP_max=$ac_count
5494 fi
5495 # 10*(2^10) chars as input seems more than enough
5496 test $ac_count -gt 10 && break
5497 done
5498 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5499esac
5500
5501 $ac_path_GREP_found && break 3
5502 done
5503 done
5504 done
5505IFS=$as_save_IFS
5506 if test -z "$ac_cv_path_GREP"; then
cristy98dddb52010-11-04 00:30:15 +00005507 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005508 fi
5509else
5510 ac_cv_path_GREP=$GREP
5511fi
5512
5513fi
5514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5515$as_echo "$ac_cv_path_GREP" >&6; }
5516 GREP="$ac_cv_path_GREP"
5517
5518
5519{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5520$as_echo_n "checking for egrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005521if ${ac_cv_path_EGREP+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005522 $as_echo_n "(cached) " >&6
5523else
5524 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5525 then ac_cv_path_EGREP="$GREP -E"
5526 else
5527 if test -z "$EGREP"; then
5528 ac_path_EGREP_found=false
5529 # Loop through the user's path and test for each of PROGNAME-LIST
5530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5531for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5532do
5533 IFS=$as_save_IFS
5534 test -z "$as_dir" && as_dir=.
5535 for ac_prog in egrep; do
5536 for ac_exec_ext in '' $ac_executable_extensions; do
5537 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00005538 as_fn_executable_p "$ac_path_EGREP" || continue
cristya0b81c32010-01-22 02:54:33 +00005539# Check for GNU ac_path_EGREP and select it if it is found.
5540 # Check for GNU $ac_path_EGREP
5541case `"$ac_path_EGREP" --version 2>&1` in
5542*GNU*)
5543 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5544*)
5545 ac_count=0
5546 $as_echo_n 0123456789 >"conftest.in"
5547 while :
5548 do
5549 cat "conftest.in" "conftest.in" >"conftest.tmp"
5550 mv "conftest.tmp" "conftest.in"
5551 cp "conftest.in" "conftest.nl"
5552 $as_echo 'EGREP' >> "conftest.nl"
5553 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5554 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5555 as_fn_arith $ac_count + 1 && ac_count=$as_val
5556 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5557 # Best one so far, save it but keep looking for a better one
5558 ac_cv_path_EGREP="$ac_path_EGREP"
5559 ac_path_EGREP_max=$ac_count
5560 fi
5561 # 10*(2^10) chars as input seems more than enough
5562 test $ac_count -gt 10 && break
5563 done
5564 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5565esac
5566
5567 $ac_path_EGREP_found && break 3
5568 done
5569 done
5570 done
5571IFS=$as_save_IFS
5572 if test -z "$ac_cv_path_EGREP"; then
cristy98dddb52010-11-04 00:30:15 +00005573 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristya0b81c32010-01-22 02:54:33 +00005574 fi
5575else
5576 ac_cv_path_EGREP=$EGREP
5577fi
5578
5579 fi
5580fi
5581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5582$as_echo "$ac_cv_path_EGREP" >&6; }
5583 EGREP="$ac_cv_path_EGREP"
5584
5585
5586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5587$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005588if ${ac_cv_header_stdc+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005589 $as_echo_n "(cached) " >&6
5590else
5591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5592/* end confdefs.h. */
5593#include <stdlib.h>
5594#include <stdarg.h>
5595#include <string.h>
5596#include <float.h>
5597
5598int
5599main ()
5600{
5601
5602 ;
5603 return 0;
5604}
5605_ACEOF
5606if ac_fn_c_try_compile "$LINENO"; then :
5607 ac_cv_header_stdc=yes
5608else
5609 ac_cv_header_stdc=no
5610fi
5611rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5612
5613if test $ac_cv_header_stdc = yes; then
5614 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5616/* end confdefs.h. */
5617#include <string.h>
5618
5619_ACEOF
5620if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5621 $EGREP "memchr" >/dev/null 2>&1; then :
5622
5623else
5624 ac_cv_header_stdc=no
5625fi
5626rm -f conftest*
5627
5628fi
5629
5630if test $ac_cv_header_stdc = yes; then
5631 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633/* end confdefs.h. */
5634#include <stdlib.h>
5635
5636_ACEOF
5637if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "free" >/dev/null 2>&1; then :
5639
5640else
5641 ac_cv_header_stdc=no
5642fi
5643rm -f conftest*
5644
5645fi
5646
5647if test $ac_cv_header_stdc = yes; then
5648 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5649 if test "$cross_compiling" = yes; then :
5650 :
5651else
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653/* end confdefs.h. */
5654#include <ctype.h>
5655#include <stdlib.h>
5656#if ((' ' & 0x0FF) == 0x020)
5657# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5658# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5659#else
5660# define ISLOWER(c) \
5661 (('a' <= (c) && (c) <= 'i') \
5662 || ('j' <= (c) && (c) <= 'r') \
5663 || ('s' <= (c) && (c) <= 'z'))
5664# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5665#endif
5666
5667#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5668int
5669main ()
5670{
5671 int i;
5672 for (i = 0; i < 256; i++)
5673 if (XOR (islower (i), ISLOWER (i))
5674 || toupper (i) != TOUPPER (i))
5675 return 2;
5676 return 0;
5677}
5678_ACEOF
5679if ac_fn_c_try_run "$LINENO"; then :
5680
5681else
5682 ac_cv_header_stdc=no
5683fi
5684rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5685 conftest.$ac_objext conftest.beam conftest.$ac_ext
5686fi
5687
5688fi
5689fi
5690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5691$as_echo "$ac_cv_header_stdc" >&6; }
5692if test $ac_cv_header_stdc = yes; then
5693
5694$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5695
5696fi
5697
5698# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5699for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5700 inttypes.h stdint.h unistd.h
5701do :
5702 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5703ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5704"
cristy98dddb52010-11-04 00:30:15 +00005705if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristya0b81c32010-01-22 02:54:33 +00005706 cat >>confdefs.h <<_ACEOF
5707#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5708_ACEOF
5709
5710fi
5711
5712done
5713
5714
5715
5716 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 +00005717if test "x$ac_cv_header_minix_config_h" = xyes; then :
cristya0b81c32010-01-22 02:54:33 +00005718 MINIX=yes
5719else
5720 MINIX=
5721fi
5722
5723
5724 if test "$MINIX" = yes; then
5725
5726$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
5727
5728
5729$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
5730
5731
5732$as_echo "#define _MINIX 1" >>confdefs.h
5733
5734 fi
5735
5736
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
5738$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005739if ${ac_cv_safe_to_define___extensions__+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005740 $as_echo_n "(cached) " >&6
5741else
5742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5743/* end confdefs.h. */
5744
cristy14fefe52012-05-21 00:59:18 +00005745# define __EXTENSIONS__ 1
5746 $ac_includes_default
cristya0b81c32010-01-22 02:54:33 +00005747int
5748main ()
5749{
5750
5751 ;
5752 return 0;
5753}
5754_ACEOF
5755if ac_fn_c_try_compile "$LINENO"; then :
5756 ac_cv_safe_to_define___extensions__=yes
5757else
5758 ac_cv_safe_to_define___extensions__=no
5759fi
5760rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5761fi
5762{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
5763$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
5764 test $ac_cv_safe_to_define___extensions__ = yes &&
5765 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
5766
5767 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
5768
5769 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
5770
5771 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
5772
5773 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
5774
5775
5776
5777# Check for programs
5778ac_ext=c
5779ac_cpp='$CPP $CPPFLAGS'
5780ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5781ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5782ac_compiler_gnu=$ac_cv_c_compiler_gnu
5783if test -n "$ac_tool_prefix"; then
5784 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5785set dummy ${ac_tool_prefix}gcc; ac_word=$2
5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005788if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005789 $as_echo_n "(cached) " >&6
5790else
5791 if test -n "$CC"; then
5792 ac_cv_prog_CC="$CC" # Let the user override the test.
5793else
5794as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5795for as_dir in $PATH
5796do
5797 IFS=$as_save_IFS
5798 test -z "$as_dir" && as_dir=.
5799 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005800 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005801 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5803 break 2
5804 fi
5805done
5806 done
5807IFS=$as_save_IFS
5808
5809fi
5810fi
5811CC=$ac_cv_prog_CC
5812if test -n "$CC"; then
5813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5814$as_echo "$CC" >&6; }
5815else
5816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5817$as_echo "no" >&6; }
5818fi
5819
5820
5821fi
5822if test -z "$ac_cv_prog_CC"; then
5823 ac_ct_CC=$CC
5824 # Extract the first word of "gcc", so it can be a program name with args.
5825set dummy gcc; ac_word=$2
5826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5827$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005828if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005829 $as_echo_n "(cached) " >&6
5830else
5831 if test -n "$ac_ct_CC"; then
5832 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5833else
5834as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5835for as_dir in $PATH
5836do
5837 IFS=$as_save_IFS
5838 test -z "$as_dir" && as_dir=.
5839 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005840 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005841 ac_cv_prog_ac_ct_CC="gcc"
5842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5843 break 2
5844 fi
5845done
5846 done
5847IFS=$as_save_IFS
5848
5849fi
5850fi
5851ac_ct_CC=$ac_cv_prog_ac_ct_CC
5852if test -n "$ac_ct_CC"; then
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5854$as_echo "$ac_ct_CC" >&6; }
5855else
5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5857$as_echo "no" >&6; }
5858fi
5859
5860 if test "x$ac_ct_CC" = x; then
5861 CC=""
5862 else
5863 case $cross_compiling:$ac_tool_warned in
5864yes:)
5865{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5866$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5867ac_tool_warned=yes ;;
5868esac
5869 CC=$ac_ct_CC
5870 fi
5871else
5872 CC="$ac_cv_prog_CC"
5873fi
5874
5875if test -z "$CC"; then
5876 if test -n "$ac_tool_prefix"; then
5877 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5878set dummy ${ac_tool_prefix}cc; ac_word=$2
5879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005881if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005882 $as_echo_n "(cached) " >&6
5883else
5884 if test -n "$CC"; then
5885 ac_cv_prog_CC="$CC" # Let the user override the test.
5886else
5887as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5888for as_dir in $PATH
5889do
5890 IFS=$as_save_IFS
5891 test -z "$as_dir" && as_dir=.
5892 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005893 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005894 ac_cv_prog_CC="${ac_tool_prefix}cc"
5895 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5896 break 2
5897 fi
5898done
5899 done
5900IFS=$as_save_IFS
5901
5902fi
5903fi
5904CC=$ac_cv_prog_CC
5905if test -n "$CC"; then
5906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5907$as_echo "$CC" >&6; }
5908else
5909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5910$as_echo "no" >&6; }
5911fi
5912
5913
5914 fi
5915fi
5916if test -z "$CC"; then
5917 # Extract the first word of "cc", so it can be a program name with args.
5918set dummy cc; ac_word=$2
5919{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5920$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005921if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005922 $as_echo_n "(cached) " >&6
5923else
5924 if test -n "$CC"; then
5925 ac_cv_prog_CC="$CC" # Let the user override the test.
5926else
5927 ac_prog_rejected=no
5928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5929for as_dir in $PATH
5930do
5931 IFS=$as_save_IFS
5932 test -z "$as_dir" && as_dir=.
5933 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005934 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005935 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5936 ac_prog_rejected=yes
5937 continue
5938 fi
5939 ac_cv_prog_CC="cc"
5940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5941 break 2
5942 fi
5943done
5944 done
5945IFS=$as_save_IFS
5946
5947if test $ac_prog_rejected = yes; then
5948 # We found a bogon in the path, so make sure we never use it.
5949 set dummy $ac_cv_prog_CC
5950 shift
5951 if test $# != 0; then
5952 # We chose a different compiler from the bogus one.
5953 # However, it has the same basename, so the bogon will be chosen
5954 # first if we set CC to just the basename; use the full file name.
5955 shift
5956 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5957 fi
5958fi
5959fi
5960fi
5961CC=$ac_cv_prog_CC
5962if test -n "$CC"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5964$as_echo "$CC" >&6; }
5965else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967$as_echo "no" >&6; }
5968fi
5969
5970
5971fi
5972if test -z "$CC"; then
5973 if test -n "$ac_tool_prefix"; then
5974 for ac_prog in cl.exe
5975 do
5976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5977set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5979$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00005980if ${ac_cv_prog_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00005981 $as_echo_n "(cached) " >&6
5982else
5983 if test -n "$CC"; then
5984 ac_cv_prog_CC="$CC" # Let the user override the test.
5985else
5986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5987for as_dir in $PATH
5988do
5989 IFS=$as_save_IFS
5990 test -z "$as_dir" && as_dir=.
5991 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00005992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00005993 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5995 break 2
5996 fi
5997done
5998 done
5999IFS=$as_save_IFS
6000
6001fi
6002fi
6003CC=$ac_cv_prog_CC
6004if test -n "$CC"; then
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
6006$as_echo "$CC" >&6; }
6007else
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6009$as_echo "no" >&6; }
6010fi
6011
6012
6013 test -n "$CC" && break
6014 done
6015fi
6016if test -z "$CC"; then
6017 ac_ct_CC=$CC
6018 for ac_prog in cl.exe
6019do
6020 # Extract the first word of "$ac_prog", so it can be a program name with args.
6021set dummy $ac_prog; ac_word=$2
6022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6023$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006024if ${ac_cv_prog_ac_ct_CC+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006025 $as_echo_n "(cached) " >&6
6026else
6027 if test -n "$ac_ct_CC"; then
6028 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6029else
6030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6031for as_dir in $PATH
6032do
6033 IFS=$as_save_IFS
6034 test -z "$as_dir" && as_dir=.
6035 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristya0b81c32010-01-22 02:54:33 +00006037 ac_cv_prog_ac_ct_CC="$ac_prog"
6038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6039 break 2
6040 fi
6041done
6042 done
6043IFS=$as_save_IFS
6044
6045fi
6046fi
6047ac_ct_CC=$ac_cv_prog_ac_ct_CC
6048if test -n "$ac_ct_CC"; then
6049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
6050$as_echo "$ac_ct_CC" >&6; }
6051else
6052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6053$as_echo "no" >&6; }
6054fi
6055
6056
6057 test -n "$ac_ct_CC" && break
6058done
6059
6060 if test "x$ac_ct_CC" = x; then
6061 CC=""
6062 else
6063 case $cross_compiling:$ac_tool_warned in
6064yes:)
6065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6067ac_tool_warned=yes ;;
6068esac
6069 CC=$ac_ct_CC
6070 fi
6071fi
6072
6073fi
6074
6075
6076test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6077$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00006078as_fn_error $? "no acceptable C compiler found in \$PATH
6079See \`config.log' for more details" "$LINENO" 5; }
cristya0b81c32010-01-22 02:54:33 +00006080
6081# Provide some information about the compiler.
6082$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
6083set X $ac_compile
6084ac_compiler=$2
6085for ac_option in --version -v -V -qversion; do
6086 { { ac_try="$ac_compiler $ac_option >&5"
6087case "(($ac_try" in
6088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6089 *) ac_try_echo=$ac_try;;
6090esac
6091eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6092$as_echo "$ac_try_echo"; } >&5
6093 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6094 ac_status=$?
6095 if test -s conftest.err; then
6096 sed '10a\
6097... rest of stderr output deleted ...
6098 10q' conftest.err >conftest.er1
6099 cat conftest.er1 >&5
6100 fi
6101 rm -f conftest.er1 conftest.err
6102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6103 test $ac_status = 0; }
6104done
6105
6106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
6107$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006108if ${ac_cv_c_compiler_gnu+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006109 $as_echo_n "(cached) " >&6
6110else
6111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6112/* end confdefs.h. */
6113
6114int
6115main ()
6116{
6117#ifndef __GNUC__
6118 choke me
6119#endif
6120
6121 ;
6122 return 0;
6123}
6124_ACEOF
6125if ac_fn_c_try_compile "$LINENO"; then :
6126 ac_compiler_gnu=yes
6127else
6128 ac_compiler_gnu=no
6129fi
6130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6131ac_cv_c_compiler_gnu=$ac_compiler_gnu
6132
6133fi
6134{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
6135$as_echo "$ac_cv_c_compiler_gnu" >&6; }
6136if test $ac_compiler_gnu = yes; then
6137 GCC=yes
6138else
6139 GCC=
6140fi
6141ac_test_CFLAGS=${CFLAGS+set}
6142ac_save_CFLAGS=$CFLAGS
6143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
6144$as_echo_n "checking whether $CC accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006145if ${ac_cv_prog_cc_g+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006146 $as_echo_n "(cached) " >&6
6147else
6148 ac_save_c_werror_flag=$ac_c_werror_flag
6149 ac_c_werror_flag=yes
6150 ac_cv_prog_cc_g=no
6151 CFLAGS="-g"
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153/* end confdefs.h. */
6154
6155int
6156main ()
6157{
6158
6159 ;
6160 return 0;
6161}
6162_ACEOF
6163if ac_fn_c_try_compile "$LINENO"; then :
6164 ac_cv_prog_cc_g=yes
6165else
6166 CFLAGS=""
6167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6168/* end confdefs.h. */
6169
6170int
6171main ()
6172{
6173
6174 ;
6175 return 0;
6176}
6177_ACEOF
6178if ac_fn_c_try_compile "$LINENO"; then :
6179
6180else
6181 ac_c_werror_flag=$ac_save_c_werror_flag
6182 CFLAGS="-g"
6183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6184/* end confdefs.h. */
6185
6186int
6187main ()
6188{
6189
6190 ;
6191 return 0;
6192}
6193_ACEOF
6194if ac_fn_c_try_compile "$LINENO"; then :
6195 ac_cv_prog_cc_g=yes
6196fi
6197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6198fi
6199rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6200fi
6201rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6202 ac_c_werror_flag=$ac_save_c_werror_flag
6203fi
6204{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
6205$as_echo "$ac_cv_prog_cc_g" >&6; }
6206if test "$ac_test_CFLAGS" = set; then
6207 CFLAGS=$ac_save_CFLAGS
6208elif test $ac_cv_prog_cc_g = yes; then
6209 if test "$GCC" = yes; then
6210 CFLAGS="-g -O2"
6211 else
6212 CFLAGS="-g"
6213 fi
6214else
6215 if test "$GCC" = yes; then
6216 CFLAGS="-O2"
6217 else
6218 CFLAGS=
6219 fi
6220fi
6221{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
6222$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006223if ${ac_cv_prog_cc_c89+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00006224 $as_echo_n "(cached) " >&6
6225else
6226 ac_cv_prog_cc_c89=no
6227ac_save_CC=$CC
6228cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6229/* end confdefs.h. */
6230#include <stdarg.h>
6231#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00006232struct stat;
cristya0b81c32010-01-22 02:54:33 +00006233/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
6234struct buf { int x; };
6235FILE * (*rcsopen) (struct buf *, struct stat *, int);
6236static char *e (p, i)
6237 char **p;
6238 int i;
6239{
6240 return p[i];
6241}
6242static char *f (char * (*g) (char **, int), char **p, ...)
6243{
6244 char *s;
6245 va_list v;
6246 va_start (v,p);
6247 s = g (p, va_arg (v,int));
6248 va_end (v);
6249 return s;
6250}
6251
6252/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
6253 function prototypes and stuff, but not '\xHH' hex character constants.
6254 These don't provoke an error unfortunately, instead are silently treated
6255 as 'x'. The following induces an error, until -std is added to get
6256 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
6257 array size at least. It's necessary to write '\x00'==0 to get something
6258 that's true only with -std. */
6259int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6260
6261/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6262 inside strings and character constants. */
6263#define FOO(x) 'x'
6264int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6265
6266int test (int i, double x);
6267struct s1 {int (*f) (int a);};
6268struct s2 {int (*f) (double a);};
6269int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6270int argc;
6271char **argv;
6272int
6273main ()
6274{
6275return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
6276 ;
6277 return 0;
6278}
6279_ACEOF
6280for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6281 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6282do
6283 CC="$ac_save_CC $ac_arg"
6284 if ac_fn_c_try_compile "$LINENO"; then :
6285 ac_cv_prog_cc_c89=$ac_arg
6286fi
6287rm -f core conftest.err conftest.$ac_objext
6288 test "x$ac_cv_prog_cc_c89" != "xno" && break
6289done
6290rm -f conftest.$ac_ext
6291CC=$ac_save_CC
6292
6293fi
6294# AC_CACHE_VAL
6295case "x$ac_cv_prog_cc_c89" in
6296 x)
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
6298$as_echo "none needed" >&6; } ;;
6299 xno)
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
6301$as_echo "unsupported" >&6; } ;;
6302 *)
6303 CC="$CC $ac_cv_prog_cc_c89"
6304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
6305$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
6306esac
6307if test "x$ac_cv_prog_cc_c89" != xno; then :
6308
6309fi
6310
6311ac_ext=c
6312ac_cpp='$CPP $CPPFLAGS'
6313ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6314ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6315ac_compiler_gnu=$ac_cv_c_compiler_gnu
6316
cristy73bd4a52010-10-05 11:24:23 +00006317depcc="$CC" am_compiler_list=
6318
6319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6320$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006321if ${am_cv_CC_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006322 $as_echo_n "(cached) " >&6
6323else
6324 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6325 # We make a subdir and do the tests there. Otherwise we can end up
6326 # making bogus files that we don't know about and never remove. For
6327 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006328 # making a dummy file named 'D' -- because '-MD' means "put the output
6329 # in D".
cristy7247bba2012-02-05 16:37:27 +00006330 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006331 mkdir conftest.dir
6332 # Copy depcomp to subdir because otherwise we won't find it if we're
6333 # using a relative directory.
6334 cp "$am_depcomp" conftest.dir
6335 cd conftest.dir
6336 # We will build objects and dependencies in a subdirectory because
6337 # it helps to detect inapplicable dependency modes. For instance
6338 # both Tru64's cc and ICC support -MD to output dependencies as a
6339 # side effect of compilation, but ICC will put the dependencies in
6340 # the current directory while Tru64 will put them in the object
6341 # directory.
6342 mkdir sub
6343
6344 am_cv_CC_dependencies_compiler_type=none
6345 if test "$am_compiler_list" = ""; then
6346 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6347 fi
6348 am__universal=false
6349 case " $depcc " in #(
6350 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6351 esac
6352
6353 for depmode in $am_compiler_list; do
6354 # Setup a source with many dependencies, because some compilers
6355 # like to wrap large dependency lists on column 80 (with \), and
6356 # we should not choose a depcomp mode which is confused by this.
6357 #
6358 # We need to recreate these files for each test, as the compiler may
6359 # overwrite some of them when testing with obscure command lines.
6360 # This happens at least with the AIX C compiler.
6361 : > sub/conftest.c
6362 for i in 1 2 3 4 5 6; do
6363 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006364 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6365 # Solaris 10 /bin/sh.
6366 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006367 done
6368 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6369
cristyc0890a62012-07-19 00:18:20 +00006370 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006371 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006372 # handle '-M -o', and we need to detect this. Also, some Intel
6373 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006374 am__obj=sub/conftest.${OBJEXT-o}
6375 am__minus_obj="-o $am__obj"
6376 case $depmode in
6377 gcc)
6378 # This depmode causes a compiler race in universal mode.
6379 test "$am__universal" = false || continue
6380 ;;
6381 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006382 # After this tag, mechanisms are not by side-effect, so they'll
6383 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006384 if test "x$enable_dependency_tracking" = xyes; then
6385 continue
6386 else
6387 break
6388 fi
6389 ;;
cristy7247bba2012-02-05 16:37:27 +00006390 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006391 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006392 # not run yet. These depmodes are late enough in the game, and
6393 # so weak that their functioning should not be impacted.
6394 am__obj=conftest.${OBJEXT-o}
6395 am__minus_obj=
6396 ;;
6397 none) break ;;
6398 esac
6399 if depmode=$depmode \
6400 source=sub/conftest.c object=$am__obj \
6401 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6402 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6403 >/dev/null 2>conftest.err &&
6404 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6405 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6406 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6407 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6408 # icc doesn't choke on unknown options, it will just issue warnings
6409 # or remarks (even with -Werror). So we grep stderr for any message
6410 # that says an option was ignored or not supported.
6411 # When given -MP, icc 7.0 and 7.1 complain thusly:
6412 # icc: Command line warning: ignoring option '-M'; no argument required
6413 # The diagnosis changed in icc 8.0:
6414 # icc: Command line remark: option '-MP' not supported
6415 if (grep 'ignoring option' conftest.err ||
6416 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6417 am_cv_CC_dependencies_compiler_type=$depmode
6418 break
6419 fi
6420 fi
6421 done
6422
6423 cd ..
6424 rm -rf conftest.dir
6425else
6426 am_cv_CC_dependencies_compiler_type=none
6427fi
6428
6429fi
6430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6431$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6432CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6433
6434 if
6435 test "x$enable_dependency_tracking" != xno \
6436 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6437 am__fastdepCC_TRUE=
6438 am__fastdepCC_FALSE='#'
6439else
6440 am__fastdepCC_TRUE='#'
6441 am__fastdepCC_FALSE=
6442fi
6443
6444
cristy95646052009-11-28 23:05:30 +00006445ac_ext=cpp
6446ac_cpp='$CXXCPP $CPPFLAGS'
6447ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6448ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6449ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6450if test -z "$CXX"; then
6451 if test -n "$CCC"; then
6452 CXX=$CCC
6453 else
6454 if test -n "$ac_tool_prefix"; then
6455 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6456 do
6457 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6458set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6460$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006461if ${ac_cv_prog_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006462 $as_echo_n "(cached) " >&6
6463else
6464 if test -n "$CXX"; then
6465 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6466else
6467as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6468for as_dir in $PATH
6469do
6470 IFS=$as_save_IFS
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006473 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006474 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6475 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6476 break 2
6477 fi
6478done
6479 done
6480IFS=$as_save_IFS
6481
6482fi
6483fi
6484CXX=$ac_cv_prog_CXX
6485if test -n "$CXX"; then
6486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6487$as_echo "$CXX" >&6; }
6488else
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6490$as_echo "no" >&6; }
6491fi
6492
6493
6494 test -n "$CXX" && break
6495 done
6496fi
6497if test -z "$CXX"; then
6498 ac_ct_CXX=$CXX
6499 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6500do
6501 # Extract the first word of "$ac_prog", so it can be a program name with args.
6502set dummy $ac_prog; ac_word=$2
6503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6504$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006505if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy95646052009-11-28 23:05:30 +00006506 $as_echo_n "(cached) " >&6
6507else
6508 if test -n "$ac_ct_CXX"; then
6509 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6510else
6511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6512for as_dir in $PATH
6513do
6514 IFS=$as_save_IFS
6515 test -z "$as_dir" && as_dir=.
6516 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00006517 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy95646052009-11-28 23:05:30 +00006518 ac_cv_prog_ac_ct_CXX="$ac_prog"
6519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6520 break 2
6521 fi
6522done
6523 done
6524IFS=$as_save_IFS
6525
6526fi
6527fi
6528ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6529if test -n "$ac_ct_CXX"; then
6530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6531$as_echo "$ac_ct_CXX" >&6; }
6532else
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6534$as_echo "no" >&6; }
6535fi
6536
6537
6538 test -n "$ac_ct_CXX" && break
6539done
6540
6541 if test "x$ac_ct_CXX" = x; then
6542 CXX="g++"
6543 else
6544 case $cross_compiling:$ac_tool_warned in
6545yes:)
6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6548ac_tool_warned=yes ;;
6549esac
6550 CXX=$ac_ct_CXX
6551 fi
6552fi
6553
6554 fi
6555fi
6556# Provide some information about the compiler.
6557$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6558set X $ac_compile
6559ac_compiler=$2
6560for ac_option in --version -v -V -qversion; do
6561 { { ac_try="$ac_compiler $ac_option >&5"
6562case "(($ac_try" in
6563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6564 *) ac_try_echo=$ac_try;;
6565esac
6566eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6567$as_echo "$ac_try_echo"; } >&5
6568 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6569 ac_status=$?
6570 if test -s conftest.err; then
6571 sed '10a\
6572... rest of stderr output deleted ...
6573 10q' conftest.err >conftest.er1
6574 cat conftest.er1 >&5
6575 fi
6576 rm -f conftest.er1 conftest.err
6577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6578 test $ac_status = 0; }
6579done
6580
6581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6582$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006583if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy95646052009-11-28 23:05:30 +00006584 $as_echo_n "(cached) " >&6
6585else
6586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6587/* end confdefs.h. */
6588
6589int
6590main ()
6591{
6592#ifndef __GNUC__
6593 choke me
6594#endif
6595
6596 ;
6597 return 0;
6598}
6599_ACEOF
6600if ac_fn_cxx_try_compile "$LINENO"; then :
6601 ac_compiler_gnu=yes
6602else
6603 ac_compiler_gnu=no
6604fi
6605rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6606ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6607
6608fi
6609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6610$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6611if test $ac_compiler_gnu = yes; then
6612 GXX=yes
6613else
6614 GXX=
6615fi
6616ac_test_CXXFLAGS=${CXXFLAGS+set}
6617ac_save_CXXFLAGS=$CXXFLAGS
6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6619$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006620if ${ac_cv_prog_cxx_g+:} false; then :
cristy95646052009-11-28 23:05:30 +00006621 $as_echo_n "(cached) " >&6
6622else
6623 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6624 ac_cxx_werror_flag=yes
6625 ac_cv_prog_cxx_g=no
6626 CXXFLAGS="-g"
6627 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6628/* end confdefs.h. */
6629
6630int
6631main ()
6632{
6633
6634 ;
6635 return 0;
6636}
6637_ACEOF
6638if ac_fn_cxx_try_compile "$LINENO"; then :
6639 ac_cv_prog_cxx_g=yes
6640else
6641 CXXFLAGS=""
6642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6643/* end confdefs.h. */
6644
6645int
6646main ()
6647{
6648
6649 ;
6650 return 0;
6651}
6652_ACEOF
6653if ac_fn_cxx_try_compile "$LINENO"; then :
6654
6655else
6656 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6657 CXXFLAGS="-g"
6658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6659/* end confdefs.h. */
6660
6661int
6662main ()
6663{
6664
6665 ;
6666 return 0;
6667}
6668_ACEOF
6669if ac_fn_cxx_try_compile "$LINENO"; then :
6670 ac_cv_prog_cxx_g=yes
6671fi
6672rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6673fi
6674rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6675fi
6676rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6677 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6678fi
6679{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
6680$as_echo "$ac_cv_prog_cxx_g" >&6; }
6681if test "$ac_test_CXXFLAGS" = set; then
6682 CXXFLAGS=$ac_save_CXXFLAGS
6683elif test $ac_cv_prog_cxx_g = yes; then
6684 if test "$GXX" = yes; then
6685 CXXFLAGS="-g -O2"
6686 else
6687 CXXFLAGS="-g"
6688 fi
6689else
6690 if test "$GXX" = yes; then
6691 CXXFLAGS="-O2"
6692 else
6693 CXXFLAGS=
6694 fi
6695fi
6696ac_ext=c
6697ac_cpp='$CPP $CPPFLAGS'
6698ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6699ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6700ac_compiler_gnu=$ac_cv_c_compiler_gnu
6701
cristy73bd4a52010-10-05 11:24:23 +00006702depcc="$CXX" am_compiler_list=
6703
6704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6705$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006706if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00006707 $as_echo_n "(cached) " >&6
6708else
6709 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6710 # We make a subdir and do the tests there. Otherwise we can end up
6711 # making bogus files that we don't know about and never remove. For
6712 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +00006713 # making a dummy file named 'D' -- because '-MD' means "put the output
6714 # in D".
cristy7247bba2012-02-05 16:37:27 +00006715 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +00006716 mkdir conftest.dir
6717 # Copy depcomp to subdir because otherwise we won't find it if we're
6718 # using a relative directory.
6719 cp "$am_depcomp" conftest.dir
6720 cd conftest.dir
6721 # We will build objects and dependencies in a subdirectory because
6722 # it helps to detect inapplicable dependency modes. For instance
6723 # both Tru64's cc and ICC support -MD to output dependencies as a
6724 # side effect of compilation, but ICC will put the dependencies in
6725 # the current directory while Tru64 will put them in the object
6726 # directory.
6727 mkdir sub
6728
6729 am_cv_CXX_dependencies_compiler_type=none
6730 if test "$am_compiler_list" = ""; then
6731 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6732 fi
6733 am__universal=false
6734 case " $depcc " in #(
6735 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6736 esac
6737
6738 for depmode in $am_compiler_list; do
6739 # Setup a source with many dependencies, because some compilers
6740 # like to wrap large dependency lists on column 80 (with \), and
6741 # we should not choose a depcomp mode which is confused by this.
6742 #
6743 # We need to recreate these files for each test, as the compiler may
6744 # overwrite some of them when testing with obscure command lines.
6745 # This happens at least with the AIX C compiler.
6746 : > sub/conftest.c
6747 for i in 1 2 3 4 5 6; do
6748 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +00006749 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6750 # Solaris 10 /bin/sh.
6751 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +00006752 done
6753 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6754
cristyc0890a62012-07-19 00:18:20 +00006755 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +00006756 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +00006757 # handle '-M -o', and we need to detect this. Also, some Intel
6758 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +00006759 am__obj=sub/conftest.${OBJEXT-o}
6760 am__minus_obj="-o $am__obj"
6761 case $depmode in
6762 gcc)
6763 # This depmode causes a compiler race in universal mode.
6764 test "$am__universal" = false || continue
6765 ;;
6766 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +00006767 # After this tag, mechanisms are not by side-effect, so they'll
6768 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +00006769 if test "x$enable_dependency_tracking" = xyes; then
6770 continue
6771 else
6772 break
6773 fi
6774 ;;
cristy7247bba2012-02-05 16:37:27 +00006775 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +00006776 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +00006777 # not run yet. These depmodes are late enough in the game, and
6778 # so weak that their functioning should not be impacted.
6779 am__obj=conftest.${OBJEXT-o}
6780 am__minus_obj=
6781 ;;
6782 none) break ;;
6783 esac
6784 if depmode=$depmode \
6785 source=sub/conftest.c object=$am__obj \
6786 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6787 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6788 >/dev/null 2>conftest.err &&
6789 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6790 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6791 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6792 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6793 # icc doesn't choke on unknown options, it will just issue warnings
6794 # or remarks (even with -Werror). So we grep stderr for any message
6795 # that says an option was ignored or not supported.
6796 # When given -MP, icc 7.0 and 7.1 complain thusly:
6797 # icc: Command line warning: ignoring option '-M'; no argument required
6798 # The diagnosis changed in icc 8.0:
6799 # icc: Command line remark: option '-MP' not supported
6800 if (grep 'ignoring option' conftest.err ||
6801 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6802 am_cv_CXX_dependencies_compiler_type=$depmode
6803 break
6804 fi
6805 fi
6806 done
6807
6808 cd ..
6809 rm -rf conftest.dir
6810else
6811 am_cv_CXX_dependencies_compiler_type=none
6812fi
6813
6814fi
6815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6816$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6817CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6818
6819 if
6820 test "x$enable_dependency_tracking" != xno \
6821 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6822 am__fastdepCXX_TRUE=
6823 am__fastdepCXX_FALSE='#'
6824else
6825 am__fastdepCXX_TRUE='#'
6826 am__fastdepCXX_FALSE=
6827fi
6828
6829
cristy8b350f62009-11-15 23:12:43 +00006830 case $ac_cv_prog_cc_stdc in #(
6831 no) :
6832 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
6833 *) :
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
cristy3ed852e2009-09-05 21:47:34 +00006835$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00006836if ${ac_cv_prog_cc_c99+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00006837 $as_echo_n "(cached) " >&6
6838else
6839 ac_cv_prog_cc_c99=no
6840ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00006841cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00006842/* end confdefs.h. */
6843#include <stdarg.h>
6844#include <stdbool.h>
6845#include <stdlib.h>
6846#include <wchar.h>
6847#include <stdio.h>
6848
6849// Check varargs macros. These examples are taken from C99 6.10.3.5.
6850#define debug(...) fprintf (stderr, __VA_ARGS__)
6851#define showlist(...) puts (#__VA_ARGS__)
6852#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
6853static void
6854test_varargs_macros (void)
6855{
6856 int x = 1234;
6857 int y = 5678;
6858 debug ("Flag");
6859 debug ("X = %d\n", x);
6860 showlist (The first, second, and third items.);
6861 report (x>y, "x is %d but y is %d", x, y);
6862}
6863
6864// Check long long types.
6865#define BIG64 18446744073709551615ull
6866#define BIG32 4294967295ul
6867#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
6868#if !BIG_OK
6869 your preprocessor is broken;
6870#endif
6871#if BIG_OK
6872#else
6873 your preprocessor is broken;
6874#endif
6875static long long int bignum = -9223372036854775807LL;
6876static unsigned long long int ubignum = BIG64;
6877
6878struct incomplete_array
6879{
6880 int datasize;
6881 double data[];
6882};
6883
6884struct named_init {
6885 int number;
6886 const wchar_t *name;
6887 double average;
6888};
6889
6890typedef const char *ccp;
6891
6892static inline int
6893test_restrict (ccp restrict text)
6894{
6895 // See if C++-style comments work.
6896 // Iterate through items via the restricted pointer.
6897 // Also check for declarations in for loops.
6898 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
6899 continue;
6900 return 0;
6901}
6902
6903// Check varargs and va_copy.
6904static void
6905test_varargs (const char *format, ...)
6906{
6907 va_list args;
6908 va_start (args, format);
6909 va_list args_copy;
6910 va_copy (args_copy, args);
6911
6912 const char *str;
6913 int number;
6914 float fnumber;
6915
6916 while (*format)
6917 {
6918 switch (*format++)
6919 {
6920 case 's': // string
6921 str = va_arg (args_copy, const char *);
6922 break;
6923 case 'd': // int
6924 number = va_arg (args_copy, int);
6925 break;
6926 case 'f': // float
6927 fnumber = va_arg (args_copy, double);
6928 break;
6929 default:
6930 break;
6931 }
6932 }
6933 va_end (args_copy);
6934 va_end (args);
6935}
6936
6937int
6938main ()
6939{
6940
6941 // Check bool.
6942 _Bool success = false;
6943
6944 // Check restrict.
6945 if (test_restrict ("String literal") == 0)
6946 success = true;
6947 char *restrict newvar = "Another string";
6948
6949 // Check varargs.
6950 test_varargs ("s, d' f .", "string", 65, 34.234);
6951 test_varargs_macros ();
6952
6953 // Check flexible array members.
6954 struct incomplete_array *ia =
6955 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
6956 ia->datasize = 10;
6957 for (int i = 0; i < ia->datasize; ++i)
6958 ia->data[i] = i * 1.234;
6959
6960 // Check named initializers.
6961 struct named_init ni = {
6962 .number = 34,
6963 .name = L"Test wide string",
6964 .average = 543.34343,
6965 };
6966
6967 ni.number = 58;
6968
6969 int dynamic_array[ni.number];
6970 dynamic_array[ni.number - 1] = 543;
6971
6972 // work around unused variable warnings
6973 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
6974 || dynamic_array[ni.number - 1] != 543);
6975
6976 ;
6977 return 0;
6978}
6979_ACEOF
cristy14fefe52012-05-21 00:59:18 +00006980for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy3ed852e2009-09-05 21:47:34 +00006981do
6982 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00006983 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00006984 ac_cv_prog_cc_c99=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00006985fi
cristy3ed852e2009-09-05 21:47:34 +00006986rm -f core conftest.err conftest.$ac_objext
6987 test "x$ac_cv_prog_cc_c99" != "xno" && break
6988done
6989rm -f conftest.$ac_ext
6990CC=$ac_save_CC
6991
6992fi
6993# AC_CACHE_VAL
6994case "x$ac_cv_prog_cc_c99" in
6995 x)
cristy8b350f62009-11-15 23:12:43 +00006996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00006997$as_echo "none needed" >&6; } ;;
6998 xno)
cristy8b350f62009-11-15 23:12:43 +00006999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007000$as_echo "unsupported" >&6; } ;;
7001 *)
7002 CC="$CC $ac_cv_prog_cc_c99"
cristy8b350f62009-11-15 23:12:43 +00007003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
cristy3ed852e2009-09-05 21:47:34 +00007004$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7005esac
cristy8b350f62009-11-15 23:12:43 +00007006if test "x$ac_cv_prog_cc_c99" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007007 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
7008else
cristy8b350f62009-11-15 23:12:43 +00007009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007010$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007011if ${ac_cv_prog_cc_c89+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007012 $as_echo_n "(cached) " >&6
7013else
7014 ac_cv_prog_cc_c89=no
7015ac_save_CC=$CC
cristy8b350f62009-11-15 23:12:43 +00007016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007017/* end confdefs.h. */
7018#include <stdarg.h>
7019#include <stdio.h>
cristy14fefe52012-05-21 00:59:18 +00007020struct stat;
cristy3ed852e2009-09-05 21:47:34 +00007021/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7022struct buf { int x; };
7023FILE * (*rcsopen) (struct buf *, struct stat *, int);
7024static char *e (p, i)
7025 char **p;
7026 int i;
7027{
7028 return p[i];
7029}
7030static char *f (char * (*g) (char **, int), char **p, ...)
7031{
7032 char *s;
7033 va_list v;
7034 va_start (v,p);
7035 s = g (p, va_arg (v,int));
7036 va_end (v);
7037 return s;
7038}
7039
7040/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7041 function prototypes and stuff, but not '\xHH' hex character constants.
7042 These don't provoke an error unfortunately, instead are silently treated
7043 as 'x'. The following induces an error, until -std is added to get
7044 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7045 array size at least. It's necessary to write '\x00'==0 to get something
7046 that's true only with -std. */
7047int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7048
7049/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7050 inside strings and character constants. */
7051#define FOO(x) 'x'
7052int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7053
7054int test (int i, double x);
7055struct s1 {int (*f) (int a);};
7056struct s2 {int (*f) (double a);};
7057int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7058int argc;
7059char **argv;
7060int
7061main ()
7062{
7063return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7064 ;
7065 return 0;
7066}
7067_ACEOF
7068for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7069 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7070do
7071 CC="$ac_save_CC $ac_arg"
cristy8b350f62009-11-15 23:12:43 +00007072 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007073 ac_cv_prog_cc_c89=$ac_arg
cristy3ed852e2009-09-05 21:47:34 +00007074fi
cristy3ed852e2009-09-05 21:47:34 +00007075rm -f core conftest.err conftest.$ac_objext
7076 test "x$ac_cv_prog_cc_c89" != "xno" && break
7077done
7078rm -f conftest.$ac_ext
7079CC=$ac_save_CC
7080
7081fi
7082# AC_CACHE_VAL
7083case "x$ac_cv_prog_cc_c89" in
7084 x)
cristy8b350f62009-11-15 23:12:43 +00007085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
cristy3ed852e2009-09-05 21:47:34 +00007086$as_echo "none needed" >&6; } ;;
7087 xno)
cristy8b350f62009-11-15 23:12:43 +00007088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
cristy3ed852e2009-09-05 21:47:34 +00007089$as_echo "unsupported" >&6; } ;;
7090 *)
7091 CC="$CC $ac_cv_prog_cc_c89"
cristy8b350f62009-11-15 23:12:43 +00007092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
cristy3ed852e2009-09-05 21:47:34 +00007093$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7094esac
cristy8b350f62009-11-15 23:12:43 +00007095if test "x$ac_cv_prog_cc_c89" != xno; then :
cristy3ed852e2009-09-05 21:47:34 +00007096 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
7097else
7098 ac_cv_prog_cc_stdc=no
7099fi
7100
cristy3ed852e2009-09-05 21:47:34 +00007101fi
cristy3ed852e2009-09-05 21:47:34 +00007102 ;;
7103esac
cristy8b350f62009-11-15 23:12:43 +00007104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
cristy3ed852e2009-09-05 21:47:34 +00007105$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007106 if ${ac_cv_prog_cc_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007107 $as_echo_n "(cached) " >&6
7108fi
7109
cristy8b350f62009-11-15 23:12:43 +00007110 case $ac_cv_prog_cc_stdc in #(
7111 no) :
7112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7113$as_echo "unsupported" >&6; } ;; #(
7114 '') :
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7116$as_echo "none needed" >&6; } ;; #(
7117 *) :
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +00007119$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
7120esac
7121
cristy3ed852e2009-09-05 21:47:34 +00007122ac_ext=c
7123ac_cpp='$CPP $CPPFLAGS'
7124ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7125ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7126ac_compiler_gnu=$ac_cv_c_compiler_gnu
cristy8b350f62009-11-15 23:12:43 +00007127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
cristy3ed852e2009-09-05 21:47:34 +00007128$as_echo_n "checking how to run the C preprocessor... " >&6; }
7129# On Suns, sometimes $CPP names a directory.
7130if test -n "$CPP" && test -d "$CPP"; then
7131 CPP=
7132fi
7133if test -z "$CPP"; then
cristyda16f162011-02-19 23:52:17 +00007134 if ${ac_cv_prog_CPP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007135 $as_echo_n "(cached) " >&6
7136else
7137 # Double quotes because CPP needs to be expanded
7138 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7139 do
7140 ac_preproc_ok=false
7141for ac_c_preproc_warn_flag in '' yes
7142do
7143 # Use a header file that comes with gcc, so configuring glibc
7144 # with a fresh cross-compiler works.
7145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7146 # <limits.h> exists even on freestanding compilers.
7147 # On the NeXT, cc -E runs the code through the compiler's parser,
7148 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007150/* end confdefs.h. */
7151#ifdef __STDC__
7152# include <limits.h>
7153#else
7154# include <assert.h>
7155#endif
7156 Syntax error
7157_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007158if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007159
cristy8b350f62009-11-15 23:12:43 +00007160else
cristy3ed852e2009-09-05 21:47:34 +00007161 # Broken: fails on valid input.
7162continue
7163fi
cristyda16f162011-02-19 23:52:17 +00007164rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007165
7166 # OK, works on sane cases. Now check whether nonexistent headers
7167 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007169/* end confdefs.h. */
7170#include <ac_nonexistent.h>
7171_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007172if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007173 # Broken: success on invalid input.
7174continue
7175else
cristy3ed852e2009-09-05 21:47:34 +00007176 # Passes both tests.
7177ac_preproc_ok=:
7178break
7179fi
cristyda16f162011-02-19 23:52:17 +00007180rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007181
7182done
7183# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007184rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007185if $ac_preproc_ok; then :
cristy3ed852e2009-09-05 21:47:34 +00007186 break
7187fi
7188
7189 done
7190 ac_cv_prog_CPP=$CPP
7191
7192fi
7193 CPP=$ac_cv_prog_CPP
7194else
7195 ac_cv_prog_CPP=$CPP
7196fi
cristy8b350f62009-11-15 23:12:43 +00007197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
cristy3ed852e2009-09-05 21:47:34 +00007198$as_echo "$CPP" >&6; }
7199ac_preproc_ok=false
7200for ac_c_preproc_warn_flag in '' yes
7201do
7202 # Use a header file that comes with gcc, so configuring glibc
7203 # with a fresh cross-compiler works.
7204 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7205 # <limits.h> exists even on freestanding compilers.
7206 # On the NeXT, cc -E runs the code through the compiler's parser,
7207 # not just through cpp. "Syntax error" is here to catch this case.
cristy8b350f62009-11-15 23:12:43 +00007208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007209/* end confdefs.h. */
7210#ifdef __STDC__
7211# include <limits.h>
7212#else
7213# include <assert.h>
7214#endif
7215 Syntax error
7216_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007217if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007218
cristy8b350f62009-11-15 23:12:43 +00007219else
cristy3ed852e2009-09-05 21:47:34 +00007220 # Broken: fails on valid input.
7221continue
7222fi
cristyda16f162011-02-19 23:52:17 +00007223rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007224
7225 # OK, works on sane cases. Now check whether nonexistent headers
7226 # can be detected and how.
cristy8b350f62009-11-15 23:12:43 +00007227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007228/* end confdefs.h. */
7229#include <ac_nonexistent.h>
7230_ACEOF
cristy8b350f62009-11-15 23:12:43 +00007231if ac_fn_c_try_cpp "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00007232 # Broken: success on invalid input.
7233continue
7234else
cristy3ed852e2009-09-05 21:47:34 +00007235 # Passes both tests.
7236ac_preproc_ok=:
7237break
7238fi
cristyda16f162011-02-19 23:52:17 +00007239rm -f conftest.err conftest.i conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00007240
7241done
7242# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +00007243rm -f conftest.i conftest.err conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +00007244if $ac_preproc_ok; then :
7245
cristy3ed852e2009-09-05 21:47:34 +00007246else
cristy8b350f62009-11-15 23:12:43 +00007247 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +00007248$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +00007249as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7250See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +00007251fi
7252
7253ac_ext=c
7254ac_cpp='$CPP $CPPFLAGS'
7255ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7256ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7257ac_compiler_gnu=$ac_cv_c_compiler_gnu
7258
cristy73bd4a52010-10-05 11:24:23 +00007259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7260$as_echo_n "checking for a sed that does not truncate output... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007261if ${ac_cv_path_SED+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007262 $as_echo_n "(cached) " >&6
7263else
7264 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7265 for ac_i in 1 2 3 4 5 6 7; do
7266 ac_script="$ac_script$as_nl$ac_script"
7267 done
7268 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7269 { ac_script=; unset ac_script;}
7270 if test -z "$SED"; then
7271 ac_path_SED_found=false
7272 # Loop through the user's path and test for each of PROGNAME-LIST
7273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7274for as_dir in $PATH
7275do
7276 IFS=$as_save_IFS
7277 test -z "$as_dir" && as_dir=.
7278 for ac_prog in sed gsed; do
7279 for ac_exec_ext in '' $ac_executable_extensions; do
7280 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007281 as_fn_executable_p "$ac_path_SED" || continue
cristy73bd4a52010-10-05 11:24:23 +00007282# Check for GNU ac_path_SED and select it if it is found.
7283 # Check for GNU $ac_path_SED
7284case `"$ac_path_SED" --version 2>&1` in
7285*GNU*)
7286 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7287*)
7288 ac_count=0
7289 $as_echo_n 0123456789 >"conftest.in"
7290 while :
7291 do
7292 cat "conftest.in" "conftest.in" >"conftest.tmp"
7293 mv "conftest.tmp" "conftest.in"
7294 cp "conftest.in" "conftest.nl"
7295 $as_echo '' >> "conftest.nl"
7296 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7298 as_fn_arith $ac_count + 1 && ac_count=$as_val
7299 if test $ac_count -gt ${ac_path_SED_max-0}; then
7300 # Best one so far, save it but keep looking for a better one
7301 ac_cv_path_SED="$ac_path_SED"
7302 ac_path_SED_max=$ac_count
7303 fi
7304 # 10*(2^10) chars as input seems more than enough
7305 test $ac_count -gt 10 && break
7306 done
7307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7308esac
7309
7310 $ac_path_SED_found && break 3
7311 done
7312 done
7313 done
7314IFS=$as_save_IFS
7315 if test -z "$ac_cv_path_SED"; then
cristy98dddb52010-11-04 00:30:15 +00007316 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007317 fi
7318else
7319 ac_cv_path_SED=$SED
7320fi
7321
7322fi
7323{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7324$as_echo "$ac_cv_path_SED" >&6; }
7325 SED="$ac_cv_path_SED"
7326 rm -f conftest.sed
7327
7328test -z "$SED" && SED=sed
7329Xsed="$SED -e 1s/^X//"
7330
7331
7332
7333
7334
7335
7336
7337
7338
7339
7340
7341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7342$as_echo_n "checking for fgrep... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007343if ${ac_cv_path_FGREP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007344 $as_echo_n "(cached) " >&6
7345else
7346 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7347 then ac_cv_path_FGREP="$GREP -F"
7348 else
7349 if test -z "$FGREP"; then
7350 ac_path_FGREP_found=false
7351 # Loop through the user's path and test for each of PROGNAME-LIST
7352 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7354do
7355 IFS=$as_save_IFS
7356 test -z "$as_dir" && as_dir=.
7357 for ac_prog in fgrep; do
7358 for ac_exec_ext in '' $ac_executable_extensions; do
7359 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
cristy14fefe52012-05-21 00:59:18 +00007360 as_fn_executable_p "$ac_path_FGREP" || continue
cristy73bd4a52010-10-05 11:24:23 +00007361# Check for GNU ac_path_FGREP and select it if it is found.
7362 # Check for GNU $ac_path_FGREP
7363case `"$ac_path_FGREP" --version 2>&1` in
7364*GNU*)
7365 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7366*)
7367 ac_count=0
7368 $as_echo_n 0123456789 >"conftest.in"
7369 while :
7370 do
7371 cat "conftest.in" "conftest.in" >"conftest.tmp"
7372 mv "conftest.tmp" "conftest.in"
7373 cp "conftest.in" "conftest.nl"
7374 $as_echo 'FGREP' >> "conftest.nl"
7375 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7376 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7377 as_fn_arith $ac_count + 1 && ac_count=$as_val
7378 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7379 # Best one so far, save it but keep looking for a better one
7380 ac_cv_path_FGREP="$ac_path_FGREP"
7381 ac_path_FGREP_max=$ac_count
7382 fi
7383 # 10*(2^10) chars as input seems more than enough
7384 test $ac_count -gt 10 && break
7385 done
7386 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7387esac
7388
7389 $ac_path_FGREP_found && break 3
7390 done
7391 done
7392 done
7393IFS=$as_save_IFS
7394 if test -z "$ac_cv_path_FGREP"; then
cristy98dddb52010-11-04 00:30:15 +00007395 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007396 fi
7397else
7398 ac_cv_path_FGREP=$FGREP
7399fi
7400
7401 fi
7402fi
7403{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7404$as_echo "$ac_cv_path_FGREP" >&6; }
7405 FGREP="$ac_cv_path_FGREP"
7406
7407
7408test -z "$GREP" && GREP=grep
7409
7410
7411
7412
7413
7414
7415
7416
7417
7418
7419
7420
7421
7422
7423
7424
7425
cristy0c60a692010-11-04 01:09:47 +00007426ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7427ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7428ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7429
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7431$as_echo_n "checking how to print strings... " >&6; }
7432# Test print first, because it will be a builtin if present.
cristyda16f162011-02-19 23:52:17 +00007433if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
cristy0c60a692010-11-04 01:09:47 +00007434 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7435 ECHO='print -r --'
7436elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7437 ECHO='printf %s\n'
7438else
7439 # Use this function as a fallback that always works.
7440 func_fallback_echo ()
7441 {
7442 eval 'cat <<_LTECHO_EOF
7443$1
7444_LTECHO_EOF'
7445 }
7446 ECHO='func_fallback_echo'
7447fi
7448
7449# func_echo_all arg...
7450# Invoke $ECHO with all args, space-separated.
7451func_echo_all ()
7452{
7453 $ECHO ""
7454}
7455
7456case "$ECHO" in
7457 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7458$as_echo "printf" >&6; } ;;
7459 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7460$as_echo "print -r" >&6; } ;;
7461 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7462$as_echo "cat" >&6; } ;;
7463esac
7464
7465
7466
7467
7468
7469
7470
7471
7472
7473
7474
7475
7476
7477
cristy73bd4a52010-10-05 11:24:23 +00007478
7479
7480# Check whether --with-gnu-ld was given.
7481if test "${with_gnu_ld+set}" = set; then :
7482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
7483else
7484 with_gnu_ld=no
7485fi
7486
7487ac_prog=ld
7488if test "$GCC" = yes; then
7489 # Check if gcc -print-prog-name=ld gives a path.
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
7491$as_echo_n "checking for ld used by $CC... " >&6; }
7492 case $host in
7493 *-*-mingw*)
7494 # gcc leaves a trailing carriage return which upsets mingw
7495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
7496 *)
7497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
7498 esac
7499 case $ac_prog in
7500 # Accept absolute paths.
7501 [\\/]* | ?:[\\/]*)
7502 re_direlt='/[^/][^/]*/\.\./'
7503 # Canonicalize the pathname of ld
7504 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
7505 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
7506 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
7507 done
7508 test -z "$LD" && LD="$ac_prog"
7509 ;;
7510 "")
7511 # If it fails, then pretend we aren't using GCC.
7512 ac_prog=ld
7513 ;;
7514 *)
7515 # If it is relative, then search for the first ld in PATH.
7516 with_gnu_ld=unknown
7517 ;;
7518 esac
7519elif test "$with_gnu_ld" = yes; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
7521$as_echo_n "checking for GNU ld... " >&6; }
7522else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
7524$as_echo_n "checking for non-GNU ld... " >&6; }
7525fi
cristyda16f162011-02-19 23:52:17 +00007526if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007527 $as_echo_n "(cached) " >&6
7528else
7529 if test -z "$LD"; then
7530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
7531 for ac_dir in $PATH; do
7532 IFS="$lt_save_ifs"
7533 test -z "$ac_dir" && ac_dir=.
7534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
7535 lt_cv_path_LD="$ac_dir/$ac_prog"
7536 # Check to see if the program is GNU ld. I'd rather use --version,
7537 # but apparently some variants of GNU ld only accept -v.
7538 # Break only if it was the GNU/non-GNU ld that we prefer.
7539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
7540 *GNU* | *'with BFD'*)
7541 test "$with_gnu_ld" != no && break
7542 ;;
7543 *)
7544 test "$with_gnu_ld" != yes && break
7545 ;;
7546 esac
7547 fi
7548 done
7549 IFS="$lt_save_ifs"
7550else
7551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
7552fi
7553fi
7554
7555LD="$lt_cv_path_LD"
7556if test -n "$LD"; then
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7558$as_echo "$LD" >&6; }
7559else
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7561$as_echo "no" >&6; }
7562fi
cristy98dddb52010-11-04 00:30:15 +00007563test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +00007564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
7565$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007566if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007567 $as_echo_n "(cached) " >&6
7568else
7569 # I'd rather use --version here, but apparently some GNU lds only accept -v.
7570case `$LD -v 2>&1 </dev/null` in
7571*GNU* | *'with BFD'*)
7572 lt_cv_prog_gnu_ld=yes
7573 ;;
7574*)
7575 lt_cv_prog_gnu_ld=no
7576 ;;
7577esac
7578fi
7579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
7580$as_echo "$lt_cv_prog_gnu_ld" >&6; }
7581with_gnu_ld=$lt_cv_prog_gnu_ld
7582
7583
7584
7585
7586
7587
7588
7589
7590
cristy3ed852e2009-09-05 21:47:34 +00007591
cristy837d6dc2010-02-27 01:16:57 +00007592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
7593$as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007594if ${ac_cv_prog_cc_c99+:} false; then :
cristy837d6dc2010-02-27 01:16:57 +00007595 $as_echo_n "(cached) " >&6
7596else
7597 ac_cv_prog_cc_c99=no
7598ac_save_CC=$CC
7599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7600/* end confdefs.h. */
7601#include <stdarg.h>
7602#include <stdbool.h>
7603#include <stdlib.h>
7604#include <wchar.h>
7605#include <stdio.h>
7606
7607// Check varargs macros. These examples are taken from C99 6.10.3.5.
7608#define debug(...) fprintf (stderr, __VA_ARGS__)
7609#define showlist(...) puts (#__VA_ARGS__)
7610#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
7611static void
7612test_varargs_macros (void)
7613{
7614 int x = 1234;
7615 int y = 5678;
7616 debug ("Flag");
7617 debug ("X = %d\n", x);
7618 showlist (The first, second, and third items.);
7619 report (x>y, "x is %d but y is %d", x, y);
7620}
7621
7622// Check long long types.
7623#define BIG64 18446744073709551615ull
7624#define BIG32 4294967295ul
7625#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
7626#if !BIG_OK
7627 your preprocessor is broken;
7628#endif
7629#if BIG_OK
7630#else
7631 your preprocessor is broken;
7632#endif
7633static long long int bignum = -9223372036854775807LL;
7634static unsigned long long int ubignum = BIG64;
7635
7636struct incomplete_array
7637{
7638 int datasize;
7639 double data[];
7640};
7641
7642struct named_init {
7643 int number;
7644 const wchar_t *name;
7645 double average;
7646};
7647
7648typedef const char *ccp;
7649
7650static inline int
7651test_restrict (ccp restrict text)
7652{
7653 // See if C++-style comments work.
7654 // Iterate through items via the restricted pointer.
7655 // Also check for declarations in for loops.
7656 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
7657 continue;
7658 return 0;
7659}
7660
7661// Check varargs and va_copy.
7662static void
7663test_varargs (const char *format, ...)
7664{
7665 va_list args;
7666 va_start (args, format);
7667 va_list args_copy;
7668 va_copy (args_copy, args);
7669
7670 const char *str;
7671 int number;
7672 float fnumber;
7673
7674 while (*format)
7675 {
7676 switch (*format++)
7677 {
7678 case 's': // string
7679 str = va_arg (args_copy, const char *);
7680 break;
7681 case 'd': // int
7682 number = va_arg (args_copy, int);
7683 break;
7684 case 'f': // float
7685 fnumber = va_arg (args_copy, double);
7686 break;
7687 default:
7688 break;
7689 }
7690 }
7691 va_end (args_copy);
7692 va_end (args);
7693}
7694
7695int
7696main ()
7697{
7698
7699 // Check bool.
7700 _Bool success = false;
7701
7702 // Check restrict.
7703 if (test_restrict ("String literal") == 0)
7704 success = true;
7705 char *restrict newvar = "Another string";
7706
7707 // Check varargs.
7708 test_varargs ("s, d' f .", "string", 65, 34.234);
7709 test_varargs_macros ();
7710
7711 // Check flexible array members.
7712 struct incomplete_array *ia =
7713 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
7714 ia->datasize = 10;
7715 for (int i = 0; i < ia->datasize; ++i)
7716 ia->data[i] = i * 1.234;
7717
7718 // Check named initializers.
7719 struct named_init ni = {
7720 .number = 34,
7721 .name = L"Test wide string",
7722 .average = 543.34343,
7723 };
7724
7725 ni.number = 58;
7726
7727 int dynamic_array[ni.number];
7728 dynamic_array[ni.number - 1] = 543;
7729
7730 // work around unused variable warnings
7731 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
7732 || dynamic_array[ni.number - 1] != 543);
7733
7734 ;
7735 return 0;
7736}
7737_ACEOF
cristy14fefe52012-05-21 00:59:18 +00007738for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -D_STDC_C99= -qlanglvl=extc99
cristy837d6dc2010-02-27 01:16:57 +00007739do
7740 CC="$ac_save_CC $ac_arg"
7741 if ac_fn_c_try_compile "$LINENO"; then :
7742 ac_cv_prog_cc_c99=$ac_arg
7743fi
7744rm -f core conftest.err conftest.$ac_objext
7745 test "x$ac_cv_prog_cc_c99" != "xno" && break
7746done
7747rm -f conftest.$ac_ext
7748CC=$ac_save_CC
7749
7750fi
7751# AC_CACHE_VAL
7752case "x$ac_cv_prog_cc_c99" in
7753 x)
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7755$as_echo "none needed" >&6; } ;;
7756 xno)
7757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7758$as_echo "unsupported" >&6; } ;;
7759 *)
7760 CC="$CC $ac_cv_prog_cc_c99"
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
7762$as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
7763esac
7764if test "x$ac_cv_prog_cc_c99" != xno; then :
7765
7766fi
7767
7768
cristy73bd4a52010-10-05 11:24:23 +00007769if test "x$CC" != xcc; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
7771$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
7772else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
7774$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
7775fi
7776set dummy $CC; ac_cc=`$as_echo "$2" |
7777 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
cristyda16f162011-02-19 23:52:17 +00007778if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00007779 $as_echo_n "(cached) " >&6
7780else
cristy73bd4a52010-10-05 11:24:23 +00007781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7782/* end confdefs.h. */
7783
7784int
7785main ()
7786{
7787
7788 ;
7789 return 0;
7790}
7791_ACEOF
7792# Make sure it works both with $CC and with simple cc.
7793# We do the test twice because some compilers refuse to overwrite an
7794# existing .o file with -o, though they will create one.
7795ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7796rm -f conftest2.*
7797if { { case "(($ac_try" in
7798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7799 *) ac_try_echo=$ac_try;;
7800esac
7801eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7802$as_echo "$ac_try_echo"; } >&5
7803 (eval "$ac_try") 2>&5
7804 ac_status=$?
7805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7806 test $ac_status = 0; } &&
7807 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810esac
7811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7812$as_echo "$ac_try_echo"; } >&5
7813 (eval "$ac_try") 2>&5
7814 ac_status=$?
7815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7816 test $ac_status = 0; };
7817then
7818 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
7819 if test "x$CC" != xcc; then
7820 # Test first that cc exists at all.
7821 if { ac_try='cc -c conftest.$ac_ext >&5'
7822 { { case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825esac
7826eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7827$as_echo "$ac_try_echo"; } >&5
7828 (eval "$ac_try") 2>&5
7829 ac_status=$?
7830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7831 test $ac_status = 0; }; }; then
7832 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
7833 rm -f conftest2.*
7834 if { { case "(($ac_try" in
7835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7836 *) ac_try_echo=$ac_try;;
7837esac
7838eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7839$as_echo "$ac_try_echo"; } >&5
7840 (eval "$ac_try") 2>&5
7841 ac_status=$?
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; } &&
7844 test -f conftest2.$ac_objext && { { case "(($ac_try" in
7845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7846 *) ac_try_echo=$ac_try;;
7847esac
7848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7849$as_echo "$ac_try_echo"; } >&5
7850 (eval "$ac_try") 2>&5
7851 ac_status=$?
7852 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7853 test $ac_status = 0; };
7854 then
7855 # cc works too.
7856 :
7857 else
7858 # cc exists but doesn't like -o.
7859 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7860 fi
7861 fi
7862 fi
7863else
7864 eval ac_cv_prog_cc_${ac_cc}_c_o=no
7865fi
7866rm -f core conftest*
7867
7868fi
7869if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7871$as_echo "yes" >&6; }
7872else
7873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7874$as_echo "no" >&6; }
7875
7876$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
7877
7878fi
7879
7880# FIXME: we rely on the cache variable name because
7881# there is no other way.
7882set dummy $CC
7883am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
7884eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
7885if test "$am_t" != yes; then
7886 # Losing compiler, so override with the script.
7887 # FIXME: It is wrong to rewrite CC.
7888 # But if we don't then we get into trouble of one sort or another.
7889 # A longer-term fix would be to have automake use am__CC in this case,
7890 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7891 CC="$am_aux_dir/compile $CC"
7892fi
7893
7894
7895{ $as_echo "$as_me:${as_lineno-$LINENO}: checking CFLAGS for maximum warnings" >&5
7896$as_echo_n "checking CFLAGS for maximum warnings... " >&6; }
cristyda16f162011-02-19 23:52:17 +00007897if ${ac_cv_cflags_warn_all+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00007898 $as_echo_n "(cached) " >&6
7899else
7900 ac_cv_cflags_warn_all="no, unknown"
cristy73bd4a52010-10-05 11:24:23 +00007901 ac_ext=c
7902ac_cpp='$CPP $CPPFLAGS'
7903ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7904ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7905ac_compiler_gnu=$ac_cv_c_compiler_gnu
7906
7907 ac_save_CFLAGS="$CFLAGS"
7908for 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" #
7909do CFLAGS="$ac_save_CFLAGS "`echo $ac_arg | sed -e 's,%%.*,,' -e 's,%,,'`
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911/* end confdefs.h. */
7912
7913int
7914main ()
7915{
cristy24fc1fe2010-10-23 21:13:01 +00007916
cristy73bd4a52010-10-05 11:24:23 +00007917 ;
7918 return 0;
7919}
7920_ACEOF
7921if ac_fn_c_try_compile "$LINENO"; then :
7922 ac_cv_cflags_warn_all=`echo $ac_arg | sed -e 's,.*% *,,'` ; break
7923fi
7924rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7925done
7926 CFLAGS="$ac_save_CFLAGS"
7927 ac_ext=c
7928ac_cpp='$CPP $CPPFLAGS'
7929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7931ac_compiler_gnu=$ac_cv_c_compiler_gnu
7932
7933
7934fi
7935{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cflags_warn_all" >&5
7936$as_echo "$ac_cv_cflags_warn_all" >&6; }
7937case ".$ac_cv_cflags_warn_all" in
7938 .ok|.ok,*) ;;
7939 .|.no|.no,*)
7940 ;;
7941 *)
7942 if echo " $CFLAGS " | grep " $ac_cv_cflags_warn_all " 2>&1 >/dev/null
7943 then { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS does contain \$ac_cv_cflags_warn_all"; } >&5
7944 (: CFLAGS does contain $ac_cv_cflags_warn_all) 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; }
7948 else { { $as_echo "$as_me:${as_lineno-$LINENO}: : CFLAGS=\"\$CFLAGS \$ac_cv_cflags_warn_all\""; } >&5
7949 (: CFLAGS="$CFLAGS $ac_cv_cflags_warn_all") 2>&5
7950 ac_status=$?
7951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7952 test $ac_status = 0; }
7953 CFLAGS="$CFLAGS $ac_cv_cflags_warn_all"
7954 fi
7955 ;;
nicolas6237c462010-10-05 06:11:49 +00007956esac
cristy3ed852e2009-09-05 21:47:34 +00007957
cristy568c2d42012-07-27 01:41:20 +00007958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler vendor" >&5
7959$as_echo_n "checking for C compiler vendor... " >&6; }
7960if ${ax_cv_c_compiler_vendor+:} false; then :
7961 $as_echo_n "(cached) " >&6
7962else
7963 # note: don't check for gcc first since some other compilers define __GNUC__
7964 vendors="intel: __ICC,__ECC,__INTEL_COMPILER
7965 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__
7966 pathscale: __PATHCC__,__PATHSCALE__
7967 clang: __clang__
7968 gnu: __GNUC__
7969 sun: __SUNPRO_C,__SUNPRO_CC
7970 hp: __HP_cc,__HP_aCC
7971 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER
7972 borland: __BORLANDC__,__TURBOC__
7973 comeau: __COMO__
7974 cray: _CRAYC
7975 kai: __KCC
7976 lcc: __LCC__
7977 sgi: __sgi,sgi
7978 microsoft: _MSC_VER
7979 metrowerks: __MWERKS__
7980 watcom: __WATCOMC__
7981 portland: __PGI
7982 unknown: UNKNOWN"
7983 for ventest in $vendors; do
7984 case $ventest in
7985 *:) vendor=$ventest; continue ;;
7986 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;;
7987 esac
7988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7989/* end confdefs.h. */
7990
7991int
7992main ()
7993{
7994
7995 #if !($vencpp)
7996 thisisanerror;
7997 #endif
7998
7999 ;
8000 return 0;
8001}
8002_ACEOF
8003if ac_fn_c_try_compile "$LINENO"; then :
8004 break
8005fi
8006rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 done
8008 ax_cv_c_compiler_vendor=`echo $vendor | cut -d: -f1`
8009
8010fi
8011{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_vendor" >&5
8012$as_echo "$ax_cv_c_compiler_vendor" >&6; }
8013
cristya0b81c32010-01-22 02:54:33 +00008014
8015{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8016$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8017set x ${MAKE-make}
8018ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
cristyda16f162011-02-19 23:52:17 +00008019if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
cristya0b81c32010-01-22 02:54:33 +00008020 $as_echo_n "(cached) " >&6
8021else
8022 cat >conftest.make <<\_ACEOF
8023SHELL = /bin/sh
8024all:
8025 @echo '@@@%%%=$(MAKE)=@@@%%%'
8026_ACEOF
cristy98dddb52010-11-04 00:30:15 +00008027# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristya0b81c32010-01-22 02:54:33 +00008028case `${MAKE-make} -f conftest.make 2>/dev/null` in
8029 *@@@%%%=?*=@@@%%%*)
8030 eval ac_cv_prog_make_${ac_make}_set=yes;;
8031 *)
8032 eval ac_cv_prog_make_${ac_make}_set=no;;
8033esac
8034rm -f conftest.make
8035fi
8036if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8038$as_echo "yes" >&6; }
8039 SET_MAKE=
8040else
8041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8042$as_echo "no" >&6; }
8043 SET_MAKE="MAKE=${MAKE-make}"
8044fi
8045
cristy8b350f62009-11-15 23:12:43 +00008046{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
cristy3ed852e2009-09-05 21:47:34 +00008047$as_echo_n "checking whether ln -s works... " >&6; }
8048LN_S=$as_ln_s
8049if test "$LN_S" = "ln -s"; then
cristy8b350f62009-11-15 23:12:43 +00008050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +00008051$as_echo "yes" >&6; }
8052else
cristy8b350f62009-11-15 23:12:43 +00008053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
cristy3ed852e2009-09-05 21:47:34 +00008054$as_echo "no, using $LN_S" >&6; }
8055fi
8056
cristybc556452012-08-17 19:44:03 +00008057for ac_prog in gawk mawk nawk awk
8058do
8059 # Extract the first word of "$ac_prog", so it can be a program name with args.
8060set dummy $ac_prog; ac_word=$2
8061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8062$as_echo_n "checking for $ac_word... " >&6; }
8063if ${ac_cv_prog_AWK+:} false; then :
8064 $as_echo_n "(cached) " >&6
8065else
8066 if test -n "$AWK"; then
8067 ac_cv_prog_AWK="$AWK" # Let the user override the test.
8068else
8069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8070for as_dir in $PATH
8071do
8072 IFS=$as_save_IFS
8073 test -z "$as_dir" && as_dir=.
8074 for ac_exec_ext in '' $ac_executable_extensions; do
8075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8076 ac_cv_prog_AWK="$ac_prog"
8077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8078 break 2
8079 fi
8080done
8081 done
8082IFS=$as_save_IFS
8083
8084fi
8085fi
8086AWK=$ac_cv_prog_AWK
8087if test -n "$AWK"; then
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
8089$as_echo "$AWK" >&6; }
8090else
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8092$as_echo "no" >&6; }
8093fi
8094
8095
8096 test -n "$AWK" && break
8097done
8098
cristy73bd4a52010-10-05 11:24:23 +00008099{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if malloc debugging is wanted" >&5
8100$as_echo_n "checking if malloc debugging is wanted... " >&6; }
8101
8102# Check whether --with-dmalloc was given.
8103if test "${with_dmalloc+set}" = set; then :
8104 withval=$with_dmalloc; if test "$withval" = yes; then
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8106$as_echo "yes" >&6; }
8107
8108$as_echo "#define WITH_DMALLOC 1" >>confdefs.h
8109
8110 LIBS="$LIBS -ldmalloc"
8111 LDFLAGS="$LDFLAGS -g"
8112else
8113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8114$as_echo "no" >&6; }
8115fi
8116else
8117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8118$as_echo "no" >&6; }
8119fi
8120
8121
8122
8123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
8124$as_echo_n "checking for __attribute__... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008125if ${ax_cv___attribute__+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008126 $as_echo_n "(cached) " >&6
8127else
8128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8129/* end confdefs.h. */
8130#include <stdlib.h>
cristy73380532012-02-18 20:26:28 +00008131 static void foo(void) __attribute__ ((__unused__));
cristy73bd4a52010-10-05 11:24:23 +00008132 static void
8133 foo(void) {
8134 exit(1);
8135 }
8136
8137int
8138main ()
8139{
8140
8141 ;
8142 return 0;
8143}
8144_ACEOF
8145if ac_fn_c_try_compile "$LINENO"; then :
8146 ax_cv___attribute__=yes
8147else
8148 ax_cv___attribute__=no
8149
8150fi
8151rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8152
8153fi
8154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv___attribute__" >&5
8155$as_echo "$ax_cv___attribute__" >&6; }
8156 if test "$ax_cv___attribute__" = "yes"; then
8157
8158$as_echo "#define HAVE___ATTRIBUTE__ 1" >>confdefs.h
8159
8160 fi
8161
8162
8163
cristy37110d62012-03-01 18:38:20 +00008164
8165
8166# Check whether --with-gcc-arch was given.
8167if test "${with_gcc_arch+set}" = set; then :
8168 withval=$with_gcc_arch; ax_gcc_arch=$withval
8169else
cristya32d1812012-03-02 19:24:21 +00008170 ax_gcc_arch=no
cristy37110d62012-03-01 18:38:20 +00008171fi
8172
8173
8174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8175$as_echo_n "checking for gcc architecture flag... " >&6; }
8176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
8177$as_echo "" >&6; }
8178if ${ax_cv_gcc_archflag+:} false; then :
8179 $as_echo_n "(cached) " >&6
8180else
8181
8182ax_cv_gcc_archflag="unknown"
8183
8184if test "$GCC" = yes; then
8185
8186if test "x$ax_gcc_arch" = xyes; then
8187ax_gcc_arch=""
8188if test "$cross_compiling" = no; then
8189case $host_cpu in
8190 i[3456]86*|x86_64*) # use cpuid codes
8191
8192ac_ext=c
8193ac_cpp='$CPP $CPPFLAGS'
8194ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8195ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8196ac_compiler_gnu=$ac_cv_c_compiler_gnu
8197
8198{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0 output" >&5
8199$as_echo_n "checking for x86 cpuid 0 output... " >&6; }
8200if ${ax_cv_gcc_x86_cpuid_0+:} false; then :
8201 $as_echo_n "(cached) " >&6
8202else
8203 if test "$cross_compiling" = yes; then :
8204 ax_cv_gcc_x86_cpuid_0=unknown
8205else
8206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8207/* end confdefs.h. */
8208#include <stdio.h>
8209int
8210main ()
8211{
8212
8213 int op = 0, eax, ebx, ecx, edx;
8214 FILE *f;
8215 __asm__("cpuid"
8216 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8217 : "a" (op));
8218 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8219 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8220 fclose(f);
8221 return 0;
8222
8223 ;
8224 return 0;
8225}
8226_ACEOF
8227if ac_fn_c_try_run "$LINENO"; then :
8228 ax_cv_gcc_x86_cpuid_0=`cat conftest_cpuid`; rm -f conftest_cpuid
8229else
8230 ax_cv_gcc_x86_cpuid_0=unknown; rm -f conftest_cpuid
8231fi
8232rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8233 conftest.$ac_objext conftest.beam conftest.$ac_ext
8234fi
8235
8236fi
8237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0" >&5
8238$as_echo "$ax_cv_gcc_x86_cpuid_0" >&6; }
8239ac_ext=c
8240ac_cpp='$CPP $CPPFLAGS'
8241ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8242ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8243ac_compiler_gnu=$ac_cv_c_compiler_gnu
8244
8245
8246
8247ac_ext=c
8248ac_cpp='$CPP $CPPFLAGS'
8249ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8250ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8251ac_compiler_gnu=$ac_cv_c_compiler_gnu
8252
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 1 output" >&5
8254$as_echo_n "checking for x86 cpuid 1 output... " >&6; }
8255if ${ax_cv_gcc_x86_cpuid_1+:} false; then :
8256 $as_echo_n "(cached) " >&6
8257else
8258 if test "$cross_compiling" = yes; then :
8259 ax_cv_gcc_x86_cpuid_1=unknown
8260else
8261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8262/* end confdefs.h. */
8263#include <stdio.h>
8264int
8265main ()
8266{
8267
8268 int op = 1, eax, ebx, ecx, edx;
8269 FILE *f;
8270 __asm__("cpuid"
8271 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8272 : "a" (op));
8273 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8274 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8275 fclose(f);
8276 return 0;
8277
8278 ;
8279 return 0;
8280}
8281_ACEOF
8282if ac_fn_c_try_run "$LINENO"; then :
8283 ax_cv_gcc_x86_cpuid_1=`cat conftest_cpuid`; rm -f conftest_cpuid
8284else
8285 ax_cv_gcc_x86_cpuid_1=unknown; rm -f conftest_cpuid
8286fi
8287rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8288 conftest.$ac_objext conftest.beam conftest.$ac_ext
8289fi
8290
8291fi
8292{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_1" >&5
8293$as_echo "$ax_cv_gcc_x86_cpuid_1" >&6; }
8294ac_ext=c
8295ac_cpp='$CPP $CPPFLAGS'
8296ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8297ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8298ac_compiler_gnu=$ac_cv_c_compiler_gnu
8299
8300
8301 case $ax_cv_gcc_x86_cpuid_0 in
8302 *:756e6547:*:*) # Intel
8303 case $ax_cv_gcc_x86_cpuid_1 in
8304 *5[48]?:*:*:*) ax_gcc_arch="pentium-mmx pentium" ;;
8305 *5??:*:*:*) ax_gcc_arch=pentium ;;
8306 *0?6[3456]?:*:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8307 *0?6a?:*[01]:*:*) ax_gcc_arch="pentium2 pentiumpro" ;;
8308 *0?6a?:*[234]:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8309 *0?6[9de]?:*:*:*) ax_gcc_arch="pentium-m pentium3 pentiumpro" ;;
8310 *0?6[78b]?:*:*:*) ax_gcc_arch="pentium3 pentiumpro" ;;
8311 *0?6f?:*:*:*|*1?66?:*:*:*) ax_gcc_arch="core2 pentium-m pentium3 pentiumpro" ;;
8312 *1?6[7d]?:*:*:*) ax_gcc_arch="penryn core2 pentium-m pentium3 pentiumpro" ;;
8313 *1?6[aef]?:*:*:*|*2?6[5cef]?:*:*:*) ax_gcc_arch="corei7 core2 pentium-m pentium3 pentiumpro" ;;
8314 *1?6c?:*:*:*|*[23]?66?:*:*:*) ax_gcc_arch="atom core2 pentium-m pentium3 pentiumpro" ;;
8315 *2?6[ad]?:*:*:*) ax_gcc_arch="corei7-avx corei7 core2 pentium-m pentium3 pentiumpro" ;;
8316 *0?6??:*:*:*) ax_gcc_arch=pentiumpro ;;
8317 *6??:*:*:*) ax_gcc_arch="core2 pentiumpro" ;;
8318 ?000?f3[347]:*:*:*|?000?f41347:*:*:*|?000?f6?:*:*:*)
8319 case $host_cpu in
8320 x86_64*) ax_gcc_arch="nocona pentium4 pentiumpro" ;;
8321 *) ax_gcc_arch="prescott pentium4 pentiumpro" ;;
8322 esac ;;
8323 ?000?f??:*:*:*) ax_gcc_arch="pentium4 pentiumpro";;
8324 esac ;;
8325 *:68747541:*:*) # AMD
8326 case $ax_cv_gcc_x86_cpuid_1 in
8327 *5[67]?:*:*:*) ax_gcc_arch=k6 ;;
8328 *5[8d]?:*:*:*) ax_gcc_arch="k6-2 k6" ;;
8329 *5[9]?:*:*:*) ax_gcc_arch="k6-3 k6" ;;
8330 *60?:*:*:*) ax_gcc_arch=k7 ;;
8331 *6[12]?:*:*:*) ax_gcc_arch="athlon k7" ;;
8332 *6[34]?:*:*:*) ax_gcc_arch="athlon-tbird k7" ;;
8333 *67?:*:*:*) ax_gcc_arch="athlon-4 athlon k7" ;;
8334 *6[68a]?:*:*:*)
8335
8336ac_ext=c
8337ac_cpp='$CPP $CPPFLAGS'
8338ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8339ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8340ac_compiler_gnu=$ac_cv_c_compiler_gnu
8341
8342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for x86 cpuid 0x80000006 output" >&5
8343$as_echo_n "checking for x86 cpuid 0x80000006 output... " >&6; }
8344if ${ax_cv_gcc_x86_cpuid_0x80000006+:} false; then :
8345 $as_echo_n "(cached) " >&6
8346else
8347 if test "$cross_compiling" = yes; then :
8348 ax_cv_gcc_x86_cpuid_0x80000006=unknown
8349else
8350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8351/* end confdefs.h. */
8352#include <stdio.h>
8353int
8354main ()
8355{
8356
8357 int op = 0x80000006, eax, ebx, ecx, edx;
8358 FILE *f;
8359 __asm__("cpuid"
8360 : "=a" (eax), "=b" (ebx), "=c" (ecx), "=d" (edx)
8361 : "a" (op));
8362 f = fopen("conftest_cpuid", "w"); if (!f) return 1;
8363 fprintf(f, "%x:%x:%x:%x\n", eax, ebx, ecx, edx);
8364 fclose(f);
8365 return 0;
8366
8367 ;
8368 return 0;
8369}
8370_ACEOF
8371if ac_fn_c_try_run "$LINENO"; then :
8372 ax_cv_gcc_x86_cpuid_0x80000006=`cat conftest_cpuid`; rm -f conftest_cpuid
8373else
8374 ax_cv_gcc_x86_cpuid_0x80000006=unknown; rm -f conftest_cpuid
8375fi
8376rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8377 conftest.$ac_objext conftest.beam conftest.$ac_ext
8378fi
8379
8380fi
8381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_x86_cpuid_0x80000006" >&5
8382$as_echo "$ax_cv_gcc_x86_cpuid_0x80000006" >&6; }
8383ac_ext=c
8384ac_cpp='$CPP $CPPFLAGS'
8385ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8386ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8387ac_compiler_gnu=$ac_cv_c_compiler_gnu
8388
8389 # L2 cache size
8390 case $ax_cv_gcc_x86_cpuid_0x80000006 in
8391 *:*:*[1-9a-f]??????:*) # (L2 = ecx >> 16) >= 256
8392 ax_gcc_arch="athlon-xp athlon-4 athlon k7" ;;
8393 *) ax_gcc_arch="athlon-4 athlon k7" ;;
8394 esac ;;
8395 ?00??f[4cef8b]?:*:*:*) ax_gcc_arch="athlon64 k8" ;;
8396 ?00??f5?:*:*:*) ax_gcc_arch="opteron k8" ;;
8397 ?00??f7?:*:*:*) ax_gcc_arch="athlon-fx opteron k8" ;;
8398 ?00??f??:*:*:*) ax_gcc_arch="k8" ;;
8399 ?05??f??:*:*:*) ax_gcc_arch="btver1 amdfam10 k8" ;;
8400 ?06??f??:*:*:*) ax_gcc_arch="bdver1 amdfam10 k8" ;;
8401 *f??:*:*:*) ax_gcc_arch="amdfam10 k8" ;;
8402 esac ;;
8403 *:746e6543:*:*) # IDT
8404 case $ax_cv_gcc_x86_cpuid_1 in
8405 *54?:*:*:*) ax_gcc_arch=winchip-c6 ;;
8406 *58?:*:*:*) ax_gcc_arch=winchip2 ;;
8407 *6[78]?:*:*:*) ax_gcc_arch=c3 ;;
8408 *69?:*:*:*) ax_gcc_arch="c3-2 c3" ;;
8409 esac ;;
8410 esac
8411 if test x"$ax_gcc_arch" = x; then # fallback
8412 case $host_cpu in
8413 i586*) ax_gcc_arch=pentium ;;
8414 i686*) ax_gcc_arch=pentiumpro ;;
8415 esac
8416 fi
8417 ;;
8418
8419 sparc*)
8420 # Extract the first word of "prtdiag", so it can be a program name with args.
8421set dummy prtdiag; ac_word=$2
8422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8423$as_echo_n "checking for $ac_word... " >&6; }
8424if ${ac_cv_path_PRTDIAG+:} false; then :
8425 $as_echo_n "(cached) " >&6
8426else
8427 case $PRTDIAG in
8428 [\\/]* | ?:[\\/]*)
8429 ac_cv_path_PRTDIAG="$PRTDIAG" # Let the user override the test with a path.
8430 ;;
8431 *)
8432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8433as_dummy="$PATH:/usr/platform/`uname -i`/sbin/:/usr/platform/`uname -m`/sbin/"
8434for as_dir in $as_dummy
8435do
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy37110d62012-03-01 18:38:20 +00008440 ac_cv_path_PRTDIAG="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8443 fi
8444done
8445 done
8446IFS=$as_save_IFS
8447
8448 test -z "$ac_cv_path_PRTDIAG" && ac_cv_path_PRTDIAG="prtdiag"
8449 ;;
8450esac
8451fi
8452PRTDIAG=$ac_cv_path_PRTDIAG
8453if test -n "$PRTDIAG"; then
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRTDIAG" >&5
8455$as_echo "$PRTDIAG" >&6; }
8456else
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8458$as_echo "no" >&6; }
8459fi
8460
8461
8462 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`
8463 cputype=`echo "$cputype" | tr -d ' -' |tr $as_cr_LETTERS $as_cr_letters`
8464 case $cputype in
8465 *ultrasparciv*) ax_gcc_arch="ultrasparc4 ultrasparc3 ultrasparc v9" ;;
8466 *ultrasparciii*) ax_gcc_arch="ultrasparc3 ultrasparc v9" ;;
8467 *ultrasparc*) ax_gcc_arch="ultrasparc v9" ;;
8468 *supersparc*|*tms390z5[05]*) ax_gcc_arch="supersparc v8" ;;
8469 *hypersparc*|*rt62[056]*) ax_gcc_arch="hypersparc v8" ;;
8470 *cypress*) ax_gcc_arch=cypress ;;
8471 esac ;;
8472
8473 alphaev5) ax_gcc_arch=ev5 ;;
8474 alphaev56) ax_gcc_arch=ev56 ;;
8475 alphapca56) ax_gcc_arch="pca56 ev56" ;;
8476 alphapca57) ax_gcc_arch="pca57 pca56 ev56" ;;
8477 alphaev6) ax_gcc_arch=ev6 ;;
8478 alphaev67) ax_gcc_arch=ev67 ;;
8479 alphaev68) ax_gcc_arch="ev68 ev67" ;;
8480 alphaev69) ax_gcc_arch="ev69 ev68 ev67" ;;
8481 alphaev7) ax_gcc_arch="ev7 ev69 ev68 ev67" ;;
8482 alphaev79) ax_gcc_arch="ev79 ev7 ev69 ev68 ev67" ;;
8483
8484 powerpc*)
8485 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`
8486 cputype=`echo $cputype | sed -e 's/ppc//g;s/ *//g'`
8487 case $cputype in
8488 *750*) ax_gcc_arch="750 G3" ;;
8489 *740[0-9]*) ax_gcc_arch="$cputype 7400 G4" ;;
8490 *74[4-5][0-9]*) ax_gcc_arch="$cputype 7450 G4" ;;
8491 *74[0-9][0-9]*) ax_gcc_arch="$cputype G4" ;;
8492 *970*) ax_gcc_arch="970 G5 power4";;
8493 *POWER4*|*power4*|*gq*) ax_gcc_arch="power4 970";;
8494 *POWER5*|*power5*|*gr*|*gs*) ax_gcc_arch="power5 power4 970";;
8495 603ev|8240) ax_gcc_arch="$cputype 603e 603";;
8496 *) ax_gcc_arch=$cputype ;;
8497 esac
8498 ax_gcc_arch="$ax_gcc_arch powerpc"
8499 ;;
8500esac
8501fi # not cross-compiling
8502fi # guess arch
8503
8504if test "x$ax_gcc_arch" != x -a "x$ax_gcc_arch" != xno; then
8505for arch in $ax_gcc_arch; do
cristya32d1812012-03-02 19:24:21 +00008506 if test "xno" = xyes; then # if we require portable code
cristy37110d62012-03-01 18:38:20 +00008507 flags="-mtune=$arch"
8508 # -mcpu=$arch and m$arch generate nonportable code on every arch except
8509 # x86. And some other arches (e.g. Alpha) don't accept -mtune. Grrr.
8510 case $host_cpu in i*86|x86_64*) flags="$flags -mcpu=$arch -m$arch";; esac
8511 else
8512 flags="-march=$arch -mcpu=$arch -m$arch"
8513 fi
8514 for flag in $flags; do
8515 as_CACHEVAR=`$as_echo "ax_cv_check_cflags__$flag" | $as_tr_sh`
8516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C compiler accepts $flag" >&5
8517$as_echo_n "checking whether C compiler accepts $flag... " >&6; }
8518if eval \${$as_CACHEVAR+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520else
8521
8522 ax_check_save_flags=$CFLAGS
8523 CFLAGS="$CFLAGS $flag"
8524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8525/* end confdefs.h. */
8526
8527int
8528main ()
8529{
8530
8531 ;
8532 return 0;
8533}
8534_ACEOF
8535if ac_fn_c_try_compile "$LINENO"; then :
8536 eval "$as_CACHEVAR=yes"
8537else
8538 eval "$as_CACHEVAR=no"
8539fi
8540rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8541 CFLAGS=$ax_check_save_flags
8542fi
8543eval ac_res=\$$as_CACHEVAR
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8545$as_echo "$ac_res" >&6; }
8546if test x"`eval 'as_val=${'$as_CACHEVAR'};$as_echo "$as_val"'`" = xyes; then :
8547 ax_cv_gcc_archflag=$flag; break
8548else
8549 :
8550fi
8551
8552 done
8553 test "x$ax_cv_gcc_archflag" = xunknown || break
8554done
8555fi
8556
8557fi # $GCC=yes
8558
8559fi
8560
8561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc architecture flag" >&5
8562$as_echo_n "checking for gcc architecture flag... " >&6; }
8563{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gcc_archflag" >&5
8564$as_echo "$ax_cv_gcc_archflag" >&6; }
8565if test "x$ax_cv_gcc_archflag" = xunknown; then
8566 :
8567else
8568 CFLAGS="$CFLAGS $ax_cv_gcc_archflag"
8569fi
8570
8571
8572
cristy73bd4a52010-10-05 11:24:23 +00008573if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
8574 if test -n "$ac_tool_prefix"; then
8575 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
8576set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
8577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8578$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008579if ${ac_cv_path_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008580 $as_echo_n "(cached) " >&6
8581else
8582 case $PKG_CONFIG in
8583 [\\/]* | ?:[\\/]*)
8584 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
8585 ;;
8586 *)
8587 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8588for as_dir in $PATH
8589do
8590 IFS=$as_save_IFS
8591 test -z "$as_dir" && as_dir=.
8592 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008593 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008594 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8595 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8596 break 2
8597 fi
8598done
8599 done
8600IFS=$as_save_IFS
8601
8602 ;;
8603esac
8604fi
8605PKG_CONFIG=$ac_cv_path_PKG_CONFIG
8606if test -n "$PKG_CONFIG"; then
8607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
8608$as_echo "$PKG_CONFIG" >&6; }
8609else
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8611$as_echo "no" >&6; }
8612fi
8613
8614
8615fi
8616if test -z "$ac_cv_path_PKG_CONFIG"; then
8617 ac_pt_PKG_CONFIG=$PKG_CONFIG
8618 # Extract the first word of "pkg-config", so it can be a program name with args.
8619set dummy pkg-config; ac_word=$2
8620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8621$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008622if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00008623 $as_echo_n "(cached) " >&6
8624else
8625 case $ac_pt_PKG_CONFIG in
8626 [\\/]* | ?:[\\/]*)
8627 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
8628 ;;
8629 *)
8630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8631for as_dir in $PATH
8632do
8633 IFS=$as_save_IFS
8634 test -z "$as_dir" && as_dir=.
8635 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00008636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00008637 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
8638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8639 break 2
8640 fi
8641done
8642 done
8643IFS=$as_save_IFS
8644
8645 ;;
8646esac
8647fi
8648ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
8649if test -n "$ac_pt_PKG_CONFIG"; then
8650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
8651$as_echo "$ac_pt_PKG_CONFIG" >&6; }
8652else
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8654$as_echo "no" >&6; }
8655fi
8656
8657 if test "x$ac_pt_PKG_CONFIG" = x; then
8658 PKG_CONFIG=""
8659 else
8660 case $cross_compiling:$ac_tool_warned in
8661yes:)
8662{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8663$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8664ac_tool_warned=yes ;;
8665esac
8666 PKG_CONFIG=$ac_pt_PKG_CONFIG
8667 fi
8668else
8669 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
8670fi
8671
8672fi
8673if test -n "$PKG_CONFIG"; then
8674 _pkg_min_version=0.9.0
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
8676$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
8677 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
8678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8679$as_echo "yes" >&6; }
8680 else
8681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8682$as_echo "no" >&6; }
8683 PKG_CONFIG=""
8684 fi
8685
8686fi
cristy3ed852e2009-09-05 21:47:34 +00008687
cristy9b86f202012-11-28 21:55:35 +00008688# Check for linker script support
8689
8690 # Check whether --enable-ld-version-script was given.
8691if test "${enable_ld_version_script+set}" = set; then :
8692 enableval=$enable_ld_version_script; have_ld_version_script=$enableval
8693fi
8694
8695 if test -z "$have_ld_version_script"; then
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LD -Wl,--version-script works" >&5
8697$as_echo_n "checking if LD -Wl,--version-script works... " >&6; }
8698 save_LDFLAGS="$LDFLAGS"
8699 LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
8700 cat > conftest.map <<EOF
8701foo
8702EOF
8703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8704/* end confdefs.h. */
8705
8706int
8707main ()
8708{
8709
8710 ;
8711 return 0;
8712}
8713_ACEOF
8714if ac_fn_c_try_link "$LINENO"; then :
8715 accepts_syntax_errors=yes
8716else
8717 accepts_syntax_errors=no
8718fi
8719rm -f core conftest.err conftest.$ac_objext \
8720 conftest$ac_exeext conftest.$ac_ext
8721 if test "$accepts_syntax_errors" = no; then
8722 cat > conftest.map <<EOF
8723VERS_1 {
8724 global: sym;
8725};
8726
8727VERS_2 {
8728 global: sym;
8729} VERS_1;
8730EOF
8731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8732/* end confdefs.h. */
8733
8734int
8735main ()
8736{
8737
8738 ;
8739 return 0;
8740}
8741_ACEOF
8742if ac_fn_c_try_link "$LINENO"; then :
8743 have_ld_version_script=yes
8744else
8745 have_ld_version_script=no
8746fi
8747rm -f core conftest.err conftest.$ac_objext \
8748 conftest$ac_exeext conftest.$ac_ext
8749 else
8750 have_ld_version_script=no
8751 fi
8752 rm -f conftest.map
8753 LDFLAGS="$save_LDFLAGS"
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_ld_version_script" >&5
8755$as_echo "$have_ld_version_script" >&6; }
8756 fi
8757 if test "$have_ld_version_script" = "yes"; then
8758 HAVE_LD_VERSION_SCRIPT_TRUE=
8759 HAVE_LD_VERSION_SCRIPT_FALSE='#'
8760else
8761 HAVE_LD_VERSION_SCRIPT_TRUE='#'
8762 HAVE_LD_VERSION_SCRIPT_FALSE=
8763fi
8764
8765
8766
cristy3ed852e2009-09-05 21:47:34 +00008767#
cristy3ed852e2009-09-05 21:47:34 +00008768# Enable run-time checking.
8769#
8770# Check whether --enable-bounds-checking was given.
cristy8b350f62009-11-15 23:12:43 +00008771if test "${enable_bounds_checking+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008772 enableval=$enable_bounds_checking; enable_bounds_checking=$enableval
8773else
8774 enable_bounds_checking='no'
8775fi
8776
8777
8778if test "$enable_bounds_checking" = yes; then
8779
cristy8b350f62009-11-15 23:12:43 +00008780$as_echo "#define _FORTIFY_SOURCE 2" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008781
8782fi
8783
8784#
8785# Tests for Windows
8786#
8787
8788
8789
8790GDI32_LIBS=''
cristy3ed852e2009-09-05 21:47:34 +00008791native_win32_build='no'
8792cygwin_build='no'
8793case "${host_os}" in
8794 cygwin* )
cristy3ed852e2009-09-05 21:47:34 +00008795 cygwin_build='yes'
8796 GDI32_LIBS='-lgdi32'
8797 ;;
8798 mingw* )
cristy3ed852e2009-09-05 21:47:34 +00008799 native_win32_build='yes'
8800 GDI32_LIBS='-lgdi32'
8801 ;;
8802esac
8803if test "${GDI32_LIBS}x" != 'x'; then
8804
cristy8b350f62009-11-15 23:12:43 +00008805$as_echo "#define WINGDI32_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +00008806
8807fi
8808
cristy73bd4a52010-10-05 11:24:23 +00008809 if test "${GDI32_LIBS}x" != 'x' ; then
8810 WINGDI32_DELEGATE_TRUE=
8811 WINGDI32_DELEGATE_FALSE='#'
8812else
8813 WINGDI32_DELEGATE_TRUE='#'
8814 WINGDI32_DELEGATE_FALSE=
8815fi
8816
8817 if test "${native_win32_build}" = 'yes' ; then
8818 WIN32_NATIVE_BUILD_TRUE=
8819 WIN32_NATIVE_BUILD_FALSE='#'
8820else
8821 WIN32_NATIVE_BUILD_TRUE='#'
8822 WIN32_NATIVE_BUILD_FALSE=
8823fi
8824
8825 if test "${cygwin_build}" = 'yes' ; then
8826 CYGWIN_BUILD_TRUE=
8827 CYGWIN_BUILD_FALSE='#'
8828else
8829 CYGWIN_BUILD_TRUE='#'
8830 CYGWIN_BUILD_FALSE=
8831fi
8832
8833 if test "x${CC}" = 'xcl.exe' ; then
8834 USING_CL_TRUE=
8835 USING_CL_FALSE='#'
8836else
8837 USING_CL_TRUE='#'
8838 USING_CL_FALSE=
8839fi
8840
cristy3ed852e2009-09-05 21:47:34 +00008841
8842WinPathScript="${srcdirfull}/winpath.sh"
8843
8844
8845#
8846# Compiler flags tweaks
8847#
8848if test "${GCC}" != "yes"; then
8849 case "${host}" in
8850 *-*-hpux* )
8851 # aCC: HP ANSI C++ B3910B A.03.34
8852 CFLAGS="${CFLAGS} -Wp,-H30000"
8853 if test -n "${CXXFLAGS}"; then
8854 CXXFLAGS='-AA'
8855 else
8856 CXXFLAGS="${CXXFLAGS} -AA"
8857 fi
8858 ;;
8859 *-dec-osf5.* )
8860 # Compaq alphaev68-dec-osf5.1 compiler
8861 if test -n "${CXXFLAGS}"; then
8862 CXXFLAGS='-std strict_ansi -noimplicit_include'
8863 else
8864 CXXFLAGS="${CXXFLAGS} -std strict_ansi -noimplicit_include"
8865 fi
8866 esac
8867fi
8868
8869# Check for lazy-loading.
cristy8b350f62009-11-15 23:12:43 +00008870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for linker lazyload option" >&5
cristy3ed852e2009-09-05 21:47:34 +00008871$as_echo_n "checking for linker lazyload option... " >&6; }
cristyda16f162011-02-19 23:52:17 +00008872if ${im_cv_ld_lazyload+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00008873 $as_echo_n "(cached) " >&6
8874else
8875
8876im_cv_ld_lazyload='none'
8877case "${host}" in
8878 *-*-solaris2.8 | *-*-solaris2.9 | *-*-solaris2.1? )
8879 if test "$lt_cv_prog_gnu_ld" != 'yes' ; then
8880 im_cv_ld_lazyload='-Wl,-zlazyload'
8881 fi
8882 ;;
8883esac
8884
8885fi
cristy8b350f62009-11-15 23:12:43 +00008886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_ld_lazyload" >&5
cristy3ed852e2009-09-05 21:47:34 +00008887$as_echo "$im_cv_ld_lazyload" >&6; }
8888if test "${im_cv_ld_lazyload}" != 'none' ; then
8889 if test -z "${LDFLAGS}" ; then
8890 LDFLAGS="${im_cv_ld_lazyload}"
8891 else
8892 LDFLAGS="${im_cv_ld_lazyload} ${LDFLAGS}"
8893 fi
8894fi
8895
8896case "$host" in
8897*darwin* | *-macos10*)
cristy3ed852e2009-09-05 21:47:34 +00008898 # Check whether --enable-osx-universal-binary was given.
cristy8b350f62009-11-15 23:12:43 +00008899if test "${enable_osx_universal_binary+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008900 enableval=$enable_osx_universal_binary; build_osxuniversal="${enableval}"
8901else
8902 build_osxuniversal=no
8903fi
8904
8905
8906 if test "${build_osxuniversal}" != no ; then
8907 if test "$enable_dependency_tracking" != no ; then
cristy98dddb52010-11-04 00:30:15 +00008908 as_fn_error $? "--enable-osx-universal-binary requires --disable-dependency-tracking.
cristy3ed852e2009-09-05 21:47:34 +00008909Please re-run configure with these options:
8910 --disable-dependency-tracking --enable-osx-universal-binary
cristy8b350f62009-11-15 23:12:43 +00008911 " "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +00008912 fi
8913 CFLAGS="$CFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8914 CXXFLAGS="$CXXFLAGS -isysroot /Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8915 LDFLAGS="$LDFLAGS -Wl,-syslibroot,/Developer/SDKs/MacOSX10.5.sdk -arch ppc -arch i386"
8916 fi
8917 ;;
8918esac
8919
cristy0151ae12011-10-28 16:32:29 +00008920#
8921# ARCH specific include directory
8922#
8923
cristy670aa3c2011-11-03 00:54:00 +00008924# Check whether --with-includearch-dir was given.
8925if test "${with_includearch_dir+set}" = set; then :
8926 withval=$with_includearch_dir; includearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008927else
cristy670aa3c2011-11-03 00:54:00 +00008928 includearch_dir=$INCLUDE_DIR
cristy0151ae12011-10-28 16:32:29 +00008929fi
8930
8931
cristy670aa3c2011-11-03 00:54:00 +00008932eval "eval INCLUDEARCH_DIR=$includearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008933
cristy0151ae12011-10-28 16:32:29 +00008934
8935#
8936# ARCH specific configuration directory
8937#
8938
cristy670aa3c2011-11-03 00:54:00 +00008939# Check whether --with-sharearch-dir was given.
8940if test "${with_sharearch_dir+set}" = set; then :
8941 withval=$with_sharearch_dir; sharearch_dir=$withval
cristy0151ae12011-10-28 16:32:29 +00008942else
cristy408ebcd2011-11-14 01:36:57 +00008943 sharearch_dir="${LIB_DIR}"
cristy0151ae12011-10-28 16:32:29 +00008944fi
8945
8946
cristy670aa3c2011-11-03 00:54:00 +00008947eval "eval SHAREARCH_DIR=$sharearch_dir"
8948SHAREARCH_DIR="$sharearch_dir"
cristyac9041a2011-10-28 16:52:32 +00008949
cristy0151ae12011-10-28 16:32:29 +00008950
8951#
cristy3ed852e2009-09-05 21:47:34 +00008952# Enable support for threads
8953
8954# Check whether --with-threads was given.
cristy8b350f62009-11-15 23:12:43 +00008955if test "${with_threads+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00008956 withval=$with_threads; with_threads=$withval
8957else
8958 with_threads='yes'
8959fi
8960
8961
8962have_threads=no
8963if test "$with_threads" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +00008964
8965
cristy73bd4a52010-10-05 11:24:23 +00008966ac_ext=c
8967ac_cpp='$CPP $CPPFLAGS'
8968ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8969ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8970ac_compiler_gnu=$ac_cv_c_compiler_gnu
8971
8972ax_pthread_ok=no
8973
8974# We used to check for pthread.h first, but this fails if pthread.h
8975# requires special compiler flags (e.g. on True64 or Sequent).
8976# It gets checked for in the link test anyway.
8977
8978# First of all, check if the user has set any of the PTHREAD_LIBS,
8979# etcetera environment variables, and if threads linking works using
8980# them:
8981if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
8982 save_CFLAGS="$CFLAGS"
8983 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
8984 save_LIBS="$LIBS"
8985 LIBS="$PTHREAD_LIBS $LIBS"
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
8987$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
8988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8989/* end confdefs.h. */
8990
8991/* Override any GCC internal prototype to avoid an error.
8992 Use char because int might match the return type of a GCC
8993 builtin and then its argument prototype would still apply. */
8994#ifdef __cplusplus
8995extern "C"
8996#endif
8997char pthread_join ();
8998int
8999main ()
9000{
9001return pthread_join ();
9002 ;
9003 return 0;
9004}
9005_ACEOF
9006if ac_fn_c_try_link "$LINENO"; then :
9007 ax_pthread_ok=yes
9008fi
9009rm -f core conftest.err conftest.$ac_objext \
9010 conftest$ac_exeext conftest.$ac_ext
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9012$as_echo "$ax_pthread_ok" >&6; }
9013 if test x"$ax_pthread_ok" = xno; then
9014 PTHREAD_LIBS=""
9015 PTHREAD_CFLAGS=""
9016 fi
9017 LIBS="$save_LIBS"
9018 CFLAGS="$save_CFLAGS"
9019fi
9020
9021# We must check for the threads library under a number of different
9022# names; the ordering is very important because some systems
9023# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9024# libraries is broken (non-POSIX).
9025
9026# Create a list of thread flags to try. Items starting with a "-" are
9027# C compiler flags, and other items are library names, except for "none"
9028# which indicates that we try without any flags at all, and "pthread-config"
9029# which is a program returning the flags for the Pth emulation library.
9030
cristy18307f12011-12-30 01:20:16 +00009031ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009032
9033# The ordering *is* (sometimes) important. Some notes on the
9034# individual items follow:
9035
9036# pthreads: AIX (must check this before -lpthread)
9037# none: in case threads are in libc; should be tried before -Kthread and
9038# other compiler flags to prevent continual compiler warnings
9039# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9040# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9041# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9042# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9043# -pthreads: Solaris/gcc
9044# -mthreads: Mingw32/gcc, Lynx/gcc
9045# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9046# doesn't hurt to check since this sometimes defines pthreads too;
9047# also defines -D_REENTRANT)
9048# ... -mt is also the pthreads flag for HP/aCC
9049# pthread: Linux, etcetera
9050# --thread-safe: KAI C++
9051# pthread-config: use pthread-config program (for GNU Pth library)
9052
9053case "${host_cpu}-${host_os}" in
9054 *solaris*)
9055
9056 # On Solaris (at least, for some versions), libc contains stubbed
9057 # (non-functional) versions of the pthreads routines, so link-based
9058 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9059 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9060 # a function called by this macro, so we could check for that, but
9061 # who knows whether they'll stub that too in a future libc.) So,
9062 # we'll just look for -pthreads and -lpthread first:
9063
9064 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9065 ;;
9066
cristya316db12011-10-24 00:49:45 +00009067 *-darwin*)
9068 ax_pthread_flags="-pthread $ax_pthread_flags"
9069 ;;
cristy73bd4a52010-10-05 11:24:23 +00009070esac
9071
9072if test x"$ax_pthread_ok" = xno; then
9073for flag in $ax_pthread_flags; do
9074
9075 case $flag in
9076 none)
9077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9078$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9079 ;;
9080
9081 -*)
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9083$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9084 PTHREAD_CFLAGS="$flag"
9085 ;;
9086
cristya316db12011-10-24 00:49:45 +00009087 pthread-config)
9088 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009089set dummy pthread-config; ac_word=$2
9090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9091$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009092if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009093 $as_echo_n "(cached) " >&6
9094else
9095 if test -n "$ax_pthread_config"; then
9096 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9097else
9098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9099for as_dir in $PATH
9100do
9101 IFS=$as_save_IFS
9102 test -z "$as_dir" && as_dir=.
9103 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009105 ac_cv_prog_ax_pthread_config="yes"
9106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9107 break 2
9108 fi
9109done
9110 done
9111IFS=$as_save_IFS
9112
9113 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9114fi
9115fi
9116ax_pthread_config=$ac_cv_prog_ax_pthread_config
9117if test -n "$ax_pthread_config"; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9119$as_echo "$ax_pthread_config" >&6; }
9120else
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9122$as_echo "no" >&6; }
9123fi
9124
9125
cristya316db12011-10-24 00:49:45 +00009126 if test x"$ax_pthread_config" = xno; then continue; fi
9127 PTHREAD_CFLAGS="`pthread-config --cflags`"
9128 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9129 ;;
cristy73bd4a52010-10-05 11:24:23 +00009130
9131 *)
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9133$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9134 PTHREAD_LIBS="-l$flag"
9135 ;;
9136 esac
9137
9138 save_LIBS="$LIBS"
9139 save_CFLAGS="$CFLAGS"
9140 LIBS="$PTHREAD_LIBS $LIBS"
9141 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9142
9143 # Check for various functions. We must include pthread.h,
9144 # since some functions may be macros. (On the Sequent, we
9145 # need a special flag -Kthread to make this header compile.)
9146 # We check for pthread_join because it is in -lpthread on IRIX
9147 # while pthread_create is in libc. We check for pthread_attr_init
9148 # due to DEC craziness with -lpthreads. We check for
9149 # pthread_cleanup_push because it is one of the few pthread
9150 # functions on Solaris that doesn't have a non-functional libc stub.
9151 # We try pthread_create on general principles.
9152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9153/* end confdefs.h. */
9154#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009155 static void routine(void *a) { a = 0; }
9156 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009157int
9158main ()
9159{
9160pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009161 pthread_create(&th, 0, start_routine, 0);
9162 pthread_join(th, 0);
9163 pthread_attr_init(&attr);
9164 pthread_cleanup_push(routine, 0);
9165 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009166 ;
9167 return 0;
9168}
9169_ACEOF
9170if ac_fn_c_try_link "$LINENO"; then :
9171 ax_pthread_ok=yes
9172fi
9173rm -f core conftest.err conftest.$ac_objext \
9174 conftest$ac_exeext conftest.$ac_ext
9175
9176 LIBS="$save_LIBS"
9177 CFLAGS="$save_CFLAGS"
9178
9179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9180$as_echo "$ax_pthread_ok" >&6; }
9181 if test "x$ax_pthread_ok" = xyes; then
9182 break;
9183 fi
9184
9185 PTHREAD_LIBS=""
9186 PTHREAD_CFLAGS=""
9187done
9188fi
9189
9190# Various other checks:
9191if test "x$ax_pthread_ok" = xyes; then
9192 save_LIBS="$LIBS"
9193 LIBS="$PTHREAD_LIBS $LIBS"
9194 save_CFLAGS="$CFLAGS"
9195 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9196
9197 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009199$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009200 attr_name=unknown
9201 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009203/* end confdefs.h. */
9204#include <pthread.h>
9205int
9206main ()
9207{
cristya316db12011-10-24 00:49:45 +00009208int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009209 ;
9210 return 0;
9211}
9212_ACEOF
9213if ac_fn_c_try_link "$LINENO"; then :
9214 attr_name=$attr; break
9215fi
9216rm -f core conftest.err conftest.$ac_objext \
9217 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009218 done
cristy73bd4a52010-10-05 11:24:23 +00009219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9220$as_echo "$attr_name" >&6; }
9221 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9222
9223cat >>confdefs.h <<_ACEOF
9224#define PTHREAD_CREATE_JOINABLE $attr_name
9225_ACEOF
9226
9227 fi
9228
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9230$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9231 flag=no
9232 case "${host_cpu}-${host_os}" in
9233 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9234 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9235 esac
9236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9237$as_echo "${flag}" >&6; }
9238 if test "x$flag" != xno; then
9239 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9240 fi
9241
cristya316db12011-10-24 00:49:45 +00009242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9243$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9244if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9245 $as_echo_n "(cached) " >&6
9246else
9247
9248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9249/* end confdefs.h. */
9250
9251 #include <pthread.h>
9252int
9253main ()
9254{
9255int i = PTHREAD_PRIO_INHERIT;
9256 ;
9257 return 0;
9258}
9259_ACEOF
9260if ac_fn_c_try_link "$LINENO"; then :
9261 ax_cv_PTHREAD_PRIO_INHERIT=yes
9262else
9263 ax_cv_PTHREAD_PRIO_INHERIT=no
9264fi
9265rm -f core conftest.err conftest.$ac_objext \
9266 conftest$ac_exeext conftest.$ac_ext
9267
9268fi
9269{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9270$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9271 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9272
9273$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9274
9275fi
9276
cristy73bd4a52010-10-05 11:24:23 +00009277 LIBS="$save_LIBS"
9278 CFLAGS="$save_CFLAGS"
9279
9280 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009281 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009282 for ac_prog in xlc_r cc_r
9283do
9284 # Extract the first word of "$ac_prog", so it can be a program name with args.
9285set dummy $ac_prog; ac_word=$2
9286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9287$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009288if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009289 $as_echo_n "(cached) " >&6
9290else
9291 if test -n "$PTHREAD_CC"; then
9292 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9293else
9294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9295for as_dir in $PATH
9296do
9297 IFS=$as_save_IFS
9298 test -z "$as_dir" && as_dir=.
9299 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009300 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009301 ac_cv_prog_PTHREAD_CC="$ac_prog"
9302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9303 break 2
9304 fi
9305done
9306 done
9307IFS=$as_save_IFS
9308
9309fi
9310fi
9311PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9312if test -n "$PTHREAD_CC"; then
9313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9314$as_echo "$PTHREAD_CC" >&6; }
9315else
9316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9317$as_echo "no" >&6; }
9318fi
9319
9320
9321 test -n "$PTHREAD_CC" && break
9322done
9323test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9324
9325 else
9326 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009327 fi
cristy73bd4a52010-10-05 11:24:23 +00009328else
9329 PTHREAD_CC="$CC"
9330fi
9331
9332
9333
9334
9335
9336# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9337if test x"$ax_pthread_ok" = xyes; then
9338
9339$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9340
9341 :
9342else
9343 ax_pthread_ok=no
9344
9345fi
9346ac_ext=c
9347ac_cpp='$CPP $CPPFLAGS'
9348ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9349ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9350ac_compiler_gnu=$ac_cv_c_compiler_gnu
9351
9352
cristy7acf8fb2010-09-23 19:58:53 +00009353 if test "$ax_pthread_ok" = yes; then
cristy3ed852e2009-09-05 21:47:34 +00009354 have_threads=yes
9355 DEF_THREAD="$PTHREAD_CFLAGS"
9356 CFLAGS="$CFLAGS $DEF_THREAD"
9357 CXXFLAGS="$CXXFLAGS $DEF_THREAD"
9358 if test "$CC" != "$PTHREAD_CC"; then
cristy8b350f62009-11-15 23:12:43 +00009359 { $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 +00009360$as_echo "$as_me: WARNING: Replacing compiler $CC with compiler $PTHREAD_CC to support pthreads." >&2;}
9361 CC="$PTHREAD_CC"
9362 fi
cristy55bf91c2010-09-24 00:29:41 +00009363
9364$as_echo "#define THREAD_SUPPORT 1" >>confdefs.h
9365
cristy3ed852e2009-09-05 21:47:34 +00009366 fi
9367fi
9368
9369# Enable support for OpenMP
9370if test "$have_threads" != 'yes'; then
9371 ac_cv_prog_c_openmp=unsupported
9372fi
9373
9374 OPENMP_CFLAGS=
9375 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +00009376if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +00009377 enableval=$enable_openmp;
9378fi
9379
9380 if test "$enable_openmp" != no; then
cristy8b350f62009-11-15 23:12:43 +00009381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to support OpenMP" >&5
cristy3ed852e2009-09-05 21:47:34 +00009382$as_echo_n "checking for $CC option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009383if ${ac_cv_prog_c_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +00009384 $as_echo_n "(cached) " >&6
9385else
cristy8b350f62009-11-15 23:12:43 +00009386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9387/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009388
9389#ifndef _OPENMP
9390 choke me
9391#endif
9392#include <omp.h>
9393int main () { return omp_get_num_threads (); }
9394
9395_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009396if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009397 ac_cv_prog_c_openmp='none needed'
9398else
cristy8b350f62009-11-15 23:12:43 +00009399 ac_cv_prog_c_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +00009400 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
9401 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +00009402 ac_save_CFLAGS=$CFLAGS
9403 CFLAGS="$CFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +00009404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9405/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +00009406
9407#ifndef _OPENMP
9408 choke me
9409#endif
9410#include <omp.h>
9411int main () { return omp_get_num_threads (); }
9412
9413_ACEOF
cristy8b350f62009-11-15 23:12:43 +00009414if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +00009415 ac_cv_prog_c_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +00009416fi
cristy8b350f62009-11-15 23:12:43 +00009417rm -f core conftest.err conftest.$ac_objext \
9418 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009419 CFLAGS=$ac_save_CFLAGS
9420 if test "$ac_cv_prog_c_openmp" != unsupported; then
9421 break
9422 fi
9423 done
9424fi
cristy8b350f62009-11-15 23:12:43 +00009425rm -f core conftest.err conftest.$ac_objext \
9426 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +00009427fi
cristy8b350f62009-11-15 23:12:43 +00009428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_c_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +00009429$as_echo "$ac_cv_prog_c_openmp" >&6; }
9430 case $ac_cv_prog_c_openmp in #(
9431 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +00009432 ;; #(
cristy3ed852e2009-09-05 21:47:34 +00009433 *)
cristy8b350f62009-11-15 23:12:43 +00009434 OPENMP_CFLAGS=$ac_cv_prog_c_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +00009435 esac
9436 fi
9437
9438
9439CFLAGS="$OPENMP_CFLAGS $CFLAGS"
9440MAGICK_PCFLAGS="$MAGICK_PCFLAGS $OPENMP_CFLAGS"
9441
cristy391f1ce2010-09-09 17:23:28 +00009442if test "$enable_openmp" != no; then
9443 if test "$ac_cv_prog_c_openmp" != 'unsupported'; then
9444 MAGICK_FEATURES="OpenMP $MAGICK_FEATURES"
9445 fi
9446fi
cristy3ed852e2009-09-05 21:47:34 +00009447
cristy736173a2009-09-20 21:18:22 +00009448# Enable support for OpenCL
cristy73bd4a52010-10-05 11:24:23 +00009449
9450
cristy73bd4a52010-10-05 11:24:23 +00009451ac_ext=c
9452ac_cpp='$CPP $CPPFLAGS'
9453ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9454ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9455ac_compiler_gnu=$ac_cv_c_compiler_gnu
9456
9457ax_pthread_ok=no
9458
9459# We used to check for pthread.h first, but this fails if pthread.h
9460# requires special compiler flags (e.g. on True64 or Sequent).
9461# It gets checked for in the link test anyway.
9462
9463# First of all, check if the user has set any of the PTHREAD_LIBS,
9464# etcetera environment variables, and if threads linking works using
9465# them:
9466if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
9467 save_CFLAGS="$CFLAGS"
9468 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9469 save_LIBS="$LIBS"
9470 LIBS="$PTHREAD_LIBS $LIBS"
9471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5
9472$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; }
9473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9474/* end confdefs.h. */
9475
9476/* Override any GCC internal prototype to avoid an error.
9477 Use char because int might match the return type of a GCC
9478 builtin and then its argument prototype would still apply. */
9479#ifdef __cplusplus
9480extern "C"
9481#endif
9482char pthread_join ();
9483int
9484main ()
9485{
9486return pthread_join ();
9487 ;
9488 return 0;
9489}
9490_ACEOF
9491if ac_fn_c_try_link "$LINENO"; then :
9492 ax_pthread_ok=yes
9493fi
9494rm -f core conftest.err conftest.$ac_objext \
9495 conftest$ac_exeext conftest.$ac_ext
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9497$as_echo "$ax_pthread_ok" >&6; }
9498 if test x"$ax_pthread_ok" = xno; then
9499 PTHREAD_LIBS=""
9500 PTHREAD_CFLAGS=""
9501 fi
9502 LIBS="$save_LIBS"
9503 CFLAGS="$save_CFLAGS"
9504fi
9505
9506# We must check for the threads library under a number of different
9507# names; the ordering is very important because some systems
9508# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
9509# libraries is broken (non-POSIX).
9510
9511# Create a list of thread flags to try. Items starting with a "-" are
9512# C compiler flags, and other items are library names, except for "none"
9513# which indicates that we try without any flags at all, and "pthread-config"
9514# which is a program returning the flags for the Pth emulation library.
9515
cristy18307f12011-12-30 01:20:16 +00009516ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt lpthread pthread-config"
cristy73bd4a52010-10-05 11:24:23 +00009517
9518# The ordering *is* (sometimes) important. Some notes on the
9519# individual items follow:
9520
9521# pthreads: AIX (must check this before -lpthread)
9522# none: in case threads are in libc; should be tried before -Kthread and
9523# other compiler flags to prevent continual compiler warnings
9524# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
9525# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
9526# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
9527# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
9528# -pthreads: Solaris/gcc
9529# -mthreads: Mingw32/gcc, Lynx/gcc
9530# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
9531# doesn't hurt to check since this sometimes defines pthreads too;
9532# also defines -D_REENTRANT)
9533# ... -mt is also the pthreads flag for HP/aCC
9534# pthread: Linux, etcetera
9535# --thread-safe: KAI C++
9536# pthread-config: use pthread-config program (for GNU Pth library)
9537
9538case "${host_cpu}-${host_os}" in
9539 *solaris*)
9540
9541 # On Solaris (at least, for some versions), libc contains stubbed
9542 # (non-functional) versions of the pthreads routines, so link-based
9543 # tests will erroneously succeed. (We need to link with -pthreads/-mt/
9544 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
9545 # a function called by this macro, so we could check for that, but
9546 # who knows whether they'll stub that too in a future libc.) So,
9547 # we'll just look for -pthreads and -lpthread first:
9548
9549 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
9550 ;;
9551
cristya316db12011-10-24 00:49:45 +00009552 *-darwin*)
9553 ax_pthread_flags="-pthread $ax_pthread_flags"
9554 ;;
cristy73bd4a52010-10-05 11:24:23 +00009555esac
9556
9557if test x"$ax_pthread_ok" = xno; then
9558for flag in $ax_pthread_flags; do
9559
9560 case $flag in
9561 none)
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
9563$as_echo_n "checking whether pthreads work without any flags... " >&6; }
9564 ;;
9565
9566 -*)
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5
9568$as_echo_n "checking whether pthreads work with $flag... " >&6; }
9569 PTHREAD_CFLAGS="$flag"
9570 ;;
9571
cristya316db12011-10-24 00:49:45 +00009572 pthread-config)
9573 # Extract the first word of "pthread-config", so it can be a program name with args.
cristy73bd4a52010-10-05 11:24:23 +00009574set dummy pthread-config; ac_word=$2
9575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9576$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009577if ${ac_cv_prog_ax_pthread_config+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009578 $as_echo_n "(cached) " >&6
9579else
9580 if test -n "$ax_pthread_config"; then
9581 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
9582else
9583as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9584for as_dir in $PATH
9585do
9586 IFS=$as_save_IFS
9587 test -z "$as_dir" && as_dir=.
9588 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009590 ac_cv_prog_ax_pthread_config="yes"
9591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9592 break 2
9593 fi
9594done
9595 done
9596IFS=$as_save_IFS
9597
9598 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
9599fi
9600fi
9601ax_pthread_config=$ac_cv_prog_ax_pthread_config
9602if test -n "$ax_pthread_config"; then
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
9604$as_echo "$ax_pthread_config" >&6; }
9605else
9606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9607$as_echo "no" >&6; }
9608fi
9609
9610
cristya316db12011-10-24 00:49:45 +00009611 if test x"$ax_pthread_config" = xno; then continue; fi
9612 PTHREAD_CFLAGS="`pthread-config --cflags`"
9613 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
9614 ;;
cristy73bd4a52010-10-05 11:24:23 +00009615
9616 *)
9617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5
9618$as_echo_n "checking for the pthreads library -l$flag... " >&6; }
9619 PTHREAD_LIBS="-l$flag"
9620 ;;
9621 esac
9622
9623 save_LIBS="$LIBS"
9624 save_CFLAGS="$CFLAGS"
9625 LIBS="$PTHREAD_LIBS $LIBS"
9626 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9627
9628 # Check for various functions. We must include pthread.h,
9629 # since some functions may be macros. (On the Sequent, we
9630 # need a special flag -Kthread to make this header compile.)
9631 # We check for pthread_join because it is in -lpthread on IRIX
9632 # while pthread_create is in libc. We check for pthread_attr_init
9633 # due to DEC craziness with -lpthreads. We check for
9634 # pthread_cleanup_push because it is one of the few pthread
9635 # functions on Solaris that doesn't have a non-functional libc stub.
9636 # We try pthread_create on general principles.
9637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9638/* end confdefs.h. */
9639#include <pthread.h>
cristya316db12011-10-24 00:49:45 +00009640 static void routine(void *a) { a = 0; }
9641 static void *start_routine(void *a) { return a; }
cristy73bd4a52010-10-05 11:24:23 +00009642int
9643main ()
9644{
9645pthread_t th; pthread_attr_t attr;
cristya316db12011-10-24 00:49:45 +00009646 pthread_create(&th, 0, start_routine, 0);
9647 pthread_join(th, 0);
9648 pthread_attr_init(&attr);
9649 pthread_cleanup_push(routine, 0);
9650 pthread_cleanup_pop(0) /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009651 ;
9652 return 0;
9653}
9654_ACEOF
9655if ac_fn_c_try_link "$LINENO"; then :
9656 ax_pthread_ok=yes
9657fi
9658rm -f core conftest.err conftest.$ac_objext \
9659 conftest$ac_exeext conftest.$ac_ext
9660
9661 LIBS="$save_LIBS"
9662 CFLAGS="$save_CFLAGS"
9663
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
9665$as_echo "$ax_pthread_ok" >&6; }
9666 if test "x$ax_pthread_ok" = xyes; then
9667 break;
9668 fi
9669
9670 PTHREAD_LIBS=""
9671 PTHREAD_CFLAGS=""
9672done
9673fi
9674
9675# Various other checks:
9676if test "x$ax_pthread_ok" = xyes; then
9677 save_LIBS="$LIBS"
9678 LIBS="$PTHREAD_LIBS $LIBS"
9679 save_CFLAGS="$CFLAGS"
9680 CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
9681
9682 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
cristya316db12011-10-24 00:49:45 +00009683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
cristy73bd4a52010-10-05 11:24:23 +00009684$as_echo_n "checking for joinable pthread attribute... " >&6; }
cristya316db12011-10-24 00:49:45 +00009685 attr_name=unknown
9686 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
9687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +00009688/* end confdefs.h. */
9689#include <pthread.h>
9690int
9691main ()
9692{
cristya316db12011-10-24 00:49:45 +00009693int attr = $attr; return attr /* ; */
cristy73bd4a52010-10-05 11:24:23 +00009694 ;
9695 return 0;
9696}
9697_ACEOF
9698if ac_fn_c_try_link "$LINENO"; then :
9699 attr_name=$attr; break
9700fi
9701rm -f core conftest.err conftest.$ac_objext \
9702 conftest$ac_exeext conftest.$ac_ext
cristya316db12011-10-24 00:49:45 +00009703 done
cristy73bd4a52010-10-05 11:24:23 +00009704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5
9705$as_echo "$attr_name" >&6; }
9706 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
9707
9708cat >>confdefs.h <<_ACEOF
9709#define PTHREAD_CREATE_JOINABLE $attr_name
9710_ACEOF
9711
9712 fi
9713
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5
9715$as_echo_n "checking if more special flags are required for pthreads... " >&6; }
9716 flag=no
9717 case "${host_cpu}-${host_os}" in
9718 *-aix* | *-freebsd* | *-darwin*) flag="-D_THREAD_SAFE";;
9719 *solaris* | *-osf* | *-hpux*) flag="-D_REENTRANT";;
9720 esac
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${flag}" >&5
9722$as_echo "${flag}" >&6; }
9723 if test "x$flag" != xno; then
9724 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
9725 fi
9726
cristya316db12011-10-24 00:49:45 +00009727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
9728$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
9729if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
9730 $as_echo_n "(cached) " >&6
9731else
9732
9733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9734/* end confdefs.h. */
9735
9736 #include <pthread.h>
9737int
9738main ()
9739{
9740int i = PTHREAD_PRIO_INHERIT;
9741 ;
9742 return 0;
9743}
9744_ACEOF
9745if ac_fn_c_try_link "$LINENO"; then :
9746 ax_cv_PTHREAD_PRIO_INHERIT=yes
9747else
9748 ax_cv_PTHREAD_PRIO_INHERIT=no
9749fi
9750rm -f core conftest.err conftest.$ac_objext \
9751 conftest$ac_exeext conftest.$ac_ext
9752
9753fi
9754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
9755$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
9756 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then :
9757
9758$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
9759
9760fi
9761
cristy73bd4a52010-10-05 11:24:23 +00009762 LIBS="$save_LIBS"
9763 CFLAGS="$save_CFLAGS"
9764
9765 # More AIX lossage: must compile with xlc_r or cc_r
cristya316db12011-10-24 00:49:45 +00009766 if test x"$GCC" != xyes; then
cristy73bd4a52010-10-05 11:24:23 +00009767 for ac_prog in xlc_r cc_r
9768do
9769 # Extract the first word of "$ac_prog", so it can be a program name with args.
9770set dummy $ac_prog; ac_word=$2
9771{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9772$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009773if ${ac_cv_prog_PTHREAD_CC+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009774 $as_echo_n "(cached) " >&6
9775else
9776 if test -n "$PTHREAD_CC"; then
9777 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
9778else
9779as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9780for as_dir in $PATH
9781do
9782 IFS=$as_save_IFS
9783 test -z "$as_dir" && as_dir=.
9784 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +00009785 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +00009786 ac_cv_prog_PTHREAD_CC="$ac_prog"
9787 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9788 break 2
9789 fi
9790done
9791 done
9792IFS=$as_save_IFS
9793
9794fi
9795fi
9796PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
9797if test -n "$PTHREAD_CC"; then
9798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
9799$as_echo "$PTHREAD_CC" >&6; }
9800else
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9802$as_echo "no" >&6; }
9803fi
9804
9805
9806 test -n "$PTHREAD_CC" && break
9807done
9808test -n "$PTHREAD_CC" || PTHREAD_CC="${CC}"
9809
9810 else
9811 PTHREAD_CC=$CC
cristya316db12011-10-24 00:49:45 +00009812 fi
cristy73bd4a52010-10-05 11:24:23 +00009813else
9814 PTHREAD_CC="$CC"
9815fi
9816
9817
9818
9819
9820
9821# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
9822if test x"$ax_pthread_ok" = xyes; then
9823
9824$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
9825
9826 :
9827else
9828 ax_pthread_ok=no
9829
9830fi
9831ac_ext=c
9832ac_cpp='$CPP $CPPFLAGS'
9833ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9834ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9835ac_compiler_gnu=$ac_cv_c_compiler_gnu
9836
9837
9838
9839# Check whether --enable-opencl was given.
9840if test "${enable_opencl+set}" = set; then :
cristy48794642012-09-02 15:19:08 +00009841 enableval=$enable_opencl; enable_opencl=$enableval
cristy73bd4a52010-10-05 11:24:23 +00009842else
cristy48794642012-09-02 15:19:08 +00009843 enable_opencl='no'
cristy73bd4a52010-10-05 11:24:23 +00009844fi
9845
9846
cristy48794642012-09-02 15:19:08 +00009847if test "$enable_opencl" = 'yes'; then
cristy73bd4a52010-10-05 11:24:23 +00009848 ac_ext=c
9849ac_cpp='$CPP $CPPFLAGS'
9850ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9851ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9852ac_compiler_gnu=$ac_cv_c_compiler_gnu
9853
cristy75314cc2012-09-15 23:08:29 +00009854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
9855$as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
9856if ${ax_cv_c_compiler_ms+:} false; then :
9857 $as_echo_n "(cached) " >&6
9858else
9859 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9860/* end confdefs.h. */
9861
9862int
9863main ()
9864{
9865#ifndef _MSC_VER
9866 choke me
9867#endif
9868
9869 ;
9870 return 0;
9871}
9872_ACEOF
9873if ac_fn_c_try_compile "$LINENO"; then :
9874 ax_compiler_ms=yes
9875else
9876 ax_compiler_ms=no
9877fi
9878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9879ax_cv_c_compiler_ms=$ax_compiler_ms
9880
9881fi
9882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
9883$as_echo "$ax_cv_c_compiler_ms" >&6; }
cristy73bd4a52010-10-05 11:24:23 +00009884 if test X$ax_compiler_ms = Xno; then :
9885 CL_CFLAGS="${PTHREAD_CFLAGS}"; CL_LIBS="${PTHREAD_LIBS} -lm"
9886fi
9887
9888 ax_save_CPPFLAGS=$CPPFLAGS
9889 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9890 for ac_header in CL/cl.h OpenCL/cl.h
9891do :
9892 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9893ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +00009894if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +00009895 cat >>confdefs.h <<_ACEOF
9896#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9897_ACEOF
9898
9899fi
9900
9901done
9902
9903 CPPFLAGS=$ax_save_CPPFLAGS
9904
9905 for ac_header in windows.h
9906do :
9907 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +00009908if test "x$ac_cv_header_windows_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +00009909 cat >>confdefs.h <<_ACEOF
9910#define HAVE_WINDOWS_H 1
9911_ACEOF
9912
9913fi
9914
9915done
9916
9917
9918
9919
9920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenCL library" >&5
9921$as_echo_n "checking for OpenCL library... " >&6; }
cristyda16f162011-02-19 23:52:17 +00009922if ${ax_cv_check_cl_libcl+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +00009923 $as_echo_n "(cached) " >&6
9924else
9925 ax_cv_check_cl_libcl=no
9926 case $host_cpu in
9927 x86_64) ax_check_cl_libdir=lib64 ;;
9928 *) ax_check_cl_libdir=lib ;;
9929 esac
9930 ax_save_CPPFLAGS=$CPPFLAGS
9931 CPPFLAGS="$CL_CFLAGS $CPPFLAGS"
9932 ax_save_LIBS=$LIBS
9933 LIBS=""
9934 ax_check_libs="-lOpenCL -lCL -lclparser"
9935 for ax_lib in $ax_check_libs; do
9936 if test X$ax_compiler_ms = Xyes; then :
9937 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
9938else
9939 ax_try_lib=$ax_lib
9940fi
9941 LIBS="$ax_try_lib $CL_LIBS $ax_save_LIBS"
9942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9943/* end confdefs.h. */
9944
9945 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9946 # include <windows.h>
9947 # endif
9948 # ifdef HAVE_CL_CL_H
9949 # include <CL/cl.h>
9950 # elif defined(HAVE_OPENCL_CL_H)
9951 # include <OpenCL/cl.h>
9952 # else
9953 # error no CL.h
9954 # endif
9955int
9956main ()
9957{
9958clCreateContextFromType(0,0,0,0,0)
9959 ;
9960 return 0;
9961}
9962_ACEOF
9963if ac_fn_c_try_link "$LINENO"; then :
9964 ax_cv_check_cl_libcl=$ax_try_lib; break
9965else
9966 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"
9967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9968/* end confdefs.h. */
9969
9970 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9971 # include <windows.h>
9972 # endif
9973 # ifdef HAVE_CL_CL_H
9974 # include <CL/cl.h>
9975 # elif defined(HAVE_OPENCL_CL_H)
9976 # include <OpenCL/cl.h>
9977 # else
9978 # error no CL.h
9979 # endif
9980int
9981main ()
9982{
9983clCreateContextFromType(0,0,0,0,0)
9984 ;
9985 return 0;
9986}
9987_ACEOF
9988if ac_fn_c_try_link "$LINENO"; then :
9989 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_nvidia_flags"; break
9990else
cristy78c5a0c2010-12-04 20:00:59 +00009991 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 +00009992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9993/* end confdefs.h. */
9994
9995 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
9996 # include <windows.h>
9997 # endif
9998 # ifdef HAVE_CL_CL_H
9999 # include <CL/cl.h>
10000 # elif defined(HAVE_OPENCL_CL_H)
10001 # include <OpenCL/cl.h>
10002 # else
10003 # error no CL.h
10004 # endif
10005int
10006main ()
10007{
10008clCreateContextFromType(0,0,0,0,0)
10009 ;
10010 return 0;
10011}
10012_ACEOF
10013if ac_fn_c_try_link "$LINENO"; then :
10014 ax_cv_check_cl_libcl="$ax_try_lib $ax_check_cl_dylib_flag"; break
10015fi
10016rm -f core conftest.err conftest.$ac_objext \
10017 conftest$ac_exeext conftest.$ac_ext
10018fi
10019rm -f core conftest.err conftest.$ac_objext \
10020 conftest$ac_exeext conftest.$ac_ext
10021fi
10022rm -f core conftest.err conftest.$ac_objext \
10023 conftest$ac_exeext conftest.$ac_ext
10024 done
10025
cristyc3f8b8e2011-12-22 14:55:16 +000010026 if test "X$ax_cv_check_cl_libcl" = Xno; then :
cristy78c5a0c2010-12-04 20:00:59 +000010027 LIBS='-Wl,-framework,OpenCL'
cristy73bd4a52010-10-05 11:24:23 +000010028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10029/* end confdefs.h. */
10030
10031 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
10032 # include <windows.h>
10033 # endif
10034 # ifdef HAVE_CL_CL_H
10035 # include <CL/cl.h>
10036 # elif defined(HAVE_OPENCL_CL_H)
10037 # include <OpenCL/cl.h>
10038 # else
10039 # error no CL.h
10040 # endif
10041int
10042main ()
10043{
10044clCreateContextFromType(0,0,0,0,0)
10045 ;
10046 return 0;
10047}
10048_ACEOF
10049if ac_fn_c_try_link "$LINENO"; then :
10050 ax_cv_check_cl_libcl=$LIBS
10051fi
10052rm -f core conftest.err conftest.$ac_objext \
10053 conftest$ac_exeext conftest.$ac_ext
10054fi
10055
10056 LIBS=$ax_save_LIBS
10057 CPPFLAGS=$ax_save_CPPFLAGS
10058fi
10059{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_cl_libcl" >&5
10060$as_echo "$ax_cv_check_cl_libcl" >&6; }
10061
10062 if test "X$ax_cv_check_cl_libcl" = Xno; then :
10063 no_cl=yes; CL_CFLAGS=""; CL_LIBS=""
10064else
10065 CL_LIBS="$ax_cv_check_cl_libcl $CL_LIBS";
10066$as_echo "#define _OPENCL 1" >>confdefs.h
10067
10068fi
10069 ac_ext=c
10070ac_cpp='$CPP $CPPFLAGS'
10071ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10072ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10073ac_compiler_gnu=$ac_cv_c_compiler_gnu
10074
10075fi
10076
10077
10078
10079
cristyc7083c12009-10-14 03:16:55 +000010080CFLAGS="$CL_CFLAGS $CFLAGS"
10081LIBS="$CL_LIBS $LIBS"
cristy736173a2009-09-20 21:18:22 +000010082
cristy391f1ce2010-09-09 17:23:28 +000010083if test "$enable_opencl" != no; then
cristy6e3607c2011-09-13 13:59:17 +000010084 if test "X$ax_cv_check_cl_libcl" != Xno; then :
cristy391f1ce2010-09-09 17:23:28 +000010085 MAGICK_FEATURES="OpenCL $MAGICK_FEATURES"
10086 fi
cristyfd9dcd42010-08-08 18:07:02 +000010087fi
cristy2e8b51d2009-10-17 18:26:15 +000010088
cristy3ed852e2009-09-05 21:47:34 +000010089########
10090#
10091# Check for large file support
10092#
10093########
10094# Check whether --enable-largefile was given.
cristy8b350f62009-11-15 23:12:43 +000010095if test "${enable_largefile+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000010096 enableval=$enable_largefile;
10097fi
10098
10099if test "$enable_largefile" != no; then
10100
cristy8b350f62009-11-15 23:12:43 +000010101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010102$as_echo_n "checking for special C compiler options needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010103if ${ac_cv_sys_largefile_CC+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010104 $as_echo_n "(cached) " >&6
10105else
10106 ac_cv_sys_largefile_CC=no
10107 if test "$GCC" != yes; then
10108 ac_save_CC=$CC
10109 while :; do
10110 # IRIX 6.2 and later do not support large files by default,
10111 # so use the C compiler's -n32 option if that helps.
cristy8b350f62009-11-15 23:12:43 +000010112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010113/* end confdefs.h. */
10114#include <sys/types.h>
10115 /* Check that off_t can represent 2**63 - 1 correctly.
10116 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10117 since some C++ compilers masquerading as C compilers
10118 incorrectly reject 9223372036854775807. */
10119#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10120 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10121 && LARGE_OFF_T % 2147483647 == 1)
10122 ? 1 : -1];
10123int
10124main ()
10125{
10126
10127 ;
10128 return 0;
10129}
10130_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010131 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010132 break
cristy3ed852e2009-09-05 21:47:34 +000010133fi
cristy3ed852e2009-09-05 21:47:34 +000010134rm -f core conftest.err conftest.$ac_objext
10135 CC="$CC -n32"
cristy8b350f62009-11-15 23:12:43 +000010136 if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010137 ac_cv_sys_largefile_CC=' -n32'; break
cristy3ed852e2009-09-05 21:47:34 +000010138fi
cristy3ed852e2009-09-05 21:47:34 +000010139rm -f core conftest.err conftest.$ac_objext
10140 break
10141 done
10142 CC=$ac_save_CC
10143 rm -f conftest.$ac_ext
10144 fi
10145fi
cristy8b350f62009-11-15 23:12:43 +000010146{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
cristy3ed852e2009-09-05 21:47:34 +000010147$as_echo "$ac_cv_sys_largefile_CC" >&6; }
10148 if test "$ac_cv_sys_largefile_CC" != no; then
10149 CC=$CC$ac_cv_sys_largefile_CC
10150 fi
10151
cristy8b350f62009-11-15 23:12:43 +000010152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010153$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010154if ${ac_cv_sys_file_offset_bits+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010155 $as_echo_n "(cached) " >&6
10156else
10157 while :; do
cristy8b350f62009-11-15 23:12:43 +000010158 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010159/* end confdefs.h. */
10160#include <sys/types.h>
10161 /* Check that off_t can represent 2**63 - 1 correctly.
10162 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10163 since some C++ compilers masquerading as C compilers
10164 incorrectly reject 9223372036854775807. */
10165#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10166 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10167 && LARGE_OFF_T % 2147483647 == 1)
10168 ? 1 : -1];
10169int
10170main ()
10171{
10172
10173 ;
10174 return 0;
10175}
10176_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010177if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010178 ac_cv_sys_file_offset_bits=no; break
cristy3ed852e2009-09-05 21:47:34 +000010179fi
cristy3ed852e2009-09-05 21:47:34 +000010180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010182/* end confdefs.h. */
10183#define _FILE_OFFSET_BITS 64
10184#include <sys/types.h>
10185 /* Check that off_t can represent 2**63 - 1 correctly.
10186 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10187 since some C++ compilers masquerading as C compilers
10188 incorrectly reject 9223372036854775807. */
10189#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10190 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10191 && LARGE_OFF_T % 2147483647 == 1)
10192 ? 1 : -1];
10193int
10194main ()
10195{
10196
10197 ;
10198 return 0;
10199}
10200_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010201if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010202 ac_cv_sys_file_offset_bits=64; break
cristy3ed852e2009-09-05 21:47:34 +000010203fi
cristy3ed852e2009-09-05 21:47:34 +000010204rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10205 ac_cv_sys_file_offset_bits=unknown
10206 break
10207done
10208fi
cristy8b350f62009-11-15 23:12:43 +000010209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
cristy3ed852e2009-09-05 21:47:34 +000010210$as_echo "$ac_cv_sys_file_offset_bits" >&6; }
10211case $ac_cv_sys_file_offset_bits in #(
10212 no | unknown) ;;
10213 *)
10214cat >>confdefs.h <<_ACEOF
10215#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
10216_ACEOF
10217;;
10218esac
10219rm -rf conftest*
10220 if test $ac_cv_sys_file_offset_bits = unknown; then
cristy8b350f62009-11-15 23:12:43 +000010221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010222$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010223if ${ac_cv_sys_large_files+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010224 $as_echo_n "(cached) " >&6
10225else
10226 while :; do
cristy8b350f62009-11-15 23:12:43 +000010227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010228/* end confdefs.h. */
10229#include <sys/types.h>
10230 /* Check that off_t can represent 2**63 - 1 correctly.
10231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10232 since some C++ compilers masquerading as C compilers
10233 incorrectly reject 9223372036854775807. */
10234#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10236 && LARGE_OFF_T % 2147483647 == 1)
10237 ? 1 : -1];
10238int
10239main ()
10240{
10241
10242 ;
10243 return 0;
10244}
10245_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010246if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010247 ac_cv_sys_large_files=no; break
cristy3ed852e2009-09-05 21:47:34 +000010248fi
cristy3ed852e2009-09-05 21:47:34 +000010249rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy8b350f62009-11-15 23:12:43 +000010250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010251/* end confdefs.h. */
10252#define _LARGE_FILES 1
10253#include <sys/types.h>
10254 /* Check that off_t can represent 2**63 - 1 correctly.
10255 We can't simply define LARGE_OFF_T to be 9223372036854775807,
10256 since some C++ compilers masquerading as C compilers
10257 incorrectly reject 9223372036854775807. */
10258#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
10259 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
10260 && LARGE_OFF_T % 2147483647 == 1)
10261 ? 1 : -1];
10262int
10263main ()
10264{
10265
10266 ;
10267 return 0;
10268}
10269_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010270if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010271 ac_cv_sys_large_files=1; break
cristy3ed852e2009-09-05 21:47:34 +000010272fi
cristy3ed852e2009-09-05 21:47:34 +000010273rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10274 ac_cv_sys_large_files=unknown
10275 break
10276done
10277fi
cristy8b350f62009-11-15 23:12:43 +000010278{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010279$as_echo "$ac_cv_sys_large_files" >&6; }
10280case $ac_cv_sys_large_files in #(
10281 no | unknown) ;;
10282 *)
10283cat >>confdefs.h <<_ACEOF
10284#define _LARGE_FILES $ac_cv_sys_large_files
10285_ACEOF
10286;;
10287esac
10288rm -rf conftest*
10289 fi
cristy14fefe52012-05-21 00:59:18 +000010290
10291
cristy3ed852e2009-09-05 21:47:34 +000010292fi
10293
cristy8b350f62009-11-15 23:12:43 +000010294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGEFILE_SOURCE value needed for large files" >&5
cristy3ed852e2009-09-05 21:47:34 +000010295$as_echo_n "checking for _LARGEFILE_SOURCE value needed for large files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010296if ${ac_cv_sys_largefile_source+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000010297 $as_echo_n "(cached) " >&6
10298else
10299 while :; do
cristy8b350f62009-11-15 23:12:43 +000010300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010301/* end confdefs.h. */
10302#include <sys/types.h> /* for off_t */
10303 #include <stdio.h>
10304int
10305main ()
10306{
10307int (*fp) (FILE *, off_t, int) = fseeko;
10308 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10309 ;
10310 return 0;
10311}
10312_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010313if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010314 ac_cv_sys_largefile_source=no; break
cristy3ed852e2009-09-05 21:47:34 +000010315fi
cristy8b350f62009-11-15 23:12:43 +000010316rm -f core conftest.err conftest.$ac_objext \
10317 conftest$ac_exeext conftest.$ac_ext
10318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010319/* end confdefs.h. */
10320#define _LARGEFILE_SOURCE 1
10321#include <sys/types.h> /* for off_t */
10322 #include <stdio.h>
10323int
10324main ()
10325{
10326int (*fp) (FILE *, off_t, int) = fseeko;
10327 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
10328 ;
10329 return 0;
10330}
10331_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010332if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000010333 ac_cv_sys_largefile_source=1; break
cristy3ed852e2009-09-05 21:47:34 +000010334fi
cristy8b350f62009-11-15 23:12:43 +000010335rm -f core conftest.err conftest.$ac_objext \
10336 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010337 ac_cv_sys_largefile_source=unknown
10338 break
10339done
10340fi
cristy8b350f62009-11-15 23:12:43 +000010341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_source" >&5
cristy3ed852e2009-09-05 21:47:34 +000010342$as_echo "$ac_cv_sys_largefile_source" >&6; }
10343case $ac_cv_sys_largefile_source in #(
10344 no | unknown) ;;
10345 *)
10346cat >>confdefs.h <<_ACEOF
10347#define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
10348_ACEOF
10349;;
10350esac
10351rm -rf conftest*
10352
10353# We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
10354# in glibc 2.1.3, but that breaks too many other things.
10355# If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
10356if test $ac_cv_sys_largefile_source != unknown; then
10357
cristy8b350f62009-11-15 23:12:43 +000010358$as_echo "#define HAVE_FSEEKO 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010359
10360fi
10361
10362LFS_CPPFLAGS=''
10363if test "$enable_largefile" != no; then
cristyc1e0cc12011-09-21 16:41:16 +000010364 case $ac_cv_sys_file_offset_bits in
10365 no)
10366 # nothing to do here as the host supports LFS fine
10367 ;;
10368 unknown)
cristy8b350f62009-11-15 23:12:43 +000010369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for native large file support" >&5
cristy3ed852e2009-09-05 21:47:34 +000010370$as_echo_n "checking for native large file support... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000010371 if test "$cross_compiling" = yes; then :
10372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000010373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000010374as_fn_error $? "cannot run test program while cross compiling
10375See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000010376else
cristy8b350f62009-11-15 23:12:43 +000010377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10378/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000010379#include <unistd.h>
10380 main () {
10381 exit(!(sizeof(off_t) == 8));
10382 }
cristyda16f162011-02-19 23:52:17 +000010383int
10384main ()
10385{
10386
10387 ;
10388 return 0;
10389}
cristy3ed852e2009-09-05 21:47:34 +000010390_ACEOF
cristy8b350f62009-11-15 23:12:43 +000010391if ac_fn_c_try_run "$LINENO"; then :
10392 ac_cv_sys_file_offset_bits=64; $as_echo "#define _FILE_OFFSET_BITS 64" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000010393
cristy09b53e12011-10-14 12:47:22 +000010394 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
10395$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010396else
cristy09b53e12011-10-14 12:47:22 +000010397 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
10398$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000010399fi
cristy8b350f62009-11-15 23:12:43 +000010400rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10401 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000010402fi
10403
cristyc1e0cc12011-09-21 16:41:16 +000010404 ;;
10405 *)
10406 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
10407 ;;
10408 esac
cristy3ed852e2009-09-05 21:47:34 +000010409 if test "$ac_cv_sys_large_files" != 'no'; then
10410 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGE_FILES=1"
10411 fi
10412 if test "$ac_cv_sys_largefile_source" != 'no'; then
10413 LFS_CPPFLAGS="$LFS_CPPFLAGS -D_LARGEFILE_SOURCE=1"
10414 fi
10415fi
10416
10417
cristy3ed852e2009-09-05 21:47:34 +000010418# Configure libtool
cristy73bd4a52010-10-05 11:24:23 +000010419enable_dlopen=yes
10420
10421
10422
10423case `pwd` in
10424 *\ * | *\ *)
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
10426$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
10427esac
10428
10429
10430
cristy99bd5232011-12-07 14:38:20 +000010431macro_version='2.4.2'
10432macro_revision='1.3337'
cristy73bd4a52010-10-05 11:24:23 +000010433
10434
10435
10436
10437
10438
10439
10440
10441
10442
10443
10444
10445
10446ltmain="$ac_aux_dir/ltmain.sh"
10447
cristy0c60a692010-11-04 01:09:47 +000010448# Backslashify metacharacters that are still active within
10449# double-quoted strings.
10450sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
10451
10452# Same as above, but do not quote variable references.
10453double_quote_subst='s/\(["`\\]\)/\\\1/g'
10454
10455# Sed substitution to delay expansion of an escaped shell variable in a
10456# double_quote_subst'ed string.
10457delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
10458
10459# Sed substitution to delay expansion of an escaped single quote.
10460delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
10461
10462# Sed substitution to avoid accidental globbing in evaled expressions
10463no_glob_subst='s/\*/\\\*/g'
10464
cristy73bd4a52010-10-05 11:24:23 +000010465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
10466$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010467if ${lt_cv_path_NM+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010468 $as_echo_n "(cached) " >&6
10469else
10470 if test -n "$NM"; then
10471 # Let the user override the test.
10472 lt_cv_path_NM="$NM"
10473else
10474 lt_nm_to_check="${ac_tool_prefix}nm"
10475 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
10476 lt_nm_to_check="$lt_nm_to_check nm"
10477 fi
10478 for lt_tmp_nm in $lt_nm_to_check; do
10479 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10480 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
10481 IFS="$lt_save_ifs"
10482 test -z "$ac_dir" && ac_dir=.
10483 tmp_nm="$ac_dir/$lt_tmp_nm"
10484 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
10485 # Check to see if the nm accepts a BSD-compat flag.
10486 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
10487 # nm: unknown option "B" ignored
10488 # Tru64's nm complains that /dev/null is an invalid object file
10489 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
10490 */dev/null* | *'Invalid file or object type'*)
10491 lt_cv_path_NM="$tmp_nm -B"
10492 break
10493 ;;
10494 *)
10495 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
10496 */dev/null*)
10497 lt_cv_path_NM="$tmp_nm -p"
10498 break
10499 ;;
10500 *)
10501 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
10502 continue # so that we can try to find one that supports BSD flags
10503 ;;
10504 esac
10505 ;;
10506 esac
10507 fi
10508 done
10509 IFS="$lt_save_ifs"
10510 done
10511 : ${lt_cv_path_NM=no}
10512fi
10513fi
10514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
10515$as_echo "$lt_cv_path_NM" >&6; }
10516if test "$lt_cv_path_NM" != "no"; then
10517 NM="$lt_cv_path_NM"
10518else
10519 # Didn't find any BSD compatible name lister, look for dumpbin.
cristy0c60a692010-11-04 01:09:47 +000010520 if test -n "$DUMPBIN"; then :
10521 # Let the user override the test.
10522 else
10523 if test -n "$ac_tool_prefix"; then
10524 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010525 do
10526 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10527set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10529$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010530if ${ac_cv_prog_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010531 $as_echo_n "(cached) " >&6
10532else
10533 if test -n "$DUMPBIN"; then
10534 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
10535else
10536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10537for as_dir in $PATH
10538do
10539 IFS=$as_save_IFS
10540 test -z "$as_dir" && as_dir=.
10541 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010543 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
10544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10545 break 2
10546 fi
10547done
10548 done
10549IFS=$as_save_IFS
10550
10551fi
10552fi
10553DUMPBIN=$ac_cv_prog_DUMPBIN
10554if test -n "$DUMPBIN"; then
10555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
10556$as_echo "$DUMPBIN" >&6; }
10557else
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10559$as_echo "no" >&6; }
10560fi
10561
10562
10563 test -n "$DUMPBIN" && break
10564 done
10565fi
10566if test -z "$DUMPBIN"; then
10567 ac_ct_DUMPBIN=$DUMPBIN
cristy0c60a692010-11-04 01:09:47 +000010568 for ac_prog in dumpbin "link -dump"
cristy73bd4a52010-10-05 11:24:23 +000010569do
10570 # Extract the first word of "$ac_prog", so it can be a program name with args.
10571set dummy $ac_prog; ac_word=$2
10572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10573$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010574if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010575 $as_echo_n "(cached) " >&6
10576else
10577 if test -n "$ac_ct_DUMPBIN"; then
10578 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
10579else
10580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10581for as_dir in $PATH
10582do
10583 IFS=$as_save_IFS
10584 test -z "$as_dir" && as_dir=.
10585 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000010587 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
10588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10589 break 2
10590 fi
10591done
10592 done
10593IFS=$as_save_IFS
10594
10595fi
10596fi
10597ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
10598if test -n "$ac_ct_DUMPBIN"; then
10599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
10600$as_echo "$ac_ct_DUMPBIN" >&6; }
10601else
10602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10603$as_echo "no" >&6; }
10604fi
10605
10606
10607 test -n "$ac_ct_DUMPBIN" && break
10608done
10609
10610 if test "x$ac_ct_DUMPBIN" = x; then
10611 DUMPBIN=":"
10612 else
10613 case $cross_compiling:$ac_tool_warned in
10614yes:)
10615{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10616$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10617ac_tool_warned=yes ;;
10618esac
10619 DUMPBIN=$ac_ct_DUMPBIN
10620 fi
10621fi
10622
cristy0c60a692010-11-04 01:09:47 +000010623 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
10624 *COFF*)
10625 DUMPBIN="$DUMPBIN -symbols"
10626 ;;
10627 *)
10628 DUMPBIN=:
10629 ;;
10630 esac
10631 fi
cristy73bd4a52010-10-05 11:24:23 +000010632
10633 if test "$DUMPBIN" != ":"; then
10634 NM="$DUMPBIN"
10635 fi
10636fi
10637test -z "$NM" && NM=nm
10638
10639
10640
10641
10642
10643
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
10645$as_echo_n "checking the name lister ($NM) interface... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010646if ${lt_cv_nm_interface+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010647 $as_echo_n "(cached) " >&6
10648else
10649 lt_cv_nm_interface="BSD nm"
10650 echo "int some_variable = 0;" > conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000010651 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010652 (eval "$ac_compile" 2>conftest.err)
10653 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010654 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010655 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
10656 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000010657 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000010658 cat conftest.out >&5
10659 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
10660 lt_cv_nm_interface="MS dumpbin"
10661 fi
10662 rm -f conftest*
10663fi
10664{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
10665$as_echo "$lt_cv_nm_interface" >&6; }
10666
10667# find the maximum length of command line arguments
10668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
10669$as_echo_n "checking the maximum length of command line arguments... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010670if ${lt_cv_sys_max_cmd_len+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010671 $as_echo_n "(cached) " >&6
10672else
10673 i=0
10674 teststring="ABCD"
10675
10676 case $build_os in
10677 msdosdjgpp*)
10678 # On DJGPP, this test can blow up pretty badly due to problems in libc
10679 # (any single argument exceeding 2000 bytes causes a buffer overrun
10680 # during glob expansion). Even if it were fixed, the result of this
10681 # check would be larger than it should be.
10682 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10683 ;;
10684
10685 gnu*)
10686 # Under GNU Hurd, this test is not required because there is
10687 # no limit to the length of command line arguments.
10688 # Libtool will interpret -1 as no limit whatsoever
10689 lt_cv_sys_max_cmd_len=-1;
10690 ;;
10691
10692 cygwin* | mingw* | cegcc*)
10693 # On Win9x/ME, this test blows up -- it succeeds, but takes
10694 # about 5 minutes as the teststring grows exponentially.
10695 # Worse, since 9x/ME are not pre-emptively multitasking,
10696 # you end up with a "frozen" computer, even though with patience
10697 # the test eventually succeeds (with a max line length of 256k).
10698 # Instead, let's just punt: use the minimum linelength reported by
10699 # all of the supported platforms: 8192 (on NT/2K/XP).
10700 lt_cv_sys_max_cmd_len=8192;
10701 ;;
10702
cristy0c60a692010-11-04 01:09:47 +000010703 mint*)
10704 # On MiNT this can take a long time and run out of memory.
10705 lt_cv_sys_max_cmd_len=8192;
10706 ;;
10707
cristy73bd4a52010-10-05 11:24:23 +000010708 amigaos*)
10709 # On AmigaOS with pdksh, this test takes hours, literally.
10710 # So we just punt and use a minimum line length of 8192.
10711 lt_cv_sys_max_cmd_len=8192;
10712 ;;
10713
10714 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
10715 # This has been around since 386BSD, at least. Likely further.
10716 if test -x /sbin/sysctl; then
10717 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
10718 elif test -x /usr/sbin/sysctl; then
10719 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
10720 else
10721 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
10722 fi
10723 # And add a safety zone
10724 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10725 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10726 ;;
10727
10728 interix*)
10729 # We know the value 262144 and hardcode it with a safety zone (like BSD)
10730 lt_cv_sys_max_cmd_len=196608
10731 ;;
10732
cristy99bd5232011-12-07 14:38:20 +000010733 os2*)
10734 # The test takes a long time on OS/2.
10735 lt_cv_sys_max_cmd_len=8192
10736 ;;
10737
cristy73bd4a52010-10-05 11:24:23 +000010738 osf*)
10739 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
10740 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
10741 # nice to cause kernel panics so lets avoid the loop below.
10742 # First set a reasonable default.
10743 lt_cv_sys_max_cmd_len=16384
10744 #
10745 if test -x /sbin/sysconfig; then
10746 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
10747 *1*) lt_cv_sys_max_cmd_len=-1 ;;
10748 esac
10749 fi
10750 ;;
10751 sco3.2v5*)
10752 lt_cv_sys_max_cmd_len=102400
10753 ;;
10754 sysv5* | sco5v6* | sysv4.2uw2*)
10755 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
10756 if test -n "$kargmax"; then
10757 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
10758 else
10759 lt_cv_sys_max_cmd_len=32768
10760 fi
10761 ;;
10762 *)
10763 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
10764 if test -n "$lt_cv_sys_max_cmd_len"; then
10765 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
10766 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
10767 else
10768 # Make teststring a little bigger before we do anything with it.
10769 # a 1K string should be a reasonable start.
10770 for i in 1 2 3 4 5 6 7 8 ; do
10771 teststring=$teststring$teststring
10772 done
10773 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
10774 # If test is not a shell built-in, we'll probably end up computing a
10775 # maximum length that is only half of the actual maximum length, but
10776 # we can't tell.
cristy99bd5232011-12-07 14:38:20 +000010777 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
cristy0c60a692010-11-04 01:09:47 +000010778 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
cristy73bd4a52010-10-05 11:24:23 +000010779 test $i != 17 # 1/2 MB should be enough
10780 do
10781 i=`expr $i + 1`
10782 teststring=$teststring$teststring
10783 done
10784 # Only check the string length outside the loop.
10785 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
10786 teststring=
10787 # Add a significant safety factor because C++ compilers can tack on
10788 # massive amounts of additional arguments before passing them to the
10789 # linker. It appears as though 1/2 is a usable value.
10790 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10791 fi
10792 ;;
10793 esac
10794
10795fi
10796
10797if test -n $lt_cv_sys_max_cmd_len ; then
10798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
10799$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
10800else
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
10802$as_echo "none" >&6; }
10803fi
10804max_cmd_len=$lt_cv_sys_max_cmd_len
10805
10806
10807
10808
10809
10810
10811: ${CP="cp -f"}
10812: ${MV="mv -f"}
10813: ${RM="rm -f"}
10814
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
10816$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
10817# Try some XSI features
10818xsi_shell=no
10819( _lt_dummy="a/b/c"
cristyda16f162011-02-19 23:52:17 +000010820 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
10821 = c,a/b,b/c, \
cristy73bd4a52010-10-05 11:24:23 +000010822 && eval 'test $(( 1 + 1 )) -eq 2 \
10823 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
10824 && xsi_shell=yes
10825{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
10826$as_echo "$xsi_shell" >&6; }
10827
10828
10829{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
10830$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
10831lt_shell_append=no
10832( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
10833 >/dev/null 2>&1 \
10834 && lt_shell_append=yes
10835{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
10836$as_echo "$lt_shell_append" >&6; }
10837
10838
10839if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
10840 lt_unset=unset
10841else
10842 lt_unset=false
10843fi
10844
10845
10846
10847
10848
10849# test EBCDIC or ASCII
10850case `echo X|tr X '\101'` in
10851 A) # ASCII based system
10852 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
10853 lt_SP2NL='tr \040 \012'
10854 lt_NL2SP='tr \015\012 \040\040'
10855 ;;
10856 *) # EBCDIC based system
10857 lt_SP2NL='tr \100 \n'
10858 lt_NL2SP='tr \r\n \100\100'
10859 ;;
10860esac
10861
10862
10863
10864
10865
10866
10867
10868
10869
cristyda16f162011-02-19 23:52:17 +000010870{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
10871$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
10872if ${lt_cv_to_host_file_cmd+:} false; then :
10873 $as_echo_n "(cached) " >&6
10874else
10875 case $host in
10876 *-*-mingw* )
10877 case $build in
10878 *-*-mingw* ) # actually msys
10879 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
10880 ;;
10881 *-*-cygwin* )
10882 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
10883 ;;
10884 * ) # otherwise, assume *nix
10885 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
10886 ;;
10887 esac
10888 ;;
10889 *-*-cygwin* )
10890 case $build in
10891 *-*-mingw* ) # actually msys
10892 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
10893 ;;
10894 *-*-cygwin* )
10895 lt_cv_to_host_file_cmd=func_convert_file_noop
10896 ;;
10897 * ) # otherwise, assume *nix
10898 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
10899 ;;
10900 esac
10901 ;;
10902 * ) # unhandled hosts (and "normal" native builds)
10903 lt_cv_to_host_file_cmd=func_convert_file_noop
10904 ;;
10905esac
10906
10907fi
10908
10909to_host_file_cmd=$lt_cv_to_host_file_cmd
10910{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
10911$as_echo "$lt_cv_to_host_file_cmd" >&6; }
10912
10913
10914
10915
10916
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
10918$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
10919if ${lt_cv_to_tool_file_cmd+:} false; then :
10920 $as_echo_n "(cached) " >&6
10921else
10922 #assume ordinary cross tools, or native build.
10923lt_cv_to_tool_file_cmd=func_convert_file_noop
10924case $host in
10925 *-*-mingw* )
10926 case $build in
10927 *-*-mingw* ) # actually msys
10928 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
10929 ;;
10930 esac
10931 ;;
10932esac
10933
10934fi
10935
10936to_tool_file_cmd=$lt_cv_to_tool_file_cmd
10937{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
10938$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
10939
10940
10941
10942
10943
cristy73bd4a52010-10-05 11:24:23 +000010944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
10945$as_echo_n "checking for $LD option to reload object files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010946if ${lt_cv_ld_reload_flag+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010947 $as_echo_n "(cached) " >&6
10948else
10949 lt_cv_ld_reload_flag='-r'
10950fi
10951{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
10952$as_echo "$lt_cv_ld_reload_flag" >&6; }
10953reload_flag=$lt_cv_ld_reload_flag
10954case $reload_flag in
10955"" | " "*) ;;
10956*) reload_flag=" $reload_flag" ;;
10957esac
10958reload_cmds='$LD$reload_flag -o $output$reload_objs'
10959case $host_os in
cristyda16f162011-02-19 23:52:17 +000010960 cygwin* | mingw* | pw32* | cegcc*)
10961 if test "$GCC" != yes; then
10962 reload_cmds=false
10963 fi
10964 ;;
cristy73bd4a52010-10-05 11:24:23 +000010965 darwin*)
10966 if test "$GCC" = yes; then
10967 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10968 else
10969 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10970 fi
10971 ;;
10972esac
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982if test -n "$ac_tool_prefix"; then
10983 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10984set dummy ${ac_tool_prefix}objdump; ac_word=$2
10985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10986$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000010987if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000010988 $as_echo_n "(cached) " >&6
10989else
10990 if test -n "$OBJDUMP"; then
10991 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10992else
10993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10994for as_dir in $PATH
10995do
10996 IFS=$as_save_IFS
10997 test -z "$as_dir" && as_dir=.
10998 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000010999 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011000 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11002 break 2
11003 fi
11004done
11005 done
11006IFS=$as_save_IFS
11007
11008fi
11009fi
11010OBJDUMP=$ac_cv_prog_OBJDUMP
11011if test -n "$OBJDUMP"; then
11012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11013$as_echo "$OBJDUMP" >&6; }
11014else
11015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11016$as_echo "no" >&6; }
11017fi
11018
11019
11020fi
11021if test -z "$ac_cv_prog_OBJDUMP"; then
11022 ac_ct_OBJDUMP=$OBJDUMP
11023 # Extract the first word of "objdump", so it can be a program name with args.
11024set dummy objdump; ac_word=$2
11025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11026$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011027if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011028 $as_echo_n "(cached) " >&6
11029else
11030 if test -n "$ac_ct_OBJDUMP"; then
11031 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11032else
11033as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11034for as_dir in $PATH
11035do
11036 IFS=$as_save_IFS
11037 test -z "$as_dir" && as_dir=.
11038 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011039 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011040 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11042 break 2
11043 fi
11044done
11045 done
11046IFS=$as_save_IFS
11047
11048fi
11049fi
11050ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11051if test -n "$ac_ct_OBJDUMP"; then
11052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11053$as_echo "$ac_ct_OBJDUMP" >&6; }
11054else
11055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11056$as_echo "no" >&6; }
11057fi
11058
11059 if test "x$ac_ct_OBJDUMP" = x; then
11060 OBJDUMP="false"
11061 else
11062 case $cross_compiling:$ac_tool_warned in
11063yes:)
11064{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11065$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11066ac_tool_warned=yes ;;
11067esac
11068 OBJDUMP=$ac_ct_OBJDUMP
11069 fi
11070else
11071 OBJDUMP="$ac_cv_prog_OBJDUMP"
11072fi
11073
11074test -z "$OBJDUMP" && OBJDUMP=objdump
11075
11076
11077
11078
11079
11080
11081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
11082$as_echo_n "checking how to recognize dependent libraries... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011083if ${lt_cv_deplibs_check_method+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011084 $as_echo_n "(cached) " >&6
11085else
11086 lt_cv_file_magic_cmd='$MAGIC_CMD'
11087lt_cv_file_magic_test_file=
11088lt_cv_deplibs_check_method='unknown'
11089# Need to set the preceding variable on all platforms that support
11090# interlibrary dependencies.
11091# 'none' -- dependencies not supported.
11092# `unknown' -- same as none, but documents that we really don't know.
11093# 'pass_all' -- all dependencies passed with no checks.
11094# 'test_compile' -- check by making test program.
11095# 'file_magic [[regex]]' -- check by looking for files in library path
11096# which responds to the $file_magic_cmd with a given extended regex.
11097# If you have `file' or equivalent on your system and you're not sure
11098# whether `pass_all' will *always* work, you probably want this one.
11099
11100case $host_os in
11101aix[4-9]*)
11102 lt_cv_deplibs_check_method=pass_all
11103 ;;
11104
11105beos*)
11106 lt_cv_deplibs_check_method=pass_all
11107 ;;
11108
11109bsdi[45]*)
11110 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
11111 lt_cv_file_magic_cmd='/usr/bin/file -L'
11112 lt_cv_file_magic_test_file=/shlib/libc.so
11113 ;;
11114
11115cygwin*)
11116 # func_win32_libid is a shell function defined in ltmain.sh
11117 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11118 lt_cv_file_magic_cmd='func_win32_libid'
11119 ;;
11120
11121mingw* | pw32*)
11122 # Base MSYS/MinGW do not provide the 'file' command needed by
11123 # func_win32_libid shell function, so use a weaker test based on 'objdump',
11124 # unless we find 'file', for example because we are cross-compiling.
cristy0c60a692010-11-04 01:09:47 +000011125 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
11126 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
cristy73bd4a52010-10-05 11:24:23 +000011127 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
11128 lt_cv_file_magic_cmd='func_win32_libid'
11129 else
cristy0c60a692010-11-04 01:09:47 +000011130 # Keep this pattern in sync with the one in func_win32_libid.
11131 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 +000011132 lt_cv_file_magic_cmd='$OBJDUMP -f'
11133 fi
11134 ;;
11135
cristy0c60a692010-11-04 01:09:47 +000011136cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000011137 # use the weaker test based on 'objdump'. See mingw*.
11138 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
11139 lt_cv_file_magic_cmd='$OBJDUMP -f'
11140 ;;
11141
11142darwin* | rhapsody*)
11143 lt_cv_deplibs_check_method=pass_all
11144 ;;
11145
11146freebsd* | dragonfly*)
11147 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11148 case $host_cpu in
11149 i*86 )
11150 # Not sure whether the presence of OpenBSD here was a mistake.
11151 # Let's accept both of them until this is cleared up.
11152 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
11153 lt_cv_file_magic_cmd=/usr/bin/file
11154 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
11155 ;;
11156 esac
11157 else
11158 lt_cv_deplibs_check_method=pass_all
11159 fi
11160 ;;
11161
11162gnu*)
11163 lt_cv_deplibs_check_method=pass_all
11164 ;;
11165
cristy0c60a692010-11-04 01:09:47 +000011166haiku*)
11167 lt_cv_deplibs_check_method=pass_all
11168 ;;
11169
cristy73bd4a52010-10-05 11:24:23 +000011170hpux10.20* | hpux11*)
11171 lt_cv_file_magic_cmd=/usr/bin/file
11172 case $host_cpu in
11173 ia64*)
11174 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
11175 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
11176 ;;
11177 hppa*64*)
cristy0c60a692010-11-04 01:09:47 +000011178 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 +000011179 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
11180 ;;
11181 *)
cristy0c60a692010-11-04 01:09:47 +000011182 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 +000011183 lt_cv_file_magic_test_file=/usr/lib/libc.sl
11184 ;;
11185 esac
11186 ;;
11187
11188interix[3-9]*)
11189 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
11190 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
11191 ;;
11192
11193irix5* | irix6* | nonstopux*)
11194 case $LD in
11195 *-32|*"-32 ") libmagic=32-bit;;
11196 *-n32|*"-n32 ") libmagic=N32;;
11197 *-64|*"-64 ") libmagic=64-bit;;
11198 *) libmagic=never-match;;
11199 esac
11200 lt_cv_deplibs_check_method=pass_all
11201 ;;
11202
cristy99bd5232011-12-07 14:38:20 +000011203# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000011204linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000011205 lt_cv_deplibs_check_method=pass_all
11206 ;;
11207
11208netbsd*)
11209 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
11210 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11211 else
11212 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
11213 fi
11214 ;;
11215
11216newos6*)
11217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
11218 lt_cv_file_magic_cmd=/usr/bin/file
11219 lt_cv_file_magic_test_file=/usr/lib/libnls.so
11220 ;;
11221
11222*nto* | *qnx*)
11223 lt_cv_deplibs_check_method=pass_all
11224 ;;
11225
11226openbsd*)
11227 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11228 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
11229 else
11230 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
11231 fi
11232 ;;
11233
11234osf3* | osf4* | osf5*)
11235 lt_cv_deplibs_check_method=pass_all
11236 ;;
11237
11238rdos*)
11239 lt_cv_deplibs_check_method=pass_all
11240 ;;
11241
11242solaris*)
11243 lt_cv_deplibs_check_method=pass_all
11244 ;;
11245
11246sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11247 lt_cv_deplibs_check_method=pass_all
11248 ;;
11249
11250sysv4 | sysv4.3*)
11251 case $host_vendor in
11252 motorola)
11253 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]'
11254 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
11255 ;;
11256 ncr)
11257 lt_cv_deplibs_check_method=pass_all
11258 ;;
11259 sequent)
11260 lt_cv_file_magic_cmd='/bin/file'
11261 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
11262 ;;
11263 sni)
11264 lt_cv_file_magic_cmd='/bin/file'
11265 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
11266 lt_cv_file_magic_test_file=/lib/libc.so
11267 ;;
11268 siemens)
11269 lt_cv_deplibs_check_method=pass_all
11270 ;;
11271 pc)
11272 lt_cv_deplibs_check_method=pass_all
11273 ;;
11274 esac
11275 ;;
11276
11277tpf*)
11278 lt_cv_deplibs_check_method=pass_all
11279 ;;
11280esac
11281
11282fi
11283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
11284$as_echo "$lt_cv_deplibs_check_method" >&6; }
cristyda16f162011-02-19 23:52:17 +000011285
11286file_magic_glob=
11287want_nocaseglob=no
11288if test "$build" = "$host"; then
11289 case $host_os in
11290 mingw* | pw32*)
11291 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
11292 want_nocaseglob=yes
11293 else
11294 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
11295 fi
11296 ;;
11297 esac
11298fi
11299
cristy73bd4a52010-10-05 11:24:23 +000011300file_magic_cmd=$lt_cv_file_magic_cmd
11301deplibs_check_method=$lt_cv_deplibs_check_method
11302test -z "$deplibs_check_method" && deplibs_check_method=unknown
11303
11304
11305
11306
11307
11308
11309
11310
11311
11312
11313
11314
cristyda16f162011-02-19 23:52:17 +000011315
11316
11317
11318
11319
11320
11321
11322
11323
11324
cristy73bd4a52010-10-05 11:24:23 +000011325if test -n "$ac_tool_prefix"; then
cristyda16f162011-02-19 23:52:17 +000011326 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11327set dummy ${ac_tool_prefix}dlltool; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11329$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011330if ${ac_cv_prog_DLLTOOL+:} false; then :
11331 $as_echo_n "(cached) " >&6
11332else
11333 if test -n "$DLLTOOL"; then
11334 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11335else
11336as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11337for as_dir in $PATH
11338do
11339 IFS=$as_save_IFS
11340 test -z "$as_dir" && as_dir=.
11341 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011342 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011343 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11344 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11345 break 2
11346 fi
11347done
11348 done
11349IFS=$as_save_IFS
11350
11351fi
11352fi
11353DLLTOOL=$ac_cv_prog_DLLTOOL
11354if test -n "$DLLTOOL"; then
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11356$as_echo "$DLLTOOL" >&6; }
11357else
11358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11359$as_echo "no" >&6; }
11360fi
11361
11362
11363fi
11364if test -z "$ac_cv_prog_DLLTOOL"; then
11365 ac_ct_DLLTOOL=$DLLTOOL
11366 # Extract the first word of "dlltool", so it can be a program name with args.
11367set dummy dlltool; ac_word=$2
11368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11369$as_echo_n "checking for $ac_word... " >&6; }
11370if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
11371 $as_echo_n "(cached) " >&6
11372else
11373 if test -n "$ac_ct_DLLTOOL"; then
11374 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11375else
11376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11377for as_dir in $PATH
11378do
11379 IFS=$as_save_IFS
11380 test -z "$as_dir" && as_dir=.
11381 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011383 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11385 break 2
11386 fi
11387done
11388 done
11389IFS=$as_save_IFS
11390
11391fi
11392fi
11393ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11394if test -n "$ac_ct_DLLTOOL"; then
11395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11396$as_echo "$ac_ct_DLLTOOL" >&6; }
11397else
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11399$as_echo "no" >&6; }
11400fi
11401
11402 if test "x$ac_ct_DLLTOOL" = x; then
11403 DLLTOOL="false"
11404 else
11405 case $cross_compiling:$ac_tool_warned in
11406yes:)
11407{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11408$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11409ac_tool_warned=yes ;;
11410esac
11411 DLLTOOL=$ac_ct_DLLTOOL
11412 fi
11413else
11414 DLLTOOL="$ac_cv_prog_DLLTOOL"
11415fi
11416
11417test -z "$DLLTOOL" && DLLTOOL=dlltool
11418
11419
11420
11421
11422
11423
11424
11425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
11426$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
11427if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
11428 $as_echo_n "(cached) " >&6
11429else
11430 lt_cv_sharedlib_from_linklib_cmd='unknown'
11431
11432case $host_os in
11433cygwin* | mingw* | pw32* | cegcc*)
11434 # two different shell functions defined in ltmain.sh
11435 # decide which to use based on capabilities of $DLLTOOL
11436 case `$DLLTOOL --help 2>&1` in
11437 *--identify-strict*)
11438 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
11439 ;;
11440 *)
11441 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
11442 ;;
11443 esac
11444 ;;
11445*)
11446 # fallback: assume linklib IS sharedlib
11447 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
11448 ;;
11449esac
11450
11451fi
11452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
11453$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
11454sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
11455test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
11456
11457
11458
11459
11460
11461
11462
11463if test -n "$ac_tool_prefix"; then
11464 for ac_prog in ar
11465 do
11466 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11467set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11469$as_echo_n "checking for $ac_word... " >&6; }
11470if ${ac_cv_prog_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011471 $as_echo_n "(cached) " >&6
11472else
11473 if test -n "$AR"; then
11474 ac_cv_prog_AR="$AR" # Let the user override the test.
11475else
11476as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11477for as_dir in $PATH
11478do
11479 IFS=$as_save_IFS
11480 test -z "$as_dir" && as_dir=.
11481 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011482 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011483 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11485 break 2
11486 fi
11487done
11488 done
11489IFS=$as_save_IFS
11490
11491fi
11492fi
11493AR=$ac_cv_prog_AR
11494if test -n "$AR"; then
11495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
11496$as_echo "$AR" >&6; }
11497else
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11499$as_echo "no" >&6; }
11500fi
11501
11502
cristyda16f162011-02-19 23:52:17 +000011503 test -n "$AR" && break
11504 done
cristy73bd4a52010-10-05 11:24:23 +000011505fi
cristyda16f162011-02-19 23:52:17 +000011506if test -z "$AR"; then
cristy73bd4a52010-10-05 11:24:23 +000011507 ac_ct_AR=$AR
cristyda16f162011-02-19 23:52:17 +000011508 for ac_prog in ar
11509do
11510 # Extract the first word of "$ac_prog", so it can be a program name with args.
11511set dummy $ac_prog; ac_word=$2
cristy73bd4a52010-10-05 11:24:23 +000011512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11513$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011514if ${ac_cv_prog_ac_ct_AR+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011515 $as_echo_n "(cached) " >&6
11516else
11517 if test -n "$ac_ct_AR"; then
11518 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11519else
11520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11521for as_dir in $PATH
11522do
11523 IFS=$as_save_IFS
11524 test -z "$as_dir" && as_dir=.
11525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000011527 ac_cv_prog_ac_ct_AR="$ac_prog"
cristy73bd4a52010-10-05 11:24:23 +000011528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11529 break 2
11530 fi
11531done
11532 done
11533IFS=$as_save_IFS
11534
11535fi
11536fi
11537ac_ct_AR=$ac_cv_prog_ac_ct_AR
11538if test -n "$ac_ct_AR"; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
11540$as_echo "$ac_ct_AR" >&6; }
11541else
11542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11543$as_echo "no" >&6; }
11544fi
11545
cristyda16f162011-02-19 23:52:17 +000011546
11547 test -n "$ac_ct_AR" && break
11548done
11549
cristy73bd4a52010-10-05 11:24:23 +000011550 if test "x$ac_ct_AR" = x; then
11551 AR="false"
11552 else
11553 case $cross_compiling:$ac_tool_warned in
11554yes:)
11555{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11556$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11557ac_tool_warned=yes ;;
11558esac
11559 AR=$ac_ct_AR
11560 fi
cristy73bd4a52010-10-05 11:24:23 +000011561fi
11562
cristyda16f162011-02-19 23:52:17 +000011563: ${AR=ar}
11564: ${AR_FLAGS=cru}
cristy73bd4a52010-10-05 11:24:23 +000011565
11566
11567
11568
11569
11570
11571
11572
11573
11574
11575
cristyda16f162011-02-19 23:52:17 +000011576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
11577$as_echo_n "checking for archiver @FILE support... " >&6; }
11578if ${lt_cv_ar_at_file+:} false; then :
11579 $as_echo_n "(cached) " >&6
11580else
11581 lt_cv_ar_at_file=no
11582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11583/* end confdefs.h. */
11584
11585int
11586main ()
11587{
11588
11589 ;
11590 return 0;
11591}
11592_ACEOF
11593if ac_fn_c_try_compile "$LINENO"; then :
11594 echo conftest.$ac_objext > conftest.lst
11595 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
11596 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11597 (eval $lt_ar_try) 2>&5
11598 ac_status=$?
11599 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11600 test $ac_status = 0; }
11601 if test "$ac_status" -eq 0; then
11602 # Ensure the archiver fails upon bogus file names.
11603 rm -f conftest.$ac_objext libconftest.a
11604 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
11605 (eval $lt_ar_try) 2>&5
11606 ac_status=$?
11607 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11608 test $ac_status = 0; }
11609 if test "$ac_status" -ne 0; then
11610 lt_cv_ar_at_file=@
11611 fi
11612 fi
11613 rm -f conftest.* libconftest.a
11614
11615fi
11616rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11617
11618fi
11619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
11620$as_echo "$lt_cv_ar_at_file" >&6; }
11621
11622if test "x$lt_cv_ar_at_file" = xno; then
11623 archiver_list_spec=
11624else
11625 archiver_list_spec=$lt_cv_ar_at_file
11626fi
11627
11628
11629
11630
11631
11632
11633
cristy73bd4a52010-10-05 11:24:23 +000011634if test -n "$ac_tool_prefix"; then
11635 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11636set dummy ${ac_tool_prefix}strip; ac_word=$2
11637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011639if ${ac_cv_prog_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011640 $as_echo_n "(cached) " >&6
11641else
11642 if test -n "$STRIP"; then
11643 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11644else
11645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11646for as_dir in $PATH
11647do
11648 IFS=$as_save_IFS
11649 test -z "$as_dir" && as_dir=.
11650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011652 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11654 break 2
11655 fi
11656done
11657 done
11658IFS=$as_save_IFS
11659
11660fi
11661fi
11662STRIP=$ac_cv_prog_STRIP
11663if test -n "$STRIP"; then
11664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
11665$as_echo "$STRIP" >&6; }
11666else
11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11668$as_echo "no" >&6; }
11669fi
11670
11671
11672fi
11673if test -z "$ac_cv_prog_STRIP"; then
11674 ac_ct_STRIP=$STRIP
11675 # Extract the first word of "strip", so it can be a program name with args.
11676set dummy strip; ac_word=$2
11677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011679if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011680 $as_echo_n "(cached) " >&6
11681else
11682 if test -n "$ac_ct_STRIP"; then
11683 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11684else
11685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11686for as_dir in $PATH
11687do
11688 IFS=$as_save_IFS
11689 test -z "$as_dir" && as_dir=.
11690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011692 ac_cv_prog_ac_ct_STRIP="strip"
11693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11694 break 2
11695 fi
11696done
11697 done
11698IFS=$as_save_IFS
11699
11700fi
11701fi
11702ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11703if test -n "$ac_ct_STRIP"; then
11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
11705$as_echo "$ac_ct_STRIP" >&6; }
11706else
11707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11708$as_echo "no" >&6; }
11709fi
11710
11711 if test "x$ac_ct_STRIP" = x; then
11712 STRIP=":"
11713 else
11714 case $cross_compiling:$ac_tool_warned in
11715yes:)
11716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11718ac_tool_warned=yes ;;
11719esac
11720 STRIP=$ac_ct_STRIP
11721 fi
11722else
11723 STRIP="$ac_cv_prog_STRIP"
11724fi
11725
11726test -z "$STRIP" && STRIP=:
11727
11728
11729
11730
11731
11732
11733if test -n "$ac_tool_prefix"; then
11734 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11735set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11737$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011738if ${ac_cv_prog_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011739 $as_echo_n "(cached) " >&6
11740else
11741 if test -n "$RANLIB"; then
11742 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11743else
11744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11745for as_dir in $PATH
11746do
11747 IFS=$as_save_IFS
11748 test -z "$as_dir" && as_dir=.
11749 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011750 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011751 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11753 break 2
11754 fi
11755done
11756 done
11757IFS=$as_save_IFS
11758
11759fi
11760fi
11761RANLIB=$ac_cv_prog_RANLIB
11762if test -n "$RANLIB"; then
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
11764$as_echo "$RANLIB" >&6; }
11765else
11766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11767$as_echo "no" >&6; }
11768fi
11769
11770
11771fi
11772if test -z "$ac_cv_prog_RANLIB"; then
11773 ac_ct_RANLIB=$RANLIB
11774 # Extract the first word of "ranlib", so it can be a program name with args.
11775set dummy ranlib; ac_word=$2
11776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11777$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011778if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011779 $as_echo_n "(cached) " >&6
11780else
11781 if test -n "$ac_ct_RANLIB"; then
11782 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11783else
11784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11785for as_dir in $PATH
11786do
11787 IFS=$as_save_IFS
11788 test -z "$as_dir" && as_dir=.
11789 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000011790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000011791 ac_cv_prog_ac_ct_RANLIB="ranlib"
11792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11793 break 2
11794 fi
11795done
11796 done
11797IFS=$as_save_IFS
11798
11799fi
11800fi
11801ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11802if test -n "$ac_ct_RANLIB"; then
11803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
11804$as_echo "$ac_ct_RANLIB" >&6; }
11805else
11806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11807$as_echo "no" >&6; }
11808fi
11809
11810 if test "x$ac_ct_RANLIB" = x; then
11811 RANLIB=":"
11812 else
11813 case $cross_compiling:$ac_tool_warned in
11814yes:)
11815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11817ac_tool_warned=yes ;;
11818esac
11819 RANLIB=$ac_ct_RANLIB
11820 fi
11821else
11822 RANLIB="$ac_cv_prog_RANLIB"
11823fi
11824
11825test -z "$RANLIB" && RANLIB=:
11826
11827
11828
11829
11830
11831
11832# Determine commands to create old-style static archives.
11833old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
11834old_postinstall_cmds='chmod 644 $oldlib'
11835old_postuninstall_cmds=
11836
11837if test -n "$RANLIB"; then
11838 case $host_os in
11839 openbsd*)
cristy99bd5232011-12-07 14:38:20 +000011840 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011841 ;;
11842 *)
cristy99bd5232011-12-07 14:38:20 +000011843 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011844 ;;
11845 esac
cristy99bd5232011-12-07 14:38:20 +000011846 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
cristy73bd4a52010-10-05 11:24:23 +000011847fi
11848
cristy0c60a692010-11-04 01:09:47 +000011849case $host_os in
11850 darwin*)
11851 lock_old_archive_extraction=yes ;;
11852 *)
11853 lock_old_archive_extraction=no ;;
11854esac
11855
11856
11857
11858
11859
11860
cristy73bd4a52010-10-05 11:24:23 +000011861
11862
11863
11864
11865
11866
11867
11868
11869
11870
11871
11872
11873
11874
11875
11876
11877
11878
11879
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894# If no C compiler was specified, use CC.
11895LTCC=${LTCC-"$CC"}
11896
11897# If no C compiler flags were specified, use CFLAGS.
11898LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11899
11900# Allow CC to be a program name with arguments.
11901compiler=$CC
11902
11903
11904# Check for command to grab the raw symbol name followed by C symbol from nm.
11905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
11906$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
cristyda16f162011-02-19 23:52:17 +000011907if ${lt_cv_sys_global_symbol_pipe+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000011908 $as_echo_n "(cached) " >&6
11909else
11910
11911# These are sane defaults that work on at least a few old systems.
11912# [They come from Ultrix. What could be older than Ultrix?!! ;)]
11913
11914# Character class describing NM global symbol codes.
11915symcode='[BCDEGRST]'
11916
11917# Regexp to match symbols that can be accessed directly from C.
11918sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
11919
11920# Define system-specific variables.
11921case $host_os in
11922aix*)
11923 symcode='[BCDT]'
11924 ;;
11925cygwin* | mingw* | pw32* | cegcc*)
11926 symcode='[ABCDGISTW]'
11927 ;;
11928hpux*)
11929 if test "$host_cpu" = ia64; then
11930 symcode='[ABCDEGRST]'
11931 fi
11932 ;;
11933irix* | nonstopux*)
11934 symcode='[BCDEGRST]'
11935 ;;
11936osf*)
11937 symcode='[BCDEGQRST]'
11938 ;;
11939solaris*)
11940 symcode='[BDRT]'
11941 ;;
11942sco3.2v5*)
11943 symcode='[DT]'
11944 ;;
11945sysv4.2uw2*)
11946 symcode='[DT]'
11947 ;;
11948sysv5* | sco5v6* | unixware* | OpenUNIX*)
11949 symcode='[ABDT]'
11950 ;;
11951sysv4)
11952 symcode='[DFNSTU]'
11953 ;;
11954esac
11955
11956# If we're using GNU nm, then use its standard symbol codes.
11957case `$NM -V 2>&1` in
11958*GNU* | *'with BFD'*)
11959 symcode='[ABCDGIRSTW]' ;;
11960esac
11961
11962# Transform an extracted symbol line into a proper C declaration.
11963# Some systems (esp. on ia64) link data and code symbols differently,
11964# so use this general approach.
11965lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11966
11967# Transform an extracted symbol line into symbol name and symbol address
cristyda16f162011-02-19 23:52:17 +000011968lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
11969lt_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 +000011970
11971# Handle CRLF in mingw tool chain
11972opt_cr=
11973case $build_os in
11974mingw*)
11975 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11976 ;;
11977esac
11978
11979# Try without a prefix underscore, then with it.
11980for ac_symprfx in "" "_"; do
11981
11982 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11983 symxfrm="\\1 $ac_symprfx\\2 \\2"
11984
11985 # Write the raw and C identifiers.
11986 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
11987 # Fake it for dumpbin and say T for any non-static function
11988 # and D for any global variable.
11989 # Also find C++ and __fastcall symbols from MSVC++,
11990 # which start with @ or ?.
11991 lt_cv_sys_global_symbol_pipe="$AWK '"\
11992" {last_section=section; section=\$ 3};"\
cristy99bd5232011-12-07 14:38:20 +000011993" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
cristy73bd4a52010-10-05 11:24:23 +000011994" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
11995" \$ 0!~/External *\|/{next};"\
11996" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
11997" {if(hide[section]) next};"\
11998" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
11999" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
12000" s[1]~/^[@?]/{print s[1], s[1]; next};"\
12001" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
12002" ' prfx=^$ac_symprfx"
12003 else
12004 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
12005 fi
cristyda16f162011-02-19 23:52:17 +000012006 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
cristy73bd4a52010-10-05 11:24:23 +000012007
12008 # Check to see that the pipe works correctly.
12009 pipe_works=no
12010
12011 rm -f conftest*
12012 cat > conftest.$ac_ext <<_LT_EOF
12013#ifdef __cplusplus
12014extern "C" {
12015#endif
12016char nm_test_var;
12017void nm_test_func(void);
12018void nm_test_func(void){}
12019#ifdef __cplusplus
12020}
12021#endif
12022int main(){nm_test_var='a';nm_test_func();return(0);}
12023_LT_EOF
12024
12025 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12026 (eval $ac_compile) 2>&5
12027 ac_status=$?
12028 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12029 test $ac_status = 0; }; then
12030 # Now try to grab the symbols.
12031 nlist=conftest.nm
cristy0c60a692010-11-04 01:09:47 +000012032 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
12033 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
cristy73bd4a52010-10-05 11:24:23 +000012034 ac_status=$?
12035 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12036 test $ac_status = 0; } && test -s "$nlist"; then
12037 # Try sorting and uniquifying the output.
12038 if sort "$nlist" | uniq > "$nlist"T; then
12039 mv -f "$nlist"T "$nlist"
12040 else
12041 rm -f "$nlist"T
12042 fi
12043
12044 # Make sure that we snagged all the symbols we need.
12045 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
12046 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
12047 cat <<_LT_EOF > conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000012048/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
12049#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
12050/* DATA imports from DLLs on WIN32 con't be const, because runtime
12051 relocations are performed -- see ld's documentation on pseudo-relocs. */
12052# define LT_DLSYM_CONST
12053#elif defined(__osf__)
12054/* This system does not cope well with relocations in const data. */
12055# define LT_DLSYM_CONST
12056#else
12057# define LT_DLSYM_CONST const
12058#endif
12059
cristy73bd4a52010-10-05 11:24:23 +000012060#ifdef __cplusplus
12061extern "C" {
12062#endif
12063
12064_LT_EOF
12065 # Now generate the symbol file.
12066 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
12067
12068 cat <<_LT_EOF >> conftest.$ac_ext
12069
12070/* The mapping between symbol names and symbols. */
cristyda16f162011-02-19 23:52:17 +000012071LT_DLSYM_CONST struct {
cristy73bd4a52010-10-05 11:24:23 +000012072 const char *name;
12073 void *address;
12074}
12075lt__PROGRAM__LTX_preloaded_symbols[] =
12076{
12077 { "@PROGRAM@", (void *) 0 },
12078_LT_EOF
12079 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
12080 cat <<\_LT_EOF >> conftest.$ac_ext
12081 {0, (void *) 0}
12082};
12083
12084/* This works around a problem in FreeBSD linker */
12085#ifdef FREEBSD_WORKAROUND
12086static const void *lt_preloaded_setup() {
12087 return lt__PROGRAM__LTX_preloaded_symbols;
12088}
12089#endif
12090
12091#ifdef __cplusplus
12092}
12093#endif
12094_LT_EOF
12095 # Now try linking the two files.
12096 mv conftest.$ac_objext conftstm.$ac_objext
cristyda16f162011-02-19 23:52:17 +000012097 lt_globsym_save_LIBS=$LIBS
12098 lt_globsym_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012099 LIBS="conftstm.$ac_objext"
12100 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
12101 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12102 (eval $ac_link) 2>&5
12103 ac_status=$?
12104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12105 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
12106 pipe_works=yes
12107 fi
cristyda16f162011-02-19 23:52:17 +000012108 LIBS=$lt_globsym_save_LIBS
12109 CFLAGS=$lt_globsym_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000012110 else
12111 echo "cannot find nm_test_func in $nlist" >&5
12112 fi
12113 else
12114 echo "cannot find nm_test_var in $nlist" >&5
12115 fi
12116 else
12117 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
12118 fi
12119 else
12120 echo "$progname: failed program was:" >&5
12121 cat conftest.$ac_ext >&5
12122 fi
12123 rm -rf conftest* conftst*
12124
12125 # Do not use the global_symbol_pipe unless it works.
12126 if test "$pipe_works" = yes; then
12127 break
12128 else
12129 lt_cv_sys_global_symbol_pipe=
12130 fi
12131done
12132
12133fi
12134
12135if test -z "$lt_cv_sys_global_symbol_pipe"; then
12136 lt_cv_sys_global_symbol_to_cdecl=
12137fi
12138if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
12140$as_echo "failed" >&6; }
12141else
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
12143$as_echo "ok" >&6; }
12144fi
12145
cristyda16f162011-02-19 23:52:17 +000012146# Response file support.
12147if test "$lt_cv_nm_interface" = "MS dumpbin"; then
12148 nm_file_list_spec='@'
12149elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
12150 nm_file_list_spec='@'
12151fi
cristy73bd4a52010-10-05 11:24:23 +000012152
12153
12154
12155
12156
12157
12158
12159
12160
12161
12162
12163
12164
12165
12166
12167
12168
12169
12170
12171
12172
cristyda16f162011-02-19 23:52:17 +000012173
12174
12175
12176
12177
12178
12179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
12180$as_echo_n "checking for sysroot... " >&6; }
12181
12182# Check whether --with-sysroot was given.
12183if test "${with_sysroot+set}" = set; then :
12184 withval=$with_sysroot;
12185else
12186 with_sysroot=no
12187fi
12188
12189
12190lt_sysroot=
12191case ${with_sysroot} in #(
12192 yes)
12193 if test "$GCC" = yes; then
12194 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
12195 fi
12196 ;; #(
12197 /*)
12198 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
12199 ;; #(
12200 no|'')
12201 ;; #(
12202 *)
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
12204$as_echo "${with_sysroot}" >&6; }
12205 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
12206 ;;
12207esac
12208
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
12210$as_echo "${lt_sysroot:-no}" >&6; }
12211
12212
12213
12214
12215
cristy73bd4a52010-10-05 11:24:23 +000012216# Check whether --enable-libtool-lock was given.
12217if test "${enable_libtool_lock+set}" = set; then :
12218 enableval=$enable_libtool_lock;
12219fi
12220
12221test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
12222
12223# Some flags need to be propagated to the compiler or linker for good
12224# libtool support.
12225case $host in
12226ia64-*-hpux*)
12227 # Find out which ABI we are using.
12228 echo 'int i;' > conftest.$ac_ext
12229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12230 (eval $ac_compile) 2>&5
12231 ac_status=$?
12232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12233 test $ac_status = 0; }; then
12234 case `/usr/bin/file conftest.$ac_objext` in
12235 *ELF-32*)
12236 HPUX_IA64_MODE="32"
12237 ;;
12238 *ELF-64*)
12239 HPUX_IA64_MODE="64"
12240 ;;
12241 esac
12242 fi
12243 rm -rf conftest*
12244 ;;
12245*-*-irix6*)
12246 # Find out which ABI we are using.
cristy0c60a692010-11-04 01:09:47 +000012247 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000012248 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12249 (eval $ac_compile) 2>&5
12250 ac_status=$?
12251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12252 test $ac_status = 0; }; then
12253 if test "$lt_cv_prog_gnu_ld" = yes; then
12254 case `/usr/bin/file conftest.$ac_objext` in
12255 *32-bit*)
12256 LD="${LD-ld} -melf32bsmip"
12257 ;;
12258 *N32*)
12259 LD="${LD-ld} -melf32bmipn32"
12260 ;;
12261 *64-bit*)
12262 LD="${LD-ld} -melf64bmip"
12263 ;;
12264 esac
12265 else
12266 case `/usr/bin/file conftest.$ac_objext` in
12267 *32-bit*)
12268 LD="${LD-ld} -32"
12269 ;;
12270 *N32*)
12271 LD="${LD-ld} -n32"
12272 ;;
12273 *64-bit*)
12274 LD="${LD-ld} -64"
12275 ;;
12276 esac
12277 fi
12278 fi
12279 rm -rf conftest*
12280 ;;
12281
12282x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
12283s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
12284 # Find out which ABI we are using.
12285 echo 'int i;' > conftest.$ac_ext
12286 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12287 (eval $ac_compile) 2>&5
12288 ac_status=$?
12289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12290 test $ac_status = 0; }; then
12291 case `/usr/bin/file conftest.o` in
12292 *32-bit*)
12293 case $host in
12294 x86_64-*kfreebsd*-gnu)
12295 LD="${LD-ld} -m elf_i386_fbsd"
12296 ;;
12297 x86_64-*linux*)
12298 LD="${LD-ld} -m elf_i386"
12299 ;;
12300 ppc64-*linux*|powerpc64-*linux*)
12301 LD="${LD-ld} -m elf32ppclinux"
12302 ;;
12303 s390x-*linux*)
12304 LD="${LD-ld} -m elf_s390"
12305 ;;
12306 sparc64-*linux*)
12307 LD="${LD-ld} -m elf32_sparc"
12308 ;;
12309 esac
12310 ;;
12311 *64-bit*)
12312 case $host in
12313 x86_64-*kfreebsd*-gnu)
12314 LD="${LD-ld} -m elf_x86_64_fbsd"
12315 ;;
12316 x86_64-*linux*)
12317 LD="${LD-ld} -m elf_x86_64"
12318 ;;
12319 ppc*-*linux*|powerpc*-*linux*)
12320 LD="${LD-ld} -m elf64ppc"
12321 ;;
12322 s390*-*linux*|s390*-*tpf*)
12323 LD="${LD-ld} -m elf64_s390"
12324 ;;
12325 sparc*-*linux*)
12326 LD="${LD-ld} -m elf64_sparc"
12327 ;;
12328 esac
12329 ;;
12330 esac
12331 fi
12332 rm -rf conftest*
12333 ;;
12334
12335*-*-sco3.2v5*)
12336 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
12337 SAVE_CFLAGS="$CFLAGS"
12338 CFLAGS="$CFLAGS -belf"
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
12340$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012341if ${lt_cv_cc_needs_belf+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012342 $as_echo_n "(cached) " >&6
12343else
12344 ac_ext=c
12345ac_cpp='$CPP $CPPFLAGS'
12346ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12347ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12348ac_compiler_gnu=$ac_cv_c_compiler_gnu
12349
12350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12351/* end confdefs.h. */
12352
12353int
12354main ()
12355{
12356
12357 ;
12358 return 0;
12359}
12360_ACEOF
12361if ac_fn_c_try_link "$LINENO"; then :
12362 lt_cv_cc_needs_belf=yes
12363else
12364 lt_cv_cc_needs_belf=no
12365fi
12366rm -f core conftest.err conftest.$ac_objext \
12367 conftest$ac_exeext conftest.$ac_ext
12368 ac_ext=c
12369ac_cpp='$CPP $CPPFLAGS'
12370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12372ac_compiler_gnu=$ac_cv_c_compiler_gnu
12373
12374fi
12375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
12376$as_echo "$lt_cv_cc_needs_belf" >&6; }
12377 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
12378 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
12379 CFLAGS="$SAVE_CFLAGS"
12380 fi
12381 ;;
cristy99bd5232011-12-07 14:38:20 +000012382*-*solaris*)
cristy73bd4a52010-10-05 11:24:23 +000012383 # Find out which ABI we are using.
12384 echo 'int i;' > conftest.$ac_ext
12385 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12386 (eval $ac_compile) 2>&5
12387 ac_status=$?
12388 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12389 test $ac_status = 0; }; then
12390 case `/usr/bin/file conftest.o` in
12391 *64-bit*)
12392 case $lt_cv_prog_gnu_ld in
cristy99bd5232011-12-07 14:38:20 +000012393 yes*)
12394 case $host in
12395 i?86-*-solaris*)
12396 LD="${LD-ld} -m elf_x86_64"
12397 ;;
12398 sparc*-*-solaris*)
12399 LD="${LD-ld} -m elf64_sparc"
12400 ;;
12401 esac
12402 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
12403 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
12404 LD="${LD-ld}_sol2"
12405 fi
12406 ;;
cristy73bd4a52010-10-05 11:24:23 +000012407 *)
12408 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
12409 LD="${LD-ld} -64"
12410 fi
12411 ;;
12412 esac
12413 ;;
12414 esac
12415 fi
12416 rm -rf conftest*
12417 ;;
12418esac
12419
12420need_locks="$enable_libtool_lock"
12421
cristyda16f162011-02-19 23:52:17 +000012422if test -n "$ac_tool_prefix"; then
12423 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
12424set dummy ${ac_tool_prefix}mt; ac_word=$2
12425{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12426$as_echo_n "checking for $ac_word... " >&6; }
12427if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
12428 $as_echo_n "(cached) " >&6
12429else
12430 if test -n "$MANIFEST_TOOL"; then
12431 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
12432else
12433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12434for as_dir in $PATH
12435do
12436 IFS=$as_save_IFS
12437 test -z "$as_dir" && as_dir=.
12438 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012440 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
12441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12442 break 2
12443 fi
12444done
12445 done
12446IFS=$as_save_IFS
12447
12448fi
12449fi
12450MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
12451if test -n "$MANIFEST_TOOL"; then
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
12453$as_echo "$MANIFEST_TOOL" >&6; }
12454else
12455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12456$as_echo "no" >&6; }
12457fi
12458
12459
12460fi
12461if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
12462 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
12463 # Extract the first word of "mt", so it can be a program name with args.
12464set dummy mt; ac_word=$2
12465{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12466$as_echo_n "checking for $ac_word... " >&6; }
12467if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
12468 $as_echo_n "(cached) " >&6
12469else
12470 if test -n "$ac_ct_MANIFEST_TOOL"; then
12471 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
12472else
12473as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12474for as_dir in $PATH
12475do
12476 IFS=$as_save_IFS
12477 test -z "$as_dir" && as_dir=.
12478 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristyda16f162011-02-19 23:52:17 +000012480 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
12481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12482 break 2
12483 fi
12484done
12485 done
12486IFS=$as_save_IFS
12487
12488fi
12489fi
12490ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
12491if test -n "$ac_ct_MANIFEST_TOOL"; then
12492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
12493$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
12494else
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12496$as_echo "no" >&6; }
12497fi
12498
12499 if test "x$ac_ct_MANIFEST_TOOL" = x; then
12500 MANIFEST_TOOL=":"
12501 else
12502 case $cross_compiling:$ac_tool_warned in
12503yes:)
12504{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12505$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12506ac_tool_warned=yes ;;
12507esac
12508 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
12509 fi
12510else
12511 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
12512fi
12513
12514test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
12515{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
12516$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
12517if ${lt_cv_path_mainfest_tool+:} false; then :
12518 $as_echo_n "(cached) " >&6
12519else
12520 lt_cv_path_mainfest_tool=no
12521 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
12522 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
12523 cat conftest.err >&5
12524 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
12525 lt_cv_path_mainfest_tool=yes
12526 fi
12527 rm -f conftest*
12528fi
12529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
12530$as_echo "$lt_cv_path_mainfest_tool" >&6; }
12531if test "x$lt_cv_path_mainfest_tool" != xyes; then
12532 MANIFEST_TOOL=:
12533fi
12534
12535
12536
12537
12538
cristy73bd4a52010-10-05 11:24:23 +000012539
12540 case $host_os in
12541 rhapsody* | darwin*)
12542 if test -n "$ac_tool_prefix"; then
12543 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
12544set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
12545{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12546$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012547if ${ac_cv_prog_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012548 $as_echo_n "(cached) " >&6
12549else
12550 if test -n "$DSYMUTIL"; then
12551 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
12552else
12553as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12554for as_dir in $PATH
12555do
12556 IFS=$as_save_IFS
12557 test -z "$as_dir" && as_dir=.
12558 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012559 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012560 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
12561 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12562 break 2
12563 fi
12564done
12565 done
12566IFS=$as_save_IFS
12567
12568fi
12569fi
12570DSYMUTIL=$ac_cv_prog_DSYMUTIL
12571if test -n "$DSYMUTIL"; then
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
12573$as_echo "$DSYMUTIL" >&6; }
12574else
12575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12576$as_echo "no" >&6; }
12577fi
12578
12579
12580fi
12581if test -z "$ac_cv_prog_DSYMUTIL"; then
12582 ac_ct_DSYMUTIL=$DSYMUTIL
12583 # Extract the first word of "dsymutil", so it can be a program name with args.
12584set dummy dsymutil; ac_word=$2
12585{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12586$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012587if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012588 $as_echo_n "(cached) " >&6
12589else
12590 if test -n "$ac_ct_DSYMUTIL"; then
12591 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
12592else
12593as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12594for as_dir in $PATH
12595do
12596 IFS=$as_save_IFS
12597 test -z "$as_dir" && as_dir=.
12598 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012599 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012600 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
12601 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12602 break 2
12603 fi
12604done
12605 done
12606IFS=$as_save_IFS
12607
12608fi
12609fi
12610ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
12611if test -n "$ac_ct_DSYMUTIL"; then
12612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
12613$as_echo "$ac_ct_DSYMUTIL" >&6; }
12614else
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616$as_echo "no" >&6; }
12617fi
12618
12619 if test "x$ac_ct_DSYMUTIL" = x; then
12620 DSYMUTIL=":"
12621 else
12622 case $cross_compiling:$ac_tool_warned in
12623yes:)
12624{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12625$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12626ac_tool_warned=yes ;;
12627esac
12628 DSYMUTIL=$ac_ct_DSYMUTIL
12629 fi
12630else
12631 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
12632fi
12633
12634 if test -n "$ac_tool_prefix"; then
12635 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
12636set dummy ${ac_tool_prefix}nmedit; ac_word=$2
12637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12638$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012639if ${ac_cv_prog_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012640 $as_echo_n "(cached) " >&6
12641else
12642 if test -n "$NMEDIT"; then
12643 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
12644else
12645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12646for as_dir in $PATH
12647do
12648 IFS=$as_save_IFS
12649 test -z "$as_dir" && as_dir=.
12650 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012652 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
12653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12654 break 2
12655 fi
12656done
12657 done
12658IFS=$as_save_IFS
12659
12660fi
12661fi
12662NMEDIT=$ac_cv_prog_NMEDIT
12663if test -n "$NMEDIT"; then
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
12665$as_echo "$NMEDIT" >&6; }
12666else
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12668$as_echo "no" >&6; }
12669fi
12670
12671
12672fi
12673if test -z "$ac_cv_prog_NMEDIT"; then
12674 ac_ct_NMEDIT=$NMEDIT
12675 # Extract the first word of "nmedit", so it can be a program name with args.
12676set dummy nmedit; ac_word=$2
12677{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12678$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012679if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012680 $as_echo_n "(cached) " >&6
12681else
12682 if test -n "$ac_ct_NMEDIT"; then
12683 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
12684else
12685as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12686for as_dir in $PATH
12687do
12688 IFS=$as_save_IFS
12689 test -z "$as_dir" && as_dir=.
12690 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012691 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012692 ac_cv_prog_ac_ct_NMEDIT="nmedit"
12693 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12694 break 2
12695 fi
12696done
12697 done
12698IFS=$as_save_IFS
12699
12700fi
12701fi
12702ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
12703if test -n "$ac_ct_NMEDIT"; then
12704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
12705$as_echo "$ac_ct_NMEDIT" >&6; }
12706else
12707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12708$as_echo "no" >&6; }
12709fi
12710
12711 if test "x$ac_ct_NMEDIT" = x; then
12712 NMEDIT=":"
12713 else
12714 case $cross_compiling:$ac_tool_warned in
12715yes:)
12716{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12717$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12718ac_tool_warned=yes ;;
12719esac
12720 NMEDIT=$ac_ct_NMEDIT
12721 fi
12722else
12723 NMEDIT="$ac_cv_prog_NMEDIT"
12724fi
12725
12726 if test -n "$ac_tool_prefix"; then
12727 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
12728set dummy ${ac_tool_prefix}lipo; ac_word=$2
12729{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12730$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012731if ${ac_cv_prog_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012732 $as_echo_n "(cached) " >&6
12733else
12734 if test -n "$LIPO"; then
12735 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
12736else
12737as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12738for as_dir in $PATH
12739do
12740 IFS=$as_save_IFS
12741 test -z "$as_dir" && as_dir=.
12742 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012744 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
12745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12746 break 2
12747 fi
12748done
12749 done
12750IFS=$as_save_IFS
12751
12752fi
12753fi
12754LIPO=$ac_cv_prog_LIPO
12755if test -n "$LIPO"; then
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
12757$as_echo "$LIPO" >&6; }
12758else
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12760$as_echo "no" >&6; }
12761fi
12762
12763
12764fi
12765if test -z "$ac_cv_prog_LIPO"; then
12766 ac_ct_LIPO=$LIPO
12767 # Extract the first word of "lipo", so it can be a program name with args.
12768set dummy lipo; ac_word=$2
12769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12770$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012771if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012772 $as_echo_n "(cached) " >&6
12773else
12774 if test -n "$ac_ct_LIPO"; then
12775 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
12776else
12777as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12778for as_dir in $PATH
12779do
12780 IFS=$as_save_IFS
12781 test -z "$as_dir" && as_dir=.
12782 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012783 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012784 ac_cv_prog_ac_ct_LIPO="lipo"
12785 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12786 break 2
12787 fi
12788done
12789 done
12790IFS=$as_save_IFS
12791
12792fi
12793fi
12794ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
12795if test -n "$ac_ct_LIPO"; then
12796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
12797$as_echo "$ac_ct_LIPO" >&6; }
12798else
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12800$as_echo "no" >&6; }
12801fi
12802
12803 if test "x$ac_ct_LIPO" = x; then
12804 LIPO=":"
12805 else
12806 case $cross_compiling:$ac_tool_warned in
12807yes:)
12808{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12809$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12810ac_tool_warned=yes ;;
12811esac
12812 LIPO=$ac_ct_LIPO
12813 fi
12814else
12815 LIPO="$ac_cv_prog_LIPO"
12816fi
12817
12818 if test -n "$ac_tool_prefix"; then
12819 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
12820set dummy ${ac_tool_prefix}otool; ac_word=$2
12821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12822$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012823if ${ac_cv_prog_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012824 $as_echo_n "(cached) " >&6
12825else
12826 if test -n "$OTOOL"; then
12827 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
12828else
12829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12830for as_dir in $PATH
12831do
12832 IFS=$as_save_IFS
12833 test -z "$as_dir" && as_dir=.
12834 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012836 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
12837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12838 break 2
12839 fi
12840done
12841 done
12842IFS=$as_save_IFS
12843
12844fi
12845fi
12846OTOOL=$ac_cv_prog_OTOOL
12847if test -n "$OTOOL"; then
12848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
12849$as_echo "$OTOOL" >&6; }
12850else
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12852$as_echo "no" >&6; }
12853fi
12854
12855
12856fi
12857if test -z "$ac_cv_prog_OTOOL"; then
12858 ac_ct_OTOOL=$OTOOL
12859 # Extract the first word of "otool", so it can be a program name with args.
12860set dummy otool; ac_word=$2
12861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12862$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012863if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012864 $as_echo_n "(cached) " >&6
12865else
12866 if test -n "$ac_ct_OTOOL"; then
12867 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
12868else
12869as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12870for as_dir in $PATH
12871do
12872 IFS=$as_save_IFS
12873 test -z "$as_dir" && as_dir=.
12874 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012876 ac_cv_prog_ac_ct_OTOOL="otool"
12877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12878 break 2
12879 fi
12880done
12881 done
12882IFS=$as_save_IFS
12883
12884fi
12885fi
12886ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
12887if test -n "$ac_ct_OTOOL"; then
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
12889$as_echo "$ac_ct_OTOOL" >&6; }
12890else
12891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12892$as_echo "no" >&6; }
12893fi
12894
12895 if test "x$ac_ct_OTOOL" = x; then
12896 OTOOL=":"
12897 else
12898 case $cross_compiling:$ac_tool_warned in
12899yes:)
12900{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12901$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12902ac_tool_warned=yes ;;
12903esac
12904 OTOOL=$ac_ct_OTOOL
12905 fi
12906else
12907 OTOOL="$ac_cv_prog_OTOOL"
12908fi
12909
12910 if test -n "$ac_tool_prefix"; then
12911 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
12912set dummy ${ac_tool_prefix}otool64; ac_word=$2
12913{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12914$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012915if ${ac_cv_prog_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012916 $as_echo_n "(cached) " >&6
12917else
12918 if test -n "$OTOOL64"; then
12919 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
12920else
12921as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12922for as_dir in $PATH
12923do
12924 IFS=$as_save_IFS
12925 test -z "$as_dir" && as_dir=.
12926 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012928 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
12929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12930 break 2
12931 fi
12932done
12933 done
12934IFS=$as_save_IFS
12935
12936fi
12937fi
12938OTOOL64=$ac_cv_prog_OTOOL64
12939if test -n "$OTOOL64"; then
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
12941$as_echo "$OTOOL64" >&6; }
12942else
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12944$as_echo "no" >&6; }
12945fi
12946
12947
12948fi
12949if test -z "$ac_cv_prog_OTOOL64"; then
12950 ac_ct_OTOOL64=$OTOOL64
12951 # Extract the first word of "otool64", so it can be a program name with args.
12952set dummy otool64; ac_word=$2
12953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12954$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000012955if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000012956 $as_echo_n "(cached) " >&6
12957else
12958 if test -n "$ac_ct_OTOOL64"; then
12959 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
12960else
12961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12962for as_dir in $PATH
12963do
12964 IFS=$as_save_IFS
12965 test -z "$as_dir" && as_dir=.
12966 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000012967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000012968 ac_cv_prog_ac_ct_OTOOL64="otool64"
12969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12970 break 2
12971 fi
12972done
12973 done
12974IFS=$as_save_IFS
12975
12976fi
12977fi
12978ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
12979if test -n "$ac_ct_OTOOL64"; then
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
12981$as_echo "$ac_ct_OTOOL64" >&6; }
12982else
12983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12984$as_echo "no" >&6; }
12985fi
12986
12987 if test "x$ac_ct_OTOOL64" = x; then
12988 OTOOL64=":"
12989 else
12990 case $cross_compiling:$ac_tool_warned in
12991yes:)
12992{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12993$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12994ac_tool_warned=yes ;;
12995esac
12996 OTOOL64=$ac_ct_OTOOL64
12997 fi
12998else
12999 OTOOL64="$ac_cv_prog_OTOOL64"
13000fi
13001
13002
13003
13004
13005
13006
13007
13008
13009
13010
13011
13012
13013
13014
13015
13016
13017
13018
13019
13020
13021
13022
13023
13024
13025
13026
13027
13028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
13029$as_echo_n "checking for -single_module linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013030if ${lt_cv_apple_cc_single_mod+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013031 $as_echo_n "(cached) " >&6
13032else
13033 lt_cv_apple_cc_single_mod=no
13034 if test -z "${LT_MULTI_MODULE}"; then
13035 # By default we will add the -single_module flag. You can override
13036 # by either setting the environment variable LT_MULTI_MODULE
13037 # non-empty at configure time, or by adding -multi_module to the
13038 # link flags.
13039 rm -rf libconftest.dylib*
13040 echo "int foo(void){return 1;}" > conftest.c
13041 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13042-dynamiclib -Wl,-single_module conftest.c" >&5
13043 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
13044 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
13045 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013046 # If there is a non-empty error log, and "single_module"
13047 # appears in it, assume the flag caused a linker warning
13048 if test -s conftest.err && $GREP single_module conftest.err; then
13049 cat conftest.err >&5
13050 # Otherwise, if the output was created with a 0 exit code from
13051 # the compiler, it worked.
13052 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
cristy73bd4a52010-10-05 11:24:23 +000013053 lt_cv_apple_cc_single_mod=yes
13054 else
13055 cat conftest.err >&5
13056 fi
13057 rm -rf libconftest.dylib*
13058 rm -f conftest.*
13059 fi
13060fi
13061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
13062$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013063
cristy73bd4a52010-10-05 11:24:23 +000013064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
13065$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013066if ${lt_cv_ld_exported_symbols_list+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013067 $as_echo_n "(cached) " >&6
13068else
13069 lt_cv_ld_exported_symbols_list=no
13070 save_LDFLAGS=$LDFLAGS
13071 echo "_main" > conftest.sym
13072 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074/* end confdefs.h. */
13075
13076int
13077main ()
13078{
13079
13080 ;
13081 return 0;
13082}
13083_ACEOF
13084if ac_fn_c_try_link "$LINENO"; then :
13085 lt_cv_ld_exported_symbols_list=yes
13086else
13087 lt_cv_ld_exported_symbols_list=no
13088fi
13089rm -f core conftest.err conftest.$ac_objext \
13090 conftest$ac_exeext conftest.$ac_ext
13091 LDFLAGS="$save_LDFLAGS"
13092
13093fi
13094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
13095$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
cristy99bd5232011-12-07 14:38:20 +000013096
cristy0c60a692010-11-04 01:09:47 +000013097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
13098$as_echo_n "checking for -force_load linker flag... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013099if ${lt_cv_ld_force_load+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000013100 $as_echo_n "(cached) " >&6
13101else
13102 lt_cv_ld_force_load=no
13103 cat > conftest.c << _LT_EOF
13104int forced_loaded() { return 2;}
13105_LT_EOF
13106 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
13107 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
13108 echo "$AR cru libconftest.a conftest.o" >&5
13109 $AR cru libconftest.a conftest.o 2>&5
13110 echo "$RANLIB libconftest.a" >&5
13111 $RANLIB libconftest.a 2>&5
13112 cat > conftest.c << _LT_EOF
13113int main() { return 0;}
13114_LT_EOF
13115 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
13116 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
13117 _lt_result=$?
cristy99bd5232011-12-07 14:38:20 +000013118 if test -s conftest.err && $GREP force_load conftest.err; then
13119 cat conftest.err >&5
13120 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
cristy0c60a692010-11-04 01:09:47 +000013121 lt_cv_ld_force_load=yes
13122 else
13123 cat conftest.err >&5
13124 fi
13125 rm -f conftest.err libconftest.a conftest conftest.c
13126 rm -rf conftest.dSYM
13127
13128fi
13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
13130$as_echo "$lt_cv_ld_force_load" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000013131 case $host_os in
13132 rhapsody* | darwin1.[012])
13133 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
13134 darwin1.*)
13135 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13136 darwin*) # darwin 5.x on
13137 # if running on 10.5 or later, the deployment target defaults
13138 # to the OS version, if on x86, and 10.4, the deployment
13139 # target defaults to 10.4. Don't you love it?
13140 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
13141 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
13142 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13143 10.[012]*)
13144 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
13145 10.*)
13146 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
13147 esac
13148 ;;
13149 esac
13150 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
13151 _lt_dar_single_mod='$single_module'
13152 fi
13153 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
13154 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
13155 else
13156 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
13157 fi
cristy0c60a692010-11-04 01:09:47 +000013158 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
cristy73bd4a52010-10-05 11:24:23 +000013159 _lt_dsymutil='~$DSYMUTIL $lib || :'
13160 else
13161 _lt_dsymutil=
13162 fi
13163 ;;
13164 esac
13165
13166for ac_header in dlfcn.h
13167do :
13168 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
13169"
cristyda16f162011-02-19 23:52:17 +000013170if test "x$ac_cv_header_dlfcn_h" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000013171 cat >>confdefs.h <<_ACEOF
13172#define HAVE_DLFCN_H 1
13173_ACEOF
13174
13175fi
13176
13177done
13178
13179
13180
cristy73bd4a52010-10-05 11:24:23 +000013181
cristyda16f162011-02-19 23:52:17 +000013182func_stripname_cnf ()
13183{
13184 case ${2} in
13185 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
13186 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
13187 esac
13188} # func_stripname_cnf
13189
13190
13191
cristy73bd4a52010-10-05 11:24:23 +000013192
13193
13194# Set options
13195enable_win32_dll=yes
13196
13197case $host in
cristy0c60a692010-11-04 01:09:47 +000013198*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
cristy73bd4a52010-10-05 11:24:23 +000013199 if test -n "$ac_tool_prefix"; then
13200 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
13201set dummy ${ac_tool_prefix}as; ac_word=$2
13202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13203$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013204if ${ac_cv_prog_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013205 $as_echo_n "(cached) " >&6
13206else
13207 if test -n "$AS"; then
13208 ac_cv_prog_AS="$AS" # Let the user override the test.
13209else
13210as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13211for as_dir in $PATH
13212do
13213 IFS=$as_save_IFS
13214 test -z "$as_dir" && as_dir=.
13215 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013217 ac_cv_prog_AS="${ac_tool_prefix}as"
13218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13219 break 2
13220 fi
13221done
13222 done
13223IFS=$as_save_IFS
13224
13225fi
13226fi
13227AS=$ac_cv_prog_AS
13228if test -n "$AS"; then
13229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
13230$as_echo "$AS" >&6; }
13231else
13232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13233$as_echo "no" >&6; }
13234fi
13235
13236
13237fi
13238if test -z "$ac_cv_prog_AS"; then
13239 ac_ct_AS=$AS
13240 # Extract the first word of "as", so it can be a program name with args.
13241set dummy as; ac_word=$2
13242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13243$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013244if ${ac_cv_prog_ac_ct_AS+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013245 $as_echo_n "(cached) " >&6
13246else
13247 if test -n "$ac_ct_AS"; then
13248 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
13249else
13250as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13251for as_dir in $PATH
13252do
13253 IFS=$as_save_IFS
13254 test -z "$as_dir" && as_dir=.
13255 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013256 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013257 ac_cv_prog_ac_ct_AS="as"
13258 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13259 break 2
13260 fi
13261done
13262 done
13263IFS=$as_save_IFS
13264
13265fi
13266fi
13267ac_ct_AS=$ac_cv_prog_ac_ct_AS
13268if test -n "$ac_ct_AS"; then
13269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
13270$as_echo "$ac_ct_AS" >&6; }
13271else
13272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13273$as_echo "no" >&6; }
13274fi
13275
13276 if test "x$ac_ct_AS" = x; then
13277 AS="false"
13278 else
13279 case $cross_compiling:$ac_tool_warned in
13280yes:)
13281{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13282$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13283ac_tool_warned=yes ;;
13284esac
13285 AS=$ac_ct_AS
13286 fi
13287else
13288 AS="$ac_cv_prog_AS"
13289fi
13290
13291 if test -n "$ac_tool_prefix"; then
13292 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
13293set dummy ${ac_tool_prefix}dlltool; ac_word=$2
13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13295$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013296if ${ac_cv_prog_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013297 $as_echo_n "(cached) " >&6
13298else
13299 if test -n "$DLLTOOL"; then
13300 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
13301else
13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13303for as_dir in $PATH
13304do
13305 IFS=$as_save_IFS
13306 test -z "$as_dir" && as_dir=.
13307 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013309 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13311 break 2
13312 fi
13313done
13314 done
13315IFS=$as_save_IFS
13316
13317fi
13318fi
13319DLLTOOL=$ac_cv_prog_DLLTOOL
13320if test -n "$DLLTOOL"; then
13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
13322$as_echo "$DLLTOOL" >&6; }
13323else
13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13325$as_echo "no" >&6; }
13326fi
13327
13328
13329fi
13330if test -z "$ac_cv_prog_DLLTOOL"; then
13331 ac_ct_DLLTOOL=$DLLTOOL
13332 # Extract the first word of "dlltool", so it can be a program name with args.
13333set dummy dlltool; ac_word=$2
13334{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13335$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013336if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013337 $as_echo_n "(cached) " >&6
13338else
13339 if test -n "$ac_ct_DLLTOOL"; then
13340 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
13341else
13342as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13343for as_dir in $PATH
13344do
13345 IFS=$as_save_IFS
13346 test -z "$as_dir" && as_dir=.
13347 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013349 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
13350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13351 break 2
13352 fi
13353done
13354 done
13355IFS=$as_save_IFS
13356
13357fi
13358fi
13359ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
13360if test -n "$ac_ct_DLLTOOL"; then
13361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
13362$as_echo "$ac_ct_DLLTOOL" >&6; }
13363else
13364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13365$as_echo "no" >&6; }
13366fi
13367
13368 if test "x$ac_ct_DLLTOOL" = x; then
13369 DLLTOOL="false"
13370 else
13371 case $cross_compiling:$ac_tool_warned in
13372yes:)
13373{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13374$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13375ac_tool_warned=yes ;;
13376esac
13377 DLLTOOL=$ac_ct_DLLTOOL
13378 fi
13379else
13380 DLLTOOL="$ac_cv_prog_DLLTOOL"
13381fi
13382
13383 if test -n "$ac_tool_prefix"; then
13384 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
13385set dummy ${ac_tool_prefix}objdump; ac_word=$2
13386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13387$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013388if ${ac_cv_prog_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013389 $as_echo_n "(cached) " >&6
13390else
13391 if test -n "$OBJDUMP"; then
13392 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
13393else
13394as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13395for as_dir in $PATH
13396do
13397 IFS=$as_save_IFS
13398 test -z "$as_dir" && as_dir=.
13399 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013401 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
13402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13403 break 2
13404 fi
13405done
13406 done
13407IFS=$as_save_IFS
13408
13409fi
13410fi
13411OBJDUMP=$ac_cv_prog_OBJDUMP
13412if test -n "$OBJDUMP"; then
13413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
13414$as_echo "$OBJDUMP" >&6; }
13415else
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417$as_echo "no" >&6; }
13418fi
13419
13420
13421fi
13422if test -z "$ac_cv_prog_OBJDUMP"; then
13423 ac_ct_OBJDUMP=$OBJDUMP
13424 # Extract the first word of "objdump", so it can be a program name with args.
13425set dummy objdump; ac_word=$2
13426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13427$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013428if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013429 $as_echo_n "(cached) " >&6
13430else
13431 if test -n "$ac_ct_OBJDUMP"; then
13432 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
13433else
13434as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13435for as_dir in $PATH
13436do
13437 IFS=$as_save_IFS
13438 test -z "$as_dir" && as_dir=.
13439 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000013440 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy73bd4a52010-10-05 11:24:23 +000013441 ac_cv_prog_ac_ct_OBJDUMP="objdump"
13442 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13443 break 2
13444 fi
13445done
13446 done
13447IFS=$as_save_IFS
13448
13449fi
13450fi
13451ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
13452if test -n "$ac_ct_OBJDUMP"; then
13453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
13454$as_echo "$ac_ct_OBJDUMP" >&6; }
13455else
13456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13457$as_echo "no" >&6; }
13458fi
13459
13460 if test "x$ac_ct_OBJDUMP" = x; then
13461 OBJDUMP="false"
13462 else
13463 case $cross_compiling:$ac_tool_warned in
13464yes:)
13465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13467ac_tool_warned=yes ;;
13468esac
13469 OBJDUMP=$ac_ct_OBJDUMP
13470 fi
13471else
13472 OBJDUMP="$ac_cv_prog_OBJDUMP"
13473fi
13474
13475 ;;
13476esac
13477
13478test -z "$AS" && AS=as
13479
13480
13481
13482
13483
13484test -z "$DLLTOOL" && DLLTOOL=dlltool
13485
13486
13487
13488
13489
13490test -z "$OBJDUMP" && OBJDUMP=objdump
13491
13492
13493
13494
13495
13496
13497
13498
13499
13500 # Check whether --enable-shared was given.
13501if test "${enable_shared+set}" = set; then :
13502 enableval=$enable_shared; p=${PACKAGE-default}
13503 case $enableval in
13504 yes) enable_shared=yes ;;
13505 no) enable_shared=no ;;
13506 *)
13507 enable_shared=no
13508 # Look at the argument we got. We use all the common list separators.
13509 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13510 for pkg in $enableval; do
13511 IFS="$lt_save_ifs"
13512 if test "X$pkg" = "X$p"; then
13513 enable_shared=yes
13514 fi
13515 done
13516 IFS="$lt_save_ifs"
13517 ;;
13518 esac
13519else
13520 enable_shared=yes
13521fi
13522
13523
13524
13525
13526
13527
13528
13529
13530
13531 # Check whether --enable-static was given.
13532if test "${enable_static+set}" = set; then :
13533 enableval=$enable_static; p=${PACKAGE-default}
13534 case $enableval in
13535 yes) enable_static=yes ;;
13536 no) enable_static=no ;;
13537 *)
13538 enable_static=no
13539 # Look at the argument we got. We use all the common list separators.
13540 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13541 for pkg in $enableval; do
13542 IFS="$lt_save_ifs"
13543 if test "X$pkg" = "X$p"; then
13544 enable_static=yes
13545 fi
13546 done
13547 IFS="$lt_save_ifs"
13548 ;;
13549 esac
13550else
13551 enable_static=yes
13552fi
13553
13554
13555
13556
13557
13558
13559
13560
13561
13562
13563# Check whether --with-pic was given.
13564if test "${with_pic+set}" = set; then :
cristy99bd5232011-12-07 14:38:20 +000013565 withval=$with_pic; lt_p=${PACKAGE-default}
13566 case $withval in
13567 yes|no) pic_mode=$withval ;;
13568 *)
13569 pic_mode=default
13570 # Look at the argument we got. We use all the common list separators.
13571 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13572 for lt_pkg in $withval; do
13573 IFS="$lt_save_ifs"
13574 if test "X$lt_pkg" = "X$lt_p"; then
13575 pic_mode=yes
13576 fi
13577 done
13578 IFS="$lt_save_ifs"
13579 ;;
13580 esac
cristy73bd4a52010-10-05 11:24:23 +000013581else
13582 pic_mode=default
13583fi
13584
13585
13586test -z "$pic_mode" && pic_mode=default
13587
13588
13589
13590
13591
13592
13593
13594 # Check whether --enable-fast-install was given.
13595if test "${enable_fast_install+set}" = set; then :
13596 enableval=$enable_fast_install; p=${PACKAGE-default}
13597 case $enableval in
13598 yes) enable_fast_install=yes ;;
13599 no) enable_fast_install=no ;;
13600 *)
13601 enable_fast_install=no
13602 # Look at the argument we got. We use all the common list separators.
13603 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
13604 for pkg in $enableval; do
13605 IFS="$lt_save_ifs"
13606 if test "X$pkg" = "X$p"; then
13607 enable_fast_install=yes
13608 fi
13609 done
13610 IFS="$lt_save_ifs"
13611 ;;
13612 esac
13613else
13614 enable_fast_install=yes
13615fi
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627# This can be used to rebuild libtool when needed
13628LIBTOOL_DEPS="$ltmain"
13629
13630# Always use our own libtool.
13631LIBTOOL='$(SHELL) $(top_builddir)/libtool'
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
cristy0c60a692010-11-04 01:09:47 +000013657
cristy99bd5232011-12-07 14:38:20 +000013658
13659
13660
13661
cristy73bd4a52010-10-05 11:24:23 +000013662test -z "$LN_S" && LN_S="ln -s"
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677if test -n "${ZSH_VERSION+set}" ; then
13678 setopt NO_GLOB_SUBST
13679fi
13680
13681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
13682$as_echo_n "checking for objdir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013683if ${lt_cv_objdir+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013684 $as_echo_n "(cached) " >&6
13685else
13686 rm -f .libs 2>/dev/null
13687mkdir .libs 2>/dev/null
13688if test -d .libs; then
13689 lt_cv_objdir=.libs
13690else
13691 # MS-DOS does not allow filenames that begin with a dot.
13692 lt_cv_objdir=_libs
13693fi
13694rmdir .libs 2>/dev/null
13695fi
13696{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
13697$as_echo "$lt_cv_objdir" >&6; }
13698objdir=$lt_cv_objdir
13699
13700
13701
13702
13703
13704cat >>confdefs.h <<_ACEOF
13705#define LT_OBJDIR "$lt_cv_objdir/"
13706_ACEOF
13707
13708
13709
13710
cristy73bd4a52010-10-05 11:24:23 +000013711case $host_os in
13712aix3*)
13713 # AIX sometimes has problems with the GCC collect2 program. For some
13714 # reason, if we set the COLLECT_NAMES environment variable, the problems
13715 # vanish in a puff of smoke.
13716 if test "X${COLLECT_NAMES+set}" != Xset; then
13717 COLLECT_NAMES=
13718 export COLLECT_NAMES
13719 fi
13720 ;;
13721esac
13722
cristy73bd4a52010-10-05 11:24:23 +000013723# Global variables:
13724ofile=libtool
13725can_build_shared=yes
13726
13727# All known linkers require a `.a' archive for static linking (except MSVC,
13728# which needs '.lib').
13729libext=a
13730
13731with_gnu_ld="$lt_cv_prog_gnu_ld"
13732
13733old_CC="$CC"
13734old_CFLAGS="$CFLAGS"
13735
13736# Set sane defaults for various variables
13737test -z "$CC" && CC=cc
13738test -z "$LTCC" && LTCC=$CC
13739test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
13740test -z "$LD" && LD=ld
13741test -z "$ac_objext" && ac_objext=o
13742
13743for cc_temp in $compiler""; do
13744 case $cc_temp in
13745 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13746 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13747 \-*) ;;
13748 *) break;;
13749 esac
13750done
cristy0c60a692010-11-04 01:09:47 +000013751cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000013752
13753
13754# Only perform the check for file, if the check method requires it
13755test -z "$MAGIC_CMD" && MAGIC_CMD=file
13756case $deplibs_check_method in
13757file_magic*)
13758 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
13759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
13760$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013761if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013762 $as_echo_n "(cached) " >&6
13763else
13764 case $MAGIC_CMD in
13765[\\/*] | ?:[\\/]*)
13766 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13767 ;;
13768*)
13769 lt_save_MAGIC_CMD="$MAGIC_CMD"
13770 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13771 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13772 for ac_dir in $ac_dummy; do
13773 IFS="$lt_save_ifs"
13774 test -z "$ac_dir" && ac_dir=.
13775 if test -f $ac_dir/${ac_tool_prefix}file; then
13776 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
13777 if test -n "$file_magic_test_file"; then
13778 case $deplibs_check_method in
13779 "file_magic "*)
13780 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13781 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13782 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13783 $EGREP "$file_magic_regex" > /dev/null; then
13784 :
13785 else
13786 cat <<_LT_EOF 1>&2
13787
13788*** Warning: the command libtool uses to detect shared libraries,
13789*** $file_magic_cmd, produces output that libtool cannot recognize.
13790*** The result is that libtool may fail to recognize shared libraries
13791*** as such. This will affect the creation of libtool libraries that
13792*** depend on shared libraries, but programs linked with such libtool
13793*** libraries will work regardless of this problem. Nevertheless, you
13794*** may want to report the problem to your system manager and/or to
13795*** bug-libtool@gnu.org
13796
13797_LT_EOF
13798 fi ;;
13799 esac
13800 fi
13801 break
13802 fi
13803 done
13804 IFS="$lt_save_ifs"
13805 MAGIC_CMD="$lt_save_MAGIC_CMD"
13806 ;;
13807esac
13808fi
13809
13810MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13811if test -n "$MAGIC_CMD"; then
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13813$as_echo "$MAGIC_CMD" >&6; }
13814else
13815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13816$as_echo "no" >&6; }
13817fi
13818
13819
13820
13821
13822
13823if test -z "$lt_cv_path_MAGIC_CMD"; then
13824 if test -n "$ac_tool_prefix"; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
13826$as_echo_n "checking for file... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013827if ${lt_cv_path_MAGIC_CMD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013828 $as_echo_n "(cached) " >&6
13829else
13830 case $MAGIC_CMD in
13831[\\/*] | ?:[\\/]*)
13832 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
13833 ;;
13834*)
13835 lt_save_MAGIC_CMD="$MAGIC_CMD"
13836 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13837 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
13838 for ac_dir in $ac_dummy; do
13839 IFS="$lt_save_ifs"
13840 test -z "$ac_dir" && ac_dir=.
13841 if test -f $ac_dir/file; then
13842 lt_cv_path_MAGIC_CMD="$ac_dir/file"
13843 if test -n "$file_magic_test_file"; then
13844 case $deplibs_check_method in
13845 "file_magic "*)
13846 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
13847 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13848 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
13849 $EGREP "$file_magic_regex" > /dev/null; then
13850 :
13851 else
13852 cat <<_LT_EOF 1>&2
13853
13854*** Warning: the command libtool uses to detect shared libraries,
13855*** $file_magic_cmd, produces output that libtool cannot recognize.
13856*** The result is that libtool may fail to recognize shared libraries
13857*** as such. This will affect the creation of libtool libraries that
13858*** depend on shared libraries, but programs linked with such libtool
13859*** libraries will work regardless of this problem. Nevertheless, you
13860*** may want to report the problem to your system manager and/or to
13861*** bug-libtool@gnu.org
13862
13863_LT_EOF
13864 fi ;;
13865 esac
13866 fi
13867 break
13868 fi
13869 done
13870 IFS="$lt_save_ifs"
13871 MAGIC_CMD="$lt_save_MAGIC_CMD"
13872 ;;
13873esac
13874fi
13875
13876MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
13877if test -n "$MAGIC_CMD"; then
13878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
13879$as_echo "$MAGIC_CMD" >&6; }
13880else
13881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13882$as_echo "no" >&6; }
13883fi
13884
13885
13886 else
13887 MAGIC_CMD=:
13888 fi
13889fi
13890
13891 fi
13892 ;;
13893esac
13894
13895# Use C for the default configuration in the libtool script
13896
13897lt_save_CC="$CC"
13898ac_ext=c
13899ac_cpp='$CPP $CPPFLAGS'
13900ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13901ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13902ac_compiler_gnu=$ac_cv_c_compiler_gnu
13903
13904
13905# Source file extension for C test sources.
13906ac_ext=c
13907
13908# Object file extension for compiled C test sources.
13909objext=o
13910objext=$objext
13911
13912# Code to be used in simple compile tests
13913lt_simple_compile_test_code="int some_variable = 0;"
13914
13915# Code to be used in simple link tests
13916lt_simple_link_test_code='int main(){return(0);}'
13917
13918
13919
13920
13921
13922
13923
13924# If no C compiler was specified, use CC.
13925LTCC=${LTCC-"$CC"}
13926
13927# If no C compiler flags were specified, use CFLAGS.
13928LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13929
13930# Allow CC to be a program name with arguments.
13931compiler=$CC
13932
13933# Save the default compiler, since it gets overwritten when the other
13934# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
13935compiler_DEFAULT=$CC
13936
13937# save warnings/boilerplate of simple test code
13938ac_outfile=conftest.$ac_objext
13939echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13940eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13941_lt_compiler_boilerplate=`cat conftest.err`
13942$RM conftest*
13943
13944ac_outfile=conftest.$ac_objext
13945echo "$lt_simple_link_test_code" >conftest.$ac_ext
13946eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13947_lt_linker_boilerplate=`cat conftest.err`
13948$RM -r conftest*
13949
13950
13951## CAVEAT EMPTOR:
13952## There is no encapsulation within the following macros, do not change
13953## the running order or otherwise move them around unless you know exactly
13954## what you are doing...
13955if test -n "$compiler"; then
13956
13957lt_prog_compiler_no_builtin_flag=
13958
13959if test "$GCC" = yes; then
cristy0c60a692010-11-04 01:09:47 +000013960 case $cc_basename in
13961 nvcc*)
13962 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
13963 *)
13964 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
13965 esac
cristy73bd4a52010-10-05 11:24:23 +000013966
13967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
13968$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
cristyda16f162011-02-19 23:52:17 +000013969if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000013970 $as_echo_n "(cached) " >&6
13971else
13972 lt_cv_prog_compiler_rtti_exceptions=no
13973 ac_outfile=conftest.$ac_objext
13974 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13975 lt_compiler_flag="-fno-rtti -fno-exceptions"
13976 # Insert the option either (1) after the last *FLAGS variable, or
13977 # (2) before a word containing "conftest.", or (3) at the end.
13978 # Note that $ac_compile itself does not contain backslashes and begins
13979 # with a dollar sign (not a hyphen), so the echo should work correctly.
13980 # The option is referenced via a variable to avoid confusing sed.
13981 lt_compile=`echo "$ac_compile" | $SED \
13982 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13984 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000013985 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000013986 (eval "$lt_compile" 2>conftest.err)
13987 ac_status=$?
13988 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000013989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000013990 if (exit $ac_status) && test -s "$ac_outfile"; then
13991 # The compiler can only warn and ignore the option if not recognized
13992 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000013993 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000013994 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13995 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13996 lt_cv_prog_compiler_rtti_exceptions=yes
13997 fi
13998 fi
13999 $RM conftest*
14000
14001fi
14002{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
14003$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
14004
14005if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
14006 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
14007else
14008 :
14009fi
14010
14011fi
14012
14013
14014
14015
14016
14017
14018 lt_prog_compiler_wl=
14019lt_prog_compiler_pic=
14020lt_prog_compiler_static=
14021
cristy73bd4a52010-10-05 11:24:23 +000014022
14023 if test "$GCC" = yes; then
14024 lt_prog_compiler_wl='-Wl,'
14025 lt_prog_compiler_static='-static'
14026
14027 case $host_os in
14028 aix*)
14029 # All AIX code is PIC.
14030 if test "$host_cpu" = ia64; then
14031 # AIX 5 now supports IA64 processor
14032 lt_prog_compiler_static='-Bstatic'
14033 fi
14034 ;;
14035
14036 amigaos*)
14037 case $host_cpu in
14038 powerpc)
14039 # see comment about AmigaOS4 .so support
14040 lt_prog_compiler_pic='-fPIC'
14041 ;;
14042 m68k)
14043 # FIXME: we need at least 68020 code to build shared libraries, but
14044 # adding the `-m68020' flag to GCC prevents building anything better,
14045 # like `-m68040'.
14046 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
14047 ;;
14048 esac
14049 ;;
14050
14051 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14052 # PIC is the default for these OSes.
14053 ;;
14054
14055 mingw* | cygwin* | pw32* | os2* | cegcc*)
14056 # This hack is so that the source file can tell whether it is being
14057 # built for inclusion in a dll (and should export symbols for example).
14058 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14059 # (--disable-auto-import) libraries
14060 lt_prog_compiler_pic='-DDLL_EXPORT'
14061 ;;
14062
14063 darwin* | rhapsody*)
14064 # PIC is the default on this platform
14065 # Common symbols not allowed in MH_DYLIB files
14066 lt_prog_compiler_pic='-fno-common'
14067 ;;
14068
cristy0c60a692010-11-04 01:09:47 +000014069 haiku*)
14070 # PIC is the default for Haiku.
14071 # The "-static" flag exists, but is broken.
14072 lt_prog_compiler_static=
14073 ;;
14074
cristy73bd4a52010-10-05 11:24:23 +000014075 hpux*)
14076 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14077 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14078 # sets the default TLS model and affects inlining.
14079 case $host_cpu in
14080 hppa*64*)
14081 # +Z the default
14082 ;;
14083 *)
14084 lt_prog_compiler_pic='-fPIC'
14085 ;;
14086 esac
14087 ;;
14088
14089 interix[3-9]*)
14090 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14091 # Instead, we relocate shared libraries at runtime.
14092 ;;
14093
14094 msdosdjgpp*)
14095 # Just because we use GCC doesn't mean we suddenly get shared libraries
14096 # on systems that don't support them.
14097 lt_prog_compiler_can_build_shared=no
14098 enable_shared=no
14099 ;;
14100
14101 *nto* | *qnx*)
14102 # QNX uses GNU C++, but need to define -shared option too, otherwise
14103 # it will coredump.
14104 lt_prog_compiler_pic='-fPIC -shared'
14105 ;;
14106
14107 sysv4*MP*)
14108 if test -d /usr/nec; then
14109 lt_prog_compiler_pic=-Kconform_pic
14110 fi
14111 ;;
14112
14113 *)
14114 lt_prog_compiler_pic='-fPIC'
14115 ;;
14116 esac
cristy0c60a692010-11-04 01:09:47 +000014117
14118 case $cc_basename in
14119 nvcc*) # Cuda Compiler Driver 2.2
14120 lt_prog_compiler_wl='-Xlinker '
cristy99bd5232011-12-07 14:38:20 +000014121 if test -n "$lt_prog_compiler_pic"; then
14122 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
14123 fi
cristy0c60a692010-11-04 01:09:47 +000014124 ;;
14125 esac
cristy73bd4a52010-10-05 11:24:23 +000014126 else
14127 # PORTME Check for flag to pass linker flags through the system compiler.
14128 case $host_os in
14129 aix*)
14130 lt_prog_compiler_wl='-Wl,'
14131 if test "$host_cpu" = ia64; then
14132 # AIX 5 now supports IA64 processor
14133 lt_prog_compiler_static='-Bstatic'
14134 else
14135 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
14136 fi
14137 ;;
14138
14139 mingw* | cygwin* | pw32* | os2* | cegcc*)
14140 # This hack is so that the source file can tell whether it is being
14141 # built for inclusion in a dll (and should export symbols for example).
14142 lt_prog_compiler_pic='-DDLL_EXPORT'
14143 ;;
14144
14145 hpux9* | hpux10* | hpux11*)
14146 lt_prog_compiler_wl='-Wl,'
14147 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
14148 # not for PA HP-UX.
14149 case $host_cpu in
14150 hppa*64*|ia64*)
14151 # +Z the default
14152 ;;
14153 *)
14154 lt_prog_compiler_pic='+Z'
14155 ;;
14156 esac
14157 # Is there a better lt_prog_compiler_static that works with the bundled CC?
14158 lt_prog_compiler_static='${wl}-a ${wl}archive'
14159 ;;
14160
14161 irix5* | irix6* | nonstopux*)
14162 lt_prog_compiler_wl='-Wl,'
14163 # PIC (with -KPIC) is the default.
14164 lt_prog_compiler_static='-non_shared'
14165 ;;
14166
cristy0c60a692010-11-04 01:09:47 +000014167 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014168 case $cc_basename in
14169 # old Intel for x86_64 which still supported -KPIC.
14170 ecc*)
14171 lt_prog_compiler_wl='-Wl,'
14172 lt_prog_compiler_pic='-KPIC'
14173 lt_prog_compiler_static='-static'
14174 ;;
14175 # icc used to be incompatible with GCC.
14176 # ICC 10 doesn't accept -KPIC any more.
14177 icc* | ifort*)
14178 lt_prog_compiler_wl='-Wl,'
14179 lt_prog_compiler_pic='-fPIC'
14180 lt_prog_compiler_static='-static'
14181 ;;
14182 # Lahey Fortran 8.1.
14183 lf95*)
14184 lt_prog_compiler_wl='-Wl,'
14185 lt_prog_compiler_pic='--shared'
14186 lt_prog_compiler_static='--static'
14187 ;;
cristyda16f162011-02-19 23:52:17 +000014188 nagfor*)
14189 # NAG Fortran compiler
14190 lt_prog_compiler_wl='-Wl,-Wl,,'
14191 lt_prog_compiler_pic='-PIC'
14192 lt_prog_compiler_static='-Bstatic'
14193 ;;
cristy0c60a692010-11-04 01:09:47 +000014194 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
cristy73bd4a52010-10-05 11:24:23 +000014195 # Portland Group compilers (*not* the Pentium gcc compiler,
14196 # which looks to be a dead project)
14197 lt_prog_compiler_wl='-Wl,'
14198 lt_prog_compiler_pic='-fpic'
14199 lt_prog_compiler_static='-Bstatic'
14200 ;;
14201 ccc*)
14202 lt_prog_compiler_wl='-Wl,'
14203 # All Alpha code is PIC.
14204 lt_prog_compiler_static='-non_shared'
14205 ;;
cristy0c60a692010-11-04 01:09:47 +000014206 xl* | bgxl* | bgf* | mpixl*)
14207 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000014208 lt_prog_compiler_wl='-Wl,'
14209 lt_prog_compiler_pic='-qpic'
14210 lt_prog_compiler_static='-qstaticlink'
14211 ;;
14212 *)
14213 case `$CC -V 2>&1 | sed 5q` in
cristy99bd5232011-12-07 14:38:20 +000014214 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
cristy0c60a692010-11-04 01:09:47 +000014215 # Sun Fortran 8.3 passes all unrecognized flags to the linker
14216 lt_prog_compiler_pic='-KPIC'
14217 lt_prog_compiler_static='-Bstatic'
14218 lt_prog_compiler_wl=''
14219 ;;
cristy99bd5232011-12-07 14:38:20 +000014220 *Sun\ F* | *Sun*Fortran*)
14221 lt_prog_compiler_pic='-KPIC'
14222 lt_prog_compiler_static='-Bstatic'
14223 lt_prog_compiler_wl='-Qoption ld '
14224 ;;
cristy73bd4a52010-10-05 11:24:23 +000014225 *Sun\ C*)
14226 # Sun C 5.9
14227 lt_prog_compiler_pic='-KPIC'
14228 lt_prog_compiler_static='-Bstatic'
14229 lt_prog_compiler_wl='-Wl,'
14230 ;;
cristy99bd5232011-12-07 14:38:20 +000014231 *Intel*\ [CF]*Compiler*)
14232 lt_prog_compiler_wl='-Wl,'
14233 lt_prog_compiler_pic='-fPIC'
14234 lt_prog_compiler_static='-static'
14235 ;;
14236 *Portland\ Group*)
14237 lt_prog_compiler_wl='-Wl,'
14238 lt_prog_compiler_pic='-fpic'
14239 lt_prog_compiler_static='-Bstatic'
14240 ;;
cristy73bd4a52010-10-05 11:24:23 +000014241 esac
14242 ;;
14243 esac
14244 ;;
14245
14246 newsos6)
14247 lt_prog_compiler_pic='-KPIC'
14248 lt_prog_compiler_static='-Bstatic'
14249 ;;
14250
14251 *nto* | *qnx*)
14252 # QNX uses GNU C++, but need to define -shared option too, otherwise
14253 # it will coredump.
14254 lt_prog_compiler_pic='-fPIC -shared'
14255 ;;
14256
14257 osf3* | osf4* | osf5*)
14258 lt_prog_compiler_wl='-Wl,'
14259 # All OSF/1 code is PIC.
14260 lt_prog_compiler_static='-non_shared'
14261 ;;
14262
14263 rdos*)
14264 lt_prog_compiler_static='-non_shared'
14265 ;;
14266
14267 solaris*)
14268 lt_prog_compiler_pic='-KPIC'
14269 lt_prog_compiler_static='-Bstatic'
14270 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014271 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
cristy73bd4a52010-10-05 11:24:23 +000014272 lt_prog_compiler_wl='-Qoption ld ';;
14273 *)
14274 lt_prog_compiler_wl='-Wl,';;
14275 esac
14276 ;;
14277
14278 sunos4*)
14279 lt_prog_compiler_wl='-Qoption ld '
14280 lt_prog_compiler_pic='-PIC'
14281 lt_prog_compiler_static='-Bstatic'
14282 ;;
14283
14284 sysv4 | sysv4.2uw2* | sysv4.3*)
14285 lt_prog_compiler_wl='-Wl,'
14286 lt_prog_compiler_pic='-KPIC'
14287 lt_prog_compiler_static='-Bstatic'
14288 ;;
14289
14290 sysv4*MP*)
14291 if test -d /usr/nec ;then
14292 lt_prog_compiler_pic='-Kconform_pic'
14293 lt_prog_compiler_static='-Bstatic'
14294 fi
14295 ;;
14296
14297 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14298 lt_prog_compiler_wl='-Wl,'
14299 lt_prog_compiler_pic='-KPIC'
14300 lt_prog_compiler_static='-Bstatic'
14301 ;;
14302
14303 unicos*)
14304 lt_prog_compiler_wl='-Wl,'
14305 lt_prog_compiler_can_build_shared=no
14306 ;;
14307
14308 uts4*)
14309 lt_prog_compiler_pic='-pic'
14310 lt_prog_compiler_static='-Bstatic'
14311 ;;
14312
14313 *)
14314 lt_prog_compiler_can_build_shared=no
14315 ;;
14316 esac
14317 fi
14318
14319case $host_os in
14320 # For platforms which do not support PIC, -DPIC is meaningless:
14321 *djgpp*)
14322 lt_prog_compiler_pic=
14323 ;;
14324 *)
14325 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
14326 ;;
14327esac
cristy73bd4a52010-10-05 11:24:23 +000014328
cristyda16f162011-02-19 23:52:17 +000014329{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14330$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14331if ${lt_cv_prog_compiler_pic+:} false; then :
14332 $as_echo_n "(cached) " >&6
14333else
14334 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
14335fi
14336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
14337$as_echo "$lt_cv_prog_compiler_pic" >&6; }
14338lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
cristy73bd4a52010-10-05 11:24:23 +000014339
14340#
14341# Check to make sure the PIC flag actually works.
14342#
14343if test -n "$lt_prog_compiler_pic"; then
14344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
14345$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014346if ${lt_cv_prog_compiler_pic_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014347 $as_echo_n "(cached) " >&6
14348else
14349 lt_cv_prog_compiler_pic_works=no
14350 ac_outfile=conftest.$ac_objext
14351 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14352 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
14353 # Insert the option either (1) after the last *FLAGS variable, or
14354 # (2) before a word containing "conftest.", or (3) at the end.
14355 # Note that $ac_compile itself does not contain backslashes and begins
14356 # with a dollar sign (not a hyphen), so the echo should work correctly.
14357 # The option is referenced via a variable to avoid confusing sed.
14358 lt_compile=`echo "$ac_compile" | $SED \
14359 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14360 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14361 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014362 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014363 (eval "$lt_compile" 2>conftest.err)
14364 ac_status=$?
14365 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014367 if (exit $ac_status) && test -s "$ac_outfile"; then
14368 # The compiler can only warn and ignore the option if not recognized
14369 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000014370 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014371 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14372 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14373 lt_cv_prog_compiler_pic_works=yes
14374 fi
14375 fi
14376 $RM conftest*
14377
14378fi
14379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
14380$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
14381
14382if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
14383 case $lt_prog_compiler_pic in
14384 "" | " "*) ;;
14385 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
14386 esac
14387else
14388 lt_prog_compiler_pic=
14389 lt_prog_compiler_can_build_shared=no
14390fi
14391
14392fi
14393
14394
14395
14396
14397
14398
cristyda16f162011-02-19 23:52:17 +000014399
14400
14401
14402
14403
cristy73bd4a52010-10-05 11:24:23 +000014404#
14405# Check to make sure the static flag actually works.
14406#
14407wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
14408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14409$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014410if ${lt_cv_prog_compiler_static_works+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014411 $as_echo_n "(cached) " >&6
14412else
14413 lt_cv_prog_compiler_static_works=no
14414 save_LDFLAGS="$LDFLAGS"
14415 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14416 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14417 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14418 # The linker can only warn and ignore the option if not recognized
14419 # So say no if there are warnings
14420 if test -s conftest.err; then
14421 # Append any errors to the config.log.
14422 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000014423 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14425 if diff conftest.exp conftest.er2 >/dev/null; then
14426 lt_cv_prog_compiler_static_works=yes
14427 fi
14428 else
14429 lt_cv_prog_compiler_static_works=yes
14430 fi
14431 fi
14432 $RM -r conftest*
14433 LDFLAGS="$save_LDFLAGS"
14434
14435fi
14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
14437$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
14438
14439if test x"$lt_cv_prog_compiler_static_works" = xyes; then
14440 :
14441else
14442 lt_prog_compiler_static=
14443fi
14444
14445
14446
14447
14448
14449
14450
14451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14452$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014453if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014454 $as_echo_n "(cached) " >&6
14455else
14456 lt_cv_prog_compiler_c_o=no
14457 $RM -r conftest 2>/dev/null
14458 mkdir conftest
14459 cd conftest
14460 mkdir out
14461 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14462
14463 lt_compiler_flag="-o out/conftest2.$ac_objext"
14464 # Insert the option either (1) after the last *FLAGS variable, or
14465 # (2) before a word containing "conftest.", or (3) at the end.
14466 # Note that $ac_compile itself does not contain backslashes and begins
14467 # with a dollar sign (not a hyphen), so the echo should work correctly.
14468 lt_compile=`echo "$ac_compile" | $SED \
14469 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14470 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14471 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014472 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014473 (eval "$lt_compile" 2>out/conftest.err)
14474 ac_status=$?
14475 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014477 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14478 then
14479 # The compiler can only warn and ignore the option if not recognized
14480 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014481 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014482 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14483 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14484 lt_cv_prog_compiler_c_o=yes
14485 fi
14486 fi
14487 chmod u+w . 2>&5
14488 $RM conftest*
14489 # SGI C++ compiler will create directory out/ii_files/ for
14490 # template instantiation
14491 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14492 $RM out/* && rmdir out
14493 cd ..
14494 $RM -r conftest
14495 $RM conftest*
14496
14497fi
14498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14499$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14500
14501
14502
14503
14504
14505
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
14507$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000014508if ${lt_cv_prog_compiler_c_o+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000014509 $as_echo_n "(cached) " >&6
14510else
14511 lt_cv_prog_compiler_c_o=no
14512 $RM -r conftest 2>/dev/null
14513 mkdir conftest
14514 cd conftest
14515 mkdir out
14516 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14517
14518 lt_compiler_flag="-o out/conftest2.$ac_objext"
14519 # Insert the option either (1) after the last *FLAGS variable, or
14520 # (2) before a word containing "conftest.", or (3) at the end.
14521 # Note that $ac_compile itself does not contain backslashes and begins
14522 # with a dollar sign (not a hyphen), so the echo should work correctly.
14523 lt_compile=`echo "$ac_compile" | $SED \
14524 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14525 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14526 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000014527 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000014528 (eval "$lt_compile" 2>out/conftest.err)
14529 ac_status=$?
14530 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000014531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000014532 if (exit $ac_status) && test -s out/conftest2.$ac_objext
14533 then
14534 # The compiler can only warn and ignore the option if not recognized
14535 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000014536 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000014537 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
14538 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
14539 lt_cv_prog_compiler_c_o=yes
14540 fi
14541 fi
14542 chmod u+w . 2>&5
14543 $RM conftest*
14544 # SGI C++ compiler will create directory out/ii_files/ for
14545 # template instantiation
14546 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
14547 $RM out/* && rmdir out
14548 cd ..
14549 $RM -r conftest
14550 $RM conftest*
14551
14552fi
14553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
14554$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
14555
14556
14557
14558
14559hard_links="nottested"
14560if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
14561 # do not overwrite the value of need_locks provided by the user
14562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
14563$as_echo_n "checking if we can lock with hard links... " >&6; }
14564 hard_links=yes
14565 $RM conftest*
14566 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14567 touch conftest.a
14568 ln conftest.a conftest.b 2>&5 || hard_links=no
14569 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
14571$as_echo "$hard_links" >&6; }
14572 if test "$hard_links" = no; then
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14574$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14575 need_locks=warn
14576 fi
14577else
14578 need_locks=no
14579fi
14580
14581
14582
14583
14584
14585
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14587$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
14588
14589 runpath_var=
14590 allow_undefined_flag=
14591 always_export_symbols=no
14592 archive_cmds=
14593 archive_expsym_cmds=
14594 compiler_needs_object=no
14595 enable_shared_with_static_runtimes=no
14596 export_dynamic_flag_spec=
14597 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14598 hardcode_automatic=no
14599 hardcode_direct=no
14600 hardcode_direct_absolute=no
14601 hardcode_libdir_flag_spec=
cristy73bd4a52010-10-05 11:24:23 +000014602 hardcode_libdir_separator=
14603 hardcode_minus_L=no
14604 hardcode_shlibpath_var=unsupported
14605 inherit_rpath=no
14606 link_all_deplibs=unknown
14607 module_cmds=
14608 module_expsym_cmds=
14609 old_archive_from_new_cmds=
14610 old_archive_from_expsyms_cmds=
14611 thread_safe_flag_spec=
14612 whole_archive_flag_spec=
14613 # include_expsyms should be a list of space-separated symbols to be *always*
14614 # included in the symbol list
14615 include_expsyms=
14616 # exclude_expsyms can be an extended regexp of symbols to exclude
14617 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14618 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14619 # as well as any symbol that contains `d'.
14620 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14621 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14622 # platforms (ab)use it in PIC code, but their linkers get confused if
14623 # the symbol is explicitly referenced. Since portable code cannot
14624 # rely on this symbol name, it's probably fine to never include it in
14625 # preloaded symbol tables.
14626 # Exclude shared library initialization/finalization symbols.
14627 extract_expsyms_cmds=
14628
14629 case $host_os in
14630 cygwin* | mingw* | pw32* | cegcc*)
14631 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14632 # When not using gcc, we currently assume that we are using
14633 # Microsoft Visual C++.
14634 if test "$GCC" != yes; then
14635 with_gnu_ld=no
14636 fi
14637 ;;
14638 interix*)
14639 # we just hope/assume this is gcc and not c89 (= MSVC++)
14640 with_gnu_ld=yes
14641 ;;
14642 openbsd*)
14643 with_gnu_ld=no
14644 ;;
14645 esac
14646
14647 ld_shlibs=yes
cristy0c60a692010-11-04 01:09:47 +000014648
14649 # On some targets, GNU ld is compatible enough with the native linker
14650 # that we're better off using the native interface for both.
14651 lt_use_gnu_ld_interface=no
cristy73bd4a52010-10-05 11:24:23 +000014652 if test "$with_gnu_ld" = yes; then
cristy0c60a692010-11-04 01:09:47 +000014653 case $host_os in
14654 aix*)
14655 # The AIX port of GNU ld has always aspired to compatibility
14656 # with the native linker. However, as the warning in the GNU ld
14657 # block says, versions before 2.19.5* couldn't really create working
14658 # shared libraries, regardless of the interface used.
14659 case `$LD -v 2>&1` in
14660 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
14661 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
14662 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
14663 *)
14664 lt_use_gnu_ld_interface=yes
14665 ;;
14666 esac
14667 ;;
14668 *)
14669 lt_use_gnu_ld_interface=yes
14670 ;;
14671 esac
14672 fi
14673
14674 if test "$lt_use_gnu_ld_interface" = yes; then
cristy73bd4a52010-10-05 11:24:23 +000014675 # If archive_cmds runs LD, not CC, wlarc should be empty
14676 wlarc='${wl}'
14677
14678 # Set some defaults for GNU ld with shared library support. These
14679 # are reset later if shared libraries are not supported. Putting them
14680 # here allows them to be overridden if necessary.
14681 runpath_var=LD_RUN_PATH
14682 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14683 export_dynamic_flag_spec='${wl}--export-dynamic'
14684 # ancient GNU ld didn't support --whole-archive et. al.
14685 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
14686 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14687 else
14688 whole_archive_flag_spec=
14689 fi
14690 supports_anon_versioning=no
14691 case `$LD -v 2>&1` in
cristy0c60a692010-11-04 01:09:47 +000014692 *GNU\ gold*) supports_anon_versioning=yes ;;
cristy73bd4a52010-10-05 11:24:23 +000014693 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14694 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14695 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14696 *\ 2.11.*) ;; # other 2.11 versions
14697 *) supports_anon_versioning=yes ;;
14698 esac
14699
14700 # See if GNU ld supports shared libraries.
14701 case $host_os in
14702 aix[3-9]*)
14703 # On AIX/PPC, the GNU linker is very broken
14704 if test "$host_cpu" != ia64; then
14705 ld_shlibs=no
14706 cat <<_LT_EOF 1>&2
14707
cristy0c60a692010-11-04 01:09:47 +000014708*** Warning: the GNU linker, at least up to release 2.19, is reported
cristy73bd4a52010-10-05 11:24:23 +000014709*** to be unable to reliably create shared libraries on AIX.
14710*** Therefore, libtool is disabling shared libraries support. If you
cristy0c60a692010-11-04 01:09:47 +000014711*** really care for shared libraries, you may want to install binutils
14712*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
14713*** You will then need to restart the configuration process.
cristy73bd4a52010-10-05 11:24:23 +000014714
14715_LT_EOF
14716 fi
14717 ;;
14718
14719 amigaos*)
14720 case $host_cpu in
14721 powerpc)
14722 # see comment about AmigaOS4 .so support
14723 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14724 archive_expsym_cmds=''
14725 ;;
14726 m68k)
14727 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)'
14728 hardcode_libdir_flag_spec='-L$libdir'
14729 hardcode_minus_L=yes
14730 ;;
14731 esac
14732 ;;
14733
14734 beos*)
14735 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14736 allow_undefined_flag=unsupported
14737 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14738 # support --undefined. This deserves some investigation. FIXME
14739 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14740 else
14741 ld_shlibs=no
14742 fi
14743 ;;
14744
14745 cygwin* | mingw* | pw32* | cegcc*)
14746 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
14747 # as there is no search path for DLLs.
14748 hardcode_libdir_flag_spec='-L$libdir'
cristy0c60a692010-11-04 01:09:47 +000014749 export_dynamic_flag_spec='${wl}--export-all-symbols'
cristy73bd4a52010-10-05 11:24:23 +000014750 allow_undefined_flag=unsupported
14751 always_export_symbols=no
14752 enable_shared_with_static_runtimes=yes
cristyda16f162011-02-19 23:52:17 +000014753 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'
14754 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 +000014755
14756 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14758 # If the export-symbols file already is a .def file (1st line
14759 # is EXPORTS), use it as is; otherwise, prepend...
14760 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14761 cp $export_symbols $output_objdir/$soname.def;
14762 else
14763 echo EXPORTS > $output_objdir/$soname.def;
14764 cat $export_symbols >> $output_objdir/$soname.def;
14765 fi~
14766 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14767 else
14768 ld_shlibs=no
14769 fi
14770 ;;
14771
cristy0c60a692010-11-04 01:09:47 +000014772 haiku*)
14773 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14774 link_all_deplibs=yes
14775 ;;
14776
cristy73bd4a52010-10-05 11:24:23 +000014777 interix[3-9]*)
14778 hardcode_direct=no
14779 hardcode_shlibpath_var=no
14780 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
14781 export_dynamic_flag_spec='${wl}-E'
14782 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14783 # Instead, shared libraries are loaded at an image base (0x10000000 by
14784 # default) and relocated if they conflict, which is a slow very memory
14785 # consuming and fragmenting process. To avoid this, we pick a random,
14786 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14787 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14788 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14789 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'
14790 ;;
14791
cristy0c60a692010-11-04 01:09:47 +000014792 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000014793 tmp_diet=no
14794 if test "$host_os" = linux-dietlibc; then
14795 case $cc_basename in
14796 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
14797 esac
14798 fi
14799 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
14800 && test "$tmp_diet" = no
14801 then
cristyda16f162011-02-19 23:52:17 +000014802 tmp_addflag=' $pic_flag'
cristy73bd4a52010-10-05 11:24:23 +000014803 tmp_sharedflag='-shared'
14804 case $cc_basename,$host_cpu in
14805 pgcc*) # Portland Group C compiler
cristy0c60a692010-11-04 01:09:47 +000014806 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 +000014807 tmp_addflag=' $pic_flag'
14808 ;;
cristy0c60a692010-11-04 01:09:47 +000014809 pgf77* | pgf90* | pgf95* | pgfortran*)
14810 # Portland Group f77 and f90 compilers
14811 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 +000014812 tmp_addflag=' $pic_flag -Mnomain' ;;
14813 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14814 tmp_addflag=' -i_dynamic' ;;
14815 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14816 tmp_addflag=' -i_dynamic -nofor_main' ;;
14817 ifc* | ifort*) # Intel Fortran compiler
14818 tmp_addflag=' -nofor_main' ;;
14819 lf95*) # Lahey Fortran 8.1
14820 whole_archive_flag_spec=
14821 tmp_sharedflag='--shared' ;;
cristy0c60a692010-11-04 01:09:47 +000014822 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
cristy73bd4a52010-10-05 11:24:23 +000014823 tmp_sharedflag='-qmkshrobj'
14824 tmp_addflag= ;;
cristy0c60a692010-11-04 01:09:47 +000014825 nvcc*) # Cuda Compiler Driver 2.2
14826 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'
14827 compiler_needs_object=yes
14828 ;;
cristy73bd4a52010-10-05 11:24:23 +000014829 esac
14830 case `$CC -V 2>&1 | sed 5q` in
14831 *Sun\ C*) # Sun C 5.9
cristy0c60a692010-11-04 01:09:47 +000014832 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 +000014833 compiler_needs_object=yes
14834 tmp_sharedflag='-G' ;;
14835 *Sun\ F*) # Sun Fortran 8.3
14836 tmp_sharedflag='-G' ;;
14837 esac
14838 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14839
14840 if test "x$supports_anon_versioning" = xyes; then
14841 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14842 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14843 echo "local: *; };" >> $output_objdir/$libname.ver~
14844 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14845 fi
14846
14847 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000014848 xlf* | bgf* | bgxlf* | mpixlf*)
cristy73bd4a52010-10-05 11:24:23 +000014849 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14850 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
cristy99bd5232011-12-07 14:38:20 +000014851 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
cristy0c60a692010-11-04 01:09:47 +000014852 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014853 if test "x$supports_anon_versioning" = xyes; then
14854 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
14855 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14856 echo "local: *; };" >> $output_objdir/$libname.ver~
cristy0c60a692010-11-04 01:09:47 +000014857 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
cristy73bd4a52010-10-05 11:24:23 +000014858 fi
14859 ;;
14860 esac
14861 else
14862 ld_shlibs=no
14863 fi
14864 ;;
14865
14866 netbsd*)
14867 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14868 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14869 wlarc=
14870 else
cristyda16f162011-02-19 23:52:17 +000014871 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14872 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 +000014873 fi
14874 ;;
14875
14876 solaris*)
14877 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14878 ld_shlibs=no
14879 cat <<_LT_EOF 1>&2
14880
14881*** Warning: The releases 2.8.* of the GNU linker cannot reliably
14882*** create shared libraries on Solaris systems. Therefore, libtool
14883*** is disabling shared libraries support. We urge you to upgrade GNU
14884*** binutils to release 2.9.1 or newer. Another option is to modify
14885*** your PATH or compiler configuration so that the native linker is
14886*** used, and then restart.
14887
14888_LT_EOF
14889 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014890 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14891 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 +000014892 else
14893 ld_shlibs=no
14894 fi
14895 ;;
14896
14897 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14898 case `$LD -v 2>&1` in
14899 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14900 ld_shlibs=no
14901 cat <<_LT_EOF 1>&2
14902
14903*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14904*** reliably create shared libraries on SCO systems. Therefore, libtool
14905*** is disabling shared libraries support. We urge you to upgrade GNU
14906*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14907*** your PATH or compiler configuration so that the native linker is
14908*** used, and then restart.
14909
14910_LT_EOF
14911 ;;
14912 *)
14913 # For security reasons, it is highly recommended that you always
14914 # use absolute paths for naming shared libraries, and exclude the
14915 # DT_RUNPATH tag from executables and libraries. But doing so
14916 # requires that you compile everything twice, which is a pain.
14917 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14918 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
14919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14921 else
14922 ld_shlibs=no
14923 fi
14924 ;;
14925 esac
14926 ;;
14927
14928 sunos4*)
14929 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14930 wlarc=
14931 hardcode_direct=yes
14932 hardcode_shlibpath_var=no
14933 ;;
14934
14935 *)
14936 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000014937 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14938 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 +000014939 else
14940 ld_shlibs=no
14941 fi
14942 ;;
14943 esac
14944
14945 if test "$ld_shlibs" = no; then
14946 runpath_var=
14947 hardcode_libdir_flag_spec=
14948 export_dynamic_flag_spec=
14949 whole_archive_flag_spec=
14950 fi
14951 else
14952 # PORTME fill in a description of your system's linker (not GNU ld)
14953 case $host_os in
14954 aix3*)
14955 allow_undefined_flag=unsupported
14956 always_export_symbols=yes
14957 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'
14958 # Note: this linker hardcodes the directories in LIBPATH if there
14959 # are no directories specified by -L.
14960 hardcode_minus_L=yes
14961 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14962 # Neither direct hardcoding nor static linking is supported with a
14963 # broken collect2.
14964 hardcode_direct=unsupported
14965 fi
14966 ;;
14967
14968 aix[4-9]*)
14969 if test "$host_cpu" = ia64; then
14970 # On IA64, the linker does run time linking by default, so we don't
14971 # have to do anything special.
14972 aix_use_runtimelinking=no
14973 exp_sym_flag='-Bexport'
14974 no_entry_flag=""
14975 else
14976 # If we're using GNU nm, then we don't want the "-C" option.
14977 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000014978 # Also, AIX nm treats weak defined symbols like other global
14979 # defined symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000014980 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000014981 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 +000014982 else
14983 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'
14984 fi
14985 aix_use_runtimelinking=no
14986
14987 # Test if we are trying to use run time linking or normal
14988 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14989 # need to do runtime linking.
14990 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14991 for ld_flag in $LDFLAGS; do
14992 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14993 aix_use_runtimelinking=yes
14994 break
14995 fi
14996 done
14997 ;;
14998 esac
14999
15000 exp_sym_flag='-bexport'
15001 no_entry_flag='-bnoentry'
15002 fi
15003
15004 # When large executables or shared objects are built, AIX ld can
15005 # have problems creating the table of contents. If linking a library
15006 # or program results in "error TOC overflow" add -mminimal-toc to
15007 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15008 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15009
15010 archive_cmds=''
15011 hardcode_direct=yes
15012 hardcode_direct_absolute=yes
15013 hardcode_libdir_separator=':'
15014 link_all_deplibs=yes
15015 file_list_spec='${wl}-f,'
15016
15017 if test "$GCC" = yes; then
15018 case $host_os in aix4.[012]|aix4.[012].*)
15019 # We only want to do this on AIX 4.2 and lower, the check
15020 # below for broken collect2 doesn't work under 4.3+
15021 collect2name=`${CC} -print-prog-name=collect2`
15022 if test -f "$collect2name" &&
15023 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15024 then
15025 # We have reworked collect2
15026 :
15027 else
15028 # We have old collect2
15029 hardcode_direct=unsupported
15030 # It fails to find uninstalled libraries when the uninstalled
15031 # path is not listed in the libpath. Setting hardcode_minus_L
15032 # to unsupported forces relinking
15033 hardcode_minus_L=yes
15034 hardcode_libdir_flag_spec='-L$libdir'
15035 hardcode_libdir_separator=
15036 fi
15037 ;;
15038 esac
15039 shared_flag='-shared'
15040 if test "$aix_use_runtimelinking" = yes; then
15041 shared_flag="$shared_flag "'${wl}-G'
15042 fi
15043 else
15044 # not using gcc
15045 if test "$host_cpu" = ia64; then
15046 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15047 # chokes on -Wl,-G. The following line is correct:
15048 shared_flag='-G'
15049 else
15050 if test "$aix_use_runtimelinking" = yes; then
15051 shared_flag='${wl}-G'
15052 else
15053 shared_flag='${wl}-bM:SRE'
15054 fi
15055 fi
15056 fi
15057
15058 export_dynamic_flag_spec='${wl}-bexpall'
15059 # It seems that -bexpall does not export symbols beginning with
15060 # underscore (_), so it is better to generate a list of symbols to export.
15061 always_export_symbols=yes
15062 if test "$aix_use_runtimelinking" = yes; then
15063 # Warning - without using the other runtime loading flags (-brtl),
15064 # -berok will link without error, but may produce a broken library.
15065 allow_undefined_flag='-berok'
15066 # Determine the default libpath from the value encoded in an
15067 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015068 if test "${lt_cv_aix_libpath+set}" = set; then
15069 aix_libpath=$lt_cv_aix_libpath
15070else
15071 if ${lt_cv_aix_libpath_+:} false; then :
15072 $as_echo_n "(cached) " >&6
15073else
15074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015075/* end confdefs.h. */
15076
15077int
15078main ()
15079{
15080
15081 ;
15082 return 0;
15083}
15084_ACEOF
15085if ac_fn_c_try_link "$LINENO"; then :
15086
cristyda16f162011-02-19 23:52:17 +000015087 lt_aix_libpath_sed='
15088 /Import File Strings/,/^$/ {
15089 /^0/ {
15090 s/^0 *\([^ ]*\) *$/\1/
15091 p
15092 }
15093 }'
15094 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15095 # Check for a 64-bit object if we didn't find anything.
15096 if test -z "$lt_cv_aix_libpath_"; then
15097 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15098 fi
cristy73bd4a52010-10-05 11:24:23 +000015099fi
15100rm -f core conftest.err conftest.$ac_objext \
15101 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015102 if test -z "$lt_cv_aix_libpath_"; then
15103 lt_cv_aix_libpath_="/usr/lib:/lib"
15104 fi
15105
15106fi
15107
15108 aix_libpath=$lt_cv_aix_libpath_
15109fi
cristy73bd4a52010-10-05 11:24:23 +000015110
15111 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
cristy0c60a692010-11-04 01:09:47 +000015112 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 +000015113 else
15114 if test "$host_cpu" = ia64; then
15115 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
15116 allow_undefined_flag="-z nodefs"
15117 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"
15118 else
15119 # Determine the default libpath from the value encoded in an
15120 # empty executable.
cristyda16f162011-02-19 23:52:17 +000015121 if test "${lt_cv_aix_libpath+set}" = set; then
15122 aix_libpath=$lt_cv_aix_libpath
15123else
15124 if ${lt_cv_aix_libpath_+:} false; then :
15125 $as_echo_n "(cached) " >&6
15126else
15127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015128/* end confdefs.h. */
15129
15130int
15131main ()
15132{
15133
15134 ;
15135 return 0;
15136}
15137_ACEOF
15138if ac_fn_c_try_link "$LINENO"; then :
15139
cristyda16f162011-02-19 23:52:17 +000015140 lt_aix_libpath_sed='
15141 /Import File Strings/,/^$/ {
15142 /^0/ {
15143 s/^0 *\([^ ]*\) *$/\1/
15144 p
15145 }
15146 }'
15147 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15148 # Check for a 64-bit object if we didn't find anything.
15149 if test -z "$lt_cv_aix_libpath_"; then
15150 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15151 fi
cristy73bd4a52010-10-05 11:24:23 +000015152fi
15153rm -f core conftest.err conftest.$ac_objext \
15154 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015155 if test -z "$lt_cv_aix_libpath_"; then
15156 lt_cv_aix_libpath_="/usr/lib:/lib"
15157 fi
15158
15159fi
15160
15161 aix_libpath=$lt_cv_aix_libpath_
15162fi
cristy73bd4a52010-10-05 11:24:23 +000015163
15164 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
15165 # Warning - without using the other run time loading flags,
15166 # -berok will link without error, but may produce a broken library.
15167 no_undefined_flag=' ${wl}-bernotok'
15168 allow_undefined_flag=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000015169 if test "$with_gnu_ld" = yes; then
15170 # We only use this code for GNU lds that support --whole-archive.
15171 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15172 else
15173 # Exported symbols can be pulled into shared objects from archives
15174 whole_archive_flag_spec='$convenience'
15175 fi
cristy73bd4a52010-10-05 11:24:23 +000015176 archive_cmds_need_lc=yes
15177 # This is similar to how AIX traditionally builds its shared libraries.
15178 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'
15179 fi
15180 fi
15181 ;;
15182
15183 amigaos*)
15184 case $host_cpu in
15185 powerpc)
15186 # see comment about AmigaOS4 .so support
15187 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15188 archive_expsym_cmds=''
15189 ;;
15190 m68k)
15191 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)'
15192 hardcode_libdir_flag_spec='-L$libdir'
15193 hardcode_minus_L=yes
15194 ;;
15195 esac
15196 ;;
15197
15198 bsdi[45]*)
15199 export_dynamic_flag_spec=-rdynamic
15200 ;;
15201
15202 cygwin* | mingw* | pw32* | cegcc*)
15203 # When not using gcc, we currently assume that we are using
15204 # Microsoft Visual C++.
15205 # hardcode_libdir_flag_spec is actually meaningless, as there is
15206 # no search path for DLLs.
cristyda16f162011-02-19 23:52:17 +000015207 case $cc_basename in
15208 cl*)
15209 # Native MSVC
15210 hardcode_libdir_flag_spec=' '
15211 allow_undefined_flag=unsupported
15212 always_export_symbols=yes
15213 file_list_spec='@'
15214 # Tell ltmain to make .lib files, not .a files.
15215 libext=lib
15216 # Tell ltmain to make .dll files, not .so files.
15217 shrext_cmds=".dll"
15218 # FIXME: Setting linknames here is a bad hack.
15219 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
15220 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15221 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
15222 else
15223 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
15224 fi~
15225 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
15226 linknames='
15227 # The linker will not automatically build a static lib if we build a DLL.
15228 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
15229 enable_shared_with_static_runtimes=yes
cristy99bd5232011-12-07 14:38:20 +000015230 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
cristyda16f162011-02-19 23:52:17 +000015231 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15232 # Don't use ranlib
15233 old_postinstall_cmds='chmod 644 $oldlib'
15234 postlink_cmds='lt_outputfile="@OUTPUT@"~
15235 lt_tool_outputfile="@TOOL_OUTPUT@"~
15236 case $lt_outputfile in
15237 *.exe|*.EXE) ;;
15238 *)
15239 lt_outputfile="$lt_outputfile.exe"
15240 lt_tool_outputfile="$lt_tool_outputfile.exe"
15241 ;;
15242 esac~
15243 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
15244 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
15245 $RM "$lt_outputfile.manifest";
15246 fi'
15247 ;;
15248 *)
15249 # Assume MSVC wrapper
15250 hardcode_libdir_flag_spec=' '
15251 allow_undefined_flag=unsupported
15252 # Tell ltmain to make .lib files, not .a files.
15253 libext=lib
15254 # Tell ltmain to make .dll files, not .so files.
15255 shrext_cmds=".dll"
15256 # FIXME: Setting linknames here is a bad hack.
15257 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
15258 # The linker will automatically build a .lib file if we build a DLL.
15259 old_archive_from_new_cmds='true'
15260 # FIXME: Should let the user specify the lib program.
15261 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
15262 enable_shared_with_static_runtimes=yes
15263 ;;
15264 esac
cristy73bd4a52010-10-05 11:24:23 +000015265 ;;
15266
15267 darwin* | rhapsody*)
15268
15269
15270 archive_cmds_need_lc=no
15271 hardcode_direct=no
15272 hardcode_automatic=yes
15273 hardcode_shlibpath_var=unsupported
cristy0c60a692010-11-04 01:09:47 +000015274 if test "$lt_cv_ld_force_load" = "yes"; then
15275 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 +000015276
cristy0c60a692010-11-04 01:09:47 +000015277 else
15278 whole_archive_flag_spec=''
15279 fi
cristy73bd4a52010-10-05 11:24:23 +000015280 link_all_deplibs=yes
15281 allow_undefined_flag="$_lt_dar_allow_undefined"
15282 case $cc_basename in
15283 ifort*) _lt_dar_can_shared=yes ;;
15284 *) _lt_dar_can_shared=$GCC ;;
15285 esac
15286 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000015287 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000015288 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15289 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15290 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}"
15291 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}"
15292
15293 else
15294 ld_shlibs=no
15295 fi
15296
15297 ;;
15298
15299 dgux*)
15300 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15301 hardcode_libdir_flag_spec='-L$libdir'
15302 hardcode_shlibpath_var=no
15303 ;;
15304
cristy73bd4a52010-10-05 11:24:23 +000015305 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
15306 # support. Future versions do this automatically, but an explicit c++rt0.o
15307 # does not break anything, and helps significantly (at the cost of a little
15308 # extra space).
15309 freebsd2.2*)
15310 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
15311 hardcode_libdir_flag_spec='-R$libdir'
15312 hardcode_direct=yes
15313 hardcode_shlibpath_var=no
15314 ;;
15315
15316 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
cristy99bd5232011-12-07 14:38:20 +000015317 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000015318 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15319 hardcode_direct=yes
15320 hardcode_minus_L=yes
15321 hardcode_shlibpath_var=no
15322 ;;
15323
15324 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
15325 freebsd* | dragonfly*)
cristyda16f162011-02-19 23:52:17 +000015326 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015327 hardcode_libdir_flag_spec='-R$libdir'
15328 hardcode_direct=yes
15329 hardcode_shlibpath_var=no
15330 ;;
15331
15332 hpux9*)
15333 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015334 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 +000015335 else
15336 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'
15337 fi
15338 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15339 hardcode_libdir_separator=:
15340 hardcode_direct=yes
15341
15342 # hardcode_minus_L: Not really in the search PATH,
15343 # but as the default location of the library.
15344 hardcode_minus_L=yes
15345 export_dynamic_flag_spec='${wl}-E'
15346 ;;
15347
15348 hpux10*)
cristy0c60a692010-11-04 01:09:47 +000015349 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000015350 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 +000015351 else
15352 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15353 fi
15354 if test "$with_gnu_ld" = no; then
15355 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
cristy73bd4a52010-10-05 11:24:23 +000015356 hardcode_libdir_separator=:
15357 hardcode_direct=yes
15358 hardcode_direct_absolute=yes
15359 export_dynamic_flag_spec='${wl}-E'
15360 # hardcode_minus_L: Not really in the search PATH,
15361 # but as the default location of the library.
15362 hardcode_minus_L=yes
15363 fi
15364 ;;
15365
15366 hpux11*)
cristy0c60a692010-11-04 01:09:47 +000015367 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
cristy73bd4a52010-10-05 11:24:23 +000015368 case $host_cpu in
15369 hppa*64*)
15370 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15371 ;;
15372 ia64*)
cristyda16f162011-02-19 23:52:17 +000015373 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
cristy73bd4a52010-10-05 11:24:23 +000015374 ;;
15375 *)
cristyda16f162011-02-19 23:52:17 +000015376 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 +000015377 ;;
15378 esac
15379 else
15380 case $host_cpu in
15381 hppa*64*)
15382 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
15383 ;;
15384 ia64*)
15385 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
15386 ;;
15387 *)
cristy0c60a692010-11-04 01:09:47 +000015388
15389 # Older versions of the 11.00 compiler do not understand -b yet
15390 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
15391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
15392$as_echo_n "checking if $CC understands -b... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015393if ${lt_cv_prog_compiler__b+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015394 $as_echo_n "(cached) " >&6
15395else
15396 lt_cv_prog_compiler__b=no
15397 save_LDFLAGS="$LDFLAGS"
15398 LDFLAGS="$LDFLAGS -b"
15399 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15400 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15401 # The linker can only warn and ignore the option if not recognized
15402 # So say no if there are warnings
15403 if test -s conftest.err; then
15404 # Append any errors to the config.log.
15405 cat conftest.err 1>&5
15406 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15407 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15408 if diff conftest.exp conftest.er2 >/dev/null; then
15409 lt_cv_prog_compiler__b=yes
15410 fi
15411 else
15412 lt_cv_prog_compiler__b=yes
15413 fi
15414 fi
15415 $RM -r conftest*
15416 LDFLAGS="$save_LDFLAGS"
15417
15418fi
15419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
15420$as_echo "$lt_cv_prog_compiler__b" >&6; }
15421
15422if test x"$lt_cv_prog_compiler__b" = xyes; then
15423 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
15424else
15425 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
15426fi
15427
cristy73bd4a52010-10-05 11:24:23 +000015428 ;;
15429 esac
15430 fi
15431 if test "$with_gnu_ld" = no; then
15432 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
15433 hardcode_libdir_separator=:
15434
15435 case $host_cpu in
15436 hppa*64*|ia64*)
15437 hardcode_direct=no
15438 hardcode_shlibpath_var=no
15439 ;;
15440 *)
15441 hardcode_direct=yes
15442 hardcode_direct_absolute=yes
15443 export_dynamic_flag_spec='${wl}-E'
15444
15445 # hardcode_minus_L: Not really in the search PATH,
15446 # but as the default location of the library.
15447 hardcode_minus_L=yes
15448 ;;
15449 esac
15450 fi
15451 ;;
15452
15453 irix5* | irix6* | nonstopux*)
15454 if test "$GCC" = yes; then
cristyda16f162011-02-19 23:52:17 +000015455 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 +000015456 # Try to use the -exported_symbol ld option, if it does not
15457 # work, assume that -exports_file does not work either and
15458 # implicitly export all symbols.
cristyda16f162011-02-19 23:52:17 +000015459 # This should be the same for all languages, so no per-tag cache variable.
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
15461$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
15462if ${lt_cv_irix_exported_symbol+:} false; then :
15463 $as_echo_n "(cached) " >&6
15464else
15465 save_LDFLAGS="$LDFLAGS"
15466 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
15467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015468/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000015469int foo (void) { return 0; }
cristy73bd4a52010-10-05 11:24:23 +000015470_ACEOF
15471if ac_fn_c_try_link "$LINENO"; then :
cristyda16f162011-02-19 23:52:17 +000015472 lt_cv_irix_exported_symbol=yes
15473else
15474 lt_cv_irix_exported_symbol=no
cristy73bd4a52010-10-05 11:24:23 +000015475fi
15476rm -f core conftest.err conftest.$ac_objext \
15477 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000015478 LDFLAGS="$save_LDFLAGS"
15479fi
15480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
15481$as_echo "$lt_cv_irix_exported_symbol" >&6; }
15482 if test "$lt_cv_irix_exported_symbol" = yes; then
15483 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'
15484 fi
cristy73bd4a52010-10-05 11:24:23 +000015485 else
cristy0c60a692010-11-04 01:09:47 +000015486 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'
15487 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 +000015488 fi
15489 archive_cmds_need_lc='no'
15490 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15491 hardcode_libdir_separator=:
15492 inherit_rpath=yes
15493 link_all_deplibs=yes
15494 ;;
15495
15496 netbsd*)
15497 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15498 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
15499 else
15500 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
15501 fi
15502 hardcode_libdir_flag_spec='-R$libdir'
15503 hardcode_direct=yes
15504 hardcode_shlibpath_var=no
15505 ;;
15506
15507 newsos6)
15508 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15509 hardcode_direct=yes
15510 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15511 hardcode_libdir_separator=:
15512 hardcode_shlibpath_var=no
15513 ;;
15514
15515 *nto* | *qnx*)
15516 ;;
15517
15518 openbsd*)
15519 if test -f /usr/libexec/ld.so; then
15520 hardcode_direct=yes
15521 hardcode_shlibpath_var=no
15522 hardcode_direct_absolute=yes
15523 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15524 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15525 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
15526 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15527 export_dynamic_flag_spec='${wl}-E'
15528 else
15529 case $host_os in
15530 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
15531 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15532 hardcode_libdir_flag_spec='-R$libdir'
15533 ;;
15534 *)
15535 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
15536 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15537 ;;
15538 esac
15539 fi
15540 else
15541 ld_shlibs=no
15542 fi
15543 ;;
15544
15545 os2*)
15546 hardcode_libdir_flag_spec='-L$libdir'
15547 hardcode_minus_L=yes
15548 allow_undefined_flag=unsupported
cristy0c60a692010-11-04 01:09:47 +000015549 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 +000015550 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
15551 ;;
15552
15553 osf3*)
15554 if test "$GCC" = yes; then
15555 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000015556 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 +000015557 else
15558 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015559 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 +000015560 fi
15561 archive_cmds_need_lc='no'
15562 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15563 hardcode_libdir_separator=:
15564 ;;
15565
15566 osf4* | osf5*) # as osf3* with the addition of -msym flag
15567 if test "$GCC" = yes; then
15568 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
cristyda16f162011-02-19 23:52:17 +000015569 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 +000015570 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15571 else
15572 allow_undefined_flag=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000015573 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 +000015574 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 +000015575 $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 +000015576
15577 # Both c and cxx compiler support -rpath directly
15578 hardcode_libdir_flag_spec='-rpath $libdir'
15579 fi
15580 archive_cmds_need_lc='no'
15581 hardcode_libdir_separator=:
15582 ;;
15583
15584 solaris*)
15585 no_undefined_flag=' -z defs'
15586 if test "$GCC" = yes; then
15587 wlarc='${wl}'
cristyda16f162011-02-19 23:52:17 +000015588 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 +000015589 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 +000015590 $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 +000015591 else
15592 case `$CC -V 2>&1` in
15593 *"Compilers 5.0"*)
15594 wlarc=''
15595 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
15596 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15597 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
15598 ;;
15599 *)
15600 wlarc='${wl}'
15601 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
15602 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15603 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
15604 ;;
15605 esac
15606 fi
15607 hardcode_libdir_flag_spec='-R$libdir'
15608 hardcode_shlibpath_var=no
15609 case $host_os in
15610 solaris2.[0-5] | solaris2.[0-5].*) ;;
15611 *)
15612 # The compiler driver will combine and reorder linker options,
15613 # but understands `-z linker_flag'. GCC discards it without `$wl',
15614 # but is careful enough not to reorder.
15615 # Supported since Solaris 2.6 (maybe 2.5.1?)
15616 if test "$GCC" = yes; then
15617 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15618 else
15619 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
15620 fi
15621 ;;
15622 esac
15623 link_all_deplibs=yes
15624 ;;
15625
15626 sunos4*)
15627 if test "x$host_vendor" = xsequent; then
15628 # Use $CC to link under sequent, because it throws in some extra .o
15629 # files that make .init and .fini sections work.
15630 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
15631 else
15632 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
15633 fi
15634 hardcode_libdir_flag_spec='-L$libdir'
15635 hardcode_direct=yes
15636 hardcode_minus_L=yes
15637 hardcode_shlibpath_var=no
15638 ;;
15639
15640 sysv4)
15641 case $host_vendor in
15642 sni)
15643 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15644 hardcode_direct=yes # is this really true???
15645 ;;
15646 siemens)
15647 ## LD is ld it makes a PLAMLIB
15648 ## CC just makes a GrossModule.
15649 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
15650 reload_cmds='$CC -r -o $output$reload_objs'
15651 hardcode_direct=no
15652 ;;
15653 motorola)
15654 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15655 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
15656 ;;
15657 esac
15658 runpath_var='LD_RUN_PATH'
15659 hardcode_shlibpath_var=no
15660 ;;
15661
15662 sysv4.3*)
15663 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15664 hardcode_shlibpath_var=no
15665 export_dynamic_flag_spec='-Bexport'
15666 ;;
15667
15668 sysv4*MP*)
15669 if test -d /usr/nec; then
15670 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15671 hardcode_shlibpath_var=no
15672 runpath_var=LD_RUN_PATH
15673 hardcode_runpath_var=yes
15674 ld_shlibs=yes
15675 fi
15676 ;;
15677
15678 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15679 no_undefined_flag='${wl}-z,text'
15680 archive_cmds_need_lc=no
15681 hardcode_shlibpath_var=no
15682 runpath_var='LD_RUN_PATH'
15683
15684 if test "$GCC" = yes; then
15685 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15686 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15687 else
15688 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15689 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15690 fi
15691 ;;
15692
15693 sysv5* | sco3.2v5* | sco5v6*)
15694 # Note: We can NOT use -z defs as we might desire, because we do not
15695 # link with -lc, and that would cause any symbols used from libc to
15696 # always be unresolved, which means just about no library would
15697 # ever link correctly. If we're not using GNU ld we use -z text
15698 # though, which does catch some bad symbols but isn't as heavy-handed
15699 # as -z defs.
15700 no_undefined_flag='${wl}-z,text'
15701 allow_undefined_flag='${wl}-z,nodefs'
15702 archive_cmds_need_lc=no
15703 hardcode_shlibpath_var=no
15704 hardcode_libdir_flag_spec='${wl}-R,$libdir'
15705 hardcode_libdir_separator=':'
15706 link_all_deplibs=yes
15707 export_dynamic_flag_spec='${wl}-Bexport'
15708 runpath_var='LD_RUN_PATH'
15709
15710 if test "$GCC" = yes; then
15711 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15712 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15713 else
15714 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15715 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15716 fi
15717 ;;
15718
15719 uts4*)
15720 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
15721 hardcode_libdir_flag_spec='-L$libdir'
15722 hardcode_shlibpath_var=no
15723 ;;
15724
15725 *)
15726 ld_shlibs=no
15727 ;;
15728 esac
15729
15730 if test x$host_vendor = xsni; then
15731 case $host in
15732 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15733 export_dynamic_flag_spec='${wl}-Blargedynsym'
15734 ;;
15735 esac
15736 fi
15737 fi
15738
15739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
15740$as_echo "$ld_shlibs" >&6; }
15741test "$ld_shlibs" = no && can_build_shared=no
15742
15743with_gnu_ld=$with_gnu_ld
15744
15745
15746
15747
15748
15749
15750
15751
15752
15753
15754
15755
15756
15757
15758
15759#
15760# Do we need to explicitly link libc?
15761#
15762case "x$archive_cmds_need_lc" in
15763x|xyes)
15764 # Assume -lc should be added
15765 archive_cmds_need_lc=yes
15766
15767 if test "$enable_shared" = yes && test "$GCC" = yes; then
15768 case $archive_cmds in
15769 *'~'*)
15770 # FIXME: we may have to deal with multi-command sequences.
15771 ;;
15772 '$CC '*)
15773 # Test whether the compiler implicitly links with -lc since on some
15774 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15775 # to ld, don't add -lc before -lgcc.
15776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15777$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000015778if ${lt_cv_archive_cmds_need_lc+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000015779 $as_echo_n "(cached) " >&6
15780else
15781 $RM conftest*
15782 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000015783
cristy0c60a692010-11-04 01:09:47 +000015784 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000015785 (eval $ac_compile) 2>&5
15786 ac_status=$?
15787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15788 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000015789 soname=conftest
15790 lib=conftest
15791 libobjs=conftest.$ac_objext
15792 deplibs=
15793 wl=$lt_prog_compiler_wl
15794 pic_flag=$lt_prog_compiler_pic
15795 compiler_flags=-v
15796 linker_flags=-v
15797 verstring=
15798 output_objdir=.
15799 libname=conftest
15800 lt_save_allow_undefined_flag=$allow_undefined_flag
15801 allow_undefined_flag=
15802 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 +000015803 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15804 ac_status=$?
15805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15806 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000015807 then
15808 lt_cv_archive_cmds_need_lc=no
15809 else
15810 lt_cv_archive_cmds_need_lc=yes
15811 fi
15812 allow_undefined_flag=$lt_save_allow_undefined_flag
15813 else
15814 cat conftest.err 1>&5
15815 fi
15816 $RM conftest*
15817
15818fi
15819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
15820$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
15821 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
cristy73bd4a52010-10-05 11:24:23 +000015822 ;;
15823 esac
15824 fi
15825 ;;
15826esac
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840
15841
15842
15843
15844
15845
15846
15847
15848
15849
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862
15863
15864
15865
15866
15867
15868
15869
15870
15871
15872
15873
15874
15875
15876
15877
15878
15879
15880
15881
15882
15883
15884
15885
15886
15887
15888
15889
15890
15891
15892
15893
15894
15895
15896
15897
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909
15910
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
cristy73bd4a52010-10-05 11:24:23 +000015979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15980$as_echo_n "checking dynamic linker characteristics... " >&6; }
15981
15982if test "$GCC" = yes; then
15983 case $host_os in
15984 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
15985 *) lt_awk_arg="/^libraries:/" ;;
15986 esac
cristy0c60a692010-11-04 01:09:47 +000015987 case $host_os in
15988 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
15989 *) lt_sed_strip_eq="s,=/,/,g" ;;
15990 esac
15991 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
15992 case $lt_search_path_spec in
15993 *\;*)
cristy73bd4a52010-10-05 11:24:23 +000015994 # if the path contains ";" then we assume it to be the separator
15995 # otherwise default to the standard path separator (i.e. ":") - it is
15996 # assumed that no part of a normal pathname contains ";" but that should
15997 # okay in the real world where ";" in dirpaths is itself problematic.
cristy0c60a692010-11-04 01:09:47 +000015998 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
15999 ;;
16000 *)
16001 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
16002 ;;
16003 esac
cristy73bd4a52010-10-05 11:24:23 +000016004 # Ok, now we have the path, separated by spaces, we can step through it
16005 # and add multilib dir if necessary.
16006 lt_tmp_lt_search_path_spec=
16007 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
16008 for lt_sys_path in $lt_search_path_spec; do
16009 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
16010 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
16011 else
16012 test -d "$lt_sys_path" && \
16013 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
16014 fi
16015 done
cristy0c60a692010-11-04 01:09:47 +000016016 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
cristy73bd4a52010-10-05 11:24:23 +000016017BEGIN {RS=" "; FS="/|\n";} {
16018 lt_foo="";
16019 lt_count=0;
16020 for (lt_i = NF; lt_i > 0; lt_i--) {
16021 if ($lt_i != "" && $lt_i != ".") {
16022 if ($lt_i == "..") {
16023 lt_count++;
16024 } else {
16025 if (lt_count == 0) {
16026 lt_foo="/" $lt_i lt_foo;
16027 } else {
16028 lt_count--;
16029 }
16030 }
16031 }
16032 }
16033 if (lt_foo != "") { lt_freq[lt_foo]++; }
16034 if (lt_freq[lt_foo] == 1) { print lt_foo; }
16035}'`
cristy0c60a692010-11-04 01:09:47 +000016036 # AWK program above erroneously prepends '/' to C:/dos/paths
16037 # for these hosts.
16038 case $host_os in
16039 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
16040 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
16041 esac
16042 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
cristy73bd4a52010-10-05 11:24:23 +000016043else
16044 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16045fi
16046library_names_spec=
16047libname_spec='lib$name'
16048soname_spec=
16049shrext_cmds=".so"
16050postinstall_cmds=
16051postuninstall_cmds=
16052finish_cmds=
16053finish_eval=
16054shlibpath_var=
16055shlibpath_overrides_runpath=unknown
16056version_type=none
16057dynamic_linker="$host_os ld.so"
16058sys_lib_dlsearch_path_spec="/lib /usr/lib"
16059need_lib_prefix=unknown
16060hardcode_into_libs=no
16061
16062# when you set need_version to no, make sure it does not cause -set_version
16063# flags to be left without arguments
16064need_version=unknown
16065
16066case $host_os in
16067aix3*)
cristy99bd5232011-12-07 14:38:20 +000016068 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016069 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16070 shlibpath_var=LIBPATH
16071
16072 # AIX 3 has no versioning support, so we append a major version to the name.
16073 soname_spec='${libname}${release}${shared_ext}$major'
16074 ;;
16075
16076aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000016077 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016078 need_lib_prefix=no
16079 need_version=no
16080 hardcode_into_libs=yes
16081 if test "$host_cpu" = ia64; then
16082 # AIX 5 supports IA64
16083 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16084 shlibpath_var=LD_LIBRARY_PATH
16085 else
16086 # With GCC up to 2.95.x, collect2 would create an import file
16087 # for dependence libraries. The import file would start with
16088 # the line `#! .'. This would cause the generated library to
16089 # depend on `.', always an invalid library. This was fixed in
16090 # development snapshots of GCC prior to 3.0.
16091 case $host_os in
16092 aix4 | aix4.[01] | aix4.[01].*)
16093 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16094 echo ' yes '
16095 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16096 :
16097 else
16098 can_build_shared=no
16099 fi
16100 ;;
16101 esac
16102 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16103 # soname into executable. Probably we can add versioning support to
16104 # collect2, so additional links can be useful in future.
16105 if test "$aix_use_runtimelinking" = yes; then
16106 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16107 # instead of lib<name>.a to let people know that these are not
16108 # typical AIX shared libraries.
16109 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16110 else
16111 # We preserve .a as extension for shared libraries through AIX4.2
16112 # and later when we are not doing run time linking.
16113 library_names_spec='${libname}${release}.a $libname.a'
16114 soname_spec='${libname}${release}${shared_ext}$major'
16115 fi
16116 shlibpath_var=LIBPATH
16117 fi
16118 ;;
16119
16120amigaos*)
16121 case $host_cpu in
16122 powerpc)
16123 # Since July 2007 AmigaOS4 officially supports .so libraries.
16124 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
16125 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16126 ;;
16127 m68k)
16128 library_names_spec='$libname.ixlibrary $libname.a'
16129 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000016130 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 +000016131 ;;
16132 esac
16133 ;;
16134
16135beos*)
16136 library_names_spec='${libname}${shared_ext}'
16137 dynamic_linker="$host_os ld.so"
16138 shlibpath_var=LIBRARY_PATH
16139 ;;
16140
16141bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000016142 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016143 need_version=no
16144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16145 soname_spec='${libname}${release}${shared_ext}$major'
16146 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16147 shlibpath_var=LD_LIBRARY_PATH
16148 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16149 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16150 # the default ld.so.conf also contains /usr/contrib/lib and
16151 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16152 # libtool to hard-code these into programs
16153 ;;
16154
16155cygwin* | mingw* | pw32* | cegcc*)
16156 version_type=windows
16157 shrext_cmds=".dll"
16158 need_version=no
16159 need_lib_prefix=no
16160
cristyda16f162011-02-19 23:52:17 +000016161 case $GCC,$cc_basename in
16162 yes,*)
16163 # gcc
cristy73bd4a52010-10-05 11:24:23 +000016164 library_names_spec='$libname.dll.a'
16165 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16166 postinstall_cmds='base_file=`basename \${file}`~
16167 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16168 dldir=$destdir/`dirname \$dlpath`~
16169 test -d \$dldir || mkdir -p \$dldir~
16170 $install_prog $dir/$dlname \$dldir/$dlname~
16171 chmod a+x \$dldir/$dlname~
16172 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
16173 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
16174 fi'
16175 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16176 dlpath=$dir/\$dldll~
16177 $RM \$dlpath'
16178 shlibpath_overrides_runpath=yes
16179
16180 case $host_os in
16181 cygwin*)
16182 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16183 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000016184
16185 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
cristy73bd4a52010-10-05 11:24:23 +000016186 ;;
16187 mingw* | cegcc*)
16188 # MinGW DLLs use traditional 'lib' prefix
16189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000016190 ;;
16191 pw32*)
16192 # pw32 DLLs use 'pw' prefix rather than 'lib'
16193 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16194 ;;
16195 esac
cristyda16f162011-02-19 23:52:17 +000016196 dynamic_linker='Win32 ld.exe'
16197 ;;
16198
16199 *,cl*)
16200 # Native MSVC
16201 libname_spec='$name'
16202 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16203 library_names_spec='${libname}.dll.lib'
16204
16205 case $build_os in
16206 mingw*)
16207 sys_lib_search_path_spec=
16208 lt_save_ifs=$IFS
16209 IFS=';'
16210 for lt_path in $LIB
16211 do
16212 IFS=$lt_save_ifs
16213 # Let DOS variable expansion print the short 8.3 style file name.
16214 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
16215 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
16216 done
16217 IFS=$lt_save_ifs
16218 # Convert to MSYS style.
16219 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
16220 ;;
16221 cygwin*)
16222 # Convert to unix form, then to dos form, then back to unix form
16223 # but this time dos style (no spaces!) so that the unix form looks
16224 # like /cygdrive/c/PROGRA~1:/cygdr...
16225 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
16226 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
16227 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16228 ;;
16229 *)
16230 sys_lib_search_path_spec="$LIB"
16231 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
16232 # It is most probably a Windows format PATH.
16233 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16234 else
16235 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16236 fi
16237 # FIXME: find the short name or the path components, as spaces are
16238 # common. (e.g. "Program Files" -> "PROGRA~1")
16239 ;;
16240 esac
16241
16242 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16243 postinstall_cmds='base_file=`basename \${file}`~
16244 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
16245 dldir=$destdir/`dirname \$dlpath`~
16246 test -d \$dldir || mkdir -p \$dldir~
16247 $install_prog $dir/$dlname \$dldir/$dlname'
16248 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16249 dlpath=$dir/\$dldll~
16250 $RM \$dlpath'
16251 shlibpath_overrides_runpath=yes
16252 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000016253 ;;
16254
16255 *)
cristyda16f162011-02-19 23:52:17 +000016256 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000016257 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000016258 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000016259 ;;
16260 esac
cristy73bd4a52010-10-05 11:24:23 +000016261 # FIXME: first we should search . and the directory the executable is in
16262 shlibpath_var=PATH
16263 ;;
16264
16265darwin* | rhapsody*)
16266 dynamic_linker="$host_os dyld"
16267 version_type=darwin
16268 need_lib_prefix=no
16269 need_version=no
16270 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16271 soname_spec='${libname}${release}${major}$shared_ext'
16272 shlibpath_overrides_runpath=yes
16273 shlibpath_var=DYLD_LIBRARY_PATH
16274 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
16275
16276 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
16277 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16278 ;;
16279
16280dgux*)
cristy99bd5232011-12-07 14:38:20 +000016281 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016282 need_lib_prefix=no
16283 need_version=no
16284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16285 soname_spec='${libname}${release}${shared_ext}$major'
16286 shlibpath_var=LD_LIBRARY_PATH
16287 ;;
16288
cristy73bd4a52010-10-05 11:24:23 +000016289freebsd* | dragonfly*)
16290 # DragonFly does not have aout. When/if they implement a new
16291 # versioning mechanism, adjust this.
16292 if test -x /usr/bin/objformat; then
16293 objformat=`/usr/bin/objformat`
16294 else
16295 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016296 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000016297 *) objformat=elf ;;
16298 esac
16299 fi
16300 version_type=freebsd-$objformat
16301 case $version_type in
16302 freebsd-elf*)
16303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16304 need_version=no
16305 need_lib_prefix=no
16306 ;;
16307 freebsd-*)
16308 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16309 need_version=yes
16310 ;;
16311 esac
16312 shlibpath_var=LD_LIBRARY_PATH
16313 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000016314 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000016315 shlibpath_overrides_runpath=yes
16316 ;;
16317 freebsd3.[01]* | freebsdelf3.[01]*)
16318 shlibpath_overrides_runpath=yes
16319 hardcode_into_libs=yes
16320 ;;
16321 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16322 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16323 shlibpath_overrides_runpath=no
16324 hardcode_into_libs=yes
16325 ;;
16326 *) # from 4.6 on, and DragonFly
16327 shlibpath_overrides_runpath=yes
16328 hardcode_into_libs=yes
16329 ;;
16330 esac
16331 ;;
16332
16333gnu*)
cristy99bd5232011-12-07 14:38:20 +000016334 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016335 need_lib_prefix=no
16336 need_version=no
16337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16338 soname_spec='${libname}${release}${shared_ext}$major'
16339 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000016340 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000016341 hardcode_into_libs=yes
16342 ;;
16343
cristy0c60a692010-11-04 01:09:47 +000016344haiku*)
cristy99bd5232011-12-07 14:38:20 +000016345 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000016346 need_lib_prefix=no
16347 need_version=no
16348 dynamic_linker="$host_os runtime_loader"
16349 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16350 soname_spec='${libname}${release}${shared_ext}$major'
16351 shlibpath_var=LIBRARY_PATH
16352 shlibpath_overrides_runpath=yes
16353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
16354 hardcode_into_libs=yes
16355 ;;
16356
cristy73bd4a52010-10-05 11:24:23 +000016357hpux9* | hpux10* | hpux11*)
16358 # Give a soname corresponding to the major version so that dld.sl refuses to
16359 # link against other versions.
16360 version_type=sunos
16361 need_lib_prefix=no
16362 need_version=no
16363 case $host_cpu in
16364 ia64*)
16365 shrext_cmds='.so'
16366 hardcode_into_libs=yes
16367 dynamic_linker="$host_os dld.so"
16368 shlibpath_var=LD_LIBRARY_PATH
16369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16371 soname_spec='${libname}${release}${shared_ext}$major'
16372 if test "X$HPUX_IA64_MODE" = X32; then
16373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16374 else
16375 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16376 fi
16377 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16378 ;;
16379 hppa*64*)
16380 shrext_cmds='.sl'
16381 hardcode_into_libs=yes
16382 dynamic_linker="$host_os dld.sl"
16383 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16384 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16386 soname_spec='${libname}${release}${shared_ext}$major'
16387 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16388 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16389 ;;
16390 *)
16391 shrext_cmds='.sl'
16392 dynamic_linker="$host_os dld.sl"
16393 shlibpath_var=SHLIB_PATH
16394 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16396 soname_spec='${libname}${release}${shared_ext}$major'
16397 ;;
16398 esac
cristy0c60a692010-11-04 01:09:47 +000016399 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000016400 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000016401 # or fails outright, so override atomically:
16402 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000016403 ;;
16404
16405interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000016406 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016407 need_lib_prefix=no
16408 need_version=no
16409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16410 soname_spec='${libname}${release}${shared_ext}$major'
16411 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16412 shlibpath_var=LD_LIBRARY_PATH
16413 shlibpath_overrides_runpath=no
16414 hardcode_into_libs=yes
16415 ;;
16416
16417irix5* | irix6* | nonstopux*)
16418 case $host_os in
16419 nonstopux*) version_type=nonstopux ;;
16420 *)
16421 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000016422 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016423 else
16424 version_type=irix
16425 fi ;;
16426 esac
16427 need_lib_prefix=no
16428 need_version=no
16429 soname_spec='${libname}${release}${shared_ext}$major'
16430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16431 case $host_os in
16432 irix5* | nonstopux*)
16433 libsuff= shlibsuff=
16434 ;;
16435 *)
16436 case $LD in # libtool.m4 will add one of these switches to LD
16437 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16438 libsuff= shlibsuff= libmagic=32-bit;;
16439 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16440 libsuff=32 shlibsuff=N32 libmagic=N32;;
16441 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16442 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16443 *) libsuff= shlibsuff= libmagic=never-match;;
16444 esac
16445 ;;
16446 esac
16447 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16448 shlibpath_overrides_runpath=no
16449 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16450 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16451 hardcode_into_libs=yes
16452 ;;
16453
16454# No shared lib support for Linux oldld, aout, or coff.
16455linux*oldld* | linux*aout* | linux*coff*)
16456 dynamic_linker=no
16457 ;;
16458
cristy99bd5232011-12-07 14:38:20 +000016459# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000016460linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000016461 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016462 need_lib_prefix=no
16463 need_version=no
16464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16465 soname_spec='${libname}${release}${shared_ext}$major'
16466 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16467 shlibpath_var=LD_LIBRARY_PATH
16468 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000016469
cristy73bd4a52010-10-05 11:24:23 +000016470 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000016471 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000016472 $as_echo_n "(cached) " >&6
16473else
16474 lt_cv_shlibpath_overrides_runpath=no
16475 save_LDFLAGS=$LDFLAGS
16476 save_libdir=$libdir
16477 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
16478 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
16479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000016480/* end confdefs.h. */
16481
16482int
16483main ()
16484{
16485
16486 ;
16487 return 0;
16488}
16489_ACEOF
16490if ac_fn_c_try_link "$LINENO"; then :
16491 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000016492 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000016493fi
16494fi
16495rm -f core conftest.err conftest.$ac_objext \
16496 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000016497 LDFLAGS=$save_LDFLAGS
16498 libdir=$save_libdir
16499
16500fi
16501
16502 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000016503
16504 # This implies no fast_install, which is unacceptable.
16505 # Some rework will be needed to allow for fast_install
16506 # before this can be enabled.
16507 hardcode_into_libs=yes
16508
16509 # Add ABI-specific directories to the system library path.
16510 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
16511
16512 # Append ld.so.conf contents to the search path
16513 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000016514 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 +000016515 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000016516
cristy73bd4a52010-10-05 11:24:23 +000016517 fi
16518
16519 # We used to test for /lib/ld.so.1 and disable shared libraries on
16520 # powerpc, because MkLinux only supported shared libraries with the
16521 # GNU dynamic linker. Since this was broken with cross compilers,
16522 # most powerpc-linux boxes support dynamic linking these days and
16523 # people can always --disable-shared, the test was removed, and we
16524 # assume the GNU/Linux dynamic linker is in use.
16525 dynamic_linker='GNU/Linux ld.so'
16526 ;;
16527
16528netbsd*)
16529 version_type=sunos
16530 need_lib_prefix=no
16531 need_version=no
16532 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16534 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16535 dynamic_linker='NetBSD (a.out) ld.so'
16536 else
16537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16538 soname_spec='${libname}${release}${shared_ext}$major'
16539 dynamic_linker='NetBSD ld.elf_so'
16540 fi
16541 shlibpath_var=LD_LIBRARY_PATH
16542 shlibpath_overrides_runpath=yes
16543 hardcode_into_libs=yes
16544 ;;
16545
16546newsos6)
cristy99bd5232011-12-07 14:38:20 +000016547 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16549 shlibpath_var=LD_LIBRARY_PATH
16550 shlibpath_overrides_runpath=yes
16551 ;;
16552
16553*nto* | *qnx*)
16554 version_type=qnx
16555 need_lib_prefix=no
16556 need_version=no
16557 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16558 soname_spec='${libname}${release}${shared_ext}$major'
16559 shlibpath_var=LD_LIBRARY_PATH
16560 shlibpath_overrides_runpath=no
16561 hardcode_into_libs=yes
16562 dynamic_linker='ldqnx.so'
16563 ;;
16564
16565openbsd*)
16566 version_type=sunos
16567 sys_lib_dlsearch_path_spec="/usr/lib"
16568 need_lib_prefix=no
16569 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16570 case $host_os in
16571 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
16572 *) need_version=no ;;
16573 esac
16574 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16575 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16576 shlibpath_var=LD_LIBRARY_PATH
16577 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16578 case $host_os in
16579 openbsd2.[89] | openbsd2.[89].*)
16580 shlibpath_overrides_runpath=no
16581 ;;
16582 *)
16583 shlibpath_overrides_runpath=yes
16584 ;;
16585 esac
16586 else
16587 shlibpath_overrides_runpath=yes
16588 fi
16589 ;;
16590
16591os2*)
16592 libname_spec='$name'
16593 shrext_cmds=".dll"
16594 need_lib_prefix=no
16595 library_names_spec='$libname${shared_ext} $libname.a'
16596 dynamic_linker='OS/2 ld.exe'
16597 shlibpath_var=LIBPATH
16598 ;;
16599
16600osf3* | osf4* | osf5*)
16601 version_type=osf
16602 need_lib_prefix=no
16603 need_version=no
16604 soname_spec='${libname}${release}${shared_ext}$major'
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16606 shlibpath_var=LD_LIBRARY_PATH
16607 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16608 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16609 ;;
16610
16611rdos*)
16612 dynamic_linker=no
16613 ;;
16614
16615solaris*)
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 need_lib_prefix=no
16618 need_version=no
16619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16620 soname_spec='${libname}${release}${shared_ext}$major'
16621 shlibpath_var=LD_LIBRARY_PATH
16622 shlibpath_overrides_runpath=yes
16623 hardcode_into_libs=yes
16624 # ldd complains unless libraries are executable
16625 postinstall_cmds='chmod +x $lib'
16626 ;;
16627
16628sunos4*)
16629 version_type=sunos
16630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16631 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16632 shlibpath_var=LD_LIBRARY_PATH
16633 shlibpath_overrides_runpath=yes
16634 if test "$with_gnu_ld" = yes; then
16635 need_lib_prefix=no
16636 fi
16637 need_version=yes
16638 ;;
16639
16640sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000016641 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016642 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16643 soname_spec='${libname}${release}${shared_ext}$major'
16644 shlibpath_var=LD_LIBRARY_PATH
16645 case $host_vendor in
16646 sni)
16647 shlibpath_overrides_runpath=no
16648 need_lib_prefix=no
16649 runpath_var=LD_RUN_PATH
16650 ;;
16651 siemens)
16652 need_lib_prefix=no
16653 ;;
16654 motorola)
16655 need_lib_prefix=no
16656 need_version=no
16657 shlibpath_overrides_runpath=no
16658 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16659 ;;
16660 esac
16661 ;;
16662
16663sysv4*MP*)
16664 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000016665 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016666 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16667 soname_spec='$libname${shared_ext}.$major'
16668 shlibpath_var=LD_LIBRARY_PATH
16669 fi
16670 ;;
16671
16672sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16673 version_type=freebsd-elf
16674 need_lib_prefix=no
16675 need_version=no
16676 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16677 soname_spec='${libname}${release}${shared_ext}$major'
16678 shlibpath_var=LD_LIBRARY_PATH
16679 shlibpath_overrides_runpath=yes
16680 hardcode_into_libs=yes
16681 if test "$with_gnu_ld" = yes; then
16682 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16683 else
16684 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16685 case $host_os in
16686 sco3.2v5*)
16687 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16688 ;;
16689 esac
16690 fi
16691 sys_lib_dlsearch_path_spec='/usr/lib'
16692 ;;
16693
16694tpf*)
16695 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000016696 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016697 need_lib_prefix=no
16698 need_version=no
16699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16700 shlibpath_var=LD_LIBRARY_PATH
16701 shlibpath_overrides_runpath=no
16702 hardcode_into_libs=yes
16703 ;;
16704
16705uts4*)
cristy99bd5232011-12-07 14:38:20 +000016706 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000016707 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16708 soname_spec='${libname}${release}${shared_ext}$major'
16709 shlibpath_var=LD_LIBRARY_PATH
16710 ;;
16711
16712*)
16713 dynamic_linker=no
16714 ;;
16715esac
16716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16717$as_echo "$dynamic_linker" >&6; }
16718test "$dynamic_linker" = no && can_build_shared=no
16719
16720variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16721if test "$GCC" = yes; then
16722 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16723fi
16724
16725if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16726 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16727fi
16728if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16729 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16730fi
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756
16757
16758
16759
16760
16761
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772
16773
16774
16775
16776
16777
16778
16779
16780
16781
16782
16783
16784
16785
16786
16787
16788
16789
16790
16791
16792
16793
16794
16795
16796
16797
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814
16815
16816
16817
cristy0c60a692010-11-04 01:09:47 +000016818
16819
16820
16821
16822
cristy73bd4a52010-10-05 11:24:23 +000016823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16824$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16825hardcode_action=
16826if test -n "$hardcode_libdir_flag_spec" ||
16827 test -n "$runpath_var" ||
16828 test "X$hardcode_automatic" = "Xyes" ; then
16829
16830 # We can hardcode non-existent directories.
16831 if test "$hardcode_direct" != no &&
16832 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16833 # have to relink, otherwise we might link with an installed library
16834 # when we should be linking with a yet-to-be-installed one
16835 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
16836 test "$hardcode_minus_L" != no; then
16837 # Linking always hardcodes the temporary library directory.
16838 hardcode_action=relink
16839 else
16840 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16841 hardcode_action=immediate
16842 fi
16843else
16844 # We cannot hardcode anything, or else we can only hardcode existing
16845 # directories.
16846 hardcode_action=unsupported
16847fi
16848{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
16849$as_echo "$hardcode_action" >&6; }
16850
16851if test "$hardcode_action" = relink ||
16852 test "$inherit_rpath" = yes; then
16853 # Fast installation is not supported
16854 enable_fast_install=no
16855elif test "$shlibpath_overrides_runpath" = yes ||
16856 test "$enable_shared" = no; then
16857 # Fast installation is not necessary
16858 enable_fast_install=needless
16859fi
16860
16861
16862
16863
16864
16865
16866 if test "x$enable_dlopen" != xyes; then
16867 enable_dlopen=unknown
16868 enable_dlopen_self=unknown
16869 enable_dlopen_self_static=unknown
16870else
16871 lt_cv_dlopen=no
16872 lt_cv_dlopen_libs=
16873
16874 case $host_os in
16875 beos*)
16876 lt_cv_dlopen="load_add_on"
16877 lt_cv_dlopen_libs=
16878 lt_cv_dlopen_self=yes
16879 ;;
16880
16881 mingw* | pw32* | cegcc*)
16882 lt_cv_dlopen="LoadLibrary"
16883 lt_cv_dlopen_libs=
16884 ;;
16885
16886 cygwin*)
16887 lt_cv_dlopen="dlopen"
16888 lt_cv_dlopen_libs=
16889 ;;
16890
16891 darwin*)
16892 # if libdl is installed we need to link against it
16893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16894$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016895if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016896 $as_echo_n "(cached) " >&6
16897else
16898 ac_check_lib_save_LIBS=$LIBS
16899LIBS="-ldl $LIBS"
16900cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16901/* end confdefs.h. */
16902
16903/* Override any GCC internal prototype to avoid an error.
16904 Use char because int might match the return type of a GCC
16905 builtin and then its argument prototype would still apply. */
16906#ifdef __cplusplus
16907extern "C"
16908#endif
16909char dlopen ();
16910int
16911main ()
16912{
16913return dlopen ();
16914 ;
16915 return 0;
16916}
16917_ACEOF
16918if ac_fn_c_try_link "$LINENO"; then :
16919 ac_cv_lib_dl_dlopen=yes
16920else
16921 ac_cv_lib_dl_dlopen=no
16922fi
16923rm -f core conftest.err conftest.$ac_objext \
16924 conftest$ac_exeext conftest.$ac_ext
16925LIBS=$ac_check_lib_save_LIBS
16926fi
16927{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
16928$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000016929if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016930 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
16931else
16932
16933 lt_cv_dlopen="dyld"
16934 lt_cv_dlopen_libs=
16935 lt_cv_dlopen_self=yes
16936
16937fi
16938
16939 ;;
16940
16941 *)
16942 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
cristyda16f162011-02-19 23:52:17 +000016943if test "x$ac_cv_func_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016944 lt_cv_dlopen="shl_load"
16945else
16946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
16947$as_echo_n "checking for shl_load in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016948if ${ac_cv_lib_dld_shl_load+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016949 $as_echo_n "(cached) " >&6
16950else
16951 ac_check_lib_save_LIBS=$LIBS
16952LIBS="-ldld $LIBS"
16953cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16954/* end confdefs.h. */
16955
16956/* Override any GCC internal prototype to avoid an error.
16957 Use char because int might match the return type of a GCC
16958 builtin and then its argument prototype would still apply. */
16959#ifdef __cplusplus
16960extern "C"
16961#endif
16962char shl_load ();
16963int
16964main ()
16965{
16966return shl_load ();
16967 ;
16968 return 0;
16969}
16970_ACEOF
16971if ac_fn_c_try_link "$LINENO"; then :
16972 ac_cv_lib_dld_shl_load=yes
16973else
16974 ac_cv_lib_dld_shl_load=no
16975fi
16976rm -f core conftest.err conftest.$ac_objext \
16977 conftest$ac_exeext conftest.$ac_ext
16978LIBS=$ac_check_lib_save_LIBS
16979fi
16980{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
16981$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
cristyda16f162011-02-19 23:52:17 +000016982if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016983 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
16984else
16985 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
cristyda16f162011-02-19 23:52:17 +000016986if test "x$ac_cv_func_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000016987 lt_cv_dlopen="dlopen"
16988else
16989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
16990$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000016991if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000016992 $as_echo_n "(cached) " >&6
16993else
16994 ac_check_lib_save_LIBS=$LIBS
16995LIBS="-ldl $LIBS"
16996cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16997/* end confdefs.h. */
16998
16999/* Override any GCC internal prototype to avoid an error.
17000 Use char because int might match the return type of a GCC
17001 builtin and then its argument prototype would still apply. */
17002#ifdef __cplusplus
17003extern "C"
17004#endif
17005char dlopen ();
17006int
17007main ()
17008{
17009return dlopen ();
17010 ;
17011 return 0;
17012}
17013_ACEOF
17014if ac_fn_c_try_link "$LINENO"; then :
17015 ac_cv_lib_dl_dlopen=yes
17016else
17017 ac_cv_lib_dl_dlopen=no
17018fi
17019rm -f core conftest.err conftest.$ac_objext \
17020 conftest$ac_exeext conftest.$ac_ext
17021LIBS=$ac_check_lib_save_LIBS
17022fi
17023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17024$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017025if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017026 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17027else
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17029$as_echo_n "checking for dlopen in -lsvld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017030if ${ac_cv_lib_svld_dlopen+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017031 $as_echo_n "(cached) " >&6
17032else
17033 ac_check_lib_save_LIBS=$LIBS
17034LIBS="-lsvld $LIBS"
17035cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17036/* end confdefs.h. */
17037
17038/* Override any GCC internal prototype to avoid an error.
17039 Use char because int might match the return type of a GCC
17040 builtin and then its argument prototype would still apply. */
17041#ifdef __cplusplus
17042extern "C"
17043#endif
17044char dlopen ();
17045int
17046main ()
17047{
17048return dlopen ();
17049 ;
17050 return 0;
17051}
17052_ACEOF
17053if ac_fn_c_try_link "$LINENO"; then :
17054 ac_cv_lib_svld_dlopen=yes
17055else
17056 ac_cv_lib_svld_dlopen=no
17057fi
17058rm -f core conftest.err conftest.$ac_objext \
17059 conftest$ac_exeext conftest.$ac_ext
17060LIBS=$ac_check_lib_save_LIBS
17061fi
17062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
17063$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000017064if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017065 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17066else
17067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
17068$as_echo_n "checking for dld_link in -ldld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017069if ${ac_cv_lib_dld_dld_link+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017070 $as_echo_n "(cached) " >&6
17071else
17072 ac_check_lib_save_LIBS=$LIBS
17073LIBS="-ldld $LIBS"
17074cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075/* end confdefs.h. */
17076
17077/* Override any GCC internal prototype to avoid an error.
17078 Use char because int might match the return type of a GCC
17079 builtin and then its argument prototype would still apply. */
17080#ifdef __cplusplus
17081extern "C"
17082#endif
17083char dld_link ();
17084int
17085main ()
17086{
17087return dld_link ();
17088 ;
17089 return 0;
17090}
17091_ACEOF
17092if ac_fn_c_try_link "$LINENO"; then :
17093 ac_cv_lib_dld_dld_link=yes
17094else
17095 ac_cv_lib_dld_dld_link=no
17096fi
17097rm -f core conftest.err conftest.$ac_objext \
17098 conftest$ac_exeext conftest.$ac_ext
17099LIBS=$ac_check_lib_save_LIBS
17100fi
17101{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
17102$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
cristyda16f162011-02-19 23:52:17 +000017103if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000017104 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
17105fi
17106
17107
17108fi
17109
17110
17111fi
17112
17113
17114fi
17115
17116
17117fi
17118
17119
17120fi
17121
17122 ;;
17123 esac
17124
17125 if test "x$lt_cv_dlopen" != xno; then
17126 enable_dlopen=yes
17127 else
17128 enable_dlopen=no
17129 fi
17130
17131 case $lt_cv_dlopen in
17132 dlopen)
17133 save_CPPFLAGS="$CPPFLAGS"
17134 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17135
17136 save_LDFLAGS="$LDFLAGS"
17137 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17138
17139 save_LIBS="$LIBS"
17140 LIBS="$lt_cv_dlopen_libs $LIBS"
17141
17142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
17143$as_echo_n "checking whether a program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017144if ${lt_cv_dlopen_self+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017145 $as_echo_n "(cached) " >&6
17146else
17147 if test "$cross_compiling" = yes; then :
17148 lt_cv_dlopen_self=cross
17149else
17150 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17151 lt_status=$lt_dlunknown
17152 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017153#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017154#include "confdefs.h"
17155
17156#if HAVE_DLFCN_H
17157#include <dlfcn.h>
17158#endif
17159
17160#include <stdio.h>
17161
17162#ifdef RTLD_GLOBAL
17163# define LT_DLGLOBAL RTLD_GLOBAL
17164#else
17165# ifdef DL_GLOBAL
17166# define LT_DLGLOBAL DL_GLOBAL
17167# else
17168# define LT_DLGLOBAL 0
17169# endif
17170#endif
17171
17172/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17173 find out it does not work in some platform. */
17174#ifndef LT_DLLAZY_OR_NOW
17175# ifdef RTLD_LAZY
17176# define LT_DLLAZY_OR_NOW RTLD_LAZY
17177# else
17178# ifdef DL_LAZY
17179# define LT_DLLAZY_OR_NOW DL_LAZY
17180# else
17181# ifdef RTLD_NOW
17182# define LT_DLLAZY_OR_NOW RTLD_NOW
17183# else
17184# ifdef DL_NOW
17185# define LT_DLLAZY_OR_NOW DL_NOW
17186# else
17187# define LT_DLLAZY_OR_NOW 0
17188# endif
17189# endif
17190# endif
17191# endif
17192#endif
17193
cristy0c60a692010-11-04 01:09:47 +000017194/* When -fvisbility=hidden is used, assume the code has been annotated
17195 correspondingly for the symbols needed. */
17196#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017197int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017198#endif
17199
cristyda16f162011-02-19 23:52:17 +000017200int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017201int main ()
17202{
17203 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17204 int status = $lt_dlunknown;
17205
17206 if (self)
17207 {
17208 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017209 else
17210 {
17211 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17212 else puts (dlerror ());
17213 }
cristy73bd4a52010-10-05 11:24:23 +000017214 /* dlclose (self); */
17215 }
17216 else
17217 puts (dlerror ());
17218
17219 return status;
17220}
17221_LT_EOF
17222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17223 (eval $ac_link) 2>&5
17224 ac_status=$?
17225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17226 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17227 (./conftest; exit; ) >&5 2>/dev/null
17228 lt_status=$?
17229 case x$lt_status in
17230 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17231 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17232 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
17233 esac
17234 else :
17235 # compilation failed
17236 lt_cv_dlopen_self=no
17237 fi
17238fi
17239rm -fr conftest*
17240
17241
17242fi
17243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
17244$as_echo "$lt_cv_dlopen_self" >&6; }
17245
17246 if test "x$lt_cv_dlopen_self" = xyes; then
17247 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
17248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
17249$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017250if ${lt_cv_dlopen_self_static+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017251 $as_echo_n "(cached) " >&6
17252else
17253 if test "$cross_compiling" = yes; then :
17254 lt_cv_dlopen_self_static=cross
17255else
17256 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17257 lt_status=$lt_dlunknown
17258 cat > conftest.$ac_ext <<_LT_EOF
cristy0c60a692010-11-04 01:09:47 +000017259#line $LINENO "configure"
cristy73bd4a52010-10-05 11:24:23 +000017260#include "confdefs.h"
17261
17262#if HAVE_DLFCN_H
17263#include <dlfcn.h>
17264#endif
17265
17266#include <stdio.h>
17267
17268#ifdef RTLD_GLOBAL
17269# define LT_DLGLOBAL RTLD_GLOBAL
17270#else
17271# ifdef DL_GLOBAL
17272# define LT_DLGLOBAL DL_GLOBAL
17273# else
17274# define LT_DLGLOBAL 0
17275# endif
17276#endif
17277
17278/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17279 find out it does not work in some platform. */
17280#ifndef LT_DLLAZY_OR_NOW
17281# ifdef RTLD_LAZY
17282# define LT_DLLAZY_OR_NOW RTLD_LAZY
17283# else
17284# ifdef DL_LAZY
17285# define LT_DLLAZY_OR_NOW DL_LAZY
17286# else
17287# ifdef RTLD_NOW
17288# define LT_DLLAZY_OR_NOW RTLD_NOW
17289# else
17290# ifdef DL_NOW
17291# define LT_DLLAZY_OR_NOW DL_NOW
17292# else
17293# define LT_DLLAZY_OR_NOW 0
17294# endif
17295# endif
17296# endif
17297# endif
17298#endif
17299
cristy0c60a692010-11-04 01:09:47 +000017300/* When -fvisbility=hidden is used, assume the code has been annotated
17301 correspondingly for the symbols needed. */
17302#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
cristyda16f162011-02-19 23:52:17 +000017303int fnord () __attribute__((visibility("default")));
cristy0c60a692010-11-04 01:09:47 +000017304#endif
17305
cristyda16f162011-02-19 23:52:17 +000017306int fnord () { return 42; }
cristy73bd4a52010-10-05 11:24:23 +000017307int main ()
17308{
17309 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17310 int status = $lt_dlunknown;
17311
17312 if (self)
17313 {
17314 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
cristy0c60a692010-11-04 01:09:47 +000017315 else
17316 {
17317 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17318 else puts (dlerror ());
17319 }
cristy73bd4a52010-10-05 11:24:23 +000017320 /* dlclose (self); */
17321 }
17322 else
17323 puts (dlerror ());
17324
17325 return status;
17326}
17327_LT_EOF
17328 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
17329 (eval $ac_link) 2>&5
17330 ac_status=$?
17331 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17332 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
17333 (./conftest; exit; ) >&5 2>/dev/null
17334 lt_status=$?
17335 case x$lt_status in
17336 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
17337 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
17338 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
17339 esac
17340 else :
17341 # compilation failed
17342 lt_cv_dlopen_self_static=no
17343 fi
17344fi
17345rm -fr conftest*
17346
17347
17348fi
17349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
17350$as_echo "$lt_cv_dlopen_self_static" >&6; }
17351 fi
17352
17353 CPPFLAGS="$save_CPPFLAGS"
17354 LDFLAGS="$save_LDFLAGS"
17355 LIBS="$save_LIBS"
17356 ;;
17357 esac
17358
17359 case $lt_cv_dlopen_self in
17360 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
17361 *) enable_dlopen_self=unknown ;;
17362 esac
17363
17364 case $lt_cv_dlopen_self_static in
17365 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
17366 *) enable_dlopen_self_static=unknown ;;
17367 esac
17368fi
17369
17370
17371
17372
17373
17374
17375
17376
17377
17378
17379
17380
17381
17382
17383
17384
17385
17386striplib=
17387old_striplib=
17388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
17389$as_echo_n "checking whether stripping libraries is possible... " >&6; }
17390if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
17391 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17392 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17394$as_echo "yes" >&6; }
17395else
17396# FIXME - insert some real tests, host_os isn't really good enough
17397 case $host_os in
17398 darwin*)
17399 if test -n "$STRIP" ; then
17400 striplib="$STRIP -x"
17401 old_striplib="$STRIP -S"
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17403$as_echo "yes" >&6; }
17404 else
17405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17406$as_echo "no" >&6; }
17407 fi
17408 ;;
17409 *)
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17411$as_echo "no" >&6; }
17412 ;;
17413 esac
17414fi
17415
17416
17417
17418
17419
17420
17421
17422
17423
17424
17425
17426
17427 # Report which library types will actually be built
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17429$as_echo_n "checking if libtool supports shared libraries... " >&6; }
17430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17431$as_echo "$can_build_shared" >&6; }
17432
17433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17434$as_echo_n "checking whether to build shared libraries... " >&6; }
17435 test "$can_build_shared" = "no" && enable_shared=no
17436
17437 # On AIX, shared libraries and static libraries use the same namespace, and
17438 # are all built from PIC.
17439 case $host_os in
17440 aix3*)
17441 test "$enable_shared" = yes && enable_static=no
17442 if test -n "$RANLIB"; then
17443 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17444 postinstall_cmds='$RANLIB $lib'
17445 fi
17446 ;;
17447
17448 aix[4-9]*)
17449 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17450 test "$enable_shared" = yes && enable_static=no
17451 fi
17452 ;;
17453 esac
17454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17455$as_echo "$enable_shared" >&6; }
17456
17457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17458$as_echo_n "checking whether to build static libraries... " >&6; }
17459 # Make sure either enable_shared or enable_static is yes.
17460 test "$enable_shared" = yes || enable_static=yes
17461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17462$as_echo "$enable_static" >&6; }
17463
17464
17465
17466
17467fi
17468ac_ext=c
17469ac_cpp='$CPP $CPPFLAGS'
17470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17472ac_compiler_gnu=$ac_cv_c_compiler_gnu
17473
17474CC="$lt_save_CC"
17475
cristy0c60a692010-11-04 01:09:47 +000017476 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
17477 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
17478 (test "X$CXX" != "Xg++"))) ; then
17479 ac_ext=cpp
17480ac_cpp='$CXXCPP $CPPFLAGS'
17481ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17482ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17483ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17484{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
17485$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
17486if test -z "$CXXCPP"; then
cristyda16f162011-02-19 23:52:17 +000017487 if ${ac_cv_prog_CXXCPP+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000017488 $as_echo_n "(cached) " >&6
17489else
17490 # Double quotes because CXXCPP needs to be expanded
17491 for CXXCPP in "$CXX -E" "/lib/cpp"
17492 do
17493 ac_preproc_ok=false
17494for ac_cxx_preproc_warn_flag in '' yes
17495do
17496 # Use a header file that comes with gcc, so configuring glibc
17497 # with a fresh cross-compiler works.
17498 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17499 # <limits.h> exists even on freestanding compilers.
17500 # On the NeXT, cc -E runs the code through the compiler's parser,
17501 # not just through cpp. "Syntax error" is here to catch this case.
17502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503/* end confdefs.h. */
17504#ifdef __STDC__
17505# include <limits.h>
17506#else
17507# include <assert.h>
17508#endif
17509 Syntax error
17510_ACEOF
17511if ac_fn_cxx_try_cpp "$LINENO"; then :
17512
17513else
17514 # Broken: fails on valid input.
17515continue
17516fi
cristyda16f162011-02-19 23:52:17 +000017517rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017518
17519 # OK, works on sane cases. Now check whether nonexistent headers
17520 # can be detected and how.
17521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17522/* end confdefs.h. */
17523#include <ac_nonexistent.h>
17524_ACEOF
17525if ac_fn_cxx_try_cpp "$LINENO"; then :
17526 # Broken: success on invalid input.
17527continue
17528else
17529 # Passes both tests.
17530ac_preproc_ok=:
17531break
17532fi
cristyda16f162011-02-19 23:52:17 +000017533rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017534
17535done
17536# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017537rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017538if $ac_preproc_ok; then :
17539 break
17540fi
17541
17542 done
17543 ac_cv_prog_CXXCPP=$CXXCPP
17544
17545fi
17546 CXXCPP=$ac_cv_prog_CXXCPP
17547else
17548 ac_cv_prog_CXXCPP=$CXXCPP
17549fi
17550{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
17551$as_echo "$CXXCPP" >&6; }
17552ac_preproc_ok=false
17553for ac_cxx_preproc_warn_flag in '' yes
17554do
17555 # Use a header file that comes with gcc, so configuring glibc
17556 # with a fresh cross-compiler works.
17557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17558 # <limits.h> exists even on freestanding compilers.
17559 # On the NeXT, cc -E runs the code through the compiler's parser,
17560 # not just through cpp. "Syntax error" is here to catch this case.
17561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17562/* end confdefs.h. */
17563#ifdef __STDC__
17564# include <limits.h>
17565#else
17566# include <assert.h>
17567#endif
17568 Syntax error
17569_ACEOF
17570if ac_fn_cxx_try_cpp "$LINENO"; then :
17571
17572else
17573 # Broken: fails on valid input.
17574continue
17575fi
cristyda16f162011-02-19 23:52:17 +000017576rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017577
17578 # OK, works on sane cases. Now check whether nonexistent headers
17579 # can be detected and how.
17580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17581/* end confdefs.h. */
17582#include <ac_nonexistent.h>
17583_ACEOF
17584if ac_fn_cxx_try_cpp "$LINENO"; then :
17585 # Broken: success on invalid input.
17586continue
17587else
17588 # Passes both tests.
17589ac_preproc_ok=:
17590break
17591fi
cristyda16f162011-02-19 23:52:17 +000017592rm -f conftest.err conftest.i conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017593
17594done
17595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
cristyda16f162011-02-19 23:52:17 +000017596rm -f conftest.i conftest.err conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000017597if $ac_preproc_ok; then :
17598
17599else
17600 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17601$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17602as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
17603See \`config.log' for more details" "$LINENO" 5; }
17604fi
17605
17606ac_ext=c
17607ac_cpp='$CPP $CPPFLAGS'
17608ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17609ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17610ac_compiler_gnu=$ac_cv_c_compiler_gnu
17611
17612else
17613 _lt_caught_CXX_error=yes
17614fi
cristy73bd4a52010-10-05 11:24:23 +000017615
17616ac_ext=cpp
17617ac_cpp='$CXXCPP $CPPFLAGS'
17618ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17619ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17620ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17621
17622archive_cmds_need_lc_CXX=no
17623allow_undefined_flag_CXX=
17624always_export_symbols_CXX=no
17625archive_expsym_cmds_CXX=
17626compiler_needs_object_CXX=no
17627export_dynamic_flag_spec_CXX=
17628hardcode_direct_CXX=no
17629hardcode_direct_absolute_CXX=no
17630hardcode_libdir_flag_spec_CXX=
cristy73bd4a52010-10-05 11:24:23 +000017631hardcode_libdir_separator_CXX=
17632hardcode_minus_L_CXX=no
17633hardcode_shlibpath_var_CXX=unsupported
17634hardcode_automatic_CXX=no
17635inherit_rpath_CXX=no
17636module_cmds_CXX=
17637module_expsym_cmds_CXX=
17638link_all_deplibs_CXX=unknown
17639old_archive_cmds_CXX=$old_archive_cmds
cristy0c60a692010-11-04 01:09:47 +000017640reload_flag_CXX=$reload_flag
17641reload_cmds_CXX=$reload_cmds
cristy73bd4a52010-10-05 11:24:23 +000017642no_undefined_flag_CXX=
17643whole_archive_flag_spec_CXX=
17644enable_shared_with_static_runtimes_CXX=no
17645
17646# Source file extension for C++ test sources.
17647ac_ext=cpp
17648
17649# Object file extension for compiled C++ test sources.
17650objext=o
17651objext_CXX=$objext
17652
17653# No sense in running all these tests if we already determined that
17654# the CXX compiler isn't working. Some variables (like enable_shared)
17655# are currently assumed to apply to all compilers on this platform,
17656# and will be corrupted by setting them based on a non-working compiler.
17657if test "$_lt_caught_CXX_error" != yes; then
17658 # Code to be used in simple compile tests
17659 lt_simple_compile_test_code="int some_variable = 0;"
17660
17661 # Code to be used in simple link tests
17662 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
17663
17664 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17665
17666
17667
17668
17669
17670
17671# If no C compiler was specified, use CC.
17672LTCC=${LTCC-"$CC"}
17673
17674# If no C compiler flags were specified, use CFLAGS.
17675LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17676
17677# Allow CC to be a program name with arguments.
17678compiler=$CC
17679
17680
17681 # save warnings/boilerplate of simple test code
17682 ac_outfile=conftest.$ac_objext
17683echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17684eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17685_lt_compiler_boilerplate=`cat conftest.err`
17686$RM conftest*
17687
17688 ac_outfile=conftest.$ac_objext
17689echo "$lt_simple_link_test_code" >conftest.$ac_ext
17690eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17691_lt_linker_boilerplate=`cat conftest.err`
17692$RM -r conftest*
17693
17694
17695 # Allow CC to be a program name with arguments.
17696 lt_save_CC=$CC
cristyda16f162011-02-19 23:52:17 +000017697 lt_save_CFLAGS=$CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017698 lt_save_LD=$LD
17699 lt_save_GCC=$GCC
17700 GCC=$GXX
17701 lt_save_with_gnu_ld=$with_gnu_ld
17702 lt_save_path_LD=$lt_cv_path_LD
17703 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
17704 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
17705 else
17706 $as_unset lt_cv_prog_gnu_ld
17707 fi
17708 if test -n "${lt_cv_path_LDCXX+set}"; then
17709 lt_cv_path_LD=$lt_cv_path_LDCXX
17710 else
17711 $as_unset lt_cv_path_LD
17712 fi
17713 test -z "${LDCXX+set}" || LD=$LDCXX
17714 CC=${CXX-"c++"}
cristyda16f162011-02-19 23:52:17 +000017715 CFLAGS=$CXXFLAGS
cristy73bd4a52010-10-05 11:24:23 +000017716 compiler=$CC
17717 compiler_CXX=$CC
17718 for cc_temp in $compiler""; do
17719 case $cc_temp in
17720 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17721 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17722 \-*) ;;
17723 *) break;;
17724 esac
17725done
cristy0c60a692010-11-04 01:09:47 +000017726cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
cristy73bd4a52010-10-05 11:24:23 +000017727
17728
17729 if test -n "$compiler"; then
17730 # We don't want -fno-exception when compiling C++ code, so set the
17731 # no_builtin_flag separately
17732 if test "$GXX" = yes; then
17733 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
17734 else
17735 lt_prog_compiler_no_builtin_flag_CXX=
17736 fi
17737
17738 if test "$GXX" = yes; then
17739 # Set up default GNU C++ configuration
17740
17741
17742
17743# Check whether --with-gnu-ld was given.
17744if test "${with_gnu_ld+set}" = set; then :
17745 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17746else
17747 with_gnu_ld=no
17748fi
17749
17750ac_prog=ld
17751if test "$GCC" = yes; then
17752 # Check if gcc -print-prog-name=ld gives a path.
17753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
17754$as_echo_n "checking for ld used by $CC... " >&6; }
17755 case $host in
17756 *-*-mingw*)
17757 # gcc leaves a trailing carriage return which upsets mingw
17758 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17759 *)
17760 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17761 esac
17762 case $ac_prog in
17763 # Accept absolute paths.
17764 [\\/]* | ?:[\\/]*)
17765 re_direlt='/[^/][^/]*/\.\./'
17766 # Canonicalize the pathname of ld
17767 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
17768 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
17769 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
17770 done
17771 test -z "$LD" && LD="$ac_prog"
17772 ;;
17773 "")
17774 # If it fails, then pretend we aren't using GCC.
17775 ac_prog=ld
17776 ;;
17777 *)
17778 # If it is relative, then search for the first ld in PATH.
17779 with_gnu_ld=unknown
17780 ;;
17781 esac
17782elif test "$with_gnu_ld" = yes; then
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17784$as_echo_n "checking for GNU ld... " >&6; }
17785else
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17787$as_echo_n "checking for non-GNU ld... " >&6; }
17788fi
cristyda16f162011-02-19 23:52:17 +000017789if ${lt_cv_path_LD+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017790 $as_echo_n "(cached) " >&6
17791else
17792 if test -z "$LD"; then
17793 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
17794 for ac_dir in $PATH; do
17795 IFS="$lt_save_ifs"
17796 test -z "$ac_dir" && ac_dir=.
17797 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17798 lt_cv_path_LD="$ac_dir/$ac_prog"
17799 # Check to see if the program is GNU ld. I'd rather use --version,
17800 # but apparently some variants of GNU ld only accept -v.
17801 # Break only if it was the GNU/non-GNU ld that we prefer.
17802 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
17803 *GNU* | *'with BFD'*)
17804 test "$with_gnu_ld" != no && break
17805 ;;
17806 *)
17807 test "$with_gnu_ld" != yes && break
17808 ;;
17809 esac
17810 fi
17811 done
17812 IFS="$lt_save_ifs"
17813else
17814 lt_cv_path_LD="$LD" # Let the user override the test with a path.
17815fi
17816fi
17817
17818LD="$lt_cv_path_LD"
17819if test -n "$LD"; then
17820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
17821$as_echo "$LD" >&6; }
17822else
17823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17824$as_echo "no" >&6; }
17825fi
cristy98dddb52010-11-04 00:30:15 +000017826test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000017827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
17828$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
cristyda16f162011-02-19 23:52:17 +000017829if ${lt_cv_prog_gnu_ld+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000017830 $as_echo_n "(cached) " >&6
17831else
17832 # I'd rather use --version here, but apparently some GNU lds only accept -v.
17833case `$LD -v 2>&1 </dev/null` in
17834*GNU* | *'with BFD'*)
17835 lt_cv_prog_gnu_ld=yes
17836 ;;
17837*)
17838 lt_cv_prog_gnu_ld=no
17839 ;;
17840esac
17841fi
17842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
17843$as_echo "$lt_cv_prog_gnu_ld" >&6; }
17844with_gnu_ld=$lt_cv_prog_gnu_ld
17845
17846
17847
17848
17849
17850
17851
17852 # Check if GNU C++ uses GNU ld as the underlying linker, since the
17853 # archiving commands below assume that GNU ld is being used.
17854 if test "$with_gnu_ld" = yes; then
cristyda16f162011-02-19 23:52:17 +000017855 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
17856 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 +000017857
17858 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
17859 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
17860
17861 # If archive_cmds runs LD, not CC, wlarc should be empty
17862 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
17863 # investigate it a little bit more. (MM)
17864 wlarc='${wl}'
17865
17866 # ancient GNU ld didn't support --whole-archive et. al.
17867 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
17868 $GREP 'no-whole-archive' > /dev/null; then
17869 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
17870 else
17871 whole_archive_flag_spec_CXX=
17872 fi
17873 else
17874 with_gnu_ld=no
17875 wlarc=
17876
17877 # A generic and very simple default shared library creation
17878 # command for GNU C++ for the case where it uses the native
17879 # linker, instead of GNU ld. If possible, this setting should
17880 # overridden to take advantage of the native linker features on
17881 # the platform it is being used on.
17882 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
17883 fi
17884
17885 # Commands to make compiler produce verbose output that lists
17886 # what "hidden" libraries, object files and flags are used when
17887 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000017888 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000017889
17890 else
17891 GXX=no
17892 with_gnu_ld=no
17893 wlarc=
17894 fi
17895
17896 # PORTME: fill in a description of your system's C++ link characteristics
17897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17898$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17899 ld_shlibs_CXX=yes
17900 case $host_os in
17901 aix3*)
17902 # FIXME: insert proper C++ library support
17903 ld_shlibs_CXX=no
17904 ;;
17905 aix[4-9]*)
17906 if test "$host_cpu" = ia64; then
17907 # On IA64, the linker does run time linking by default, so we don't
17908 # have to do anything special.
17909 aix_use_runtimelinking=no
17910 exp_sym_flag='-Bexport'
17911 no_entry_flag=""
17912 else
17913 aix_use_runtimelinking=no
17914
17915 # Test if we are trying to use run time linking or normal
17916 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
17917 # need to do runtime linking.
17918 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
17919 for ld_flag in $LDFLAGS; do
17920 case $ld_flag in
17921 *-brtl*)
17922 aix_use_runtimelinking=yes
17923 break
17924 ;;
17925 esac
17926 done
17927 ;;
17928 esac
17929
17930 exp_sym_flag='-bexport'
17931 no_entry_flag='-bnoentry'
17932 fi
17933
17934 # When large executables or shared objects are built, AIX ld can
17935 # have problems creating the table of contents. If linking a library
17936 # or program results in "error TOC overflow" add -mminimal-toc to
17937 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
17938 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
17939
17940 archive_cmds_CXX=''
17941 hardcode_direct_CXX=yes
17942 hardcode_direct_absolute_CXX=yes
17943 hardcode_libdir_separator_CXX=':'
17944 link_all_deplibs_CXX=yes
17945 file_list_spec_CXX='${wl}-f,'
17946
17947 if test "$GXX" = yes; then
17948 case $host_os in aix4.[012]|aix4.[012].*)
17949 # We only want to do this on AIX 4.2 and lower, the check
17950 # below for broken collect2 doesn't work under 4.3+
17951 collect2name=`${CC} -print-prog-name=collect2`
17952 if test -f "$collect2name" &&
17953 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
17954 then
17955 # We have reworked collect2
17956 :
17957 else
17958 # We have old collect2
17959 hardcode_direct_CXX=unsupported
17960 # It fails to find uninstalled libraries when the uninstalled
17961 # path is not listed in the libpath. Setting hardcode_minus_L
17962 # to unsupported forces relinking
17963 hardcode_minus_L_CXX=yes
17964 hardcode_libdir_flag_spec_CXX='-L$libdir'
17965 hardcode_libdir_separator_CXX=
17966 fi
17967 esac
17968 shared_flag='-shared'
17969 if test "$aix_use_runtimelinking" = yes; then
17970 shared_flag="$shared_flag "'${wl}-G'
17971 fi
17972 else
17973 # not using gcc
17974 if test "$host_cpu" = ia64; then
17975 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17976 # chokes on -Wl,-G. The following line is correct:
17977 shared_flag='-G'
17978 else
17979 if test "$aix_use_runtimelinking" = yes; then
17980 shared_flag='${wl}-G'
17981 else
17982 shared_flag='${wl}-bM:SRE'
17983 fi
17984 fi
17985 fi
17986
17987 export_dynamic_flag_spec_CXX='${wl}-bexpall'
17988 # It seems that -bexpall does not export symbols beginning with
17989 # underscore (_), so it is better to generate a list of symbols to
17990 # export.
17991 always_export_symbols_CXX=yes
17992 if test "$aix_use_runtimelinking" = yes; then
17993 # Warning - without using the other runtime loading flags (-brtl),
17994 # -berok will link without error, but may produce a broken library.
17995 allow_undefined_flag_CXX='-berok'
17996 # Determine the default libpath from the value encoded in an empty
17997 # executable.
cristyda16f162011-02-19 23:52:17 +000017998 if test "${lt_cv_aix_libpath+set}" = set; then
17999 aix_libpath=$lt_cv_aix_libpath
18000else
18001 if ${lt_cv_aix_libpath__CXX+:} false; then :
18002 $as_echo_n "(cached) " >&6
18003else
18004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018005/* end confdefs.h. */
18006
18007int
18008main ()
18009{
18010
18011 ;
18012 return 0;
18013}
18014_ACEOF
18015if ac_fn_cxx_try_link "$LINENO"; then :
18016
cristyda16f162011-02-19 23:52:17 +000018017 lt_aix_libpath_sed='
18018 /Import File Strings/,/^$/ {
18019 /^0/ {
18020 s/^0 *\([^ ]*\) *$/\1/
18021 p
18022 }
18023 }'
18024 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18025 # Check for a 64-bit object if we didn't find anything.
18026 if test -z "$lt_cv_aix_libpath__CXX"; then
18027 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18028 fi
cristy73bd4a52010-10-05 11:24:23 +000018029fi
18030rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018032 if test -z "$lt_cv_aix_libpath__CXX"; then
18033 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18034 fi
18035
18036fi
18037
18038 aix_libpath=$lt_cv_aix_libpath__CXX
18039fi
cristy73bd4a52010-10-05 11:24:23 +000018040
18041 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18042
cristy0c60a692010-11-04 01:09:47 +000018043 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 +000018044 else
18045 if test "$host_cpu" = ia64; then
18046 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18047 allow_undefined_flag_CXX="-z nodefs"
18048 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"
18049 else
18050 # Determine the default libpath from the value encoded in an
18051 # empty executable.
cristyda16f162011-02-19 23:52:17 +000018052 if test "${lt_cv_aix_libpath+set}" = set; then
18053 aix_libpath=$lt_cv_aix_libpath
18054else
18055 if ${lt_cv_aix_libpath__CXX+:} false; then :
18056 $as_echo_n "(cached) " >&6
18057else
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000018059/* end confdefs.h. */
18060
18061int
18062main ()
18063{
18064
18065 ;
18066 return 0;
18067}
18068_ACEOF
18069if ac_fn_cxx_try_link "$LINENO"; then :
18070
cristyda16f162011-02-19 23:52:17 +000018071 lt_aix_libpath_sed='
18072 /Import File Strings/,/^$/ {
18073 /^0/ {
18074 s/^0 *\([^ ]*\) *$/\1/
18075 p
18076 }
18077 }'
18078 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18079 # Check for a 64-bit object if we didn't find anything.
18080 if test -z "$lt_cv_aix_libpath__CXX"; then
18081 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18082 fi
cristy73bd4a52010-10-05 11:24:23 +000018083fi
18084rm -f core conftest.err conftest.$ac_objext \
18085 conftest$ac_exeext conftest.$ac_ext
cristyda16f162011-02-19 23:52:17 +000018086 if test -z "$lt_cv_aix_libpath__CXX"; then
18087 lt_cv_aix_libpath__CXX="/usr/lib:/lib"
18088 fi
18089
18090fi
18091
18092 aix_libpath=$lt_cv_aix_libpath__CXX
18093fi
cristy73bd4a52010-10-05 11:24:23 +000018094
18095 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18096 # Warning - without using the other run time loading flags,
18097 # -berok will link without error, but may produce a broken library.
18098 no_undefined_flag_CXX=' ${wl}-bernotok'
18099 allow_undefined_flag_CXX=' ${wl}-berok'
cristy0c60a692010-11-04 01:09:47 +000018100 if test "$with_gnu_ld" = yes; then
18101 # We only use this code for GNU lds that support --whole-archive.
18102 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18103 else
18104 # Exported symbols can be pulled into shared objects from archives
18105 whole_archive_flag_spec_CXX='$convenience'
18106 fi
cristy73bd4a52010-10-05 11:24:23 +000018107 archive_cmds_need_lc_CXX=yes
18108 # This is similar to how AIX traditionally builds its shared
18109 # libraries.
18110 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'
18111 fi
18112 fi
18113 ;;
18114
18115 beos*)
18116 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18117 allow_undefined_flag_CXX=unsupported
18118 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18119 # support --undefined. This deserves some investigation. FIXME
18120 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18121 else
18122 ld_shlibs_CXX=no
18123 fi
18124 ;;
18125
18126 chorus*)
18127 case $cc_basename in
18128 *)
18129 # FIXME: insert proper C++ library support
18130 ld_shlibs_CXX=no
18131 ;;
18132 esac
18133 ;;
18134
18135 cygwin* | mingw* | pw32* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000018136 case $GXX,$cc_basename in
18137 ,cl* | no,cl*)
18138 # Native MSVC
18139 # hardcode_libdir_flag_spec is actually meaningless, as there is
18140 # no search path for DLLs.
18141 hardcode_libdir_flag_spec_CXX=' '
18142 allow_undefined_flag_CXX=unsupported
18143 always_export_symbols_CXX=yes
18144 file_list_spec_CXX='@'
18145 # Tell ltmain to make .lib files, not .a files.
18146 libext=lib
18147 # Tell ltmain to make .dll files, not .so files.
18148 shrext_cmds=".dll"
18149 # FIXME: Setting linknames here is a bad hack.
18150 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
18151 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18152 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
18153 else
18154 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
18155 fi~
18156 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
18157 linknames='
18158 # The linker will not automatically build a static lib if we build a DLL.
18159 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
18160 enable_shared_with_static_runtimes_CXX=yes
18161 # Don't use ranlib
18162 old_postinstall_cmds_CXX='chmod 644 $oldlib'
18163 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
18164 lt_tool_outputfile="@TOOL_OUTPUT@"~
18165 case $lt_outputfile in
18166 *.exe|*.EXE) ;;
18167 *)
18168 lt_outputfile="$lt_outputfile.exe"
18169 lt_tool_outputfile="$lt_tool_outputfile.exe"
18170 ;;
18171 esac~
18172 func_to_tool_file "$lt_outputfile"~
18173 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
18174 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
18175 $RM "$lt_outputfile.manifest";
18176 fi'
18177 ;;
18178 *)
18179 # g++
18180 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18181 # as there is no search path for DLLs.
18182 hardcode_libdir_flag_spec_CXX='-L$libdir'
18183 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
18184 allow_undefined_flag_CXX=unsupported
18185 always_export_symbols_CXX=no
18186 enable_shared_with_static_runtimes_CXX=yes
cristy73bd4a52010-10-05 11:24:23 +000018187
cristyda16f162011-02-19 23:52:17 +000018188 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18189 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'
18190 # If the export-symbols file already is a .def file (1st line
18191 # is EXPORTS), use it as is; otherwise, prepend...
18192 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18193 cp $export_symbols $output_objdir/$soname.def;
18194 else
18195 echo EXPORTS > $output_objdir/$soname.def;
18196 cat $export_symbols >> $output_objdir/$soname.def;
18197 fi~
18198 $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'
18199 else
18200 ld_shlibs_CXX=no
18201 fi
18202 ;;
18203 esac
18204 ;;
cristy73bd4a52010-10-05 11:24:23 +000018205 darwin* | rhapsody*)
18206
18207
18208 archive_cmds_need_lc_CXX=no
18209 hardcode_direct_CXX=no
18210 hardcode_automatic_CXX=yes
18211 hardcode_shlibpath_var_CXX=unsupported
cristy0c60a692010-11-04 01:09:47 +000018212 if test "$lt_cv_ld_force_load" = "yes"; then
18213 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 +000018214
cristy0c60a692010-11-04 01:09:47 +000018215 else
18216 whole_archive_flag_spec_CXX=''
18217 fi
cristy73bd4a52010-10-05 11:24:23 +000018218 link_all_deplibs_CXX=yes
18219 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18220 case $cc_basename in
18221 ifort*) _lt_dar_can_shared=yes ;;
18222 *) _lt_dar_can_shared=$GCC ;;
18223 esac
18224 if test "$_lt_dar_can_shared" = "yes"; then
cristy0c60a692010-11-04 01:09:47 +000018225 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018226 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}"
18227 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18228 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}"
18229 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}"
18230 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18231 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}"
18232 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}"
18233 fi
18234
18235 else
18236 ld_shlibs_CXX=no
18237 fi
18238
18239 ;;
18240
18241 dgux*)
18242 case $cc_basename in
18243 ec++*)
18244 # FIXME: insert proper C++ library support
18245 ld_shlibs_CXX=no
18246 ;;
18247 ghcx*)
18248 # Green Hills C++ Compiler
18249 # FIXME: insert proper C++ library support
18250 ld_shlibs_CXX=no
18251 ;;
18252 *)
18253 # FIXME: insert proper C++ library support
18254 ld_shlibs_CXX=no
18255 ;;
18256 esac
18257 ;;
18258
cristy99bd5232011-12-07 14:38:20 +000018259 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000018260 # C++ shared libraries reported to be fairly broken before
18261 # switch to ELF
18262 ld_shlibs_CXX=no
18263 ;;
18264
18265 freebsd-elf*)
18266 archive_cmds_need_lc_CXX=no
18267 ;;
18268
18269 freebsd* | dragonfly*)
18270 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18271 # conventions
18272 ld_shlibs_CXX=yes
18273 ;;
18274
18275 gnu*)
18276 ;;
18277
cristy0c60a692010-11-04 01:09:47 +000018278 haiku*)
18279 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18280 link_all_deplibs_CXX=yes
18281 ;;
18282
cristy73bd4a52010-10-05 11:24:23 +000018283 hpux9*)
18284 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18285 hardcode_libdir_separator_CXX=:
18286 export_dynamic_flag_spec_CXX='${wl}-E'
18287 hardcode_direct_CXX=yes
18288 hardcode_minus_L_CXX=yes # Not in the search PATH,
18289 # but as the default
18290 # location of the library.
18291
18292 case $cc_basename in
18293 CC*)
18294 # FIXME: insert proper C++ library support
18295 ld_shlibs_CXX=no
18296 ;;
18297 aCC*)
18298 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'
18299 # Commands to make compiler produce verbose output that lists
18300 # what "hidden" libraries, object files and flags are used when
18301 # linking a shared library.
18302 #
18303 # There doesn't appear to be a way to prevent this compiler from
18304 # explicitly linking system object files so we need to strip them
18305 # from the output so that they don't get included in the library
18306 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018307 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 +000018308 ;;
18309 *)
18310 if test "$GXX" = yes; then
cristyda16f162011-02-19 23:52:17 +000018311 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 +000018312 else
18313 # FIXME: insert proper C++ library support
18314 ld_shlibs_CXX=no
18315 fi
18316 ;;
18317 esac
18318 ;;
18319
18320 hpux10*|hpux11*)
18321 if test $with_gnu_ld = no; then
18322 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18323 hardcode_libdir_separator_CXX=:
18324
18325 case $host_cpu in
18326 hppa*64*|ia64*)
18327 ;;
18328 *)
18329 export_dynamic_flag_spec_CXX='${wl}-E'
18330 ;;
18331 esac
18332 fi
18333 case $host_cpu in
18334 hppa*64*|ia64*)
18335 hardcode_direct_CXX=no
18336 hardcode_shlibpath_var_CXX=no
18337 ;;
18338 *)
18339 hardcode_direct_CXX=yes
18340 hardcode_direct_absolute_CXX=yes
18341 hardcode_minus_L_CXX=yes # Not in the search PATH,
18342 # but as the default
18343 # location of the library.
18344 ;;
18345 esac
18346
18347 case $cc_basename in
18348 CC*)
18349 # FIXME: insert proper C++ library support
18350 ld_shlibs_CXX=no
18351 ;;
18352 aCC*)
18353 case $host_cpu in
18354 hppa*64*)
18355 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18356 ;;
18357 ia64*)
18358 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18359 ;;
18360 *)
18361 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18362 ;;
18363 esac
18364 # Commands to make compiler produce verbose output that lists
18365 # what "hidden" libraries, object files and flags are used when
18366 # linking a shared library.
18367 #
18368 # There doesn't appear to be a way to prevent this compiler from
18369 # explicitly linking system object files so we need to strip them
18370 # from the output so that they don't get included in the library
18371 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018372 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 +000018373 ;;
18374 *)
18375 if test "$GXX" = yes; then
18376 if test $with_gnu_ld = no; then
18377 case $host_cpu in
18378 hppa*64*)
18379 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18380 ;;
18381 ia64*)
cristyda16f162011-02-19 23:52:17 +000018382 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 +000018383 ;;
18384 *)
cristyda16f162011-02-19 23:52:17 +000018385 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 +000018386 ;;
18387 esac
18388 fi
18389 else
18390 # FIXME: insert proper C++ library support
18391 ld_shlibs_CXX=no
18392 fi
18393 ;;
18394 esac
18395 ;;
18396
18397 interix[3-9]*)
18398 hardcode_direct_CXX=no
18399 hardcode_shlibpath_var_CXX=no
18400 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18401 export_dynamic_flag_spec_CXX='${wl}-E'
18402 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18403 # Instead, shared libraries are loaded at an image base (0x10000000 by
18404 # default) and relocated if they conflict, which is a slow very memory
18405 # consuming and fragmenting process. To avoid this, we pick a random,
18406 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18407 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18408 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'
18409 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'
18410 ;;
18411 irix5* | irix6*)
18412 case $cc_basename in
18413 CC*)
18414 # SGI C++
cristy0c60a692010-11-04 01:09:47 +000018415 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 +000018416
18417 # Archives containing C++ object files must be created using
18418 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
18419 # necessary to make sure instantiated templates are included
18420 # in the archive.
18421 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
18422 ;;
18423 *)
18424 if test "$GXX" = yes; then
18425 if test "$with_gnu_ld" = no; then
cristyda16f162011-02-19 23:52:17 +000018426 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 +000018427 else
cristyda16f162011-02-19 23:52:17 +000018428 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 +000018429 fi
18430 fi
18431 link_all_deplibs_CXX=yes
18432 ;;
18433 esac
18434 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18435 hardcode_libdir_separator_CXX=:
18436 inherit_rpath_CXX=yes
18437 ;;
18438
cristy0c60a692010-11-04 01:09:47 +000018439 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000018440 case $cc_basename in
18441 KCC*)
18442 # Kuck and Associates, Inc. (KAI) C++ Compiler
18443
18444 # KCC will only create a shared library if the output file
18445 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18446 # to its proper name (with version) after linking.
18447 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'
18448 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'
18449 # Commands to make compiler produce verbose output that lists
18450 # what "hidden" libraries, object files and flags are used when
18451 # linking a shared library.
18452 #
18453 # There doesn't appear to be a way to prevent this compiler from
18454 # explicitly linking system object files so we need to strip them
18455 # from the output so that they don't get included in the library
18456 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018457 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 +000018458
18459 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18460 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18461
18462 # Archives containing C++ object files must be created using
18463 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
18464 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
18465 ;;
18466 icpc* | ecpc* )
18467 # Intel C++
18468 with_gnu_ld=yes
18469 # version 8.0 and above of icpc choke on multiply defined symbols
18470 # if we add $predep_objects and $postdep_objects, however 7.1 and
18471 # earlier do not add the objects themselves.
18472 case `$CC -V 2>&1` in
18473 *"Version 7."*)
18474 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18475 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'
18476 ;;
18477 *) # Version 8.0 or newer
18478 tmp_idyn=
18479 case $host_cpu in
18480 ia64*) tmp_idyn=' -i_dynamic';;
18481 esac
18482 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18483 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'
18484 ;;
18485 esac
18486 archive_cmds_need_lc_CXX=no
18487 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18488 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18489 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
18490 ;;
18491 pgCC* | pgcpp*)
18492 # Portland Group C++ compiler
18493 case `$CC -V` in
cristy0c60a692010-11-04 01:09:47 +000018494 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
cristy73bd4a52010-10-05 11:24:23 +000018495 prelink_cmds_CXX='tpldir=Template.dir~
18496 rm -rf $tpldir~
18497 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018498 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
cristy73bd4a52010-10-05 11:24:23 +000018499 old_archive_cmds_CXX='tpldir=Template.dir~
18500 rm -rf $tpldir~
18501 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
cristy0c60a692010-11-04 01:09:47 +000018502 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
cristy73bd4a52010-10-05 11:24:23 +000018503 $RANLIB $oldlib'
18504 archive_cmds_CXX='tpldir=Template.dir~
18505 rm -rf $tpldir~
18506 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018507 $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 +000018508 archive_expsym_cmds_CXX='tpldir=Template.dir~
18509 rm -rf $tpldir~
18510 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
cristy0c60a692010-11-04 01:09:47 +000018511 $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 +000018512 ;;
cristy0c60a692010-11-04 01:09:47 +000018513 *) # Version 6 and above use weak symbols
cristy73bd4a52010-10-05 11:24:23 +000018514 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
18515 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'
18516 ;;
18517 esac
18518
18519 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
18520 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
cristy0c60a692010-11-04 01:09:47 +000018521 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 +000018522 ;;
18523 cxx*)
18524 # Compaq C++
18525 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18526 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'
18527
18528 runpath_var=LD_RUN_PATH
18529 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18530 hardcode_libdir_separator_CXX=:
18531
18532 # Commands to make compiler produce verbose output that lists
18533 # what "hidden" libraries, object files and flags are used when
18534 # linking a shared library.
18535 #
18536 # There doesn't appear to be a way to prevent this compiler from
18537 # explicitly linking system object files so we need to strip them
18538 # from the output so that they don't get included in the library
18539 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018540 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 +000018541 ;;
cristy0c60a692010-11-04 01:09:47 +000018542 xl* | mpixl* | bgxl*)
cristy73bd4a52010-10-05 11:24:23 +000018543 # IBM XL 8.0 on PPC, with GNU ld
18544 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18545 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18546 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18547 if test "x$supports_anon_versioning" = xyes; then
18548 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
18549 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18550 echo "local: *; };" >> $output_objdir/$libname.ver~
18551 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18552 fi
18553 ;;
18554 *)
18555 case `$CC -V 2>&1 | sed 5q` in
18556 *Sun\ C*)
18557 # Sun C++ 5.9
18558 no_undefined_flag_CXX=' -zdefs'
18559 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18560 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'
18561 hardcode_libdir_flag_spec_CXX='-R$libdir'
cristy0c60a692010-11-04 01:09:47 +000018562 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 +000018563 compiler_needs_object_CXX=yes
18564
18565 # Not sure whether something based on
18566 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
18567 # would be better.
cristy0c60a692010-11-04 01:09:47 +000018568 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018569
18570 # Archives containing C++ object files must be created using
18571 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18572 # necessary to make sure instantiated templates are included
18573 # in the archive.
18574 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18575 ;;
18576 esac
18577 ;;
18578 esac
18579 ;;
18580
18581 lynxos*)
18582 # FIXME: insert proper C++ library support
18583 ld_shlibs_CXX=no
18584 ;;
18585
18586 m88k*)
18587 # FIXME: insert proper C++ library support
18588 ld_shlibs_CXX=no
18589 ;;
18590
18591 mvs*)
18592 case $cc_basename in
18593 cxx*)
18594 # FIXME: insert proper C++ library support
18595 ld_shlibs_CXX=no
18596 ;;
18597 *)
18598 # FIXME: insert proper C++ library support
18599 ld_shlibs_CXX=no
18600 ;;
18601 esac
18602 ;;
18603
18604 netbsd*)
18605 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18606 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
18607 wlarc=
18608 hardcode_libdir_flag_spec_CXX='-R$libdir'
18609 hardcode_direct_CXX=yes
18610 hardcode_shlibpath_var_CXX=no
18611 fi
18612 # Workaround some broken pre-1.5 toolchains
18613 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
18614 ;;
18615
18616 *nto* | *qnx*)
18617 ld_shlibs_CXX=yes
18618 ;;
18619
18620 openbsd2*)
18621 # C++ shared libraries are fairly broken
18622 ld_shlibs_CXX=no
18623 ;;
18624
18625 openbsd*)
18626 if test -f /usr/libexec/ld.so; then
18627 hardcode_direct_CXX=yes
18628 hardcode_shlibpath_var_CXX=no
18629 hardcode_direct_absolute_CXX=yes
18630 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18631 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18632 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18633 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
18634 export_dynamic_flag_spec_CXX='${wl}-E'
18635 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18636 fi
cristy0c60a692010-11-04 01:09:47 +000018637 output_verbose_link_cmd=func_echo_all
cristy73bd4a52010-10-05 11:24:23 +000018638 else
18639 ld_shlibs_CXX=no
18640 fi
18641 ;;
18642
18643 osf3* | osf4* | osf5*)
18644 case $cc_basename in
18645 KCC*)
18646 # Kuck and Associates, Inc. (KAI) C++ Compiler
18647
18648 # KCC will only create a shared library if the output file
18649 # ends with ".so" (or ".sl" for HP-UX), so rename the library
18650 # to its proper name (with version) after linking.
18651 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'
18652
18653 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
18654 hardcode_libdir_separator_CXX=:
18655
18656 # Archives containing C++ object files must be created using
18657 # the KAI C++ compiler.
18658 case $host in
18659 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
18660 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
18661 esac
18662 ;;
18663 RCC*)
18664 # Rational C++ 2.4.1
18665 # FIXME: insert proper C++ library support
18666 ld_shlibs_CXX=no
18667 ;;
18668 cxx*)
18669 case $host in
18670 osf3*)
18671 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
cristy0c60a692010-11-04 01:09:47 +000018672 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 +000018673 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18674 ;;
18675 *)
18676 allow_undefined_flag_CXX=' -expect_unresolved \*'
cristy0c60a692010-11-04 01:09:47 +000018677 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 +000018678 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
18679 echo "-hidden">> $lib.exp~
cristy0c60a692010-11-04 01:09:47 +000018680 $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 +000018681 $RM $lib.exp'
18682 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
18683 ;;
18684 esac
18685
18686 hardcode_libdir_separator_CXX=:
18687
18688 # Commands to make compiler produce verbose output that lists
18689 # what "hidden" libraries, object files and flags are used when
18690 # linking a shared library.
18691 #
18692 # There doesn't appear to be a way to prevent this compiler from
18693 # explicitly linking system object files so we need to strip them
18694 # from the output so that they don't get included in the library
18695 # dependencies.
cristy0c60a692010-11-04 01:09:47 +000018696 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 +000018697 ;;
18698 *)
18699 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18700 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
18701 case $host in
18702 osf3*)
cristy0c60a692010-11-04 01:09:47 +000018703 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 +000018704 ;;
18705 *)
cristyda16f162011-02-19 23:52:17 +000018706 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 +000018707 ;;
18708 esac
18709
18710 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18711 hardcode_libdir_separator_CXX=:
18712
18713 # Commands to make compiler produce verbose output that lists
18714 # what "hidden" libraries, object files and flags are used when
18715 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018716 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018717
18718 else
18719 # FIXME: insert proper C++ library support
18720 ld_shlibs_CXX=no
18721 fi
18722 ;;
18723 esac
18724 ;;
18725
18726 psos*)
18727 # FIXME: insert proper C++ library support
18728 ld_shlibs_CXX=no
18729 ;;
18730
18731 sunos4*)
18732 case $cc_basename in
18733 CC*)
18734 # Sun C++ 4.x
18735 # FIXME: insert proper C++ library support
18736 ld_shlibs_CXX=no
18737 ;;
18738 lcc*)
18739 # Lucid
18740 # FIXME: insert proper C++ library support
18741 ld_shlibs_CXX=no
18742 ;;
18743 *)
18744 # FIXME: insert proper C++ library support
18745 ld_shlibs_CXX=no
18746 ;;
18747 esac
18748 ;;
18749
18750 solaris*)
18751 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000018752 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000018753 # Sun C++ 4.2, 5.x and Centerline C++
18754 archive_cmds_need_lc_CXX=yes
18755 no_undefined_flag_CXX=' -zdefs'
18756 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
18757 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18758 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18759
18760 hardcode_libdir_flag_spec_CXX='-R$libdir'
18761 hardcode_shlibpath_var_CXX=no
18762 case $host_os in
18763 solaris2.[0-5] | solaris2.[0-5].*) ;;
18764 *)
18765 # The compiler driver will combine and reorder linker options,
18766 # but understands `-z linker_flag'.
18767 # Supported since Solaris 2.6 (maybe 2.5.1?)
18768 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
18769 ;;
18770 esac
18771 link_all_deplibs_CXX=yes
18772
cristy0c60a692010-11-04 01:09:47 +000018773 output_verbose_link_cmd='func_echo_all'
cristy73bd4a52010-10-05 11:24:23 +000018774
18775 # Archives containing C++ object files must be created using
18776 # "CC -xar", where "CC" is the Sun C++ compiler. This is
18777 # necessary to make sure instantiated templates are included
18778 # in the archive.
18779 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
18780 ;;
18781 gcx*)
18782 # Green Hills C++ Compiler
18783 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18784
18785 # The C++ compiler must be used to create the archive.
18786 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
18787 ;;
18788 *)
18789 # GNU C++ compiler with Solaris linker
18790 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
18791 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
18792 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
cristyda16f162011-02-19 23:52:17 +000018793 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 +000018794 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 +000018795 $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 +000018796
18797 # Commands to make compiler produce verbose output that lists
18798 # what "hidden" libraries, object files and flags are used when
18799 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018800 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018801 else
18802 # g++ 2.7 appears to require `-G' NOT `-shared' on this
18803 # platform.
18804 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
18805 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
18806 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
18807
18808 # Commands to make compiler produce verbose output that lists
18809 # what "hidden" libraries, object files and flags are used when
18810 # linking a shared library.
cristy0c60a692010-11-04 01:09:47 +000018811 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
cristy73bd4a52010-10-05 11:24:23 +000018812 fi
18813
18814 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
18815 case $host_os in
18816 solaris2.[0-5] | solaris2.[0-5].*) ;;
18817 *)
18818 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
18819 ;;
18820 esac
18821 fi
18822 ;;
18823 esac
18824 ;;
18825
18826 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
18827 no_undefined_flag_CXX='${wl}-z,text'
18828 archive_cmds_need_lc_CXX=no
18829 hardcode_shlibpath_var_CXX=no
18830 runpath_var='LD_RUN_PATH'
18831
18832 case $cc_basename in
18833 CC*)
18834 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18835 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18836 ;;
18837 *)
18838 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18839 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18840 ;;
18841 esac
18842 ;;
18843
18844 sysv5* | sco3.2v5* | sco5v6*)
18845 # Note: We can NOT use -z defs as we might desire, because we do not
18846 # link with -lc, and that would cause any symbols used from libc to
18847 # always be unresolved, which means just about no library would
18848 # ever link correctly. If we're not using GNU ld we use -z text
18849 # though, which does catch some bad symbols but isn't as heavy-handed
18850 # as -z defs.
18851 no_undefined_flag_CXX='${wl}-z,text'
18852 allow_undefined_flag_CXX='${wl}-z,nodefs'
18853 archive_cmds_need_lc_CXX=no
18854 hardcode_shlibpath_var_CXX=no
18855 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
18856 hardcode_libdir_separator_CXX=':'
18857 link_all_deplibs_CXX=yes
18858 export_dynamic_flag_spec_CXX='${wl}-Bexport'
18859 runpath_var='LD_RUN_PATH'
18860
18861 case $cc_basename in
18862 CC*)
18863 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18864 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 +000018865 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
18866 '"$old_archive_cmds_CXX"
18867 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
18868 '"$reload_cmds_CXX"
cristy73bd4a52010-10-05 11:24:23 +000018869 ;;
18870 *)
18871 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18872 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
18873 ;;
18874 esac
18875 ;;
18876
18877 tandem*)
18878 case $cc_basename in
18879 NCC*)
18880 # NonStop-UX NCC 3.20
18881 # FIXME: insert proper C++ library support
18882 ld_shlibs_CXX=no
18883 ;;
18884 *)
18885 # FIXME: insert proper C++ library support
18886 ld_shlibs_CXX=no
18887 ;;
18888 esac
18889 ;;
18890
18891 vxworks*)
18892 # FIXME: insert proper C++ library support
18893 ld_shlibs_CXX=no
18894 ;;
18895
18896 *)
18897 # FIXME: insert proper C++ library support
18898 ld_shlibs_CXX=no
18899 ;;
18900 esac
18901
18902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
18903$as_echo "$ld_shlibs_CXX" >&6; }
18904 test "$ld_shlibs_CXX" = no && can_build_shared=no
18905
18906 GCC_CXX="$GXX"
18907 LD_CXX="$LD"
18908
18909 ## CAVEAT EMPTOR:
18910 ## There is no encapsulation within the following macros, do not change
18911 ## the running order or otherwise move them around unless you know exactly
18912 ## what you are doing...
18913 # Dependencies to place before and after the object being linked:
18914predep_objects_CXX=
18915postdep_objects_CXX=
18916predeps_CXX=
18917postdeps_CXX=
18918compiler_lib_search_path_CXX=
18919
18920cat > conftest.$ac_ext <<_LT_EOF
18921class Foo
18922{
18923public:
18924 Foo (void) { a = 0; }
18925private:
18926 int a;
18927};
18928_LT_EOF
18929
cristyda16f162011-02-19 23:52:17 +000018930
18931_lt_libdeps_save_CFLAGS=$CFLAGS
18932case "$CC $CFLAGS " in #(
18933*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
18934*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
cristy99bd5232011-12-07 14:38:20 +000018935*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
cristyda16f162011-02-19 23:52:17 +000018936esac
18937
cristy73bd4a52010-10-05 11:24:23 +000018938if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
18939 (eval $ac_compile) 2>&5
18940 ac_status=$?
18941 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18942 test $ac_status = 0; }; then
18943 # Parse the compiler output and extract the necessary
18944 # objects, libraries and library flags.
18945
18946 # Sentinel used to keep track of whether or not we are before
18947 # the conftest object file.
18948 pre_test_object_deps_done=no
18949
18950 for p in `eval "$output_verbose_link_cmd"`; do
cristyda16f162011-02-19 23:52:17 +000018951 case ${prev}${p} in
cristy73bd4a52010-10-05 11:24:23 +000018952
18953 -L* | -R* | -l*)
18954 # Some compilers place space between "-{L,R}" and the path.
18955 # Remove the space.
18956 if test $p = "-L" ||
18957 test $p = "-R"; then
18958 prev=$p
18959 continue
cristy73bd4a52010-10-05 11:24:23 +000018960 fi
18961
cristyda16f162011-02-19 23:52:17 +000018962 # Expand the sysroot to ease extracting the directories later.
18963 if test -z "$prev"; then
18964 case $p in
18965 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
18966 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
18967 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
18968 esac
18969 fi
18970 case $p in
18971 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
18972 esac
cristy73bd4a52010-10-05 11:24:23 +000018973 if test "$pre_test_object_deps_done" = no; then
cristyda16f162011-02-19 23:52:17 +000018974 case ${prev} in
18975 -L | -R)
cristy73bd4a52010-10-05 11:24:23 +000018976 # Internal compiler library paths should come after those
18977 # provided the user. The postdeps already come after the
18978 # user supplied libs so there is no need to process them.
18979 if test -z "$compiler_lib_search_path_CXX"; then
18980 compiler_lib_search_path_CXX="${prev}${p}"
18981 else
18982 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
18983 fi
18984 ;;
18985 # The "-l" case would never come before the object being
18986 # linked, so don't bother handling this case.
18987 esac
18988 else
18989 if test -z "$postdeps_CXX"; then
18990 postdeps_CXX="${prev}${p}"
18991 else
18992 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
18993 fi
18994 fi
cristyda16f162011-02-19 23:52:17 +000018995 prev=
cristy73bd4a52010-10-05 11:24:23 +000018996 ;;
18997
cristyda16f162011-02-19 23:52:17 +000018998 *.lto.$objext) ;; # Ignore GCC LTO objects
cristy73bd4a52010-10-05 11:24:23 +000018999 *.$objext)
19000 # This assumes that the test object file only shows up
19001 # once in the compiler output.
19002 if test "$p" = "conftest.$objext"; then
19003 pre_test_object_deps_done=yes
19004 continue
19005 fi
19006
19007 if test "$pre_test_object_deps_done" = no; then
19008 if test -z "$predep_objects_CXX"; then
19009 predep_objects_CXX="$p"
19010 else
19011 predep_objects_CXX="$predep_objects_CXX $p"
19012 fi
19013 else
19014 if test -z "$postdep_objects_CXX"; then
19015 postdep_objects_CXX="$p"
19016 else
19017 postdep_objects_CXX="$postdep_objects_CXX $p"
19018 fi
19019 fi
19020 ;;
19021
19022 *) ;; # Ignore the rest.
19023
19024 esac
19025 done
19026
19027 # Clean up.
19028 rm -f a.out a.exe
19029else
19030 echo "libtool.m4: error: problem compiling CXX test program"
19031fi
19032
19033$RM -f confest.$objext
cristyda16f162011-02-19 23:52:17 +000019034CFLAGS=$_lt_libdeps_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000019035
19036# PORTME: override above test on systems where it is broken
19037case $host_os in
19038interix[3-9]*)
19039 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19040 # hack all around it, let's just trust "g++" to DTRT.
19041 predep_objects_CXX=
19042 postdep_objects_CXX=
19043 postdeps_CXX=
19044 ;;
19045
19046linux*)
19047 case `$CC -V 2>&1 | sed 5q` in
19048 *Sun\ C*)
19049 # Sun C++ 5.9
19050
19051 # The more standards-conforming stlport4 library is
19052 # incompatible with the Cstd library. Avoid specifying
19053 # it if it's in CXXFLAGS. Ignore libCrun as
19054 # -library=stlport4 depends on it.
19055 case " $CXX $CXXFLAGS " in
19056 *" -library=stlport4 "*)
19057 solaris_use_stlport4=yes
19058 ;;
19059 esac
19060
19061 if test "$solaris_use_stlport4" != yes; then
19062 postdeps_CXX='-library=Cstd -library=Crun'
19063 fi
19064 ;;
19065 esac
19066 ;;
19067
19068solaris*)
19069 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019070 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019071 # The more standards-conforming stlport4 library is
19072 # incompatible with the Cstd library. Avoid specifying
19073 # it if it's in CXXFLAGS. Ignore libCrun as
19074 # -library=stlport4 depends on it.
19075 case " $CXX $CXXFLAGS " in
19076 *" -library=stlport4 "*)
19077 solaris_use_stlport4=yes
19078 ;;
19079 esac
19080
19081 # Adding this requires a known-good setup of shared libraries for
19082 # Sun compiler versions before 5.6, else PIC objects from an old
19083 # archive will be linked into the output, leading to subtle bugs.
19084 if test "$solaris_use_stlport4" != yes; then
19085 postdeps_CXX='-library=Cstd -library=Crun'
19086 fi
19087 ;;
19088 esac
19089 ;;
19090esac
19091
19092
19093case " $postdeps_CXX " in
19094*" -lc "*) archive_cmds_need_lc_CXX=no ;;
19095esac
19096 compiler_lib_search_dirs_CXX=
19097if test -n "${compiler_lib_search_path_CXX}"; then
19098 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19099fi
19100
19101
19102
19103
19104
19105
19106
19107
19108
19109
19110
19111
19112
19113
19114
19115
19116
19117
19118
19119
19120
19121
19122
19123
19124
19125
19126
19127
19128
19129
19130
19131 lt_prog_compiler_wl_CXX=
19132lt_prog_compiler_pic_CXX=
19133lt_prog_compiler_static_CXX=
19134
cristy73bd4a52010-10-05 11:24:23 +000019135
19136 # C++ specific cases for pic, static, wl, etc.
19137 if test "$GXX" = yes; then
19138 lt_prog_compiler_wl_CXX='-Wl,'
19139 lt_prog_compiler_static_CXX='-static'
19140
19141 case $host_os in
19142 aix*)
19143 # All AIX code is PIC.
19144 if test "$host_cpu" = ia64; then
19145 # AIX 5 now supports IA64 processor
19146 lt_prog_compiler_static_CXX='-Bstatic'
19147 fi
19148 ;;
19149
19150 amigaos*)
19151 case $host_cpu in
19152 powerpc)
19153 # see comment about AmigaOS4 .so support
19154 lt_prog_compiler_pic_CXX='-fPIC'
19155 ;;
19156 m68k)
19157 # FIXME: we need at least 68020 code to build shared libraries, but
19158 # adding the `-m68020' flag to GCC prevents building anything better,
19159 # like `-m68040'.
19160 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19161 ;;
19162 esac
19163 ;;
19164
19165 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19166 # PIC is the default for these OSes.
19167 ;;
19168 mingw* | cygwin* | os2* | pw32* | cegcc*)
19169 # This hack is so that the source file can tell whether it is being
19170 # built for inclusion in a dll (and should export symbols for example).
19171 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19172 # (--disable-auto-import) libraries
19173 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19174 ;;
19175 darwin* | rhapsody*)
19176 # PIC is the default on this platform
19177 # Common symbols not allowed in MH_DYLIB files
19178 lt_prog_compiler_pic_CXX='-fno-common'
19179 ;;
19180 *djgpp*)
19181 # DJGPP does not support shared libraries at all
19182 lt_prog_compiler_pic_CXX=
19183 ;;
cristy0c60a692010-11-04 01:09:47 +000019184 haiku*)
19185 # PIC is the default for Haiku.
19186 # The "-static" flag exists, but is broken.
19187 lt_prog_compiler_static_CXX=
19188 ;;
cristy73bd4a52010-10-05 11:24:23 +000019189 interix[3-9]*)
19190 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19191 # Instead, we relocate shared libraries at runtime.
19192 ;;
19193 sysv4*MP*)
19194 if test -d /usr/nec; then
19195 lt_prog_compiler_pic_CXX=-Kconform_pic
19196 fi
19197 ;;
19198 hpux*)
19199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19201 # sets the default TLS model and affects inlining.
19202 case $host_cpu in
19203 hppa*64*)
19204 ;;
19205 *)
19206 lt_prog_compiler_pic_CXX='-fPIC'
19207 ;;
19208 esac
19209 ;;
19210 *qnx* | *nto*)
19211 # QNX uses GNU C++, but need to define -shared option too, otherwise
19212 # it will coredump.
19213 lt_prog_compiler_pic_CXX='-fPIC -shared'
19214 ;;
19215 *)
19216 lt_prog_compiler_pic_CXX='-fPIC'
19217 ;;
19218 esac
19219 else
19220 case $host_os in
19221 aix[4-9]*)
19222 # All AIX code is PIC.
19223 if test "$host_cpu" = ia64; then
19224 # AIX 5 now supports IA64 processor
19225 lt_prog_compiler_static_CXX='-Bstatic'
19226 else
19227 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19228 fi
19229 ;;
19230 chorus*)
19231 case $cc_basename in
19232 cxch68*)
19233 # Green Hills C++ Compiler
19234 # _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"
19235 ;;
19236 esac
19237 ;;
cristyda16f162011-02-19 23:52:17 +000019238 mingw* | cygwin* | os2* | pw32* | cegcc*)
19239 # This hack is so that the source file can tell whether it is being
19240 # built for inclusion in a dll (and should export symbols for example).
19241 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19242 ;;
cristy73bd4a52010-10-05 11:24:23 +000019243 dgux*)
19244 case $cc_basename in
19245 ec++*)
19246 lt_prog_compiler_pic_CXX='-KPIC'
19247 ;;
19248 ghcx*)
19249 # Green Hills C++ Compiler
19250 lt_prog_compiler_pic_CXX='-pic'
19251 ;;
19252 *)
19253 ;;
19254 esac
19255 ;;
19256 freebsd* | dragonfly*)
19257 # FreeBSD uses GNU C++
19258 ;;
19259 hpux9* | hpux10* | hpux11*)
19260 case $cc_basename in
19261 CC*)
19262 lt_prog_compiler_wl_CXX='-Wl,'
19263 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19264 if test "$host_cpu" != ia64; then
19265 lt_prog_compiler_pic_CXX='+Z'
19266 fi
19267 ;;
19268 aCC*)
19269 lt_prog_compiler_wl_CXX='-Wl,'
19270 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19271 case $host_cpu in
19272 hppa*64*|ia64*)
19273 # +Z the default
19274 ;;
19275 *)
19276 lt_prog_compiler_pic_CXX='+Z'
19277 ;;
19278 esac
19279 ;;
19280 *)
19281 ;;
19282 esac
19283 ;;
19284 interix*)
19285 # This is c89, which is MS Visual C++ (no shared libs)
19286 # Anyone wants to do a port?
19287 ;;
19288 irix5* | irix6* | nonstopux*)
19289 case $cc_basename in
19290 CC*)
19291 lt_prog_compiler_wl_CXX='-Wl,'
19292 lt_prog_compiler_static_CXX='-non_shared'
19293 # CC pic flag -KPIC is the default.
19294 ;;
19295 *)
19296 ;;
19297 esac
19298 ;;
cristy0c60a692010-11-04 01:09:47 +000019299 linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy73bd4a52010-10-05 11:24:23 +000019300 case $cc_basename in
19301 KCC*)
19302 # KAI C++ Compiler
19303 lt_prog_compiler_wl_CXX='--backend -Wl,'
19304 lt_prog_compiler_pic_CXX='-fPIC'
19305 ;;
19306 ecpc* )
19307 # old Intel C++ for x86_64 which still supported -KPIC.
19308 lt_prog_compiler_wl_CXX='-Wl,'
19309 lt_prog_compiler_pic_CXX='-KPIC'
19310 lt_prog_compiler_static_CXX='-static'
19311 ;;
19312 icpc* )
19313 # Intel C++, used to be incompatible with GCC.
19314 # ICC 10 doesn't accept -KPIC any more.
19315 lt_prog_compiler_wl_CXX='-Wl,'
19316 lt_prog_compiler_pic_CXX='-fPIC'
19317 lt_prog_compiler_static_CXX='-static'
19318 ;;
19319 pgCC* | pgcpp*)
19320 # Portland Group C++ compiler
19321 lt_prog_compiler_wl_CXX='-Wl,'
19322 lt_prog_compiler_pic_CXX='-fpic'
19323 lt_prog_compiler_static_CXX='-Bstatic'
19324 ;;
19325 cxx*)
19326 # Compaq C++
19327 # Make sure the PIC flag is empty. It appears that all Alpha
19328 # Linux and Compaq Tru64 Unix objects are PIC.
19329 lt_prog_compiler_pic_CXX=
19330 lt_prog_compiler_static_CXX='-non_shared'
19331 ;;
cristy0c60a692010-11-04 01:09:47 +000019332 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
19333 # IBM XL 8.0, 9.0 on PPC and BlueGene
cristy73bd4a52010-10-05 11:24:23 +000019334 lt_prog_compiler_wl_CXX='-Wl,'
19335 lt_prog_compiler_pic_CXX='-qpic'
19336 lt_prog_compiler_static_CXX='-qstaticlink'
19337 ;;
19338 *)
19339 case `$CC -V 2>&1 | sed 5q` in
19340 *Sun\ C*)
19341 # Sun C++ 5.9
19342 lt_prog_compiler_pic_CXX='-KPIC'
19343 lt_prog_compiler_static_CXX='-Bstatic'
19344 lt_prog_compiler_wl_CXX='-Qoption ld '
19345 ;;
19346 esac
19347 ;;
19348 esac
19349 ;;
19350 lynxos*)
19351 ;;
19352 m88k*)
19353 ;;
19354 mvs*)
19355 case $cc_basename in
19356 cxx*)
19357 lt_prog_compiler_pic_CXX='-W c,exportall'
19358 ;;
19359 *)
19360 ;;
19361 esac
19362 ;;
19363 netbsd*)
19364 ;;
19365 *qnx* | *nto*)
19366 # QNX uses GNU C++, but need to define -shared option too, otherwise
19367 # it will coredump.
19368 lt_prog_compiler_pic_CXX='-fPIC -shared'
19369 ;;
19370 osf3* | osf4* | osf5*)
19371 case $cc_basename in
19372 KCC*)
19373 lt_prog_compiler_wl_CXX='--backend -Wl,'
19374 ;;
19375 RCC*)
19376 # Rational C++ 2.4.1
19377 lt_prog_compiler_pic_CXX='-pic'
19378 ;;
19379 cxx*)
19380 # Digital/Compaq C++
19381 lt_prog_compiler_wl_CXX='-Wl,'
19382 # Make sure the PIC flag is empty. It appears that all Alpha
19383 # Linux and Compaq Tru64 Unix objects are PIC.
19384 lt_prog_compiler_pic_CXX=
19385 lt_prog_compiler_static_CXX='-non_shared'
19386 ;;
19387 *)
19388 ;;
19389 esac
19390 ;;
19391 psos*)
19392 ;;
19393 solaris*)
19394 case $cc_basename in
cristy0c60a692010-11-04 01:09:47 +000019395 CC* | sunCC*)
cristy73bd4a52010-10-05 11:24:23 +000019396 # Sun C++ 4.2, 5.x and Centerline C++
19397 lt_prog_compiler_pic_CXX='-KPIC'
19398 lt_prog_compiler_static_CXX='-Bstatic'
19399 lt_prog_compiler_wl_CXX='-Qoption ld '
19400 ;;
19401 gcx*)
19402 # Green Hills C++ Compiler
19403 lt_prog_compiler_pic_CXX='-PIC'
19404 ;;
19405 *)
19406 ;;
19407 esac
19408 ;;
19409 sunos4*)
19410 case $cc_basename in
19411 CC*)
19412 # Sun C++ 4.x
19413 lt_prog_compiler_pic_CXX='-pic'
19414 lt_prog_compiler_static_CXX='-Bstatic'
19415 ;;
19416 lcc*)
19417 # Lucid
19418 lt_prog_compiler_pic_CXX='-pic'
19419 ;;
19420 *)
19421 ;;
19422 esac
19423 ;;
19424 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
19425 case $cc_basename in
19426 CC*)
19427 lt_prog_compiler_wl_CXX='-Wl,'
19428 lt_prog_compiler_pic_CXX='-KPIC'
19429 lt_prog_compiler_static_CXX='-Bstatic'
19430 ;;
19431 esac
19432 ;;
19433 tandem*)
19434 case $cc_basename in
19435 NCC*)
19436 # NonStop-UX NCC 3.20
19437 lt_prog_compiler_pic_CXX='-KPIC'
19438 ;;
19439 *)
19440 ;;
19441 esac
19442 ;;
19443 vxworks*)
19444 ;;
19445 *)
19446 lt_prog_compiler_can_build_shared_CXX=no
19447 ;;
19448 esac
19449 fi
19450
19451case $host_os in
19452 # For platforms which do not support PIC, -DPIC is meaningless:
19453 *djgpp*)
19454 lt_prog_compiler_pic_CXX=
19455 ;;
19456 *)
19457 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
19458 ;;
19459esac
cristy73bd4a52010-10-05 11:24:23 +000019460
cristyda16f162011-02-19 23:52:17 +000019461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19462$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19463if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
19464 $as_echo_n "(cached) " >&6
19465else
19466 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
19467fi
19468{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
19469$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
19470lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
cristy73bd4a52010-10-05 11:24:23 +000019471
19472#
19473# Check to make sure the PIC flag actually works.
19474#
19475if test -n "$lt_prog_compiler_pic_CXX"; then
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
19477$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019478if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019479 $as_echo_n "(cached) " >&6
19480else
19481 lt_cv_prog_compiler_pic_works_CXX=no
19482 ac_outfile=conftest.$ac_objext
19483 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19484 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
19485 # Insert the option either (1) after the last *FLAGS variable, or
19486 # (2) before a word containing "conftest.", or (3) at the end.
19487 # Note that $ac_compile itself does not contain backslashes and begins
19488 # with a dollar sign (not a hyphen), so the echo should work correctly.
19489 # The option is referenced via a variable to avoid confusing sed.
19490 lt_compile=`echo "$ac_compile" | $SED \
19491 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19492 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19493 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019494 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019495 (eval "$lt_compile" 2>conftest.err)
19496 ac_status=$?
19497 cat conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019499 if (exit $ac_status) && test -s "$ac_outfile"; then
19500 # The compiler can only warn and ignore the option if not recognized
19501 # So say no if there are warnings other than the usual output.
cristy0c60a692010-11-04 01:09:47 +000019502 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019503 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19504 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
19505 lt_cv_prog_compiler_pic_works_CXX=yes
19506 fi
19507 fi
19508 $RM conftest*
19509
19510fi
19511{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
19512$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
19513
19514if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
19515 case $lt_prog_compiler_pic_CXX in
19516 "" | " "*) ;;
19517 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
19518 esac
19519else
19520 lt_prog_compiler_pic_CXX=
19521 lt_prog_compiler_can_build_shared_CXX=no
19522fi
19523
19524fi
19525
19526
19527
cristyda16f162011-02-19 23:52:17 +000019528
19529
cristy73bd4a52010-10-05 11:24:23 +000019530#
19531# Check to make sure the static flag actually works.
19532#
19533wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
19534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19535$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019536if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019537 $as_echo_n "(cached) " >&6
19538else
19539 lt_cv_prog_compiler_static_works_CXX=no
19540 save_LDFLAGS="$LDFLAGS"
19541 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
19542 echo "$lt_simple_link_test_code" > conftest.$ac_ext
19543 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
19544 # The linker can only warn and ignore the option if not recognized
19545 # So say no if there are warnings
19546 if test -s conftest.err; then
19547 # Append any errors to the config.log.
19548 cat conftest.err 1>&5
cristy0c60a692010-11-04 01:09:47 +000019549 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
19551 if diff conftest.exp conftest.er2 >/dev/null; then
19552 lt_cv_prog_compiler_static_works_CXX=yes
19553 fi
19554 else
19555 lt_cv_prog_compiler_static_works_CXX=yes
19556 fi
19557 fi
19558 $RM -r conftest*
19559 LDFLAGS="$save_LDFLAGS"
19560
19561fi
19562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
19563$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
19564
19565if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
19566 :
19567else
19568 lt_prog_compiler_static_CXX=
19569fi
19570
19571
19572
19573
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19575$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019576if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019577 $as_echo_n "(cached) " >&6
19578else
19579 lt_cv_prog_compiler_c_o_CXX=no
19580 $RM -r conftest 2>/dev/null
19581 mkdir conftest
19582 cd conftest
19583 mkdir out
19584 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19585
19586 lt_compiler_flag="-o out/conftest2.$ac_objext"
19587 # Insert the option either (1) after the last *FLAGS variable, or
19588 # (2) before a word containing "conftest.", or (3) at the end.
19589 # Note that $ac_compile itself does not contain backslashes and begins
19590 # with a dollar sign (not a hyphen), so the echo should work correctly.
19591 lt_compile=`echo "$ac_compile" | $SED \
19592 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19593 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19594 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019595 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019596 (eval "$lt_compile" 2>out/conftest.err)
19597 ac_status=$?
19598 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019600 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19601 then
19602 # The compiler can only warn and ignore the option if not recognized
19603 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019604 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019605 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19606 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19607 lt_cv_prog_compiler_c_o_CXX=yes
19608 fi
19609 fi
19610 chmod u+w . 2>&5
19611 $RM conftest*
19612 # SGI C++ compiler will create directory out/ii_files/ for
19613 # template instantiation
19614 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19615 $RM out/* && rmdir out
19616 cd ..
19617 $RM -r conftest
19618 $RM conftest*
19619
19620fi
19621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19622$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19623
19624
19625
19626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
19627$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019628if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000019629 $as_echo_n "(cached) " >&6
19630else
19631 lt_cv_prog_compiler_c_o_CXX=no
19632 $RM -r conftest 2>/dev/null
19633 mkdir conftest
19634 cd conftest
19635 mkdir out
19636 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19637
19638 lt_compiler_flag="-o out/conftest2.$ac_objext"
19639 # Insert the option either (1) after the last *FLAGS variable, or
19640 # (2) before a word containing "conftest.", or (3) at the end.
19641 # Note that $ac_compile itself does not contain backslashes and begins
19642 # with a dollar sign (not a hyphen), so the echo should work correctly.
19643 lt_compile=`echo "$ac_compile" | $SED \
19644 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19645 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19646 -e 's:$: $lt_compiler_flag:'`
cristy0c60a692010-11-04 01:09:47 +000019647 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
cristy73bd4a52010-10-05 11:24:23 +000019648 (eval "$lt_compile" 2>out/conftest.err)
19649 ac_status=$?
19650 cat out/conftest.err >&5
cristy0c60a692010-11-04 01:09:47 +000019651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
cristy73bd4a52010-10-05 11:24:23 +000019652 if (exit $ac_status) && test -s out/conftest2.$ac_objext
19653 then
19654 # The compiler can only warn and ignore the option if not recognized
19655 # So say no if there are warnings
cristy0c60a692010-11-04 01:09:47 +000019656 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
cristy73bd4a52010-10-05 11:24:23 +000019657 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
19658 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
19659 lt_cv_prog_compiler_c_o_CXX=yes
19660 fi
19661 fi
19662 chmod u+w . 2>&5
19663 $RM conftest*
19664 # SGI C++ compiler will create directory out/ii_files/ for
19665 # template instantiation
19666 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
19667 $RM out/* && rmdir out
19668 cd ..
19669 $RM -r conftest
19670 $RM conftest*
19671
19672fi
19673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
19674$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
19675
19676
19677
19678
19679hard_links="nottested"
19680if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
19681 # do not overwrite the value of need_locks provided by the user
19682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
19683$as_echo_n "checking if we can lock with hard links... " >&6; }
19684 hard_links=yes
19685 $RM conftest*
19686 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19687 touch conftest.a
19688 ln conftest.a conftest.b 2>&5 || hard_links=no
19689 ln conftest.a conftest.b 2>/dev/null && hard_links=no
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
19691$as_echo "$hard_links" >&6; }
19692 if test "$hard_links" = no; then
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19694$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19695 need_locks=warn
19696 fi
19697else
19698 need_locks=no
19699fi
19700
19701
19702
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19704$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
19705
19706 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019707 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
cristy73bd4a52010-10-05 11:24:23 +000019708 case $host_os in
19709 aix[4-9]*)
19710 # If we're using GNU nm, then we don't want the "-C" option.
19711 # -C means demangle to AIX nm, but means don't demangle with GNU nm
cristy0c60a692010-11-04 01:09:47 +000019712 # Also, AIX nm treats weak defined symbols like other global defined
19713 # symbols, whereas GNU nm marks them as "W".
cristy73bd4a52010-10-05 11:24:23 +000019714 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
cristy0c60a692010-11-04 01:09:47 +000019715 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 +000019716 else
19717 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'
19718 fi
19719 ;;
19720 pw32*)
19721 export_symbols_cmds_CXX="$ltdll_cmds"
cristyda16f162011-02-19 23:52:17 +000019722 ;;
cristy73bd4a52010-10-05 11:24:23 +000019723 cygwin* | mingw* | cegcc*)
cristyda16f162011-02-19 23:52:17 +000019724 case $cc_basename in
cristy99bd5232011-12-07 14:38:20 +000019725 cl*)
19726 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
19727 ;;
cristyda16f162011-02-19 23:52:17 +000019728 *)
19729 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'
19730 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
19731 ;;
19732 esac
19733 ;;
cristy73bd4a52010-10-05 11:24:23 +000019734 *)
19735 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
cristyda16f162011-02-19 23:52:17 +000019736 ;;
cristy73bd4a52010-10-05 11:24:23 +000019737 esac
cristy73bd4a52010-10-05 11:24:23 +000019738
19739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19740$as_echo "$ld_shlibs_CXX" >&6; }
19741test "$ld_shlibs_CXX" = no && can_build_shared=no
19742
19743with_gnu_ld_CXX=$with_gnu_ld
19744
19745
19746
19747
19748
19749
19750#
19751# Do we need to explicitly link libc?
19752#
19753case "x$archive_cmds_need_lc_CXX" in
19754x|xyes)
19755 # Assume -lc should be added
19756 archive_cmds_need_lc_CXX=yes
19757
19758 if test "$enable_shared" = yes && test "$GCC" = yes; then
19759 case $archive_cmds_CXX in
19760 *'~'*)
19761 # FIXME: we may have to deal with multi-command sequences.
19762 ;;
19763 '$CC '*)
19764 # Test whether the compiler implicitly links with -lc since on some
19765 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19766 # to ld, don't add -lc before -lgcc.
19767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19768$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
cristyda16f162011-02-19 23:52:17 +000019769if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000019770 $as_echo_n "(cached) " >&6
19771else
19772 $RM conftest*
19773 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000019774
cristy0c60a692010-11-04 01:09:47 +000019775 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
cristy73bd4a52010-10-05 11:24:23 +000019776 (eval $ac_compile) 2>&5
19777 ac_status=$?
19778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19779 test $ac_status = 0; } 2>conftest.err; then
cristy0c60a692010-11-04 01:09:47 +000019780 soname=conftest
19781 lib=conftest
19782 libobjs=conftest.$ac_objext
19783 deplibs=
19784 wl=$lt_prog_compiler_wl_CXX
19785 pic_flag=$lt_prog_compiler_pic_CXX
19786 compiler_flags=-v
19787 linker_flags=-v
19788 verstring=
19789 output_objdir=.
19790 libname=conftest
19791 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
19792 allow_undefined_flag_CXX=
19793 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 +000019794 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19795 ac_status=$?
19796 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19797 test $ac_status = 0; }
cristy0c60a692010-11-04 01:09:47 +000019798 then
19799 lt_cv_archive_cmds_need_lc_CXX=no
19800 else
19801 lt_cv_archive_cmds_need_lc_CXX=yes
19802 fi
19803 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
19804 else
19805 cat conftest.err 1>&5
19806 fi
19807 $RM conftest*
19808
19809fi
19810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
19811$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
19812 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
cristy73bd4a52010-10-05 11:24:23 +000019813 ;;
19814 esac
19815 fi
19816 ;;
19817esac
19818
19819
19820
19821
19822
19823
19824
19825
19826
19827
19828
19829
19830
19831
19832
19833
19834
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856
19857
19858
19859
19860
19861
19862
19863
19864
19865
19866
19867
19868
19869
19870
19871
19872
19873
19874
19875
19876
19877
19878
19879
cristy73bd4a52010-10-05 11:24:23 +000019880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19881$as_echo_n "checking dynamic linker characteristics... " >&6; }
19882
19883library_names_spec=
19884libname_spec='lib$name'
19885soname_spec=
19886shrext_cmds=".so"
19887postinstall_cmds=
19888postuninstall_cmds=
19889finish_cmds=
19890finish_eval=
19891shlibpath_var=
19892shlibpath_overrides_runpath=unknown
19893version_type=none
19894dynamic_linker="$host_os ld.so"
19895sys_lib_dlsearch_path_spec="/lib /usr/lib"
19896need_lib_prefix=unknown
19897hardcode_into_libs=no
19898
19899# when you set need_version to no, make sure it does not cause -set_version
19900# flags to be left without arguments
19901need_version=unknown
19902
19903case $host_os in
19904aix3*)
cristy99bd5232011-12-07 14:38:20 +000019905 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019906 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19907 shlibpath_var=LIBPATH
19908
19909 # AIX 3 has no versioning support, so we append a major version to the name.
19910 soname_spec='${libname}${release}${shared_ext}$major'
19911 ;;
19912
19913aix[4-9]*)
cristy99bd5232011-12-07 14:38:20 +000019914 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019915 need_lib_prefix=no
19916 need_version=no
19917 hardcode_into_libs=yes
19918 if test "$host_cpu" = ia64; then
19919 # AIX 5 supports IA64
19920 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19921 shlibpath_var=LD_LIBRARY_PATH
19922 else
19923 # With GCC up to 2.95.x, collect2 would create an import file
19924 # for dependence libraries. The import file would start with
19925 # the line `#! .'. This would cause the generated library to
19926 # depend on `.', always an invalid library. This was fixed in
19927 # development snapshots of GCC prior to 3.0.
19928 case $host_os in
19929 aix4 | aix4.[01] | aix4.[01].*)
19930 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19931 echo ' yes '
19932 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19933 :
19934 else
19935 can_build_shared=no
19936 fi
19937 ;;
19938 esac
19939 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19940 # soname into executable. Probably we can add versioning support to
19941 # collect2, so additional links can be useful in future.
19942 if test "$aix_use_runtimelinking" = yes; then
19943 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19944 # instead of lib<name>.a to let people know that these are not
19945 # typical AIX shared libraries.
19946 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19947 else
19948 # We preserve .a as extension for shared libraries through AIX4.2
19949 # and later when we are not doing run time linking.
19950 library_names_spec='${libname}${release}.a $libname.a'
19951 soname_spec='${libname}${release}${shared_ext}$major'
19952 fi
19953 shlibpath_var=LIBPATH
19954 fi
19955 ;;
19956
19957amigaos*)
19958 case $host_cpu in
19959 powerpc)
19960 # Since July 2007 AmigaOS4 officially supports .so libraries.
19961 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19963 ;;
19964 m68k)
19965 library_names_spec='$libname.ixlibrary $libname.a'
19966 # Create ${libname}_ixlibrary.a entries in /sys/libs.
cristy0c60a692010-11-04 01:09:47 +000019967 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 +000019968 ;;
19969 esac
19970 ;;
19971
19972beos*)
19973 library_names_spec='${libname}${shared_ext}'
19974 dynamic_linker="$host_os ld.so"
19975 shlibpath_var=LIBRARY_PATH
19976 ;;
19977
19978bsdi[45]*)
cristy99bd5232011-12-07 14:38:20 +000019979 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000019980 need_version=no
19981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19982 soname_spec='${libname}${release}${shared_ext}$major'
19983 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19984 shlibpath_var=LD_LIBRARY_PATH
19985 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19986 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19987 # the default ld.so.conf also contains /usr/contrib/lib and
19988 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19989 # libtool to hard-code these into programs
19990 ;;
19991
19992cygwin* | mingw* | pw32* | cegcc*)
19993 version_type=windows
19994 shrext_cmds=".dll"
19995 need_version=no
19996 need_lib_prefix=no
19997
cristyda16f162011-02-19 23:52:17 +000019998 case $GCC,$cc_basename in
19999 yes,*)
20000 # gcc
cristy73bd4a52010-10-05 11:24:23 +000020001 library_names_spec='$libname.dll.a'
20002 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20003 postinstall_cmds='base_file=`basename \${file}`~
20004 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20005 dldir=$destdir/`dirname \$dlpath`~
20006 test -d \$dldir || mkdir -p \$dldir~
20007 $install_prog $dir/$dlname \$dldir/$dlname~
20008 chmod a+x \$dldir/$dlname~
20009 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20010 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20011 fi'
20012 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20013 dlpath=$dir/\$dldll~
20014 $RM \$dlpath'
20015 shlibpath_overrides_runpath=yes
20016
20017 case $host_os in
20018 cygwin*)
20019 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20020 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy0c60a692010-11-04 01:09:47 +000020021
cristy73bd4a52010-10-05 11:24:23 +000020022 ;;
20023 mingw* | cegcc*)
20024 # MinGW DLLs use traditional 'lib' prefix
20025 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
cristy73bd4a52010-10-05 11:24:23 +000020026 ;;
20027 pw32*)
20028 # pw32 DLLs use 'pw' prefix rather than 'lib'
20029 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20030 ;;
20031 esac
cristyda16f162011-02-19 23:52:17 +000020032 dynamic_linker='Win32 ld.exe'
20033 ;;
20034
20035 *,cl*)
20036 # Native MSVC
20037 libname_spec='$name'
20038 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20039 library_names_spec='${libname}.dll.lib'
20040
20041 case $build_os in
20042 mingw*)
20043 sys_lib_search_path_spec=
20044 lt_save_ifs=$IFS
20045 IFS=';'
20046 for lt_path in $LIB
20047 do
20048 IFS=$lt_save_ifs
20049 # Let DOS variable expansion print the short 8.3 style file name.
20050 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
20051 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
20052 done
20053 IFS=$lt_save_ifs
20054 # Convert to MSYS style.
20055 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
20056 ;;
20057 cygwin*)
20058 # Convert to unix form, then to dos form, then back to unix form
20059 # but this time dos style (no spaces!) so that the unix form looks
20060 # like /cygdrive/c/PROGRA~1:/cygdr...
20061 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
20062 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
20063 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20064 ;;
20065 *)
20066 sys_lib_search_path_spec="$LIB"
20067 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20068 # It is most probably a Windows format PATH.
20069 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20070 else
20071 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20072 fi
20073 # FIXME: find the short name or the path components, as spaces are
20074 # common. (e.g. "Program Files" -> "PROGRA~1")
20075 ;;
20076 esac
20077
20078 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20079 postinstall_cmds='base_file=`basename \${file}`~
20080 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20081 dldir=$destdir/`dirname \$dlpath`~
20082 test -d \$dldir || mkdir -p \$dldir~
20083 $install_prog $dir/$dlname \$dldir/$dlname'
20084 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20085 dlpath=$dir/\$dldll~
20086 $RM \$dlpath'
20087 shlibpath_overrides_runpath=yes
20088 dynamic_linker='Win32 link.exe'
cristy73bd4a52010-10-05 11:24:23 +000020089 ;;
20090
20091 *)
cristyda16f162011-02-19 23:52:17 +000020092 # Assume MSVC wrapper
cristy73bd4a52010-10-05 11:24:23 +000020093 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
cristyda16f162011-02-19 23:52:17 +000020094 dynamic_linker='Win32 ld.exe'
cristy73bd4a52010-10-05 11:24:23 +000020095 ;;
20096 esac
cristy73bd4a52010-10-05 11:24:23 +000020097 # FIXME: first we should search . and the directory the executable is in
20098 shlibpath_var=PATH
20099 ;;
20100
20101darwin* | rhapsody*)
20102 dynamic_linker="$host_os dyld"
20103 version_type=darwin
20104 need_lib_prefix=no
20105 need_version=no
20106 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20107 soname_spec='${libname}${release}${major}$shared_ext'
20108 shlibpath_overrides_runpath=yes
20109 shlibpath_var=DYLD_LIBRARY_PATH
20110 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20111
20112 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20113 ;;
20114
20115dgux*)
cristy99bd5232011-12-07 14:38:20 +000020116 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020117 need_lib_prefix=no
20118 need_version=no
20119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20120 soname_spec='${libname}${release}${shared_ext}$major'
20121 shlibpath_var=LD_LIBRARY_PATH
20122 ;;
20123
cristy73bd4a52010-10-05 11:24:23 +000020124freebsd* | dragonfly*)
20125 # DragonFly does not have aout. When/if they implement a new
20126 # versioning mechanism, adjust this.
20127 if test -x /usr/bin/objformat; then
20128 objformat=`/usr/bin/objformat`
20129 else
20130 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020131 freebsd[23].*) objformat=aout ;;
cristy73bd4a52010-10-05 11:24:23 +000020132 *) objformat=elf ;;
20133 esac
20134 fi
20135 version_type=freebsd-$objformat
20136 case $version_type in
20137 freebsd-elf*)
20138 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20139 need_version=no
20140 need_lib_prefix=no
20141 ;;
20142 freebsd-*)
20143 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20144 need_version=yes
20145 ;;
20146 esac
20147 shlibpath_var=LD_LIBRARY_PATH
20148 case $host_os in
cristy99bd5232011-12-07 14:38:20 +000020149 freebsd2.*)
cristy73bd4a52010-10-05 11:24:23 +000020150 shlibpath_overrides_runpath=yes
20151 ;;
20152 freebsd3.[01]* | freebsdelf3.[01]*)
20153 shlibpath_overrides_runpath=yes
20154 hardcode_into_libs=yes
20155 ;;
20156 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20157 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20158 shlibpath_overrides_runpath=no
20159 hardcode_into_libs=yes
20160 ;;
20161 *) # from 4.6 on, and DragonFly
20162 shlibpath_overrides_runpath=yes
20163 hardcode_into_libs=yes
20164 ;;
20165 esac
20166 ;;
20167
20168gnu*)
cristy99bd5232011-12-07 14:38:20 +000020169 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020170 need_lib_prefix=no
20171 need_version=no
20172 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20173 soname_spec='${libname}${release}${shared_ext}$major'
20174 shlibpath_var=LD_LIBRARY_PATH
cristy99bd5232011-12-07 14:38:20 +000020175 shlibpath_overrides_runpath=no
cristy73bd4a52010-10-05 11:24:23 +000020176 hardcode_into_libs=yes
20177 ;;
20178
cristy0c60a692010-11-04 01:09:47 +000020179haiku*)
cristy99bd5232011-12-07 14:38:20 +000020180 version_type=linux # correct to gnu/linux during the next big refactor
cristy0c60a692010-11-04 01:09:47 +000020181 need_lib_prefix=no
20182 need_version=no
20183 dynamic_linker="$host_os runtime_loader"
20184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20185 soname_spec='${libname}${release}${shared_ext}$major'
20186 shlibpath_var=LIBRARY_PATH
20187 shlibpath_overrides_runpath=yes
20188 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
20189 hardcode_into_libs=yes
20190 ;;
20191
cristy73bd4a52010-10-05 11:24:23 +000020192hpux9* | hpux10* | hpux11*)
20193 # Give a soname corresponding to the major version so that dld.sl refuses to
20194 # link against other versions.
20195 version_type=sunos
20196 need_lib_prefix=no
20197 need_version=no
20198 case $host_cpu in
20199 ia64*)
20200 shrext_cmds='.so'
20201 hardcode_into_libs=yes
20202 dynamic_linker="$host_os dld.so"
20203 shlibpath_var=LD_LIBRARY_PATH
20204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20206 soname_spec='${libname}${release}${shared_ext}$major'
20207 if test "X$HPUX_IA64_MODE" = X32; then
20208 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20209 else
20210 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20211 fi
20212 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20213 ;;
20214 hppa*64*)
20215 shrext_cmds='.sl'
20216 hardcode_into_libs=yes
20217 dynamic_linker="$host_os dld.sl"
20218 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20219 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20220 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20221 soname_spec='${libname}${release}${shared_ext}$major'
20222 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20223 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20224 ;;
20225 *)
20226 shrext_cmds='.sl'
20227 dynamic_linker="$host_os dld.sl"
20228 shlibpath_var=SHLIB_PATH
20229 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20231 soname_spec='${libname}${release}${shared_ext}$major'
20232 ;;
20233 esac
cristy0c60a692010-11-04 01:09:47 +000020234 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
cristy73bd4a52010-10-05 11:24:23 +000020235 postinstall_cmds='chmod 555 $lib'
cristy0c60a692010-11-04 01:09:47 +000020236 # or fails outright, so override atomically:
20237 install_override_mode=555
cristy73bd4a52010-10-05 11:24:23 +000020238 ;;
20239
20240interix[3-9]*)
cristy99bd5232011-12-07 14:38:20 +000020241 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020242 need_lib_prefix=no
20243 need_version=no
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20245 soname_spec='${libname}${release}${shared_ext}$major'
20246 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20247 shlibpath_var=LD_LIBRARY_PATH
20248 shlibpath_overrides_runpath=no
20249 hardcode_into_libs=yes
20250 ;;
20251
20252irix5* | irix6* | nonstopux*)
20253 case $host_os in
20254 nonstopux*) version_type=nonstopux ;;
20255 *)
20256 if test "$lt_cv_prog_gnu_ld" = yes; then
cristy99bd5232011-12-07 14:38:20 +000020257 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020258 else
20259 version_type=irix
20260 fi ;;
20261 esac
20262 need_lib_prefix=no
20263 need_version=no
20264 soname_spec='${libname}${release}${shared_ext}$major'
20265 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20266 case $host_os in
20267 irix5* | nonstopux*)
20268 libsuff= shlibsuff=
20269 ;;
20270 *)
20271 case $LD in # libtool.m4 will add one of these switches to LD
20272 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20273 libsuff= shlibsuff= libmagic=32-bit;;
20274 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20275 libsuff=32 shlibsuff=N32 libmagic=N32;;
20276 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20277 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20278 *) libsuff= shlibsuff= libmagic=never-match;;
20279 esac
20280 ;;
20281 esac
20282 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20283 shlibpath_overrides_runpath=no
20284 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20285 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20286 hardcode_into_libs=yes
20287 ;;
20288
20289# No shared lib support for Linux oldld, aout, or coff.
20290linux*oldld* | linux*aout* | linux*coff*)
20291 dynamic_linker=no
20292 ;;
20293
cristy99bd5232011-12-07 14:38:20 +000020294# This must be glibc/ELF.
cristy0c60a692010-11-04 01:09:47 +000020295linux* | k*bsd*-gnu | kopensolaris*-gnu)
cristy99bd5232011-12-07 14:38:20 +000020296 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020297 need_lib_prefix=no
20298 need_version=no
20299 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20300 soname_spec='${libname}${release}${shared_ext}$major'
20301 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20302 shlibpath_var=LD_LIBRARY_PATH
20303 shlibpath_overrides_runpath=no
cristy0c60a692010-11-04 01:09:47 +000020304
cristy73bd4a52010-10-05 11:24:23 +000020305 # Some binutils ld are patched to set DT_RUNPATH
cristyda16f162011-02-19 23:52:17 +000020306 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
cristy0c60a692010-11-04 01:09:47 +000020307 $as_echo_n "(cached) " >&6
20308else
20309 lt_cv_shlibpath_overrides_runpath=no
20310 save_LDFLAGS=$LDFLAGS
20311 save_libdir=$libdir
20312 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20313 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy73bd4a52010-10-05 11:24:23 +000020315/* end confdefs.h. */
20316
20317int
20318main ()
20319{
20320
20321 ;
20322 return 0;
20323}
20324_ACEOF
20325if ac_fn_cxx_try_link "$LINENO"; then :
20326 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
cristy0c60a692010-11-04 01:09:47 +000020327 lt_cv_shlibpath_overrides_runpath=yes
cristy73bd4a52010-10-05 11:24:23 +000020328fi
20329fi
20330rm -f core conftest.err conftest.$ac_objext \
20331 conftest$ac_exeext conftest.$ac_ext
cristy0c60a692010-11-04 01:09:47 +000020332 LDFLAGS=$save_LDFLAGS
20333 libdir=$save_libdir
20334
20335fi
20336
20337 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
cristy73bd4a52010-10-05 11:24:23 +000020338
20339 # This implies no fast_install, which is unacceptable.
20340 # Some rework will be needed to allow for fast_install
20341 # before this can be enabled.
20342 hardcode_into_libs=yes
20343
20344 # Add ABI-specific directories to the system library path.
20345 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
20346
20347 # Append ld.so.conf contents to the search path
20348 if test -f /etc/ld.so.conf; then
cristy0c60a692010-11-04 01:09:47 +000020349 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 +000020350 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
cristy0c60a692010-11-04 01:09:47 +000020351
cristy73bd4a52010-10-05 11:24:23 +000020352 fi
20353
20354 # We used to test for /lib/ld.so.1 and disable shared libraries on
20355 # powerpc, because MkLinux only supported shared libraries with the
20356 # GNU dynamic linker. Since this was broken with cross compilers,
20357 # most powerpc-linux boxes support dynamic linking these days and
20358 # people can always --disable-shared, the test was removed, and we
20359 # assume the GNU/Linux dynamic linker is in use.
20360 dynamic_linker='GNU/Linux ld.so'
20361 ;;
20362
20363netbsd*)
20364 version_type=sunos
20365 need_lib_prefix=no
20366 need_version=no
20367 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20368 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20369 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20370 dynamic_linker='NetBSD (a.out) ld.so'
20371 else
20372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20373 soname_spec='${libname}${release}${shared_ext}$major'
20374 dynamic_linker='NetBSD ld.elf_so'
20375 fi
20376 shlibpath_var=LD_LIBRARY_PATH
20377 shlibpath_overrides_runpath=yes
20378 hardcode_into_libs=yes
20379 ;;
20380
20381newsos6)
cristy99bd5232011-12-07 14:38:20 +000020382 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20384 shlibpath_var=LD_LIBRARY_PATH
20385 shlibpath_overrides_runpath=yes
20386 ;;
20387
20388*nto* | *qnx*)
20389 version_type=qnx
20390 need_lib_prefix=no
20391 need_version=no
20392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20393 soname_spec='${libname}${release}${shared_ext}$major'
20394 shlibpath_var=LD_LIBRARY_PATH
20395 shlibpath_overrides_runpath=no
20396 hardcode_into_libs=yes
20397 dynamic_linker='ldqnx.so'
20398 ;;
20399
20400openbsd*)
20401 version_type=sunos
20402 sys_lib_dlsearch_path_spec="/usr/lib"
20403 need_lib_prefix=no
20404 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20405 case $host_os in
20406 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20407 *) need_version=no ;;
20408 esac
20409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20410 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20411 shlibpath_var=LD_LIBRARY_PATH
20412 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20413 case $host_os in
20414 openbsd2.[89] | openbsd2.[89].*)
20415 shlibpath_overrides_runpath=no
20416 ;;
20417 *)
20418 shlibpath_overrides_runpath=yes
20419 ;;
20420 esac
20421 else
20422 shlibpath_overrides_runpath=yes
20423 fi
20424 ;;
20425
20426os2*)
20427 libname_spec='$name'
20428 shrext_cmds=".dll"
20429 need_lib_prefix=no
20430 library_names_spec='$libname${shared_ext} $libname.a'
20431 dynamic_linker='OS/2 ld.exe'
20432 shlibpath_var=LIBPATH
20433 ;;
20434
20435osf3* | osf4* | osf5*)
20436 version_type=osf
20437 need_lib_prefix=no
20438 need_version=no
20439 soname_spec='${libname}${release}${shared_ext}$major'
20440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20441 shlibpath_var=LD_LIBRARY_PATH
20442 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20443 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20444 ;;
20445
20446rdos*)
20447 dynamic_linker=no
20448 ;;
20449
20450solaris*)
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 need_lib_prefix=no
20453 need_version=no
20454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20455 soname_spec='${libname}${release}${shared_ext}$major'
20456 shlibpath_var=LD_LIBRARY_PATH
20457 shlibpath_overrides_runpath=yes
20458 hardcode_into_libs=yes
20459 # ldd complains unless libraries are executable
20460 postinstall_cmds='chmod +x $lib'
20461 ;;
20462
20463sunos4*)
20464 version_type=sunos
20465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20466 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20467 shlibpath_var=LD_LIBRARY_PATH
20468 shlibpath_overrides_runpath=yes
20469 if test "$with_gnu_ld" = yes; then
20470 need_lib_prefix=no
20471 fi
20472 need_version=yes
20473 ;;
20474
20475sysv4 | sysv4.3*)
cristy99bd5232011-12-07 14:38:20 +000020476 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20478 soname_spec='${libname}${release}${shared_ext}$major'
20479 shlibpath_var=LD_LIBRARY_PATH
20480 case $host_vendor in
20481 sni)
20482 shlibpath_overrides_runpath=no
20483 need_lib_prefix=no
20484 runpath_var=LD_RUN_PATH
20485 ;;
20486 siemens)
20487 need_lib_prefix=no
20488 ;;
20489 motorola)
20490 need_lib_prefix=no
20491 need_version=no
20492 shlibpath_overrides_runpath=no
20493 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20494 ;;
20495 esac
20496 ;;
20497
20498sysv4*MP*)
20499 if test -d /usr/nec ;then
cristy99bd5232011-12-07 14:38:20 +000020500 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020501 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20502 soname_spec='$libname${shared_ext}.$major'
20503 shlibpath_var=LD_LIBRARY_PATH
20504 fi
20505 ;;
20506
20507sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
20508 version_type=freebsd-elf
20509 need_lib_prefix=no
20510 need_version=no
20511 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20512 soname_spec='${libname}${release}${shared_ext}$major'
20513 shlibpath_var=LD_LIBRARY_PATH
20514 shlibpath_overrides_runpath=yes
20515 hardcode_into_libs=yes
20516 if test "$with_gnu_ld" = yes; then
20517 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20518 else
20519 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20520 case $host_os in
20521 sco3.2v5*)
20522 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20523 ;;
20524 esac
20525 fi
20526 sys_lib_dlsearch_path_spec='/usr/lib'
20527 ;;
20528
20529tpf*)
20530 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
cristy99bd5232011-12-07 14:38:20 +000020531 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020532 need_lib_prefix=no
20533 need_version=no
20534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20535 shlibpath_var=LD_LIBRARY_PATH
20536 shlibpath_overrides_runpath=no
20537 hardcode_into_libs=yes
20538 ;;
20539
20540uts4*)
cristy99bd5232011-12-07 14:38:20 +000020541 version_type=linux # correct to gnu/linux during the next big refactor
cristy73bd4a52010-10-05 11:24:23 +000020542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20543 soname_spec='${libname}${release}${shared_ext}$major'
20544 shlibpath_var=LD_LIBRARY_PATH
20545 ;;
20546
20547*)
20548 dynamic_linker=no
20549 ;;
20550esac
20551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20552$as_echo "$dynamic_linker" >&6; }
20553test "$dynamic_linker" = no && can_build_shared=no
20554
20555variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20556if test "$GCC" = yes; then
20557 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20558fi
20559
20560if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20561 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20562fi
20563if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20564 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20565fi
20566
20567
20568
20569
20570
20571
20572
20573
20574
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586
20587
20588
20589
20590
20591
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
cristy0c60a692010-11-04 01:09:47 +000020602
20603
cristy73bd4a52010-10-05 11:24:23 +000020604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20605$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20606hardcode_action_CXX=
20607if test -n "$hardcode_libdir_flag_spec_CXX" ||
20608 test -n "$runpath_var_CXX" ||
20609 test "X$hardcode_automatic_CXX" = "Xyes" ; then
20610
20611 # We can hardcode non-existent directories.
20612 if test "$hardcode_direct_CXX" != no &&
20613 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20614 # have to relink, otherwise we might link with an installed library
20615 # when we should be linking with a yet-to-be-installed one
20616 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
20617 test "$hardcode_minus_L_CXX" != no; then
20618 # Linking always hardcodes the temporary library directory.
20619 hardcode_action_CXX=relink
20620 else
20621 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20622 hardcode_action_CXX=immediate
20623 fi
20624else
20625 # We cannot hardcode anything, or else we can only hardcode existing
20626 # directories.
20627 hardcode_action_CXX=unsupported
20628fi
20629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
20630$as_echo "$hardcode_action_CXX" >&6; }
20631
20632if test "$hardcode_action_CXX" = relink ||
20633 test "$inherit_rpath_CXX" = yes; then
20634 # Fast installation is not supported
20635 enable_fast_install=no
20636elif test "$shlibpath_overrides_runpath" = yes ||
20637 test "$enable_shared" = no; then
20638 # Fast installation is not necessary
20639 enable_fast_install=needless
20640fi
20641
20642
20643
20644
20645
20646
20647
20648 fi # test -n "$compiler"
20649
20650 CC=$lt_save_CC
cristyda16f162011-02-19 23:52:17 +000020651 CFLAGS=$lt_save_CFLAGS
cristy73bd4a52010-10-05 11:24:23 +000020652 LDCXX=$LD
20653 LD=$lt_save_LD
20654 GCC=$lt_save_GCC
20655 with_gnu_ld=$lt_save_with_gnu_ld
20656 lt_cv_path_LDCXX=$lt_cv_path_LD
20657 lt_cv_path_LD=$lt_save_path_LD
20658 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
20659 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
20660fi # test "$_lt_caught_CXX_error" != yes
20661
20662ac_ext=c
20663ac_cpp='$CPP $CPPFLAGS'
20664ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20665ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20666ac_compiler_gnu=$ac_cv_c_compiler_gnu
20667
20668
20669
20670
20671
20672
20673
20674
20675
20676
20677
20678
20679
cristy99bd5232011-12-07 14:38:20 +000020680
20681
cristy73bd4a52010-10-05 11:24:23 +000020682 ac_config_commands="$ac_config_commands libtool"
20683
20684
20685
20686
20687# Only expand once:
20688
20689
20690
cristy3ed852e2009-09-05 21:47:34 +000020691
20692
cristy3ed852e2009-09-05 21:47:34 +000020693# Check to see if building shared libraries
20694libtool_build_shared_libs='no'
20695if test "$enable_shared" = 'yes'; then
20696 libtool_build_shared_libs='yes'
20697fi
20698
20699# Check to see if building static libraries
20700libtool_build_static_libs='no'
20701if test "$enable_static" = 'yes'; then
20702 libtool_build_static_libs='yes'
20703fi
20704
cristy73bd4a52010-10-05 11:24:23 +000020705 if test "${libtool_build_shared_libs}" = 'yes'; then
20706 WITH_SHARED_LIBS_TRUE=
20707 WITH_SHARED_LIBS_FALSE='#'
20708else
20709 WITH_SHARED_LIBS_TRUE='#'
20710 WITH_SHARED_LIBS_FALSE=
20711fi
20712
cristy3ed852e2009-09-05 21:47:34 +000020713#
20714# Enable support for building loadable modules
20715#
cristyaf4cbf32012-10-16 23:47:41 +000020716build_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020717
20718# Check whether --with-modules was given.
cristy8b350f62009-11-15 23:12:43 +000020719if test "${with_modules+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020720 withval=$with_modules; with_modules=$withval
20721else
cristy5a1cefd2010-01-06 20:42:35 +000020722 with_modules='no'
cristy3ed852e2009-09-05 21:47:34 +000020723fi
20724
20725
20726# Only allow building loadable modules if we are building shared libraries
20727if test "$with_modules" != 'no' ; then
20728 if test "$libtool_build_shared_libs" = 'no'; then
cristy8b350f62009-11-15 23:12:43 +000020729 { $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 +000020730$as_echo "$as_me: WARNING: Modules may only be built if building shared libraries is enabled." >&2;}
cristyc6722092012-10-14 00:19:31 +000020731 build_modules='no'
20732 else
20733 build_modules='yes'
20734 fi
cristy3ed852e2009-09-05 21:47:34 +000020735fi
cristyc6722092012-10-14 00:19:31 +000020736if test "$build_modules" != 'no' ; then
cristy3ed852e2009-09-05 21:47:34 +000020737
cristy8b350f62009-11-15 23:12:43 +000020738$as_echo "#define BUILD_MODULES 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020739
20740fi
cristyc6722092012-10-14 00:19:31 +000020741 if test "$build_modules" != 'no'; then
cristy73bd4a52010-10-05 11:24:23 +000020742 WITH_MODULES_TRUE=
20743 WITH_MODULES_FALSE='#'
20744else
20745 WITH_MODULES_TRUE='#'
20746 WITH_MODULES_FALSE=
20747fi
20748
cristy3ed852e2009-09-05 21:47:34 +000020749
cristy3ed852e2009-09-05 21:47:34 +000020750# Enable build using delegate libraries built in subdirectories rather than installed
cristyfbb0ef02010-12-19 02:32:11 +000020751# delegate libraries (bzlib fftw fpx gslib jp2 jbig jpeg lcms lzma png tiff ttf wmf xml zlib)
cristy3ed852e2009-09-05 21:47:34 +000020752# Check whether --enable-delegate-build was given.
cristy8b350f62009-11-15 23:12:43 +000020753if test "${enable_delegate_build+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020754 enableval=$enable_delegate_build; enable_delegate_build=$enableval
20755else
20756 enable_delegate_build='no'
20757fi
20758
20759
20760# Check whether --enable-deprecated was given.
cristy8b350f62009-11-15 23:12:43 +000020761if test "${enable_deprecated+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020762 enableval=$enable_deprecated; enable_deprecated=$enableval
20763else
20764 enable_deprecated='no'
20765fi
20766
20767
20768if test "$enable_deprecated" = 'yes'; then
20769
cristy8b350f62009-11-15 23:12:43 +000020770$as_echo "#define EXCLUDE_DEPRECATED 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020771
20772else
20773 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-deprecated "
20774fi
20775
20776# Build a version of ImageMagick which operates uninstalled.
20777# Used to build distributions located via MAGICK_HOME / executable path
20778# Check whether --enable-installed was given.
cristy8b350f62009-11-15 23:12:43 +000020779if test "${enable_installed+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020780 enableval=$enable_installed; enable_installed=$enableval
20781else
20782 enable_installed='yes'
20783fi
20784
20785
20786if test "$enable_installed" = 'yes'; then
20787
cristy8b350f62009-11-15 23:12:43 +000020788$as_echo "#define INSTALLED_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020789
20790else
20791 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --disable-installed "
20792fi
20793
20794# Permit enciphering and deciphering image pixels.
20795# Check whether --enable-cipher was given.
cristy8b350f62009-11-15 23:12:43 +000020796if test "${enable_cipher+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020797 enableval=$enable_cipher; enable_cipher=$enableval
20798else
20799 enable_cipher='yes'
20800fi
20801
20802
20803if test "$enable_cipher" = 'yes'; then
20804
cristy8b350f62009-11-15 23:12:43 +000020805$as_echo "#define CIPHER_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020806
20807fi
20808
cristy6e3607c2011-09-13 13:59:17 +000020809# Build a zero-configuration version of ImageMagick.
20810# Check whether --enable-zero-configuration was given.
20811if test "${enable_zero_configuration+set}" = set; then :
20812 enableval=$enable_zero_configuration; enable_zero_configuration=$enableval
cristy3ed852e2009-09-05 21:47:34 +000020813else
cristy6e3607c2011-09-13 13:59:17 +000020814 enable_zero_configuration='no'
cristy3ed852e2009-09-05 21:47:34 +000020815fi
20816
20817
cristy6e3607c2011-09-13 13:59:17 +000020818if test "$enable_zero_configuration" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000020819
cristy6e3607c2011-09-13 13:59:17 +000020820$as_echo "#define ZERO_CONFIGURATION_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020821
cristy81af5702011-09-13 14:20:58 +000020822 MAGICK_FEATURES="Zero-Configuration $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020823fi
20824
20825# Build a high dynamic range version of ImageMagick.
20826# Check whether --enable-hdri was given.
cristy8b350f62009-11-15 23:12:43 +000020827if test "${enable_hdri+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020828 enableval=$enable_hdri; enable_hdri=$enableval
20829else
cristy191c0b72012-08-12 16:29:52 +000020830 enable_hdri='yes'
cristy3ed852e2009-09-05 21:47:34 +000020831fi
20832
20833
20834MAGICK_HDRI=""
20835if test "$enable_hdri" = 'yes'; then
20836 MAGICK_HDRI="HDRI"
20837
cristy8b350f62009-11-15 23:12:43 +000020838$as_echo "#define HDRI_SUPPORT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020839
cristyfd9dcd42010-08-08 18:07:02 +000020840 MAGICK_FEATURES="HDRI $MAGICK_FEATURES"
cristy3ed852e2009-09-05 21:47:34 +000020841fi
20842
cristy3ed852e2009-09-05 21:47:34 +000020843# Build a version of ImageMagick with assert statements.
20844# Check whether --enable-assert was given.
cristy8b350f62009-11-15 23:12:43 +000020845if test "${enable_assert+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020846 enableval=$enable_assert; enable_assert=$enableval
20847else
20848 enable_assert='yes'
20849fi
20850
20851
20852if test "$enable_assert" = 'no'; then
20853
cristy8b350f62009-11-15 23:12:43 +000020854$as_echo "#define NDEBUG 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000020855
20856fi
20857
cristya448bd22011-10-14 12:38:13 +000020858# Don't emit "rebuild rules" for configure, Makefile.ins, etc.
cristy73bd4a52010-10-05 11:24:23 +000020859
20860{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
20861$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
20862 # Check whether --enable-maintainer-mode was given.
20863if test "${enable_maintainer_mode+set}" = set; then :
20864 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
20865else
20866 USE_MAINTAINER_MODE=no
20867fi
20868
20869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
20870$as_echo "$USE_MAINTAINER_MODE" >&6; }
20871 if test $USE_MAINTAINER_MODE = yes; then
20872 MAINTAINER_MODE_TRUE=
20873 MAINTAINER_MODE_FALSE='#'
20874else
20875 MAINTAINER_MODE_TRUE='#'
20876 MAINTAINER_MODE_FALSE=
20877fi
20878
20879 MAINT=$MAINTAINER_MODE_TRUE
20880
20881
cristy3ed852e2009-09-05 21:47:34 +000020882
cristy3ed852e2009-09-05 21:47:34 +000020883# Enable ccmalloc memory debugging support
20884# Check whether --enable-ccmalloc was given.
cristy8b350f62009-11-15 23:12:43 +000020885if test "${enable_ccmalloc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020886 enableval=$enable_ccmalloc; enable_ccmalloc=$enableval
20887else
20888 enable_ccmalloc='no'
20889fi
20890
20891
20892# Enable Electric Fence memory debugging support
20893# Check whether --enable-efence was given.
cristy8b350f62009-11-15 23:12:43 +000020894if test "${enable_efence+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020895 enableval=$enable_efence; enable_efence=$enableval
20896else
20897 enable_efence='no'
20898fi
20899
20900
20901# Enable prof-based profiling support
20902# Check whether --enable-prof was given.
cristy8b350f62009-11-15 23:12:43 +000020903if test "${enable_prof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020904 enableval=$enable_prof; enable_prof=$enableval
20905else
20906 enable_prof='no'
20907fi
20908
20909
20910# Enable gprof-based profiling support
20911# Check whether --enable-gprof was given.
cristy8b350f62009-11-15 23:12:43 +000020912if test "${enable_gprof+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020913 enableval=$enable_gprof; enable_gprof=$enableval
20914else
20915 enable_gprof='no'
20916fi
20917
20918
20919# Enable gcov-based profiling support
20920# Check whether --enable-gcov was given.
cristy8b350f62009-11-15 23:12:43 +000020921if test "${enable_gcov+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020922 enableval=$enable_gcov; enable_gcov=$enableval
20923else
20924 enable_gcov='no'
20925fi
20926
20927
20928enable_profiling='no'
20929if test "$enable_prof" = 'yes' || test "$enable_gprof" = 'yes' || test "$enable_gcov" = 'yes'; then
20930 enable_profiling='yes'
20931 if test "$libtool_build_shared_libs" = 'yes'; then
20932 echo "Warning: Can not profile code using shared libraries"
20933 fi
20934fi
20935
20936# Magick API method prefix
20937
20938# Check whether --with-method-prefix was given.
cristy8b350f62009-11-15 23:12:43 +000020939if test "${with_method_prefix+set}" = set; then :
cristyfc3d0222012-02-07 15:05:57 +000020940 withval=$with_method_prefix; with_method_prefix=$withval
cristy3ed852e2009-09-05 21:47:34 +000020941else
cristyfc3d0222012-02-07 15:05:57 +000020942 with_method_prefix='no'
cristy3ed852e2009-09-05 21:47:34 +000020943fi
20944
20945
cristyfc3d0222012-02-07 15:05:57 +000020946if test "$with_method_prefix" != 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000020947
20948cat >>confdefs.h <<_ACEOF
20949#define NAMESPACE_PREFIX $with_method_prefix
20950_ACEOF
20951
cristyfc3d0222012-02-07 15:05:57 +000020952 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-method-prefix "
cristy3ed852e2009-09-05 21:47:34 +000020953fi
20954
cristy71d8c202012-03-20 17:05:01 +000020955# Enable legacy support (default no)
20956# Check whether --enable-legacy-support was given.
20957if test "${enable_legacy_support+set}" = set; then :
20958 enableval=$enable_legacy_support; with_legacy_support=$enableval
20959else
20960 with_legacy_support='no'
20961fi
20962
20963 if test "$with_legacy_support" != 'no'; then
20964 LEGACY_SUPPORT_TRUE=
20965 LEGACY_SUPPORT_FALSE='#'
20966else
20967 LEGACY_SUPPORT_TRUE='#'
20968 LEGACY_SUPPORT_FALSE=
20969fi
20970
20971
cristy3ed852e2009-09-05 21:47:34 +000020972# Number of bits in a Quantum
20973
20974# Check whether --with-quantum-depth was given.
cristy8b350f62009-11-15 23:12:43 +000020975if test "${with_quantum_depth+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000020976 withval=$with_quantum_depth; with_quantum_depth=$withval
20977else
20978 with_quantum_depth=16
20979fi
20980
20981
20982if test "$with_quantum_depth" != '8'; then
20983 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-quantum-depth=$with_quantum_depth "
20984fi
20985
20986case "${with_quantum_depth}" in
20987 8 ) ;;
20988 16 ) ;;
20989 32 ) ;;
20990 64 ) ;;
cristy98dddb52010-11-04 00:30:15 +000020991 * ) as_fn_error 16 "\"Pixel quantum depth must have value of 8" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000020992esac
20993QUANTUM_DEPTH="$with_quantum_depth"
20994
20995cat >>confdefs.h <<_ACEOF
20996#define QUANTUM_DEPTH $QUANTUM_DEPTH
20997_ACEOF
20998
20999
21000# Set pixel cache threshold
21001
21002# Check whether --with-cache was given.
cristy8b350f62009-11-15 23:12:43 +000021003if test "${with_cache+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021004 withval=$with_cache; with_cache=$withval
21005else
21006 with_cache=''
21007fi
21008
21009
21010if test "$with_cache" != ''; then
21011
21012cat >>confdefs.h <<_ACEOF
21013#define PixelCacheThreshold $with_cache
21014_ACEOF
21015
21016 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-cache=$with_cache "
21017fi
21018
21019# Disable/Enable support for full delegate paths
21020
21021# Check whether --with-frozenpaths was given.
cristy8b350f62009-11-15 23:12:43 +000021022if test "${with_frozenpaths+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021023 withval=$with_frozenpaths; with_frozenpaths=$withval
21024else
21025 with_frozenpaths='no'
21026fi
21027
21028
21029# Enable build/install of Magick++
21030
21031# Check whether --with-magick-plus-plus was given.
cristy8b350f62009-11-15 23:12:43 +000021032if test "${with_magick_plus_plus+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021033 withval=$with_magick_plus_plus; with_magick_plus_plus=$withval
21034else
21035 with_magick_plus_plus='yes'
21036fi
21037
21038
cristy3a75f062012-09-08 23:29:40 +000021039# Encode the this name into the shared library.
21040
21041# Check whether --with-package-release-name was given.
21042if test "${with_package_release_name+set}" = set; then :
21043 withval=$with_package_release_name; MAGICK_LT_RELEASE_OPTS="-release $withval"
21044fi
21045
21046
21047
cristy3ed852e2009-09-05 21:47:34 +000021048# Disable build/install of PerlMagick.
21049
21050# Check whether --with-perl was given.
cristy8b350f62009-11-15 23:12:43 +000021051if test "${with_perl+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021052 withval=$with_perl; with_perl=$withval
21053else
cristyb5f4e2f2010-04-25 00:49:11 +000021054 with_perl='no'
cristy3ed852e2009-09-05 21:47:34 +000021055fi
21056
21057
21058# Options to pass when configuring PerlMagick
21059
21060# Check whether --with-perl-options was given.
cristy8b350f62009-11-15 23:12:43 +000021061if test "${with_perl_options+set}" = set; then :
cristy949301e2010-01-06 01:38:40 +000021062 withval=$with_perl_options; PERL_MAKE_OPTIONS=$withval
cristy3ed852e2009-09-05 21:47:34 +000021063fi
21064
21065
cristy3ed852e2009-09-05 21:47:34 +000021066
21067# Enable umem, object-caching memory allocation library.
21068
21069# Check whether --with-umem was given.
cristy8b350f62009-11-15 23:12:43 +000021070if test "${with_umem+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021071 withval=$with_umem; with_umem=$withval
21072else
21073 with_umem='no'
21074fi
21075
21076if test "$with_umem" != 'yes' ; then
21077 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-umem=$with_umem "
21078fi
21079
21080#
21081# Specify path to shared libstdc++ if not in normal location
21082#
21083
21084# Check whether --with-libstdc was given.
cristy8b350f62009-11-15 23:12:43 +000021085if test "${with_libstdc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000021086 withval=$with_libstdc; with_libstdc=$withval
21087else
21088 with_libstdc=''
21089fi
21090
21091
21092if test "$with_libstdc" != ''; then
21093 if test -d "$with_libstdc"; then
21094 LIBSTDCLDFLAGS="-L$with_libstdc"
21095 fi
21096fi
21097
21098
21099# Does gcc required -traditional?
21100if test $ac_cv_c_compiler_gnu = yes; then
cristy8b350f62009-11-15 23:12:43 +000021101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021102$as_echo_n "checking whether $CC needs -traditional... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021103if ${ac_cv_prog_gcc_traditional+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021104 $as_echo_n "(cached) " >&6
21105else
21106 ac_pattern="Autoconf.*'x'"
cristy8b350f62009-11-15 23:12:43 +000021107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021108/* end confdefs.h. */
21109#include <sgtty.h>
21110Autoconf TIOCGETP
21111_ACEOF
21112if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021113 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021114 ac_cv_prog_gcc_traditional=yes
21115else
21116 ac_cv_prog_gcc_traditional=no
21117fi
21118rm -f conftest*
21119
21120
21121 if test $ac_cv_prog_gcc_traditional = no; then
cristy8b350f62009-11-15 23:12:43 +000021122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021123/* end confdefs.h. */
21124#include <termio.h>
21125Autoconf TCGETA
21126_ACEOF
21127if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021128 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021129 ac_cv_prog_gcc_traditional=yes
21130fi
21131rm -f conftest*
21132
21133 fi
21134fi
cristy8b350f62009-11-15 23:12:43 +000021135{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
cristy3ed852e2009-09-05 21:47:34 +000021136$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
21137 if test $ac_cv_prog_gcc_traditional = yes; then
21138 CC="$CC -traditional"
21139 fi
21140fi
21141
21142
21143########
21144#
21145# Set defines required to build DLLs and modules using MinGW
21146#
21147########
21148# These options are set for multi-thread DLL module build
21149# libMagickCore: _DLL _MAGICKMOD_ _MAGICKLIB_
21150# module: _DLL
21151# executable/Magick++: _DLL _MAGICKMOD_
21152MODULE_EXTRA_CPPFLAGS=''
21153LIBRARY_EXTRA_CPPFLAGS=''
21154if test "${native_win32_build}" = 'yes'; then
21155 if test "${libtool_build_shared_libs}" = 'yes'; then
21156 CPPFLAGS="$CPPFLAGS -D_DLL"
21157 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_DLL"
21158 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_DLL"
21159 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKLIB_"
cristyc6722092012-10-14 00:19:31 +000021160 if test "$build_modules" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000021161 LIBRARY_EXTRA_CPPFLAGS="$LIBRARY_EXTRA_CPPFLAGS -D_MAGICKMOD_"
21162 else
21163 MODULE_EXTRA_CPPFLAGS="$MODULE_EXTRA_CPPFLAGS -D_MAGICKLIB_"
21164 fi
21165 else
21166 CPPFLAGS="$CPPFLAGS -D_LIB"
21167 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_LIB"
21168 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_LIB"
21169 fi
21170 if test "$with_threads" = 'yes'; then
21171 CPPFLAGS="$CPPFLAGS -D_MT"
21172 MAGICK_CPPFLAGS="$MAGICK_CPPFLAGS -D_MT"
21173 MAGICK_PCFLAGS="$MAGICK_PCFLAGS -D_MT"
21174 fi
21175fi
21176
21177
21178
21179# Check standard headers
cristy8b350f62009-11-15 23:12:43 +000021180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
cristy3ed852e2009-09-05 21:47:34 +000021181$as_echo_n "checking for ANSI C header files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021182if ${ac_cv_header_stdc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021183 $as_echo_n "(cached) " >&6
21184else
cristy8b350f62009-11-15 23:12:43 +000021185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021186/* end confdefs.h. */
21187#include <stdlib.h>
21188#include <stdarg.h>
21189#include <string.h>
21190#include <float.h>
21191
21192int
21193main ()
21194{
21195
21196 ;
21197 return 0;
21198}
21199_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021200if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021201 ac_cv_header_stdc=yes
21202else
cristy8b350f62009-11-15 23:12:43 +000021203 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021204fi
cristy3ed852e2009-09-05 21:47:34 +000021205rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21206
21207if test $ac_cv_header_stdc = yes; then
21208 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021210/* end confdefs.h. */
21211#include <string.h>
21212
21213_ACEOF
21214if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021215 $EGREP "memchr" >/dev/null 2>&1; then :
21216
cristy3ed852e2009-09-05 21:47:34 +000021217else
21218 ac_cv_header_stdc=no
21219fi
21220rm -f conftest*
21221
21222fi
21223
21224if test $ac_cv_header_stdc = yes; then
21225 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
cristy8b350f62009-11-15 23:12:43 +000021226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021227/* end confdefs.h. */
21228#include <stdlib.h>
21229
21230_ACEOF
21231if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021232 $EGREP "free" >/dev/null 2>&1; then :
21233
cristy3ed852e2009-09-05 21:47:34 +000021234else
21235 ac_cv_header_stdc=no
21236fi
21237rm -f conftest*
21238
21239fi
21240
21241if test $ac_cv_header_stdc = yes; then
21242 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
cristy8b350f62009-11-15 23:12:43 +000021243 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000021244 :
21245else
cristy8b350f62009-11-15 23:12:43 +000021246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021247/* end confdefs.h. */
21248#include <ctype.h>
21249#include <stdlib.h>
21250#if ((' ' & 0x0FF) == 0x020)
21251# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21252# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21253#else
21254# define ISLOWER(c) \
21255 (('a' <= (c) && (c) <= 'i') \
21256 || ('j' <= (c) && (c) <= 'r') \
21257 || ('s' <= (c) && (c) <= 'z'))
21258# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21259#endif
21260
21261#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21262int
21263main ()
21264{
21265 int i;
21266 for (i = 0; i < 256; i++)
21267 if (XOR (islower (i), ISLOWER (i))
21268 || toupper (i) != TOUPPER (i))
21269 return 2;
21270 return 0;
21271}
21272_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021273if ac_fn_c_try_run "$LINENO"; then :
21274
cristy3ed852e2009-09-05 21:47:34 +000021275else
cristy8b350f62009-11-15 23:12:43 +000021276 ac_cv_header_stdc=no
cristy3ed852e2009-09-05 21:47:34 +000021277fi
cristy8b350f62009-11-15 23:12:43 +000021278rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
21279 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021280fi
21281
cristy3ed852e2009-09-05 21:47:34 +000021282fi
21283fi
cristy8b350f62009-11-15 23:12:43 +000021284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
cristy3ed852e2009-09-05 21:47:34 +000021285$as_echo "$ac_cv_header_stdc" >&6; }
21286if test $ac_cv_header_stdc = yes; then
21287
cristy8b350f62009-11-15 23:12:43 +000021288$as_echo "#define STDC_HEADERS 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021289
21290fi
21291
21292if ! test x"$ac_cv_header_stdc" = x"yes"; then
cristy8b350f62009-11-15 23:12:43 +000021293 { $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 +000021294 header files. Compilation cannot proceed. Please install the ANSI C
21295 headers and rerun this script." >&5
21296$as_echo "$as_me: WARNING: configure has detected that you do not have the ANSI standard C
21297 header files. Compilation cannot proceed. Please install the ANSI C
21298 headers and rerun this script." >&2;};
21299fi
cristya0b81c32010-01-22 02:54:33 +000021300
21301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable assertions" >&5
21302$as_echo_n "checking whether to enable assertions... " >&6; }
21303 # Check whether --enable-assert was given.
21304if test "${enable_assert+set}" = set; then :
21305 enableval=$enable_assert; ac_enable_assert=$enableval
21306 if test "x$enableval" = xno; then :
21307
21308$as_echo "#define NDEBUG 1" >>confdefs.h
21309
21310elif test "x$enableval" != xyes; then :
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: invalid argument supplied to --enable-assert" >&5
21312$as_echo "$as_me: WARNING: invalid argument supplied to --enable-assert" >&2;}
21313 ac_enable_assert=yes
21314fi
21315else
21316 ac_enable_assert=yes
21317fi
21318
21319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_enable_assert" >&5
21320$as_echo "$ac_enable_assert" >&6; }
21321
cristy3ed852e2009-09-05 21:47:34 +000021322ac_header_dirent=no
21323for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
21324 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
cristy8b350f62009-11-15 23:12:43 +000021325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
cristy3ed852e2009-09-05 21:47:34 +000021326$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021327if eval \${$as_ac_Header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021328 $as_echo_n "(cached) " >&6
21329else
cristy8b350f62009-11-15 23:12:43 +000021330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021331/* end confdefs.h. */
21332#include <sys/types.h>
21333#include <$ac_hdr>
21334
21335int
21336main ()
21337{
21338if ((DIR *) 0)
21339return 0;
21340 ;
21341 return 0;
21342}
21343_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021344if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021345 eval "$as_ac_Header=yes"
21346else
cristy8b350f62009-11-15 23:12:43 +000021347 eval "$as_ac_Header=no"
cristy3ed852e2009-09-05 21:47:34 +000021348fi
cristy3ed852e2009-09-05 21:47:34 +000021349rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21350fi
cristy8b350f62009-11-15 23:12:43 +000021351eval ac_res=\$$as_ac_Header
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
cristy3ed852e2009-09-05 21:47:34 +000021353$as_echo "$ac_res" >&6; }
cristy98dddb52010-11-04 00:30:15 +000021354if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021355 cat >>confdefs.h <<_ACEOF
21356#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
21357_ACEOF
21358
21359ac_header_dirent=$ac_hdr; break
21360fi
21361
21362done
21363# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
21364if test $ac_header_dirent = dirent.h; then
cristy8b350f62009-11-15 23:12:43 +000021365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021366$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021367if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021368 $as_echo_n "(cached) " >&6
21369else
21370 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021371cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021372/* end confdefs.h. */
21373
21374/* Override any GCC internal prototype to avoid an error.
21375 Use char because int might match the return type of a GCC
21376 builtin and then its argument prototype would still apply. */
21377#ifdef __cplusplus
21378extern "C"
21379#endif
21380char opendir ();
21381int
21382main ()
21383{
21384return opendir ();
21385 ;
21386 return 0;
21387}
21388_ACEOF
21389for ac_lib in '' dir; do
21390 if test -z "$ac_lib"; then
21391 ac_res="none required"
21392 else
21393 ac_res=-l$ac_lib
21394 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21395 fi
cristy8b350f62009-11-15 23:12:43 +000021396 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021397 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021398fi
cristy8b350f62009-11-15 23:12:43 +000021399rm -f core conftest.err conftest.$ac_objext \
21400 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021401 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021402 break
21403fi
21404done
cristyda16f162011-02-19 23:52:17 +000021405if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021406
cristy3ed852e2009-09-05 21:47:34 +000021407else
21408 ac_cv_search_opendir=no
21409fi
21410rm conftest.$ac_ext
21411LIBS=$ac_func_search_save_LIBS
21412fi
cristy8b350f62009-11-15 23:12:43 +000021413{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021414$as_echo "$ac_cv_search_opendir" >&6; }
21415ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021416if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021417 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21418
21419fi
21420
21421else
cristy8b350f62009-11-15 23:12:43 +000021422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021423$as_echo_n "checking for library containing opendir... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021424if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021425 $as_echo_n "(cached) " >&6
21426else
21427 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000021428cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021429/* end confdefs.h. */
21430
21431/* Override any GCC internal prototype to avoid an error.
21432 Use char because int might match the return type of a GCC
21433 builtin and then its argument prototype would still apply. */
21434#ifdef __cplusplus
21435extern "C"
21436#endif
21437char opendir ();
21438int
21439main ()
21440{
21441return opendir ();
21442 ;
21443 return 0;
21444}
21445_ACEOF
21446for ac_lib in '' x; do
21447 if test -z "$ac_lib"; then
21448 ac_res="none required"
21449 else
21450 ac_res=-l$ac_lib
21451 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
21452 fi
cristy8b350f62009-11-15 23:12:43 +000021453 if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021454 ac_cv_search_opendir=$ac_res
cristy3ed852e2009-09-05 21:47:34 +000021455fi
cristy8b350f62009-11-15 23:12:43 +000021456rm -f core conftest.err conftest.$ac_objext \
21457 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000021458 if ${ac_cv_search_opendir+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021459 break
21460fi
21461done
cristyda16f162011-02-19 23:52:17 +000021462if ${ac_cv_search_opendir+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000021463
cristy3ed852e2009-09-05 21:47:34 +000021464else
21465 ac_cv_search_opendir=no
21466fi
21467rm conftest.$ac_ext
21468LIBS=$ac_func_search_save_LIBS
21469fi
cristy8b350f62009-11-15 23:12:43 +000021470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
cristy3ed852e2009-09-05 21:47:34 +000021471$as_echo "$ac_cv_search_opendir" >&6; }
21472ac_res=$ac_cv_search_opendir
cristy8b350f62009-11-15 23:12:43 +000021473if test "$ac_res" != no; then :
cristy3ed852e2009-09-05 21:47:34 +000021474 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21475
21476fi
21477
21478fi
21479
21480
21481# Check additional headers
cristy58945e42012-09-04 14:33:54 +000021482for 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 +000021483do :
21484 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21485ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000021486if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000021487 cat >>confdefs.h <<_ACEOF
21488#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21489_ACEOF
21490
21491fi
21492
21493done
21494
21495
21496########
21497#
21498# Checks for typedefs, structures, and compiler characteristics.
21499#
21500########
21501
cristy8b350f62009-11-15 23:12:43 +000021502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
cristy3ed852e2009-09-05 21:47:34 +000021503$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021504if ${ac_cv_header_stdbool_h+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021505 $as_echo_n "(cached) " >&6
21506else
cristy8b350f62009-11-15 23:12:43 +000021507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021508/* end confdefs.h. */
21509
cristy14fefe52012-05-21 00:59:18 +000021510 #include <stdbool.h>
21511 #ifndef bool
21512 "error: bool is not defined"
21513 #endif
21514 #ifndef false
21515 "error: false is not defined"
21516 #endif
21517 #if false
21518 "error: false is not 0"
21519 #endif
21520 #ifndef true
21521 "error: true is not defined"
21522 #endif
21523 #if true != 1
21524 "error: true is not 1"
21525 #endif
21526 #ifndef __bool_true_false_are_defined
21527 "error: __bool_true_false_are_defined is not defined"
21528 #endif
cristy3ed852e2009-09-05 21:47:34 +000021529
cristy14fefe52012-05-21 00:59:18 +000021530 struct s { _Bool s: 1; _Bool t; } s;
cristy3ed852e2009-09-05 21:47:34 +000021531
cristy14fefe52012-05-21 00:59:18 +000021532 char a[true == 1 ? 1 : -1];
21533 char b[false == 0 ? 1 : -1];
21534 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
21535 char d[(bool) 0.5 == true ? 1 : -1];
21536 /* See body of main program for 'e'. */
21537 char f[(_Bool) 0.0 == false ? 1 : -1];
21538 char g[true];
21539 char h[sizeof (_Bool)];
21540 char i[sizeof s.t];
21541 enum { j = false, k = true, l = false * true, m = true * 256 };
21542 /* The following fails for
21543 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
21544 _Bool n[m];
21545 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
21546 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
21547 /* Catch a bug in an HP-UX C compiler. See
21548 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
21549 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
21550 */
21551 _Bool q = true;
21552 _Bool *pq = &q;
cristy3ed852e2009-09-05 21:47:34 +000021553
21554int
21555main ()
21556{
21557
cristy14fefe52012-05-21 00:59:18 +000021558 bool e = &s;
21559 *pq |= q;
21560 *pq |= ! q;
21561 /* Refer to every declared value, to avoid compiler optimizations. */
21562 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
21563 + !m + !n + !o + !p + !q + !pq);
cristy3ed852e2009-09-05 21:47:34 +000021564
21565 ;
21566 return 0;
21567}
21568_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021569if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021570 ac_cv_header_stdbool_h=yes
21571else
cristy8b350f62009-11-15 23:12:43 +000021572 ac_cv_header_stdbool_h=no
cristy3ed852e2009-09-05 21:47:34 +000021573fi
cristy3ed852e2009-09-05 21:47:34 +000021574rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21575fi
cristy8b350f62009-11-15 23:12:43 +000021576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
cristy3ed852e2009-09-05 21:47:34 +000021577$as_echo "$ac_cv_header_stdbool_h" >&6; }
cristy14fefe52012-05-21 00:59:18 +000021578 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000021579if test "x$ac_cv_type__Bool" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000021580
21581cat >>confdefs.h <<_ACEOF
21582#define HAVE__BOOL 1
21583_ACEOF
21584
21585
21586fi
21587
cristy14fefe52012-05-21 00:59:18 +000021588
cristy3ed852e2009-09-05 21:47:34 +000021589if test $ac_cv_header_stdbool_h = yes; then
21590
cristy8b350f62009-11-15 23:12:43 +000021591$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021592
21593fi
21594
cristy8b350f62009-11-15 23:12:43 +000021595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021596$as_echo_n "checking for working volatile... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021597if ${ac_cv_c_volatile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021598 $as_echo_n "(cached) " >&6
21599else
cristy8b350f62009-11-15 23:12:43 +000021600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021601/* end confdefs.h. */
21602
21603int
21604main ()
21605{
21606
21607volatile int x;
21608int * volatile y = (int *) 0;
21609return !x && !y;
21610 ;
21611 return 0;
21612}
21613_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021614if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021615 ac_cv_c_volatile=yes
21616else
cristy8b350f62009-11-15 23:12:43 +000021617 ac_cv_c_volatile=no
cristy3ed852e2009-09-05 21:47:34 +000021618fi
cristy3ed852e2009-09-05 21:47:34 +000021619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620fi
cristy8b350f62009-11-15 23:12:43 +000021621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
cristy3ed852e2009-09-05 21:47:34 +000021622$as_echo "$ac_cv_c_volatile" >&6; }
21623if test $ac_cv_c_volatile = no; then
21624
cristy8b350f62009-11-15 23:12:43 +000021625$as_echo "#define volatile /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021626
21627fi
21628
cristy8b350f62009-11-15 23:12:43 +000021629{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
cristy3ed852e2009-09-05 21:47:34 +000021630$as_echo_n "checking for preprocessor stringizing operator... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021631if ${ac_cv_c_stringize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021632 $as_echo_n "(cached) " >&6
21633else
cristy8b350f62009-11-15 23:12:43 +000021634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021635/* end confdefs.h. */
21636#define x(y) #y
21637
21638char *s = x(teststring);
21639_ACEOF
21640if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
cristy8b350f62009-11-15 23:12:43 +000021641 $EGREP "#teststring" >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000021642 ac_cv_c_stringize=no
21643else
21644 ac_cv_c_stringize=yes
21645fi
21646rm -f conftest*
21647
21648fi
cristy8b350f62009-11-15 23:12:43 +000021649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
cristy3ed852e2009-09-05 21:47:34 +000021650$as_echo "$ac_cv_c_stringize" >&6; }
21651if test $ac_cv_c_stringize = yes; then
21652
cristy8b350f62009-11-15 23:12:43 +000021653$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021654
21655fi
21656
cristy8b350f62009-11-15 23:12:43 +000021657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stat file-mode macros are broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021658$as_echo_n "checking whether stat file-mode macros are broken... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021659if ${ac_cv_header_stat_broken+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021660 $as_echo_n "(cached) " >&6
21661else
cristy8b350f62009-11-15 23:12:43 +000021662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021663/* end confdefs.h. */
21664#include <sys/types.h>
21665#include <sys/stat.h>
21666
21667#if defined S_ISBLK && defined S_IFDIR
21668extern char c1[S_ISBLK (S_IFDIR) ? -1 : 1];
21669#endif
21670
21671#if defined S_ISBLK && defined S_IFCHR
21672extern char c2[S_ISBLK (S_IFCHR) ? -1 : 1];
21673#endif
21674
21675#if defined S_ISLNK && defined S_IFREG
21676extern char c3[S_ISLNK (S_IFREG) ? -1 : 1];
21677#endif
21678
21679#if defined S_ISSOCK && defined S_IFREG
21680extern char c4[S_ISSOCK (S_IFREG) ? -1 : 1];
21681#endif
21682
21683_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021684if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021685 ac_cv_header_stat_broken=no
21686else
cristy8b350f62009-11-15 23:12:43 +000021687 ac_cv_header_stat_broken=yes
cristy3ed852e2009-09-05 21:47:34 +000021688fi
cristy3ed852e2009-09-05 21:47:34 +000021689rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21690fi
cristy8b350f62009-11-15 23:12:43 +000021691{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stat_broken" >&5
cristy3ed852e2009-09-05 21:47:34 +000021692$as_echo "$ac_cv_header_stat_broken" >&6; }
21693if test $ac_cv_header_stat_broken = yes; then
21694
cristy8b350f62009-11-15 23:12:43 +000021695$as_echo "#define STAT_MACROS_BROKEN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021696
21697fi
21698
cristy8b350f62009-11-15 23:12:43 +000021699{ $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 +000021700$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021701if ${ac_cv_header_time+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021702 $as_echo_n "(cached) " >&6
21703else
cristy8b350f62009-11-15 23:12:43 +000021704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021705/* end confdefs.h. */
21706#include <sys/types.h>
21707#include <sys/time.h>
21708#include <time.h>
21709
21710int
21711main ()
21712{
21713if ((struct tm *) 0)
21714return 0;
21715 ;
21716 return 0;
21717}
21718_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021719if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021720 ac_cv_header_time=yes
21721else
cristy8b350f62009-11-15 23:12:43 +000021722 ac_cv_header_time=no
cristy3ed852e2009-09-05 21:47:34 +000021723fi
cristy3ed852e2009-09-05 21:47:34 +000021724rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725fi
cristy8b350f62009-11-15 23:12:43 +000021726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
cristy3ed852e2009-09-05 21:47:34 +000021727$as_echo "$ac_cv_header_time" >&6; }
21728if test $ac_cv_header_time = yes; then
21729
cristy8b350f62009-11-15 23:12:43 +000021730$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021731
21732fi
21733
cristy8b350f62009-11-15 23:12:43 +000021734{ $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 +000021735$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021736if ${ac_cv_struct_tm+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021737 $as_echo_n "(cached) " >&6
21738else
cristy8b350f62009-11-15 23:12:43 +000021739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021740/* end confdefs.h. */
21741#include <sys/types.h>
21742#include <time.h>
21743
21744int
21745main ()
21746{
21747struct tm tm;
21748 int *p = &tm.tm_sec;
21749 return !p;
21750 ;
21751 return 0;
21752}
21753_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021754if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021755 ac_cv_struct_tm=time.h
21756else
cristy8b350f62009-11-15 23:12:43 +000021757 ac_cv_struct_tm=sys/time.h
cristy3ed852e2009-09-05 21:47:34 +000021758fi
cristy3ed852e2009-09-05 21:47:34 +000021759rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21760fi
cristy8b350f62009-11-15 23:12:43 +000021761{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
cristy3ed852e2009-09-05 21:47:34 +000021762$as_echo "$ac_cv_struct_tm" >&6; }
21763if test $ac_cv_struct_tm = sys/time.h; then
21764
cristy8b350f62009-11-15 23:12:43 +000021765$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021766
21767fi
21768
cristy92703d82010-04-26 00:18:18 +000021769ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
21770#include <$ac_cv_struct_tm>
21771
21772"
cristyda16f162011-02-19 23:52:17 +000021773if test "x$ac_cv_member_struct_tm_tm_zone" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021774
21775cat >>confdefs.h <<_ACEOF
21776#define HAVE_STRUCT_TM_TM_ZONE 1
21777_ACEOF
21778
21779
21780fi
21781
21782if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
21783
21784$as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
21785
21786else
21787 ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
21788"
cristyda16f162011-02-19 23:52:17 +000021789if test "x$ac_cv_have_decl_tzname" = xyes; then :
cristy92703d82010-04-26 00:18:18 +000021790 ac_have_decl=1
21791else
21792 ac_have_decl=0
21793fi
21794
21795cat >>confdefs.h <<_ACEOF
21796#define HAVE_DECL_TZNAME $ac_have_decl
21797_ACEOF
21798
21799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
21800$as_echo_n "checking for tzname... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021801if ${ac_cv_var_tzname+:} false; then :
cristy92703d82010-04-26 00:18:18 +000021802 $as_echo_n "(cached) " >&6
21803else
21804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21805/* end confdefs.h. */
21806#include <time.h>
21807#if !HAVE_DECL_TZNAME
21808extern char *tzname[];
21809#endif
21810
21811int
21812main ()
21813{
21814return tzname[0][0];
21815 ;
21816 return 0;
21817}
21818_ACEOF
21819if ac_fn_c_try_link "$LINENO"; then :
21820 ac_cv_var_tzname=yes
21821else
21822 ac_cv_var_tzname=no
21823fi
21824rm -f core conftest.err conftest.$ac_objext \
21825 conftest$ac_exeext conftest.$ac_ext
21826fi
21827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
21828$as_echo "$ac_cv_var_tzname" >&6; }
21829 if test $ac_cv_var_tzname = yes; then
21830
21831$as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21832
21833 fi
21834fi
21835
cristy8b350f62009-11-15 23:12:43 +000021836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether #! works in shell scripts" >&5
cristy3ed852e2009-09-05 21:47:34 +000021837$as_echo_n "checking whether #! works in shell scripts... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021838if ${ac_cv_sys_interpreter+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021839 $as_echo_n "(cached) " >&6
21840else
21841 echo '#! /bin/cat
21842exit 69
21843' >conftest
21844chmod u+x conftest
21845(SHELL=/bin/sh; export SHELL; ./conftest >/dev/null 2>&1)
21846if test $? -ne 69; then
21847 ac_cv_sys_interpreter=yes
21848else
21849 ac_cv_sys_interpreter=no
21850fi
21851rm -f conftest
21852fi
cristy8b350f62009-11-15 23:12:43 +000021853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_interpreter" >&5
cristy3ed852e2009-09-05 21:47:34 +000021854$as_echo "$ac_cv_sys_interpreter" >&6; }
21855interpval=$ac_cv_sys_interpreter
21856
21857
cristy3ed852e2009-09-05 21:47:34 +000021858# If the C compiler supports the keyword inline, do nothing. Otherwise
21859# define inline to __inline__ or __inline if it accepts one of those,
21860# otherwise define inline to be empty.
cristy8b350f62009-11-15 23:12:43 +000021861{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021862$as_echo_n "checking for inline... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021863if ${ac_cv_c_inline+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021864 $as_echo_n "(cached) " >&6
21865else
21866 ac_cv_c_inline=no
21867for ac_kw in inline __inline__ __inline; do
cristy8b350f62009-11-15 23:12:43 +000021868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021869/* end confdefs.h. */
21870#ifndef __cplusplus
21871typedef int foo_t;
21872static $ac_kw foo_t static_foo () {return 0; }
21873$ac_kw foo_t foo () {return 0; }
21874#endif
21875
21876_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021877if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021878 ac_cv_c_inline=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021879fi
cristy3ed852e2009-09-05 21:47:34 +000021880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21881 test "$ac_cv_c_inline" != no && break
21882done
21883
21884fi
cristy8b350f62009-11-15 23:12:43 +000021885{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
cristy3ed852e2009-09-05 21:47:34 +000021886$as_echo "$ac_cv_c_inline" >&6; }
21887
cristy3ed852e2009-09-05 21:47:34 +000021888case $ac_cv_c_inline in
21889 inline | yes) ;;
21890 *)
21891 case $ac_cv_c_inline in
21892 no) ac_val=;;
21893 *) ac_val=$ac_cv_c_inline;;
21894 esac
21895 cat >>confdefs.h <<_ACEOF
21896#ifndef __cplusplus
21897#define inline $ac_val
21898#endif
21899_ACEOF
21900 ;;
21901esac
21902
21903
21904# If the C compiler supports the keyword restrict, do nothing. Otherwise
21905# define restrict to __restrict__ or __restrict if it accepts one of those,
21906# otherwise define restrict to be empty.
cristy8b350f62009-11-15 23:12:43 +000021907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
cristy3ed852e2009-09-05 21:47:34 +000021908$as_echo_n "checking for C/C++ restrict keyword... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021909if ${ac_cv_c_restrict+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021910 $as_echo_n "(cached) " >&6
21911else
21912 ac_cv_c_restrict=no
21913 # The order here caters to the fact that C++ does not require restrict.
21914 for ac_kw in __restrict __restrict__ _Restrict restrict; do
cristy8b350f62009-11-15 23:12:43 +000021915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021916/* end confdefs.h. */
21917typedef int * int_ptr;
21918 int foo (int_ptr $ac_kw ip) {
21919 return ip[0];
21920 }
21921int
21922main ()
21923{
21924int s[1];
21925 int * $ac_kw t = s;
21926 t[0] = 0;
21927 return foo(t)
21928 ;
21929 return 0;
21930}
21931_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021932if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021933 ac_cv_c_restrict=$ac_kw
cristy3ed852e2009-09-05 21:47:34 +000021934fi
cristy3ed852e2009-09-05 21:47:34 +000021935rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21936 test "$ac_cv_c_restrict" != no && break
21937 done
21938
21939fi
cristy8b350f62009-11-15 23:12:43 +000021940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
cristy3ed852e2009-09-05 21:47:34 +000021941$as_echo "$ac_cv_c_restrict" >&6; }
21942
cristy3ed852e2009-09-05 21:47:34 +000021943 case $ac_cv_c_restrict in
21944 restrict) ;;
cristy8b350f62009-11-15 23:12:43 +000021945 no) $as_echo "#define restrict /**/" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000021946 ;;
21947 *) cat >>confdefs.h <<_ACEOF
21948#define restrict $ac_cv_c_restrict
21949_ACEOF
21950 ;;
21951 esac
21952
21953
21954# If words are stored with the most significant byte first (like
21955# Motorola and SPARC CPUs), define `WORDS_BIGENDIAN'.
cristy8b350f62009-11-15 23:12:43 +000021956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000021957$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
cristyda16f162011-02-19 23:52:17 +000021958if ${ac_cv_c_bigendian+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000021959 $as_echo_n "(cached) " >&6
21960else
21961 ac_cv_c_bigendian=unknown
21962 # See if we're dealing with a universal compiler.
cristy8b350f62009-11-15 23:12:43 +000021963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021964/* end confdefs.h. */
21965#ifndef __APPLE_CC__
21966 not a universal capable compiler
21967 #endif
21968 typedef int dummy;
21969
21970_ACEOF
cristy8b350f62009-11-15 23:12:43 +000021971if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000021972
21973 # Check for potential -arch flags. It is not universal unless
cristy8b350f62009-11-15 23:12:43 +000021974 # there are at least two -arch flags with different values.
21975 ac_arch=
21976 ac_prev=
21977 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
21978 if test -n "$ac_prev"; then
21979 case $ac_word in
21980 i?86 | x86_64 | ppc | ppc64)
21981 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
21982 ac_arch=$ac_word
21983 else
21984 ac_cv_c_bigendian=universal
21985 break
21986 fi
21987 ;;
21988 esac
21989 ac_prev=
21990 elif test "x$ac_word" = "x-arch"; then
21991 ac_prev=arch
21992 fi
21993 done
cristy3ed852e2009-09-05 21:47:34 +000021994fi
cristy3ed852e2009-09-05 21:47:34 +000021995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21996 if test $ac_cv_c_bigendian = unknown; then
21997 # See if sys/param.h defines the BYTE_ORDER macro.
cristy8b350f62009-11-15 23:12:43 +000021998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000021999/* end confdefs.h. */
22000#include <sys/types.h>
22001 #include <sys/param.h>
22002
22003int
22004main ()
22005{
22006#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
22007 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
22008 && LITTLE_ENDIAN)
22009 bogus endian macros
22010 #endif
22011
22012 ;
22013 return 0;
22014}
22015_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022016if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022017 # It does; now see whether it defined to BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022019/* end confdefs.h. */
22020#include <sys/types.h>
22021 #include <sys/param.h>
22022
22023int
22024main ()
22025{
22026#if BYTE_ORDER != BIG_ENDIAN
22027 not big endian
22028 #endif
22029
22030 ;
22031 return 0;
22032}
22033_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022034if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022035 ac_cv_c_bigendian=yes
22036else
cristy8b350f62009-11-15 23:12:43 +000022037 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022038fi
cristy3ed852e2009-09-05 21:47:34 +000022039rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022040fi
cristy3ed852e2009-09-05 21:47:34 +000022041rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22042 fi
22043 if test $ac_cv_c_bigendian = unknown; then
22044 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
cristy8b350f62009-11-15 23:12:43 +000022045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022046/* end confdefs.h. */
22047#include <limits.h>
22048
22049int
22050main ()
22051{
22052#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
22053 bogus endian macros
22054 #endif
22055
22056 ;
22057 return 0;
22058}
22059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022060if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022061 # It does; now see whether it defined to _BIG_ENDIAN or not.
cristy8b350f62009-11-15 23:12:43 +000022062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022063/* end confdefs.h. */
22064#include <limits.h>
22065
22066int
22067main ()
22068{
22069#ifndef _BIG_ENDIAN
22070 not big endian
22071 #endif
22072
22073 ;
22074 return 0;
22075}
22076_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022077if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022078 ac_cv_c_bigendian=yes
22079else
cristy8b350f62009-11-15 23:12:43 +000022080 ac_cv_c_bigendian=no
cristy3ed852e2009-09-05 21:47:34 +000022081fi
cristy3ed852e2009-09-05 21:47:34 +000022082rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022083fi
cristy3ed852e2009-09-05 21:47:34 +000022084rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22085 fi
22086 if test $ac_cv_c_bigendian = unknown; then
22087 # Compile a test program.
cristy8b350f62009-11-15 23:12:43 +000022088 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000022089 # Try to guess by grepping values from an object file.
cristy8b350f62009-11-15 23:12:43 +000022090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022091/* end confdefs.h. */
22092short int ascii_mm[] =
22093 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
22094 short int ascii_ii[] =
22095 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
22096 int use_ascii (int i) {
22097 return ascii_mm[i] + ascii_ii[i];
22098 }
22099 short int ebcdic_ii[] =
22100 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
22101 short int ebcdic_mm[] =
22102 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
22103 int use_ebcdic (int i) {
22104 return ebcdic_mm[i] + ebcdic_ii[i];
22105 }
22106 extern int foo;
22107
22108int
22109main ()
22110{
22111return use_ascii (foo) == use_ebcdic (foo);
22112 ;
22113 return 0;
22114}
22115_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022116if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022117 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
22118 ac_cv_c_bigendian=yes
22119 fi
22120 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
22121 if test "$ac_cv_c_bigendian" = unknown; then
22122 ac_cv_c_bigendian=no
22123 else
22124 # finding both strings is unlikely to happen, but who knows?
22125 ac_cv_c_bigendian=unknown
22126 fi
22127 fi
cristy3ed852e2009-09-05 21:47:34 +000022128fi
cristy3ed852e2009-09-05 21:47:34 +000022129rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22130else
cristy8b350f62009-11-15 23:12:43 +000022131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022132/* end confdefs.h. */
22133$ac_includes_default
22134int
22135main ()
22136{
22137
22138 /* Are we little or big endian? From Harbison&Steele. */
22139 union
22140 {
22141 long int l;
22142 char c[sizeof (long int)];
22143 } u;
22144 u.l = 1;
22145 return u.c[sizeof (long int) - 1] == 1;
22146
22147 ;
22148 return 0;
22149}
22150_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022151if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022152 ac_cv_c_bigendian=no
22153else
cristy8b350f62009-11-15 23:12:43 +000022154 ac_cv_c_bigendian=yes
cristy3ed852e2009-09-05 21:47:34 +000022155fi
cristy8b350f62009-11-15 23:12:43 +000022156rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22157 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022158fi
22159
cristy3ed852e2009-09-05 21:47:34 +000022160 fi
22161fi
cristy8b350f62009-11-15 23:12:43 +000022162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
cristy3ed852e2009-09-05 21:47:34 +000022163$as_echo "$ac_cv_c_bigendian" >&6; }
22164 case $ac_cv_c_bigendian in #(
22165 yes)
cristy8b350f62009-11-15 23:12:43 +000022166 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022167;; #(
22168 no)
22169 ;; #(
22170 universal)
22171
cristy8b350f62009-11-15 23:12:43 +000022172$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022173
22174 ;; #(
22175 *)
cristy98dddb52010-11-04 00:30:15 +000022176 as_fn_error $? "unknown endianness
cristy8b350f62009-11-15 23:12:43 +000022177 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000022178 esac
22179
22180
cristy501c8042011-05-26 17:46:28 +000022181# Define to a suitable type, if standard headers do not define it.
22182ac_fn_c_find_intX_t "$LINENO" "8" "ac_cv_c_int8_t"
22183case $ac_cv_c_int8_t in #(
22184 no|yes) ;; #(
22185 *)
cristy3ed852e2009-09-05 21:47:34 +000022186
22187cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022188#define int8_t $ac_cv_c_int8_t
22189_ACEOF
22190;;
22191esac
22192
22193ac_fn_c_find_intX_t "$LINENO" "16" "ac_cv_c_int16_t"
22194case $ac_cv_c_int16_t in #(
22195 no|yes) ;; #(
22196 *)
22197
22198cat >>confdefs.h <<_ACEOF
22199#define int16_t $ac_cv_c_int16_t
22200_ACEOF
22201;;
22202esac
22203
22204ac_fn_c_find_intX_t "$LINENO" "32" "ac_cv_c_int32_t"
22205case $ac_cv_c_int32_t in #(
22206 no|yes) ;; #(
22207 *)
22208
22209cat >>confdefs.h <<_ACEOF
22210#define int32_t $ac_cv_c_int32_t
22211_ACEOF
22212;;
22213esac
22214
22215ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
22216case $ac_cv_c_int64_t in #(
22217 no|yes) ;; #(
22218 *)
22219
22220cat >>confdefs.h <<_ACEOF
22221#define int64_t $ac_cv_c_int64_t
22222_ACEOF
22223;;
22224esac
22225
22226
22227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22228$as_echo_n "checking for long long int... " >&6; }
22229if ${ac_cv_type_long_long_int+:} false; then :
22230 $as_echo_n "(cached) " >&6
22231else
22232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22233/* end confdefs.h. */
22234
22235 /* For now, do not test the preprocessor; as of 2007 there are too many
22236 implementations with broken preprocessors. Perhaps this can
22237 be revisited in 2012. In the meantime, code should not expect
22238 #if to work with literals wider than 32 bits. */
22239 /* Test literals. */
22240 long long int ll = 9223372036854775807ll;
22241 long long int nll = -9223372036854775807LL;
22242 unsigned long long int ull = 18446744073709551615ULL;
22243 /* Test constant expressions. */
22244 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22245 ? 1 : -1)];
22246 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22247 ? 1 : -1)];
22248 int i = 63;
22249int
22250main ()
22251{
22252/* Test availability of runtime routines for shift and division. */
22253 long long int llmax = 9223372036854775807ll;
22254 unsigned long long int ullmax = 18446744073709551615ull;
22255 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22256 | (llmax / ll) | (llmax % ll)
22257 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22258 | (ullmax / ull) | (ullmax % ull));
22259 ;
22260 return 0;
22261}
22262
22263_ACEOF
22264if ac_fn_c_try_link "$LINENO"; then :
22265 if test "$cross_compiling" = yes; then :
22266 ac_cv_type_long_long_int=yes
22267else
22268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269/* end confdefs.h. */
22270#include <limits.h>
22271 #ifndef LLONG_MAX
22272 # define HALF \
22273 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22274 # define LLONG_MAX (HALF - 1 + HALF)
22275 #endif
22276int
22277main ()
22278{
22279long long int n = 1;
22280 int i;
22281 for (i = 0; ; i++)
22282 {
22283 long long int m = n << i;
22284 if (m >> i != n)
22285 return 1;
22286 if (LLONG_MAX / 2 < m)
22287 break;
22288 }
22289 return 0;
22290 ;
22291 return 0;
22292}
22293_ACEOF
22294if ac_fn_c_try_run "$LINENO"; then :
22295 ac_cv_type_long_long_int=yes
22296else
22297 ac_cv_type_long_long_int=no
22298fi
22299rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22300 conftest.$ac_objext conftest.beam conftest.$ac_ext
22301fi
22302
22303else
22304 ac_cv_type_long_long_int=no
22305fi
22306rm -f core conftest.err conftest.$ac_objext \
22307 conftest$ac_exeext conftest.$ac_ext
22308fi
22309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22310$as_echo "$ac_cv_type_long_long_int" >&6; }
22311 if test $ac_cv_type_long_long_int = yes; then
22312
22313$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22314
22315 fi
22316
22317
22318
22319 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
22320if test "x$ac_cv_type_intmax_t" = xyes; then :
22321
22322$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h
22323
22324else
22325 test $ac_cv_type_long_long_int = yes \
22326 && ac_type='long long int' \
22327 || ac_type='long int'
22328
22329cat >>confdefs.h <<_ACEOF
22330#define intmax_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022331_ACEOF
22332
22333fi
22334
22335
cristy501c8042011-05-26 17:46:28 +000022336
22337 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
22338if test "x$ac_cv_type_intptr_t" = xyes; then :
22339
22340$as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022341
cristy3ed852e2009-09-05 21:47:34 +000022342else
cristy501c8042011-05-26 17:46:28 +000022343 for ac_type in 'int' 'long int' 'long long int'; do
22344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22345/* end confdefs.h. */
22346$ac_includes_default
22347int
22348main ()
22349{
22350static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022351test_array [0] = 0;
22352return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022353
22354 ;
22355 return 0;
22356}
22357_ACEOF
22358if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022359
22360cat >>confdefs.h <<_ACEOF
cristy501c8042011-05-26 17:46:28 +000022361#define intptr_t $ac_type
cristy3ed852e2009-09-05 21:47:34 +000022362_ACEOF
22363
cristy501c8042011-05-26 17:46:28 +000022364 ac_type=
22365fi
22366rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22367 test -z "$ac_type" && break
22368 done
cristy3ed852e2009-09-05 21:47:34 +000022369fi
22370
22371
cristy3ed852e2009-09-05 21:47:34 +000022372
cristy501c8042011-05-26 17:46:28 +000022373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double" >&5
22374$as_echo_n "checking for long double... " >&6; }
22375if ${ac_cv_type_long_double+:} false; then :
22376 $as_echo_n "(cached) " >&6
cristy3ed852e2009-09-05 21:47:34 +000022377else
cristy501c8042011-05-26 17:46:28 +000022378 if test "$GCC" = yes; then
22379 ac_cv_type_long_double=yes
22380 else
22381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22382/* end confdefs.h. */
22383/* The Stardent Vistra knows sizeof (long double), but does
22384 not support it. */
22385 long double foo = 0.0L;
22386int
22387main ()
22388{
22389static int test_array [1 - 2 * !(/* On Ultrix 4.3 cc, long double is 4 and double is 8. */
22390 sizeof (double) <= sizeof (long double))];
cristy14fefe52012-05-21 00:59:18 +000022391test_array [0] = 0;
22392return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022393
cristy501c8042011-05-26 17:46:28 +000022394 ;
22395 return 0;
22396}
cristy3ed852e2009-09-05 21:47:34 +000022397_ACEOF
cristy501c8042011-05-26 17:46:28 +000022398if ac_fn_c_try_compile "$LINENO"; then :
22399 ac_cv_type_long_double=yes
cristy3ed852e2009-09-05 21:47:34 +000022400else
cristy501c8042011-05-26 17:46:28 +000022401 ac_cv_type_long_double=no
cristy3ed852e2009-09-05 21:47:34 +000022402fi
cristy501c8042011-05-26 17:46:28 +000022403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22404 fi
cristy3ed852e2009-09-05 21:47:34 +000022405fi
cristy501c8042011-05-26 17:46:28 +000022406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double" >&5
22407$as_echo "$ac_cv_type_long_double" >&6; }
22408 if test $ac_cv_type_long_double = yes; then
cristy3ed852e2009-09-05 21:47:34 +000022409
cristy501c8042011-05-26 17:46:28 +000022410$as_echo "#define HAVE_LONG_DOUBLE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022411
cristy501c8042011-05-26 17:46:28 +000022412 fi
22413
cristy3ed852e2009-09-05 21:47:34 +000022414
cristy8b350f62009-11-15 23:12:43 +000022415 { $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 +000022416$as_echo_n "checking for long double with more range or precision than double... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022417if ${ac_cv_type_long_double_wider+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022418 $as_echo_n "(cached) " >&6
22419else
cristy8b350f62009-11-15 23:12:43 +000022420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022421/* end confdefs.h. */
22422#include <float.h>
22423 long double const a[] =
22424 {
22425 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON,
22426 LDBL_MIN, LDBL_MAX, LDBL_EPSILON
22427 };
22428 long double
22429 f (long double x)
22430 {
22431 return ((x + (unsigned long int) 10) * (-1 / x) + a[0]
22432 + (x ? f (x) : 'c'));
22433 }
22434
22435int
22436main ()
22437{
22438static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP)
22439 + (DBL_MANT_DIG < LDBL_MANT_DIG)
22440 - (LDBL_MAX_EXP < DBL_MAX_EXP)
22441 - (LDBL_MANT_DIG < DBL_MANT_DIG)))
22442 && (int) LDBL_EPSILON == 0
22443 )];
cristy14fefe52012-05-21 00:59:18 +000022444test_array [0] = 0;
22445return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022446
22447 ;
22448 return 0;
22449}
22450_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022451if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022452 ac_cv_type_long_double_wider=yes
22453else
cristy8b350f62009-11-15 23:12:43 +000022454 ac_cv_type_long_double_wider=no
cristy3ed852e2009-09-05 21:47:34 +000022455fi
cristy3ed852e2009-09-05 21:47:34 +000022456rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22457fi
cristy8b350f62009-11-15 23:12:43 +000022458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5
cristy3ed852e2009-09-05 21:47:34 +000022459$as_echo "$ac_cv_type_long_double_wider" >&6; }
22460 if test $ac_cv_type_long_double_wider = yes; then
22461
cristy8b350f62009-11-15 23:12:43 +000022462$as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022463
22464 fi
22465
22466
cristy501c8042011-05-26 17:46:28 +000022467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5
22468$as_echo_n "checking for long long int... " >&6; }
22469if ${ac_cv_type_long_long_int+:} false; then :
22470 $as_echo_n "(cached) " >&6
22471else
22472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22473/* end confdefs.h. */
22474
22475 /* For now, do not test the preprocessor; as of 2007 there are too many
22476 implementations with broken preprocessors. Perhaps this can
22477 be revisited in 2012. In the meantime, code should not expect
22478 #if to work with literals wider than 32 bits. */
22479 /* Test literals. */
22480 long long int ll = 9223372036854775807ll;
22481 long long int nll = -9223372036854775807LL;
22482 unsigned long long int ull = 18446744073709551615ULL;
22483 /* Test constant expressions. */
22484 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22485 ? 1 : -1)];
22486 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22487 ? 1 : -1)];
22488 int i = 63;
22489int
22490main ()
22491{
22492/* Test availability of runtime routines for shift and division. */
22493 long long int llmax = 9223372036854775807ll;
22494 unsigned long long int ullmax = 18446744073709551615ull;
22495 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22496 | (llmax / ll) | (llmax % ll)
22497 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22498 | (ullmax / ull) | (ullmax % ull));
22499 ;
22500 return 0;
22501}
22502
22503_ACEOF
22504if ac_fn_c_try_link "$LINENO"; then :
22505 if test "$cross_compiling" = yes; then :
22506 ac_cv_type_long_long_int=yes
22507else
22508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509/* end confdefs.h. */
22510#include <limits.h>
22511 #ifndef LLONG_MAX
22512 # define HALF \
22513 (1LL << (sizeof (long long int) * CHAR_BIT - 2))
22514 # define LLONG_MAX (HALF - 1 + HALF)
22515 #endif
22516int
22517main ()
22518{
22519long long int n = 1;
22520 int i;
22521 for (i = 0; ; i++)
22522 {
22523 long long int m = n << i;
22524 if (m >> i != n)
22525 return 1;
22526 if (LLONG_MAX / 2 < m)
22527 break;
22528 }
22529 return 0;
22530 ;
22531 return 0;
22532}
22533_ACEOF
22534if ac_fn_c_try_run "$LINENO"; then :
22535 ac_cv_type_long_long_int=yes
22536else
22537 ac_cv_type_long_long_int=no
22538fi
22539rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
22540 conftest.$ac_objext conftest.beam conftest.$ac_ext
22541fi
22542
22543else
22544 ac_cv_type_long_long_int=no
22545fi
22546rm -f core conftest.err conftest.$ac_objext \
22547 conftest$ac_exeext conftest.$ac_ext
22548fi
22549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5
22550$as_echo "$ac_cv_type_long_long_int" >&6; }
22551 if test $ac_cv_type_long_long_int = yes; then
22552
22553$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h
22554
22555 fi
22556
22557{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for mbstate_t" >&5
22558$as_echo_n "checking for mbstate_t... " >&6; }
22559if ${ac_cv_type_mbstate_t+:} false; then :
22560 $as_echo_n "(cached) " >&6
22561else
22562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22563/* end confdefs.h. */
22564$ac_includes_default
22565# include <wchar.h>
22566int
22567main ()
22568{
22569mbstate_t x; return sizeof x;
22570 ;
22571 return 0;
22572}
22573_ACEOF
22574if ac_fn_c_try_compile "$LINENO"; then :
22575 ac_cv_type_mbstate_t=yes
22576else
22577 ac_cv_type_mbstate_t=no
22578fi
22579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22580fi
22581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_mbstate_t" >&5
22582$as_echo "$ac_cv_type_mbstate_t" >&6; }
22583 if test $ac_cv_type_mbstate_t = yes; then
22584
22585$as_echo "#define HAVE_MBSTATE_T 1" >>confdefs.h
22586
22587 else
22588
22589$as_echo "#define mbstate_t int" >>confdefs.h
22590
22591 fi
22592ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
22593if test "x$ac_cv_type_mode_t" = xyes; then :
22594
22595else
22596
22597cat >>confdefs.h <<_ACEOF
22598#define mode_t int
22599_ACEOF
22600
22601fi
22602
22603ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
22604if test "x$ac_cv_type_off_t" = xyes; then :
22605
22606else
22607
22608cat >>confdefs.h <<_ACEOF
22609#define off_t long int
22610_ACEOF
22611
22612fi
22613
22614ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
22615if test "x$ac_cv_type_pid_t" = xyes; then :
22616
22617else
22618
22619cat >>confdefs.h <<_ACEOF
22620#define pid_t int
22621_ACEOF
22622
22623fi
22624
22625ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
22626if test "x$ac_cv_type_size_t" = xyes; then :
22627
22628else
22629
22630cat >>confdefs.h <<_ACEOF
22631#define size_t unsigned int
22632_ACEOF
22633
22634fi
22635
22636ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
22637if test "x$ac_cv_type_ssize_t" = xyes; then :
22638
22639else
22640
22641cat >>confdefs.h <<_ACEOF
22642#define ssize_t int
22643_ACEOF
22644
22645fi
22646
22647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
22648$as_echo_n "checking for uid_t in sys/types.h... " >&6; }
22649if ${ac_cv_type_uid_t+:} false; then :
22650 $as_echo_n "(cached) " >&6
22651else
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653/* end confdefs.h. */
22654#include <sys/types.h>
22655
22656_ACEOF
22657if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22658 $EGREP "uid_t" >/dev/null 2>&1; then :
22659 ac_cv_type_uid_t=yes
22660else
22661 ac_cv_type_uid_t=no
22662fi
22663rm -f conftest*
22664
22665fi
22666{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
22667$as_echo "$ac_cv_type_uid_t" >&6; }
22668if test $ac_cv_type_uid_t = no; then
22669
22670$as_echo "#define uid_t int" >>confdefs.h
22671
22672
22673$as_echo "#define gid_t int" >>confdefs.h
22674
22675fi
22676
22677ac_fn_c_find_uintX_t "$LINENO" "8" "ac_cv_c_uint8_t"
22678case $ac_cv_c_uint8_t in #(
22679 no|yes) ;; #(
22680 *)
22681
22682$as_echo "#define _UINT8_T 1" >>confdefs.h
22683
22684
22685cat >>confdefs.h <<_ACEOF
22686#define uint8_t $ac_cv_c_uint8_t
22687_ACEOF
22688;;
22689 esac
22690
22691ac_fn_c_find_uintX_t "$LINENO" "16" "ac_cv_c_uint16_t"
22692case $ac_cv_c_uint16_t in #(
22693 no|yes) ;; #(
22694 *)
22695
22696
22697cat >>confdefs.h <<_ACEOF
22698#define uint16_t $ac_cv_c_uint16_t
22699_ACEOF
22700;;
22701 esac
22702
22703ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
22704case $ac_cv_c_uint32_t in #(
22705 no|yes) ;; #(
22706 *)
22707
22708$as_echo "#define _UINT32_T 1" >>confdefs.h
22709
22710
22711cat >>confdefs.h <<_ACEOF
22712#define uint32_t $ac_cv_c_uint32_t
22713_ACEOF
22714;;
22715 esac
22716
22717ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
22718case $ac_cv_c_uint64_t in #(
22719 no|yes) ;; #(
22720 *)
22721
22722$as_echo "#define _UINT64_T 1" >>confdefs.h
22723
22724
22725cat >>confdefs.h <<_ACEOF
22726#define uint64_t $ac_cv_c_uint64_t
22727_ACEOF
22728;;
22729 esac
22730
22731
22732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22733$as_echo_n "checking for unsigned long long int... " >&6; }
22734if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22735 $as_echo_n "(cached) " >&6
22736else
22737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22738/* end confdefs.h. */
22739
22740 /* For now, do not test the preprocessor; as of 2007 there are too many
22741 implementations with broken preprocessors. Perhaps this can
22742 be revisited in 2012. In the meantime, code should not expect
22743 #if to work with literals wider than 32 bits. */
22744 /* Test literals. */
22745 long long int ll = 9223372036854775807ll;
22746 long long int nll = -9223372036854775807LL;
22747 unsigned long long int ull = 18446744073709551615ULL;
22748 /* Test constant expressions. */
22749 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22750 ? 1 : -1)];
22751 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22752 ? 1 : -1)];
22753 int i = 63;
22754int
22755main ()
22756{
22757/* Test availability of runtime routines for shift and division. */
22758 long long int llmax = 9223372036854775807ll;
22759 unsigned long long int ullmax = 18446744073709551615ull;
22760 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22761 | (llmax / ll) | (llmax % ll)
22762 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22763 | (ullmax / ull) | (ullmax % ull));
22764 ;
22765 return 0;
22766}
22767
22768_ACEOF
22769if ac_fn_c_try_link "$LINENO"; then :
22770 ac_cv_type_unsigned_long_long_int=yes
22771else
22772 ac_cv_type_unsigned_long_long_int=no
22773fi
22774rm -f core conftest.err conftest.$ac_objext \
22775 conftest$ac_exeext conftest.$ac_ext
22776fi
22777{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22778$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22779 if test $ac_cv_type_unsigned_long_long_int = yes; then
22780
22781$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22782
22783 fi
22784
22785
22786
22787 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "$ac_includes_default"
22788if test "x$ac_cv_type_uintmax_t" = xyes; then :
22789
22790$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h
22791
22792else
22793 test $ac_cv_type_unsigned_long_long_int = yes \
22794 && ac_type='unsigned long long int' \
22795 || ac_type='unsigned long int'
22796
22797cat >>confdefs.h <<_ACEOF
22798#define uintmax_t $ac_type
22799_ACEOF
22800
22801fi
22802
22803
22804
22805 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
22806if test "x$ac_cv_type_uintptr_t" = xyes; then :
22807
22808$as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
22809
22810else
22811 for ac_type in 'unsigned int' 'unsigned long int' \
22812 'unsigned long long int'; do
22813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22814/* end confdefs.h. */
22815$ac_includes_default
22816int
22817main ()
22818{
22819static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
cristy14fefe52012-05-21 00:59:18 +000022820test_array [0] = 0;
22821return test_array [0];
cristy501c8042011-05-26 17:46:28 +000022822
22823 ;
22824 return 0;
22825}
22826_ACEOF
22827if ac_fn_c_try_compile "$LINENO"; then :
22828
22829cat >>confdefs.h <<_ACEOF
22830#define uintptr_t $ac_type
22831_ACEOF
22832
22833 ac_type=
22834fi
22835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22836 test -z "$ac_type" && break
22837 done
22838fi
22839
22840
22841
22842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5
22843$as_echo_n "checking for unsigned long long int... " >&6; }
22844if ${ac_cv_type_unsigned_long_long_int+:} false; then :
22845 $as_echo_n "(cached) " >&6
22846else
22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848/* end confdefs.h. */
22849
22850 /* For now, do not test the preprocessor; as of 2007 there are too many
22851 implementations with broken preprocessors. Perhaps this can
22852 be revisited in 2012. In the meantime, code should not expect
22853 #if to work with literals wider than 32 bits. */
22854 /* Test literals. */
22855 long long int ll = 9223372036854775807ll;
22856 long long int nll = -9223372036854775807LL;
22857 unsigned long long int ull = 18446744073709551615ULL;
22858 /* Test constant expressions. */
22859 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll)
22860 ? 1 : -1)];
22861 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1
22862 ? 1 : -1)];
22863 int i = 63;
22864int
22865main ()
22866{
22867/* Test availability of runtime routines for shift and division. */
22868 long long int llmax = 9223372036854775807ll;
22869 unsigned long long int ullmax = 18446744073709551615ull;
22870 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i)
22871 | (llmax / ll) | (llmax % ll)
22872 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i)
22873 | (ullmax / ull) | (ullmax % ull));
22874 ;
22875 return 0;
22876}
22877
22878_ACEOF
22879if ac_fn_c_try_link "$LINENO"; then :
22880 ac_cv_type_unsigned_long_long_int=yes
22881else
22882 ac_cv_type_unsigned_long_long_int=no
22883fi
22884rm -f core conftest.err conftest.$ac_objext \
22885 conftest$ac_exeext conftest.$ac_ext
22886fi
22887{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5
22888$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; }
22889 if test $ac_cv_type_unsigned_long_long_int = yes; then
22890
22891$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h
22892
22893 fi
22894
22895
cristy3ed852e2009-09-05 21:47:34 +000022896# If the C type char is unsigned, define __CHAR_UNSIGNED__, unless the
22897# C compiler predefines it.
cristy8b350f62009-11-15 23:12:43 +000022898{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether char is unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022899$as_echo_n "checking whether char is unsigned... " >&6; }
cristyda16f162011-02-19 23:52:17 +000022900if ${ac_cv_c_char_unsigned+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000022901 $as_echo_n "(cached) " >&6
22902else
cristy8b350f62009-11-15 23:12:43 +000022903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000022904/* end confdefs.h. */
22905$ac_includes_default
22906int
22907main ()
22908{
22909static int test_array [1 - 2 * !(((char) -1) < 0)];
cristy14fefe52012-05-21 00:59:18 +000022910test_array [0] = 0;
22911return test_array [0];
cristy3ed852e2009-09-05 21:47:34 +000022912
22913 ;
22914 return 0;
22915}
22916_ACEOF
cristy8b350f62009-11-15 23:12:43 +000022917if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000022918 ac_cv_c_char_unsigned=no
22919else
cristy8b350f62009-11-15 23:12:43 +000022920 ac_cv_c_char_unsigned=yes
cristy3ed852e2009-09-05 21:47:34 +000022921fi
cristy3ed852e2009-09-05 21:47:34 +000022922rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22923fi
cristy8b350f62009-11-15 23:12:43 +000022924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_char_unsigned" >&5
cristy3ed852e2009-09-05 21:47:34 +000022925$as_echo "$ac_cv_c_char_unsigned" >&6; }
22926if test $ac_cv_c_char_unsigned = yes && test "$GCC" != yes; then
cristy8b350f62009-11-15 23:12:43 +000022927 $as_echo "#define __CHAR_UNSIGNED__ 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000022928
22929fi
22930
22931
cristy9b86f202012-11-28 21:55:35 +000022932# Float_t and double_t are intended to be the the most efficient type.
cristyf0cf9a22012-10-24 12:05:01 +000022933ac_fn_c_check_type "$LINENO" "float_t" "ac_cv_type_float_t" "#include <math.h>
22934"
22935if test "x$ac_cv_type_float_t" = xyes; then :
22936
22937cat >>confdefs.h <<_ACEOF
22938#define HAVE_FLOAT_T 1
22939_ACEOF
22940
22941
22942fi
22943
22944ac_fn_c_check_type "$LINENO" "double_t" "ac_cv_type_double_t" "#include <math.h>
22945"
22946if test "x$ac_cv_type_double_t" = xyes; then :
22947
22948cat >>confdefs.h <<_ACEOF
22949#define HAVE_DOUBLE_T 1
22950_ACEOF
22951
22952
22953fi
22954
cristy9b86f202012-11-28 21:55:35 +000022955# The cast to long int works around a bug in the HP C Compiler
22956# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22957# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22958# This bug is HP SR number 8606223364.
22959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float_t" >&5
22960$as_echo_n "checking size of float_t... " >&6; }
22961if ${ac_cv_sizeof_float_t+:} false; then :
22962 $as_echo_n "(cached) " >&6
22963else
22964 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float_t))" "ac_cv_sizeof_float_t" "#include <math.h>
22965"; then :
22966
22967else
22968 if test "$ac_cv_type_float_t" = yes; then
22969 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22970$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22971as_fn_error 77 "cannot compute sizeof (float_t)
22972See \`config.log' for more details" "$LINENO" 5; }
22973 else
22974 ac_cv_sizeof_float_t=0
22975 fi
22976fi
22977
22978fi
22979{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float_t" >&5
22980$as_echo "$ac_cv_sizeof_float_t" >&6; }
22981
22982
22983
22984cat >>confdefs.h <<_ACEOF
22985#define SIZEOF_FLOAT_T $ac_cv_sizeof_float_t
22986_ACEOF
22987
22988
22989# The cast to long int works around a bug in the HP C Compiler
22990# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22991# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22992# This bug is HP SR number 8606223364.
22993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double_t" >&5
22994$as_echo_n "checking size of double_t... " >&6; }
22995if ${ac_cv_sizeof_double_t+:} false; then :
22996 $as_echo_n "(cached) " >&6
22997else
22998 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double_t))" "ac_cv_sizeof_double_t" "#include <math.h>
22999"; then :
23000
23001else
23002 if test "$ac_cv_type_double_t" = yes; then
23003 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23004$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23005as_fn_error 77 "cannot compute sizeof (double_t)
23006See \`config.log' for more details" "$LINENO" 5; }
23007 else
23008 ac_cv_sizeof_double_t=0
23009 fi
23010fi
23011
23012fi
23013{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double_t" >&5
23014$as_echo "$ac_cv_sizeof_double_t" >&6; }
23015
23016
23017
23018cat >>confdefs.h <<_ACEOF
23019#define SIZEOF_DOUBLE_T $ac_cv_sizeof_double_t
23020_ACEOF
23021
23022
23023
23024# Get size of float, double and long double for comparaison.
23025# The cast to long int works around a bug in the HP C Compiler
23026# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23027# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23028# This bug is HP SR number 8606223364.
23029{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of float" >&5
23030$as_echo_n "checking size of float... " >&6; }
23031if ${ac_cv_sizeof_float+:} false; then :
23032 $as_echo_n "(cached) " >&6
23033else
23034 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (float))" "ac_cv_sizeof_float" "$ac_includes_default"; then :
23035
23036else
23037 if test "$ac_cv_type_float" = yes; then
23038 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23039$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23040as_fn_error 77 "cannot compute sizeof (float)
23041See \`config.log' for more details" "$LINENO" 5; }
23042 else
23043 ac_cv_sizeof_float=0
23044 fi
23045fi
23046
23047fi
23048{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_float" >&5
23049$as_echo "$ac_cv_sizeof_float" >&6; }
23050
23051
23052
23053cat >>confdefs.h <<_ACEOF
23054#define SIZEOF_FLOAT $ac_cv_sizeof_float
23055_ACEOF
23056
23057
23058# The cast to long int works around a bug in the HP C Compiler
23059# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23060# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23061# This bug is HP SR number 8606223364.
23062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of double" >&5
23063$as_echo_n "checking size of double... " >&6; }
23064if ${ac_cv_sizeof_double+:} false; then :
23065 $as_echo_n "(cached) " >&6
23066else
23067 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (double))" "ac_cv_sizeof_double" "$ac_includes_default"; then :
23068
23069else
23070 if test "$ac_cv_type_double" = yes; then
23071 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23072$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23073as_fn_error 77 "cannot compute sizeof (double)
23074See \`config.log' for more details" "$LINENO" 5; }
23075 else
23076 ac_cv_sizeof_double=0
23077 fi
23078fi
23079
23080fi
23081{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_double" >&5
23082$as_echo "$ac_cv_sizeof_double" >&6; }
23083
23084
23085
23086cat >>confdefs.h <<_ACEOF
23087#define SIZEOF_DOUBLE $ac_cv_sizeof_double
23088_ACEOF
23089
23090
23091# The cast to long int works around a bug in the HP C Compiler
23092# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23093# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23094# This bug is HP SR number 8606223364.
23095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long double" >&5
23096$as_echo_n "checking size of long double... " >&6; }
23097if ${ac_cv_sizeof_long_double+:} false; then :
23098 $as_echo_n "(cached) " >&6
23099else
23100 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long double))" "ac_cv_sizeof_long_double" "$ac_includes_default"; then :
23101
23102else
23103 if test "$ac_cv_type_long_double" = yes; then
23104 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23106as_fn_error 77 "cannot compute sizeof (long double)
23107See \`config.log' for more details" "$LINENO" 5; }
23108 else
23109 ac_cv_sizeof_long_double=0
23110 fi
23111fi
23112
23113fi
23114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_double" >&5
23115$as_echo "$ac_cv_sizeof_long_double" >&6; }
23116
23117
23118
23119cat >>confdefs.h <<_ACEOF
23120#define SIZEOF_LONG_DOUBLE $ac_cv_sizeof_long_double
23121_ACEOF
23122
23123
cristyf0cf9a22012-10-24 12:05:01 +000023124
cristy3ed852e2009-09-05 21:47:34 +000023125# Obtain size of an 'signed short' and define as SIZEOF_SIGNED_SHORT
23126# The cast to long int works around a bug in the HP C Compiler
23127# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23128# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23129# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023131$as_echo_n "checking size of signed short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023132if ${ac_cv_sizeof_signed_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023133 $as_echo_n "(cached) " >&6
23134else
cristy8b350f62009-11-15 23:12:43 +000023135 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 +000023136
cristy3ed852e2009-09-05 21:47:34 +000023137else
cristy8b350f62009-11-15 23:12:43 +000023138 if test "$ac_cv_type_signed_short" = yes; then
23139 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023140$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023141as_fn_error 77 "cannot compute sizeof (signed short)
23142See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023143 else
23144 ac_cv_sizeof_signed_short=0
23145 fi
23146fi
cristy8b350f62009-11-15 23:12:43 +000023147
cristy3ed852e2009-09-05 21:47:34 +000023148fi
cristy8b350f62009-11-15 23:12:43 +000023149{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023150$as_echo "$ac_cv_sizeof_signed_short" >&6; }
23151
23152
23153
23154cat >>confdefs.h <<_ACEOF
23155#define SIZEOF_SIGNED_SHORT $ac_cv_sizeof_signed_short
23156_ACEOF
23157
23158
23159
23160# Obtain size of an 'unsigned short' and define as SIZEOF_UNSIGNED_SHORT
23161# The cast to long int works around a bug in the HP C Compiler
23162# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23163# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23164# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023166$as_echo_n "checking size of unsigned short... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023167if ${ac_cv_sizeof_unsigned_short+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023168 $as_echo_n "(cached) " >&6
23169else
cristy8b350f62009-11-15 23:12:43 +000023170 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 +000023171
cristy3ed852e2009-09-05 21:47:34 +000023172else
cristy8b350f62009-11-15 23:12:43 +000023173 if test "$ac_cv_type_unsigned_short" = yes; then
23174 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023176as_fn_error 77 "cannot compute sizeof (unsigned short)
23177See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023178 else
23179 ac_cv_sizeof_unsigned_short=0
23180 fi
23181fi
cristy8b350f62009-11-15 23:12:43 +000023182
cristy3ed852e2009-09-05 21:47:34 +000023183fi
cristy8b350f62009-11-15 23:12:43 +000023184{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
cristy3ed852e2009-09-05 21:47:34 +000023185$as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
23186
23187
23188
23189cat >>confdefs.h <<_ACEOF
23190#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
23191_ACEOF
23192
23193
23194
23195# Obtain size of an 'signed int' and define as SIZEOF_SIGNED_INT
23196# The cast to long int works around a bug in the HP C Compiler
23197# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23198# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23199# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023201$as_echo_n "checking size of signed int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023202if ${ac_cv_sizeof_signed_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023203 $as_echo_n "(cached) " >&6
23204else
cristy8b350f62009-11-15 23:12:43 +000023205 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 +000023206
cristy3ed852e2009-09-05 21:47:34 +000023207else
cristy8b350f62009-11-15 23:12:43 +000023208 if test "$ac_cv_type_signed_int" = yes; then
23209 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023210$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023211as_fn_error 77 "cannot compute sizeof (signed int)
23212See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023213 else
23214 ac_cv_sizeof_signed_int=0
23215 fi
23216fi
cristy8b350f62009-11-15 23:12:43 +000023217
cristy3ed852e2009-09-05 21:47:34 +000023218fi
cristy8b350f62009-11-15 23:12:43 +000023219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023220$as_echo "$ac_cv_sizeof_signed_int" >&6; }
23221
23222
23223
23224cat >>confdefs.h <<_ACEOF
23225#define SIZEOF_SIGNED_INT $ac_cv_sizeof_signed_int
23226_ACEOF
23227
23228
23229
23230# Obtain size of an 'unsigned int' and define as SIZEOF_UNSIGNED_INT
23231# The cast to long int works around a bug in the HP C Compiler
23232# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23233# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23234# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023236$as_echo_n "checking size of unsigned int... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023237if ${ac_cv_sizeof_unsigned_int+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023238 $as_echo_n "(cached) " >&6
23239else
cristy8b350f62009-11-15 23:12:43 +000023240 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 +000023241
cristy3ed852e2009-09-05 21:47:34 +000023242else
cristy8b350f62009-11-15 23:12:43 +000023243 if test "$ac_cv_type_unsigned_int" = yes; then
23244 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023245$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023246as_fn_error 77 "cannot compute sizeof (unsigned int)
23247See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023248 else
23249 ac_cv_sizeof_unsigned_int=0
23250 fi
23251fi
cristy8b350f62009-11-15 23:12:43 +000023252
cristy3ed852e2009-09-05 21:47:34 +000023253fi
cristy8b350f62009-11-15 23:12:43 +000023254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_int" >&5
cristy3ed852e2009-09-05 21:47:34 +000023255$as_echo "$ac_cv_sizeof_unsigned_int" >&6; }
23256
23257
23258
23259cat >>confdefs.h <<_ACEOF
23260#define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23261_ACEOF
23262
23263
23264
23265# Obtain size of a 'signed long' and define as SIZEOF_SIGNED_LONG
23266# The cast to long int works around a bug in the HP C Compiler
23267# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23268# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23269# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023271$as_echo_n "checking size of signed long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023272if ${ac_cv_sizeof_signed_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023273 $as_echo_n "(cached) " >&6
23274else
cristy8b350f62009-11-15 23:12:43 +000023275 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 +000023276
cristy3ed852e2009-09-05 21:47:34 +000023277else
cristy8b350f62009-11-15 23:12:43 +000023278 if test "$ac_cv_type_signed_long" = yes; then
23279 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023280$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023281as_fn_error 77 "cannot compute sizeof (signed long)
23282See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023283 else
23284 ac_cv_sizeof_signed_long=0
23285 fi
23286fi
cristy8b350f62009-11-15 23:12:43 +000023287
cristy3ed852e2009-09-05 21:47:34 +000023288fi
cristy8b350f62009-11-15 23:12:43 +000023289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023290$as_echo "$ac_cv_sizeof_signed_long" >&6; }
23291
23292
23293
23294cat >>confdefs.h <<_ACEOF
23295#define SIZEOF_SIGNED_LONG $ac_cv_sizeof_signed_long
23296_ACEOF
23297
23298
23299
23300# Obtain size of a 'unsigned long' and define as SIZEOF_UNSIGNED_LONG
23301# The cast to long int works around a bug in the HP C Compiler
23302# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23303# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23304# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023306$as_echo_n "checking size of unsigned long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023307if ${ac_cv_sizeof_unsigned_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023308 $as_echo_n "(cached) " >&6
23309else
cristy8b350f62009-11-15 23:12:43 +000023310 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 +000023311
cristy3ed852e2009-09-05 21:47:34 +000023312else
cristy8b350f62009-11-15 23:12:43 +000023313 if test "$ac_cv_type_unsigned_long" = yes; then
23314 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023315$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023316as_fn_error 77 "cannot compute sizeof (unsigned long)
23317See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023318 else
23319 ac_cv_sizeof_unsigned_long=0
23320 fi
23321fi
cristy8b350f62009-11-15 23:12:43 +000023322
cristy3ed852e2009-09-05 21:47:34 +000023323fi
cristy8b350f62009-11-15 23:12:43 +000023324{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023325$as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
23326
23327
23328
23329cat >>confdefs.h <<_ACEOF
23330#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
23331_ACEOF
23332
23333
23334
23335# Obtain size of a 'long long' and define as SIZEOF_SIGNED_LONG_LONG. If
23336# 'signed long long' is not supported then the value defined is zero.
23337# The cast to long int works around a bug in the HP C Compiler
23338# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23339# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23340# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023341{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of signed long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023342$as_echo_n "checking size of signed long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023343if ${ac_cv_sizeof_signed_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023344 $as_echo_n "(cached) " >&6
23345else
cristy8b350f62009-11-15 23:12:43 +000023346 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 +000023347
cristy3ed852e2009-09-05 21:47:34 +000023348else
cristy8b350f62009-11-15 23:12:43 +000023349 if test "$ac_cv_type_signed_long_long" = yes; then
23350 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023351$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023352as_fn_error 77 "cannot compute sizeof (signed long long)
23353See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023354 else
23355 ac_cv_sizeof_signed_long_long=0
23356 fi
23357fi
cristy8b350f62009-11-15 23:12:43 +000023358
cristy3ed852e2009-09-05 21:47:34 +000023359fi
cristy8b350f62009-11-15 23:12:43 +000023360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_signed_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023361$as_echo "$ac_cv_sizeof_signed_long_long" >&6; }
23362
23363
23364
23365cat >>confdefs.h <<_ACEOF
23366#define SIZEOF_SIGNED_LONG_LONG $ac_cv_sizeof_signed_long_long
23367_ACEOF
23368
23369
23370
23371# Obtain size of a 'unsigned long long' and define as
23372# SIZEOF_UNSIGNED_LONG_LONG. If 'unsigned long long' is not
23373# supported then the value defined is zero.
23374# The cast to long int works around a bug in the HP C Compiler
23375# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23376# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23377# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023379$as_echo_n "checking size of unsigned long long... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023380if ${ac_cv_sizeof_unsigned_long_long+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023381 $as_echo_n "(cached) " >&6
23382else
cristy8b350f62009-11-15 23:12:43 +000023383 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 +000023384
cristy3ed852e2009-09-05 21:47:34 +000023385else
cristy8b350f62009-11-15 23:12:43 +000023386 if test "$ac_cv_type_unsigned_long_long" = yes; then
23387 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023388$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023389as_fn_error 77 "cannot compute sizeof (unsigned long long)
23390See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023391 else
23392 ac_cv_sizeof_unsigned_long_long=0
23393 fi
23394fi
cristy8b350f62009-11-15 23:12:43 +000023395
cristy3ed852e2009-09-05 21:47:34 +000023396fi
cristy8b350f62009-11-15 23:12:43 +000023397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long_long" >&5
cristy3ed852e2009-09-05 21:47:34 +000023398$as_echo "$ac_cv_sizeof_unsigned_long_long" >&6; }
23399
23400
23401
23402cat >>confdefs.h <<_ACEOF
23403#define SIZEOF_UNSIGNED_LONG_LONG $ac_cv_sizeof_unsigned_long_long
23404_ACEOF
23405
23406
23407
23408# Obtain size of off_t and define as SIZEOF_OFF_T
23409# The cast to long int works around a bug in the HP C Compiler
23410# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23411# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23412# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023414$as_echo_n "checking size of off_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023415if ${ac_cv_sizeof_off_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023416 $as_echo_n "(cached) " >&6
23417else
cristy8b350f62009-11-15 23:12:43 +000023418 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 +000023419
cristy3ed852e2009-09-05 21:47:34 +000023420else
cristy8b350f62009-11-15 23:12:43 +000023421 if test "$ac_cv_type_off_t" = yes; then
23422 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023424as_fn_error 77 "cannot compute sizeof (off_t)
23425See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023426 else
23427 ac_cv_sizeof_off_t=0
23428 fi
23429fi
cristy8b350f62009-11-15 23:12:43 +000023430
cristy3ed852e2009-09-05 21:47:34 +000023431fi
cristy8b350f62009-11-15 23:12:43 +000023432{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023433$as_echo "$ac_cv_sizeof_off_t" >&6; }
23434
23435
23436
23437cat >>confdefs.h <<_ACEOF
23438#define SIZEOF_OFF_T $ac_cv_sizeof_off_t
23439_ACEOF
23440
23441
23442
23443# Obtain size of size_t and define as SIZEOF_SIZE_T
23444# The cast to long int works around a bug in the HP C Compiler
23445# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23446# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23447# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023448{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023449$as_echo_n "checking size of size_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023450if ${ac_cv_sizeof_size_t+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023451 $as_echo_n "(cached) " >&6
23452else
cristy8b350f62009-11-15 23:12:43 +000023453 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 +000023454
cristy3ed852e2009-09-05 21:47:34 +000023455else
cristy8b350f62009-11-15 23:12:43 +000023456 if test "$ac_cv_type_size_t" = yes; then
23457 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023458$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023459as_fn_error 77 "cannot compute sizeof (size_t)
23460See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023461 else
23462 ac_cv_sizeof_size_t=0
23463 fi
23464fi
cristy8b350f62009-11-15 23:12:43 +000023465
cristy3ed852e2009-09-05 21:47:34 +000023466fi
cristy8b350f62009-11-15 23:12:43 +000023467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
cristy3ed852e2009-09-05 21:47:34 +000023468$as_echo "$ac_cv_sizeof_size_t" >&6; }
23469
23470
23471
23472cat >>confdefs.h <<_ACEOF
23473#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
23474_ACEOF
23475
23476
23477
cristy330e9352010-06-01 18:42:49 +000023478# Obtain size of ssize_t and define as SIZEOF_SSIZE_T
23479# The cast to long int works around a bug in the HP C Compiler
23480# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23481# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23482# This bug is HP SR number 8606223364.
23483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of ssize_t" >&5
23484$as_echo_n "checking size of ssize_t... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023485if ${ac_cv_sizeof_ssize_t+:} false; then :
cristy330e9352010-06-01 18:42:49 +000023486 $as_echo_n "(cached) " >&6
23487else
23488 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (ssize_t))" "ac_cv_sizeof_ssize_t" "$ac_includes_default"; then :
23489
23490else
23491 if test "$ac_cv_type_ssize_t" = yes; then
23492 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23493$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023494as_fn_error 77 "cannot compute sizeof (ssize_t)
23495See \`config.log' for more details" "$LINENO" 5; }
cristy330e9352010-06-01 18:42:49 +000023496 else
23497 ac_cv_sizeof_ssize_t=0
23498 fi
23499fi
23500
23501fi
23502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_ssize_t" >&5
23503$as_echo "$ac_cv_sizeof_ssize_t" >&6; }
23504
23505
23506
23507cat >>confdefs.h <<_ACEOF
23508#define SIZEOF_SSIZE_T $ac_cv_sizeof_ssize_t
23509_ACEOF
23510
23511
23512
cristy3ed852e2009-09-05 21:47:34 +000023513# Obtain size of an unsigned int pointer and define as SIZEOF_UNSIGNED_INTP
23514# The cast to long int works around a bug in the HP C Compiler
23515# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23516# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23517# This bug is HP SR number 8606223364.
cristy8b350f62009-11-15 23:12:43 +000023518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned int*" >&5
cristy3ed852e2009-09-05 21:47:34 +000023519$as_echo_n "checking size of unsigned int*... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023520if ${ac_cv_sizeof_unsigned_intp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023521 $as_echo_n "(cached) " >&6
23522else
cristy8b350f62009-11-15 23:12:43 +000023523 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 +000023524
cristy3ed852e2009-09-05 21:47:34 +000023525else
cristy8b350f62009-11-15 23:12:43 +000023526 if test "$ac_cv_type_unsigned_intp" = yes; then
23527 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
cristy3ed852e2009-09-05 21:47:34 +000023528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
cristy98dddb52010-11-04 00:30:15 +000023529as_fn_error 77 "cannot compute sizeof (unsigned int*)
23530See \`config.log' for more details" "$LINENO" 5; }
cristy3ed852e2009-09-05 21:47:34 +000023531 else
23532 ac_cv_sizeof_unsigned_intp=0
23533 fi
23534fi
cristy8b350f62009-11-15 23:12:43 +000023535
cristy3ed852e2009-09-05 21:47:34 +000023536fi
cristy8b350f62009-11-15 23:12:43 +000023537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_intp" >&5
cristy3ed852e2009-09-05 21:47:34 +000023538$as_echo "$ac_cv_sizeof_unsigned_intp" >&6; }
23539
23540
23541
23542cat >>confdefs.h <<_ACEOF
23543#define SIZEOF_UNSIGNED_INTP $ac_cv_sizeof_unsigned_intp
23544_ACEOF
23545
23546
23547
23548#
23549# Compute sized types for current CPU and compiler options.
23550#
23551
cristy8b350f62009-11-15 23:12:43 +000023552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023553$as_echo_n "checking for signed 8-bit type... " >&6; }
23554INT8_T='signed char'
cristy09b53e12011-10-14 12:47:22 +000023555{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT8_T" >&5
23556$as_echo "$as_me: $INT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023557
23558
cristy8b350f62009-11-15 23:12:43 +000023559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 8-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023560$as_echo_n "checking for unsigned 8-bit type... " >&6; }
23561UINT8_T='unsigned char'
cristy09b53e12011-10-14 12:47:22 +000023562{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT8_T" >&5
23563$as_echo "$as_me: $UINT8_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023564
23565
cristy8b350f62009-11-15 23:12:43 +000023566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023567$as_echo_n "checking for signed 16-bit type... " >&6; }
23568INT16_T='signed short'
cristy09b53e12011-10-14 12:47:22 +000023569{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT16_T" >&5
23570$as_echo "$as_me: $INT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023571
23572
cristy8b350f62009-11-15 23:12:43 +000023573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 16-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023574$as_echo_n "checking for unsigned 16-bit type... " >&6; }
23575UINT16_T='unsigned short'
cristy09b53e12011-10-14 12:47:22 +000023576{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT16_T" >&5
23577$as_echo "$as_me: $UINT16_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023578
23579
cristy8b350f62009-11-15 23:12:43 +000023580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023581$as_echo_n "checking for signed 32-bit type... " >&6; }
23582INT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023583INT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023584if test $ac_cv_sizeof_signed_int -eq 4; then
23585 INT32_T='signed int'
cristy6d5e20f2011-04-25 13:48:54 +000023586 INT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023587elif test $ac_cv_sizeof_signed_long -eq 4; then
23588 INT32_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023589 INT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023590fi
cristy09b53e12011-10-14 12:47:22 +000023591{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT32_T" >&5
23592$as_echo "$as_me: $INT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023593
23594
cristy6d5e20f2011-04-25 13:48:54 +000023595
cristy8b350f62009-11-15 23:12:43 +000023596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 32-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023597$as_echo_n "checking for unsigned 32-bit type... " >&6; }
23598UINT32_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023599UINT32_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023600if test $ac_cv_sizeof_unsigned_int -eq 4; then
23601 UINT32_T='unsigned int'
cristy6d5e20f2011-04-25 13:48:54 +000023602 UINT32_F='""'
cristy3ed852e2009-09-05 21:47:34 +000023603elif test $ac_cv_sizeof_unsigned_long -eq 4; then
23604 UINT32_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023605 UINT32_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023606fi
cristy09b53e12011-10-14 12:47:22 +000023607{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT32_T" >&5
23608$as_echo "$as_me: $UINT32_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023609
23610
cristy6d5e20f2011-04-25 13:48:54 +000023611
cristy8b350f62009-11-15 23:12:43 +000023612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for signed 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023613$as_echo_n "checking for signed 64-bit type... " >&6; }
23614INT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023615INT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023616if test $ac_cv_sizeof_signed_long -eq 8; then
23617 INT64_T='signed long'
cristy6d5e20f2011-04-25 13:48:54 +000023618 INT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023619elif test $ac_cv_sizeof_signed_long_long -eq 8; then
23620 INT64_T='signed long long'
cristy6d5e20f2011-04-25 13:48:54 +000023621 INT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023622fi
cristy3a99dcf2011-12-17 01:29:40 +000023623case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023624 mingw* )
23625 INT64_F='"I64"'
23626 ;;
23627esac
cristy09b53e12011-10-14 12:47:22 +000023628{ $as_echo "$as_me:${as_lineno-$LINENO}: $INT64_T" >&5
23629$as_echo "$as_me: $INT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023630
23631
cristy6d5e20f2011-04-25 13:48:54 +000023632
cristy8b350f62009-11-15 23:12:43 +000023633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned 64-bit type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023634$as_echo_n "checking for unsigned 64-bit type... " >&6; }
23635UINT64_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023636UINT64_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023637if test $ac_cv_sizeof_unsigned_long -eq 8; then
23638 UINT64_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023639 UINT64_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023640elif test $ac_cv_sizeof_unsigned_long_long -eq 8; then
23641 UINT64_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023642 UINT64_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023643fi
cristy3a99dcf2011-12-17 01:29:40 +000023644case "${host_os}" in
cristy6d5e20f2011-04-25 13:48:54 +000023645 mingw* )
23646 UINT64_F='"I64"'
23647 ;;
23648esac
cristy09b53e12011-10-14 12:47:22 +000023649{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINT64_T" >&5
23650$as_echo "$as_me: $UINT64_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023651
23652
cristy6d5e20f2011-04-25 13:48:54 +000023653
cristy8b350f62009-11-15 23:12:43 +000023654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned maximum type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023655$as_echo_n "checking for unsigned maximum type... " >&6; }
23656UINTMAX_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023657UINTMAX_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023658if test "$UINT64_T" != 'none'; then
23659 UINTMAX_T=$UINT64_T
cristy6d5e20f2011-04-25 13:48:54 +000023660 UINTMAX_F=$UINT64_F
cristy3ed852e2009-09-05 21:47:34 +000023661elif test "$UINT32_T" != 'none'; then
23662 UINTMAX_T=$UINT32_T
cristy6d5e20f2011-04-25 13:48:54 +000023663 UINTMAX_F=$UINT32_F
cristy3ed852e2009-09-05 21:47:34 +000023664fi
cristy09b53e12011-10-14 12:47:22 +000023665{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTMAX_T" >&5
23666$as_echo "$as_me: $UINTMAX_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023667
23668
cristy6d5e20f2011-04-25 13:48:54 +000023669
cristy8b350f62009-11-15 23:12:43 +000023670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pointer difference type" >&5
cristy3ed852e2009-09-05 21:47:34 +000023671$as_echo_n "checking for pointer difference type... " >&6; }
23672UINTPTR_T='none'
cristy6d5e20f2011-04-25 13:48:54 +000023673UINTPTR_F='none'
cristy3ed852e2009-09-05 21:47:34 +000023674if test $ac_cv_sizeof_unsigned_long -eq $ac_cv_sizeof_unsigned_intp; then
23675 UINTPTR_T='unsigned long'
cristy6d5e20f2011-04-25 13:48:54 +000023676 UINTPTR_F='"l"'
cristy3ed852e2009-09-05 21:47:34 +000023677elif test $ac_cv_sizeof_unsigned_long_long -eq $ac_cv_sizeof_unsigned_intp; then
23678 UINTPTR_T='unsigned long long'
cristy6d5e20f2011-04-25 13:48:54 +000023679 UINTPTR_F='"ll"'
cristy3ed852e2009-09-05 21:47:34 +000023680fi
cristy09b53e12011-10-14 12:47:22 +000023681{ $as_echo "$as_me:${as_lineno-$LINENO}: $UINTPTR_T" >&5
23682$as_echo "$as_me: $UINTPTR_T" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023683
23684
cristy6d5e20f2011-04-25 13:48:54 +000023685
cristy8b350f62009-11-15 23:12:43 +000023686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __func__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023687$as_echo_n "checking whether our compiler supports __func__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023688cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023689/* end confdefs.h. */
23690
23691int
23692main ()
23693{
23694{ const char *func = __func__; return(func != 0 ? 0 : 1); }
23695 ;
23696 return 0;
23697}
23698_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023699if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023700 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23701$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023702else
cristy09b53e12011-10-14 12:47:22 +000023703 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23704$as_echo "$as_me: no" >&6;}
cristy8b350f62009-11-15 23:12:43 +000023705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether our compiler supports __FUNCTION__" >&5
cristy3ed852e2009-09-05 21:47:34 +000023706$as_echo_n "checking whether our compiler supports __FUNCTION__... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000023707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023708/* end confdefs.h. */
23709
23710int
23711main ()
23712{
23713{ const char *func = __FUNCTION__; return(func != 0 ? 0 : 1); }
23714 ;
23715 return 0;
23716}
23717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023718if ac_fn_c_try_compile "$LINENO"; then :
cristy09b53e12011-10-14 12:47:22 +000023719 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
23720$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023721
cristy8b350f62009-11-15 23:12:43 +000023722$as_echo "#define __func__ __FUNCTION__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023723
23724else
cristy09b53e12011-10-14 12:47:22 +000023725 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
23726$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000023727
cristy8b350f62009-11-15 23:12:43 +000023728$as_echo "#define __func__ __FILE__" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023729
23730fi
cristy3ed852e2009-09-05 21:47:34 +000023731rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23732fi
cristy3ed852e2009-09-05 21:47:34 +000023733rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23734
23735########
23736#
23737# Check for functions
23738#
23739########
cristy73bd4a52010-10-05 11:24:23 +000023740for ac_header in stdlib.h unistd.h
23741do :
23742 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23743ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000023744if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy73bd4a52010-10-05 11:24:23 +000023745 cat >>confdefs.h <<_ACEOF
23746#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23747_ACEOF
23748
23749fi
23750
23751done
23752
23753for ac_func in getpagesize
23754do :
23755 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023756if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy73bd4a52010-10-05 11:24:23 +000023757 cat >>confdefs.h <<_ACEOF
23758#define HAVE_GETPAGESIZE 1
23759_ACEOF
23760
23761fi
23762done
23763
23764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap file i/o" >&5
23765$as_echo_n "checking for working mmap file i/o... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023766if ${magick_cv_func_mmap_fileio+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000023767 $as_echo_n "(cached) " >&6
23768else
23769 if test "$cross_compiling" = yes; then :
23770 magick_cv_func_mmap_fileio=no
23771else
23772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23773/* end confdefs.h. */
23774$ac_includes_default
23775/* malloc might have been renamed as rpl_malloc. */
23776#undef malloc
23777
23778/*
23779 This test is derived from GNU Autoconf's similar macro.
23780 The purpose of this test is to verify that files may be memory
23781 mapped, and that memory mapping and file I/O are coherent.
23782
23783 The test creates a test file, memory maps the file, updates
23784 the file using the memory map, and then reads the file using
23785 file I/O to verify that the file contains the updates.
23786*/
23787
23788#include <fcntl.h>
23789#include <sys/mman.h>
23790
23791#if !STDC_HEADERS && !HAVE_STDLIB_H
23792char *malloc ();
23793#endif
23794
23795/* This mess was copied from the GNU getpagesize.h. */
23796#if !HAVE_GETPAGESIZE
23797/* Assume that all systems that can run configure have sys/param.h. */
23798# if !HAVE_SYS_PARAM_H
23799# define HAVE_SYS_PARAM_H 1
23800# endif
23801
23802# ifdef _SC_PAGESIZE
23803# define getpagesize() sysconf(_SC_PAGESIZE)
23804# else /* no _SC_PAGESIZE */
23805# if HAVE_SYS_PARAM_H
23806# include <sys/param.h>
23807# ifdef EXEC_PAGESIZE
23808# define getpagesize() EXEC_PAGESIZE
23809# else /* no EXEC_PAGESIZE */
23810# ifdef NBPG
23811# define getpagesize() NBPG * CLSIZE
23812# ifndef CLSIZE
23813# define CLSIZE 1
23814# endif /* no CLSIZE */
23815# else /* no NBPG */
23816# ifdef NBPC
23817# define getpagesize() NBPC
23818# else /* no NBPC */
23819# ifdef PAGESIZE
23820# define getpagesize() PAGESIZE
23821# endif /* PAGESIZE */
23822# endif /* no NBPC */
23823# endif /* no NBPG */
23824# endif /* no EXEC_PAGESIZE */
23825# else /* no HAVE_SYS_PARAM_H */
23826# define getpagesize() 8192 /* punt totally */
23827# endif /* no HAVE_SYS_PARAM_H */
23828# endif /* no _SC_PAGESIZE */
23829
23830#endif /* no HAVE_GETPAGESIZE */
23831
23832int
23833main ()
23834{
23835 char *data, *data2, *data3;
23836 int i, pagesize;
23837 int fd;
23838
23839 pagesize = getpagesize ();
23840
23841 /* First, make a file with some known garbage in it. */
23842 data = (char *) malloc (pagesize);
23843 if (!data)
23844 exit (1);
23845 for (i = 0; i < pagesize; ++i)
23846 *(data + i) = rand ();
23847 umask (0);
23848 fd = creat ("conftest.mmap", 0600);
23849 if (fd < 0)
23850 exit (1);
23851 if (write (fd, data, pagesize) != pagesize)
23852 exit (1);
23853 close (fd);
23854
23855 /* Mmap the file as read/write/shared and verify that we see the
23856 same garbage. */
23857 fd = open ("conftest.mmap", O_RDWR);
23858 if (fd < 0)
23859 exit (1);
23860 data2 = mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0L);
23861 if (data2 == 0)
23862 exit (1);
23863 for (i = 0; i < pagesize; ++i)
23864 if (*(data + i) != *(data2 + i))
23865 exit (1);
23866
23867 /* Finally, make sure that changes to the mapped area
23868 percolate back to the file as seen by read(). */
23869 for (i = 0; i < pagesize; ++i)
23870 *(data2 + i) = *(data2 + i) + 1;
23871 data3 = (char *) malloc (pagesize);
23872 if (!data3)
23873 exit (1);
23874 if (read (fd, data3, pagesize) != pagesize)
23875 exit (1);
23876 for (i = 0; i < pagesize; ++i)
23877 if (*(data2 + i) != *(data3 + i))
23878 exit (1);
23879 close (fd);
23880 exit (0);
23881}
23882_ACEOF
23883if ac_fn_c_try_run "$LINENO"; then :
23884 magick_cv_func_mmap_fileio=yes
23885else
23886 magick_cv_func_mmap_fileio=no
23887fi
23888rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23889 conftest.$ac_objext conftest.beam conftest.$ac_ext
23890fi
23891
23892fi
23893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $magick_cv_func_mmap_fileio" >&5
23894$as_echo "$magick_cv_func_mmap_fileio" >&6; }
23895if test $magick_cv_func_mmap_fileio = yes; then
23896
23897$as_echo "#define HAVE_MMAP_FILEIO 1" >>confdefs.h
23898
23899fi
23900rm -f conftest.mmap
23901
cristy8b350f62009-11-15 23:12:43 +000023902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether closedir returns void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023903$as_echo_n "checking whether closedir returns void... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023904if ${ac_cv_func_closedir_void+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023905 $as_echo_n "(cached) " >&6
23906else
cristy8b350f62009-11-15 23:12:43 +000023907 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023908 ac_cv_func_closedir_void=yes
23909else
cristy8b350f62009-11-15 23:12:43 +000023910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023911/* end confdefs.h. */
23912$ac_includes_default
23913#include <$ac_header_dirent>
23914#ifndef __cplusplus
23915int closedir ();
23916#endif
23917
23918int
23919main ()
23920{
23921return closedir (opendir (".")) != 0;
23922 ;
23923 return 0;
23924}
23925_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023926if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000023927 ac_cv_func_closedir_void=no
23928else
cristy8b350f62009-11-15 23:12:43 +000023929 ac_cv_func_closedir_void=yes
cristy3ed852e2009-09-05 21:47:34 +000023930fi
cristy8b350f62009-11-15 23:12:43 +000023931rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23932 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023933fi
23934
cristy3ed852e2009-09-05 21:47:34 +000023935fi
cristy8b350f62009-11-15 23:12:43 +000023936{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_closedir_void" >&5
cristy3ed852e2009-09-05 21:47:34 +000023937$as_echo "$ac_cv_func_closedir_void" >&6; }
23938if test $ac_cv_func_closedir_void = yes; then
23939
cristy8b350f62009-11-15 23:12:43 +000023940$as_echo "#define CLOSEDIR_VOID 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000023941
23942fi
23943
cristycd4c5312009-11-22 01:19:08 +000023944
23945
23946
23947 for ac_header in $ac_header_list
cristy8b350f62009-11-15 23:12:43 +000023948do :
23949 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
cristycd4c5312009-11-22 01:19:08 +000023950ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
23951"
cristy98dddb52010-11-04 00:30:15 +000023952if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000023953 cat >>confdefs.h <<_ACEOF
23954#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23955_ACEOF
23956
23957fi
23958
23959done
23960
cristycd4c5312009-11-22 01:19:08 +000023961
23962
23963
23964
23965
23966
23967
cristy3ed852e2009-09-05 21:47:34 +000023968for ac_func in getpagesize
cristy8b350f62009-11-15 23:12:43 +000023969do :
23970 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize"
cristyda16f162011-02-19 23:52:17 +000023971if test "x$ac_cv_func_getpagesize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000023972 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000023973#define HAVE_GETPAGESIZE 1
cristy3ed852e2009-09-05 21:47:34 +000023974_ACEOF
23975
23976fi
23977done
23978
cristy8b350f62009-11-15 23:12:43 +000023979{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5
cristy3ed852e2009-09-05 21:47:34 +000023980$as_echo_n "checking for working mmap... " >&6; }
cristyda16f162011-02-19 23:52:17 +000023981if ${ac_cv_func_mmap_fixed_mapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000023982 $as_echo_n "(cached) " >&6
23983else
cristy8b350f62009-11-15 23:12:43 +000023984 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000023985 ac_cv_func_mmap_fixed_mapped=no
23986else
cristy8b350f62009-11-15 23:12:43 +000023987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000023988/* end confdefs.h. */
23989$ac_includes_default
23990/* malloc might have been renamed as rpl_malloc. */
23991#undef malloc
23992
23993/* Thanks to Mike Haertel and Jim Avera for this test.
23994 Here is a matrix of mmap possibilities:
23995 mmap private not fixed
23996 mmap private fixed at somewhere currently unmapped
23997 mmap private fixed at somewhere already mapped
23998 mmap shared not fixed
23999 mmap shared fixed at somewhere currently unmapped
24000 mmap shared fixed at somewhere already mapped
24001 For private mappings, we should verify that changes cannot be read()
24002 back from the file, nor mmap's back from the file at a different
24003 address. (There have been systems where private was not correctly
24004 implemented like the infamous i386 svr4.0, and systems where the
24005 VM page cache was not coherent with the file system buffer cache
24006 like early versions of FreeBSD and possibly contemporary NetBSD.)
24007 For shared mappings, we should conversely verify that changes get
24008 propagated back to all the places they're supposed to be.
24009
24010 Grep wants private fixed already mapped.
24011 The main things grep needs to know about mmap are:
24012 * does it exist and is it safe to write into the mmap'd area
24013 * how to use it (BSD variants) */
24014
24015#include <fcntl.h>
24016#include <sys/mman.h>
24017
24018#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
24019char *malloc ();
24020#endif
24021
24022/* This mess was copied from the GNU getpagesize.h. */
24023#ifndef HAVE_GETPAGESIZE
cristy3ed852e2009-09-05 21:47:34 +000024024# ifdef _SC_PAGESIZE
24025# define getpagesize() sysconf(_SC_PAGESIZE)
24026# else /* no _SC_PAGESIZE */
24027# ifdef HAVE_SYS_PARAM_H
24028# include <sys/param.h>
24029# ifdef EXEC_PAGESIZE
24030# define getpagesize() EXEC_PAGESIZE
24031# else /* no EXEC_PAGESIZE */
24032# ifdef NBPG
24033# define getpagesize() NBPG * CLSIZE
24034# ifndef CLSIZE
24035# define CLSIZE 1
24036# endif /* no CLSIZE */
24037# else /* no NBPG */
24038# ifdef NBPC
24039# define getpagesize() NBPC
24040# else /* no NBPC */
24041# ifdef PAGESIZE
24042# define getpagesize() PAGESIZE
24043# endif /* PAGESIZE */
24044# endif /* no NBPC */
24045# endif /* no NBPG */
24046# endif /* no EXEC_PAGESIZE */
24047# else /* no HAVE_SYS_PARAM_H */
24048# define getpagesize() 8192 /* punt totally */
24049# endif /* no HAVE_SYS_PARAM_H */
24050# endif /* no _SC_PAGESIZE */
24051
24052#endif /* no HAVE_GETPAGESIZE */
24053
24054int
24055main ()
24056{
24057 char *data, *data2, *data3;
cristyc54f5d42009-11-27 21:36:31 +000024058 const char *cdata2;
cristy3ed852e2009-09-05 21:47:34 +000024059 int i, pagesize;
cristycd4c5312009-11-22 01:19:08 +000024060 int fd, fd2;
cristy3ed852e2009-09-05 21:47:34 +000024061
24062 pagesize = getpagesize ();
24063
24064 /* First, make a file with some known garbage in it. */
24065 data = (char *) malloc (pagesize);
24066 if (!data)
24067 return 1;
24068 for (i = 0; i < pagesize; ++i)
24069 *(data + i) = rand ();
24070 umask (0);
24071 fd = creat ("conftest.mmap", 0600);
24072 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024073 return 2;
cristy3ed852e2009-09-05 21:47:34 +000024074 if (write (fd, data, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024075 return 3;
cristy3ed852e2009-09-05 21:47:34 +000024076 close (fd);
24077
cristycd4c5312009-11-22 01:19:08 +000024078 /* Next, check that the tail of a page is zero-filled. File must have
24079 non-zero length, otherwise we risk SIGBUS for entire page. */
24080 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600);
24081 if (fd2 < 0)
24082 return 4;
cristyc54f5d42009-11-27 21:36:31 +000024083 cdata2 = "";
24084 if (write (fd2, cdata2, 1) != 1)
cristycd4c5312009-11-22 01:19:08 +000024085 return 5;
cristyc54f5d42009-11-27 21:36:31 +000024086 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L);
cristycd4c5312009-11-22 01:19:08 +000024087 if (data2 == MAP_FAILED)
24088 return 6;
24089 for (i = 0; i < pagesize; ++i)
24090 if (*(data2 + i))
24091 return 7;
24092 close (fd2);
24093 if (munmap (data2, pagesize))
24094 return 8;
24095
cristy3ed852e2009-09-05 21:47:34 +000024096 /* Next, try to mmap the file at a fixed address which already has
24097 something else allocated at it. If we can, also make sure that
24098 we see the same garbage. */
24099 fd = open ("conftest.mmap", O_RDWR);
24100 if (fd < 0)
cristycd4c5312009-11-22 01:19:08 +000024101 return 9;
cristy3ed852e2009-09-05 21:47:34 +000024102 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
24103 MAP_PRIVATE | MAP_FIXED, fd, 0L))
cristycd4c5312009-11-22 01:19:08 +000024104 return 10;
cristy3ed852e2009-09-05 21:47:34 +000024105 for (i = 0; i < pagesize; ++i)
24106 if (*(data + i) != *(data2 + i))
cristycd4c5312009-11-22 01:19:08 +000024107 return 11;
cristy3ed852e2009-09-05 21:47:34 +000024108
24109 /* Finally, make sure that changes to the mapped area do not
24110 percolate back to the file as seen by read(). (This is a bug on
24111 some variants of i386 svr4.0.) */
24112 for (i = 0; i < pagesize; ++i)
24113 *(data2 + i) = *(data2 + i) + 1;
24114 data3 = (char *) malloc (pagesize);
24115 if (!data3)
cristycd4c5312009-11-22 01:19:08 +000024116 return 12;
cristy3ed852e2009-09-05 21:47:34 +000024117 if (read (fd, data3, pagesize) != pagesize)
cristycd4c5312009-11-22 01:19:08 +000024118 return 13;
cristy3ed852e2009-09-05 21:47:34 +000024119 for (i = 0; i < pagesize; ++i)
24120 if (*(data + i) != *(data3 + i))
cristycd4c5312009-11-22 01:19:08 +000024121 return 14;
cristy3ed852e2009-09-05 21:47:34 +000024122 close (fd);
24123 return 0;
24124}
24125_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024126if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024127 ac_cv_func_mmap_fixed_mapped=yes
24128else
cristy8b350f62009-11-15 23:12:43 +000024129 ac_cv_func_mmap_fixed_mapped=no
cristy3ed852e2009-09-05 21:47:34 +000024130fi
cristy8b350f62009-11-15 23:12:43 +000024131rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24132 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024133fi
24134
cristy3ed852e2009-09-05 21:47:34 +000024135fi
cristy8b350f62009-11-15 23:12:43 +000024136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000024137$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; }
24138if test $ac_cv_func_mmap_fixed_mapped = yes; then
24139
cristy8b350f62009-11-15 23:12:43 +000024140$as_echo "#define HAVE_MMAP 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024141
24142fi
cristycd4c5312009-11-22 01:19:08 +000024143rm -f conftest.mmap conftest.txt
cristy3ed852e2009-09-05 21:47:34 +000024144
cristy3ed852e2009-09-05 21:47:34 +000024145for ac_header in vfork.h
cristy8b350f62009-11-15 23:12:43 +000024146do :
24147 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000024148if test "x$ac_cv_header_vfork_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024149 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024150#define HAVE_VFORK_H 1
cristy3ed852e2009-09-05 21:47:34 +000024151_ACEOF
24152
24153fi
24154
24155done
24156
cristy3ed852e2009-09-05 21:47:34 +000024157for ac_func in fork vfork
cristy8b350f62009-11-15 23:12:43 +000024158do :
24159 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24160ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024161if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024162 cat >>confdefs.h <<_ACEOF
24163#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24164_ACEOF
24165
24166fi
24167done
24168
24169if test "x$ac_cv_func_fork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024171$as_echo_n "checking for working fork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024172if ${ac_cv_func_fork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024173 $as_echo_n "(cached) " >&6
24174else
cristy8b350f62009-11-15 23:12:43 +000024175 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024176 ac_cv_func_fork_works=cross
24177else
cristy8b350f62009-11-15 23:12:43 +000024178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024179/* end confdefs.h. */
24180$ac_includes_default
24181int
24182main ()
24183{
24184
24185 /* By Ruediger Kuhlmann. */
24186 return fork () < 0;
24187
24188 ;
24189 return 0;
24190}
24191_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024192if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024193 ac_cv_func_fork_works=yes
24194else
cristy8b350f62009-11-15 23:12:43 +000024195 ac_cv_func_fork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024196fi
cristy8b350f62009-11-15 23:12:43 +000024197rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24198 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024199fi
24200
cristy3ed852e2009-09-05 21:47:34 +000024201fi
cristy8b350f62009-11-15 23:12:43 +000024202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024203$as_echo "$ac_cv_func_fork_works" >&6; }
24204
24205else
24206 ac_cv_func_fork_works=$ac_cv_func_fork
24207fi
24208if test "x$ac_cv_func_fork_works" = xcross; then
24209 case $host in
24210 *-*-amigaos* | *-*-msdosdjgpp*)
24211 # Override, as these systems have only a dummy fork() stub
24212 ac_cv_func_fork_works=no
24213 ;;
24214 *)
24215 ac_cv_func_fork_works=yes
24216 ;;
24217 esac
cristy8b350f62009-11-15 23:12:43 +000024218 { $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 +000024219$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
24220fi
24221ac_cv_func_vfork_works=$ac_cv_func_vfork
24222if test "x$ac_cv_func_vfork" = xyes; then
cristy8b350f62009-11-15 23:12:43 +000024223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
cristy3ed852e2009-09-05 21:47:34 +000024224$as_echo_n "checking for working vfork... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024225if ${ac_cv_func_vfork_works+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024226 $as_echo_n "(cached) " >&6
24227else
cristy8b350f62009-11-15 23:12:43 +000024228 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024229 ac_cv_func_vfork_works=cross
24230else
cristy8b350f62009-11-15 23:12:43 +000024231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024232/* end confdefs.h. */
24233/* Thanks to Paul Eggert for this test. */
24234$ac_includes_default
24235#include <sys/wait.h>
24236#ifdef HAVE_VFORK_H
24237# include <vfork.h>
24238#endif
24239/* On some sparc systems, changes by the child to local and incoming
24240 argument registers are propagated back to the parent. The compiler
24241 is told about this with #include <vfork.h>, but some compilers
24242 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
24243 static variable whose address is put into a register that is
24244 clobbered by the vfork. */
24245static void
24246#ifdef __cplusplus
24247sparc_address_test (int arg)
24248# else
24249sparc_address_test (arg) int arg;
24250#endif
24251{
24252 static pid_t child;
24253 if (!child) {
24254 child = vfork ();
24255 if (child < 0) {
24256 perror ("vfork");
24257 _exit(2);
24258 }
24259 if (!child) {
24260 arg = getpid();
24261 write(-1, "", 0);
24262 _exit (arg);
24263 }
24264 }
24265}
24266
24267int
24268main ()
24269{
24270 pid_t parent = getpid ();
24271 pid_t child;
24272
24273 sparc_address_test (0);
24274
24275 child = vfork ();
24276
24277 if (child == 0) {
24278 /* Here is another test for sparc vfork register problems. This
24279 test uses lots of local variables, at least as many local
24280 variables as main has allocated so far including compiler
24281 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
24282 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
24283 reuse the register of parent for one of the local variables,
24284 since it will think that parent can't possibly be used any more
24285 in this routine. Assigning to the local variable will thus
24286 munge parent in the parent process. */
24287 pid_t
24288 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
24289 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
24290 /* Convince the compiler that p..p7 are live; otherwise, it might
24291 use the same hardware register for all 8 local variables. */
24292 if (p != p1 || p != p2 || p != p3 || p != p4
24293 || p != p5 || p != p6 || p != p7)
24294 _exit(1);
24295
24296 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
24297 from child file descriptors. If the child closes a descriptor
24298 before it execs or exits, this munges the parent's descriptor
24299 as well. Test for this by closing stdout in the child. */
24300 _exit(close(fileno(stdout)) != 0);
24301 } else {
24302 int status;
24303 struct stat st;
24304
24305 while (wait(&status) != child)
24306 ;
24307 return (
24308 /* Was there some problem with vforking? */
24309 child < 0
24310
24311 /* Did the child fail? (This shouldn't happen.) */
24312 || status
24313
24314 /* Did the vfork/compiler bug occur? */
24315 || parent != getpid()
24316
24317 /* Did the file descriptor bug occur? */
24318 || fstat(fileno(stdout), &st) != 0
24319 );
24320 }
24321}
24322_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024323if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024324 ac_cv_func_vfork_works=yes
24325else
cristy8b350f62009-11-15 23:12:43 +000024326 ac_cv_func_vfork_works=no
cristy3ed852e2009-09-05 21:47:34 +000024327fi
cristy8b350f62009-11-15 23:12:43 +000024328rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24329 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024330fi
24331
cristy3ed852e2009-09-05 21:47:34 +000024332fi
cristy8b350f62009-11-15 23:12:43 +000024333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
cristy3ed852e2009-09-05 21:47:34 +000024334$as_echo "$ac_cv_func_vfork_works" >&6; }
24335
24336fi;
24337if test "x$ac_cv_func_fork_works" = xcross; then
24338 ac_cv_func_vfork_works=$ac_cv_func_vfork
cristy8b350f62009-11-15 23:12:43 +000024339 { $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 +000024340$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
24341fi
24342
24343if test "x$ac_cv_func_vfork_works" = xyes; then
24344
cristy8b350f62009-11-15 23:12:43 +000024345$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024346
24347else
24348
cristy8b350f62009-11-15 23:12:43 +000024349$as_echo "#define vfork fork" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024350
24351fi
24352if test "x$ac_cv_func_fork_works" = xyes; then
24353
cristy8b350f62009-11-15 23:12:43 +000024354$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024355
24356fi
24357
cristy8b350f62009-11-15 23:12:43 +000024358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000024359$as_echo_n "checking for working memcmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024360if ${ac_cv_func_memcmp_working+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024361 $as_echo_n "(cached) " >&6
24362else
cristy8b350f62009-11-15 23:12:43 +000024363 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024364 ac_cv_func_memcmp_working=no
24365else
cristy8b350f62009-11-15 23:12:43 +000024366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024367/* end confdefs.h. */
24368$ac_includes_default
24369int
24370main ()
24371{
24372
24373 /* Some versions of memcmp are not 8-bit clean. */
24374 char c0 = '\100', c1 = '\200', c2 = '\201';
24375 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
24376 return 1;
24377
24378 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
24379 or more and with at least one buffer not starting on a 4-byte boundary.
24380 William Lewis provided this test program. */
24381 {
24382 char foo[21];
24383 char bar[21];
24384 int i;
24385 for (i = 0; i < 4; i++)
24386 {
24387 char *a = foo + i;
24388 char *b = bar + i;
24389 strcpy (a, "--------01111111");
24390 strcpy (b, "--------10000000");
24391 if (memcmp (a, b, 16) >= 0)
24392 return 1;
24393 }
24394 return 0;
24395 }
24396
24397 ;
24398 return 0;
24399}
24400_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024401if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024402 ac_cv_func_memcmp_working=yes
24403else
cristy8b350f62009-11-15 23:12:43 +000024404 ac_cv_func_memcmp_working=no
cristy3ed852e2009-09-05 21:47:34 +000024405fi
cristy8b350f62009-11-15 23:12:43 +000024406rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24407 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024408fi
24409
cristy3ed852e2009-09-05 21:47:34 +000024410fi
cristy8b350f62009-11-15 23:12:43 +000024411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
cristy3ed852e2009-09-05 21:47:34 +000024412$as_echo "$ac_cv_func_memcmp_working" >&6; }
24413test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
24414 *" memcmp.$ac_objext "* ) ;;
24415 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
24416 ;;
24417esac
24418
24419
cristy3ed852e2009-09-05 21:47:34 +000024420for ac_header in sys/select.h sys/socket.h
cristy8b350f62009-11-15 23:12:43 +000024421do :
24422 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24423ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
cristy98dddb52010-11-04 00:30:15 +000024424if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024425 cat >>confdefs.h <<_ACEOF
24426#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24427_ACEOF
24428
24429fi
24430
24431done
24432
cristy8b350f62009-11-15 23:12:43 +000024433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
cristy3ed852e2009-09-05 21:47:34 +000024434$as_echo_n "checking types of arguments for select... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024435if ${ac_cv_func_select_args+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024436 $as_echo_n "(cached) " >&6
24437else
24438 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
24439 for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
24440 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
cristy8b350f62009-11-15 23:12:43 +000024441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024442/* end confdefs.h. */
24443$ac_includes_default
24444#ifdef HAVE_SYS_SELECT_H
24445# include <sys/select.h>
24446#endif
24447#ifdef HAVE_SYS_SOCKET_H
24448# include <sys/socket.h>
24449#endif
24450
24451int
24452main ()
24453{
24454extern int select ($ac_arg1,
24455 $ac_arg234, $ac_arg234, $ac_arg234,
24456 $ac_arg5);
24457 ;
24458 return 0;
24459}
24460_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024461if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024462 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
cristy3ed852e2009-09-05 21:47:34 +000024463fi
cristy3ed852e2009-09-05 21:47:34 +000024464rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24465 done
24466 done
24467done
24468# Provide a safe default value.
cristyda16f162011-02-19 23:52:17 +000024469: "${ac_cv_func_select_args=int,int *,struct timeval *}"
cristy3ed852e2009-09-05 21:47:34 +000024470
24471fi
cristy8b350f62009-11-15 23:12:43 +000024472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
cristy3ed852e2009-09-05 21:47:34 +000024473$as_echo "$ac_cv_func_select_args" >&6; }
24474ac_save_IFS=$IFS; IFS=','
24475set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
24476IFS=$ac_save_IFS
24477shift
24478
24479cat >>confdefs.h <<_ACEOF
24480#define SELECT_TYPE_ARG1 $1
24481_ACEOF
24482
24483
24484cat >>confdefs.h <<_ACEOF
24485#define SELECT_TYPE_ARG234 ($2)
24486_ACEOF
24487
24488
24489cat >>confdefs.h <<_ACEOF
24490#define SELECT_TYPE_ARG5 ($3)
24491_ACEOF
24492
24493rm -f conftest*
24494
cristyda16f162011-02-19 23:52:17 +000024495if ${ac_cv_func_setvbuf_reversed+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024496 $as_echo_n "(cached) " >&6
24497else
24498 ac_cv_func_setvbuf_reversed=no
24499fi
24500
24501
cristy8b350f62009-11-15 23:12:43 +000024502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
cristy3ed852e2009-09-05 21:47:34 +000024503$as_echo_n "checking return type of signal handlers... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024504if ${ac_cv_type_signal+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024505 $as_echo_n "(cached) " >&6
24506else
cristy8b350f62009-11-15 23:12:43 +000024507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024508/* end confdefs.h. */
24509#include <sys/types.h>
24510#include <signal.h>
24511
24512int
24513main ()
24514{
24515return *(signal (0, 0)) (0) == 1;
24516 ;
24517 return 0;
24518}
24519_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024520if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024521 ac_cv_type_signal=int
24522else
cristy8b350f62009-11-15 23:12:43 +000024523 ac_cv_type_signal=void
cristy3ed852e2009-09-05 21:47:34 +000024524fi
cristy3ed852e2009-09-05 21:47:34 +000024525rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24526fi
cristy8b350f62009-11-15 23:12:43 +000024527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
cristy3ed852e2009-09-05 21:47:34 +000024528$as_echo "$ac_cv_type_signal" >&6; }
24529
24530cat >>confdefs.h <<_ACEOF
24531#define RETSIGTYPE $ac_cv_type_signal
24532_ACEOF
24533
24534
cristy8b350f62009-11-15 23:12:43 +000024535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024536$as_echo_n "checking for working strtod... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024537if ${ac_cv_func_strtod+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024538 $as_echo_n "(cached) " >&6
24539else
cristy8b350f62009-11-15 23:12:43 +000024540 if test "$cross_compiling" = yes; then :
cristy3ed852e2009-09-05 21:47:34 +000024541 ac_cv_func_strtod=no
24542else
cristy8b350f62009-11-15 23:12:43 +000024543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024544/* end confdefs.h. */
24545
24546$ac_includes_default
24547#ifndef strtod
24548double strtod ();
24549#endif
24550int
24551main()
24552{
24553 {
24554 /* Some versions of Linux strtod mis-parse strings with leading '+'. */
24555 char *string = " +69";
24556 char *term;
24557 double value;
24558 value = strtod (string, &term);
24559 if (value != 69 || term != (string + 4))
24560 return 1;
24561 }
24562
24563 {
24564 /* Under Solaris 2.4, strtod returns the wrong value for the
24565 terminating character under some conditions. */
24566 char *string = "NaN";
24567 char *term;
24568 strtod (string, &term);
24569 if (term != string && *(term - 1) == 0)
24570 return 1;
24571 }
24572 return 0;
24573}
24574
24575_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024576if ac_fn_c_try_run "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024577 ac_cv_func_strtod=yes
24578else
cristy8b350f62009-11-15 23:12:43 +000024579 ac_cv_func_strtod=no
cristy3ed852e2009-09-05 21:47:34 +000024580fi
cristy8b350f62009-11-15 23:12:43 +000024581rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24582 conftest.$ac_objext conftest.beam conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024583fi
24584
cristy3ed852e2009-09-05 21:47:34 +000024585fi
cristy8b350f62009-11-15 23:12:43 +000024586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
cristy3ed852e2009-09-05 21:47:34 +000024587$as_echo "$ac_cv_func_strtod" >&6; }
24588if test $ac_cv_func_strtod = no; then
24589 case " $LIBOBJS " in
24590 *" strtod.$ac_objext "* ) ;;
24591 *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
24592 ;;
24593esac
24594
cristy8b350f62009-11-15 23:12:43 +000024595ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
cristyda16f162011-02-19 23:52:17 +000024596if test "x$ac_cv_func_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024597
cristy3ed852e2009-09-05 21:47:34 +000024598fi
24599
cristy3ed852e2009-09-05 21:47:34 +000024600if test $ac_cv_func_pow = no; then
cristy8b350f62009-11-15 23:12:43 +000024601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
cristy3ed852e2009-09-05 21:47:34 +000024602$as_echo_n "checking for pow in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024603if ${ac_cv_lib_m_pow+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000024604 $as_echo_n "(cached) " >&6
24605else
24606 ac_check_lib_save_LIBS=$LIBS
24607LIBS="-lm $LIBS"
cristy8b350f62009-11-15 23:12:43 +000024608cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024609/* end confdefs.h. */
24610
24611/* Override any GCC internal prototype to avoid an error.
24612 Use char because int might match the return type of a GCC
24613 builtin and then its argument prototype would still apply. */
24614#ifdef __cplusplus
24615extern "C"
24616#endif
24617char pow ();
24618int
24619main ()
24620{
24621return pow ();
24622 ;
24623 return 0;
24624}
24625_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024626if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000024627 ac_cv_lib_m_pow=yes
24628else
cristy8b350f62009-11-15 23:12:43 +000024629 ac_cv_lib_m_pow=no
cristy3ed852e2009-09-05 21:47:34 +000024630fi
cristy8b350f62009-11-15 23:12:43 +000024631rm -f core conftest.err conftest.$ac_objext \
24632 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000024633LIBS=$ac_check_lib_save_LIBS
24634fi
cristy8b350f62009-11-15 23:12:43 +000024635{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024636$as_echo "$ac_cv_lib_m_pow" >&6; }
cristyda16f162011-02-19 23:52:17 +000024637if test "x$ac_cv_lib_m_pow" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024638 POW_LIB=-lm
24639else
cristy8b350f62009-11-15 23:12:43 +000024640 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
cristy3ed852e2009-09-05 21:47:34 +000024641$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
24642fi
24643
24644fi
24645
24646fi
24647
cristy7d4a1d62011-10-13 15:54:12 +000024648ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
24649if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
24650 ac_have_decl=1
24651else
24652 ac_have_decl=0
24653fi
24654
24655cat >>confdefs.h <<_ACEOF
24656#define HAVE_DECL_STRERROR_R $ac_have_decl
24657_ACEOF
24658
24659for ac_func in strerror_r
24660do :
24661 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
24662if test "x$ac_cv_func_strerror_r" = xyes; then :
24663 cat >>confdefs.h <<_ACEOF
24664#define HAVE_STRERROR_R 1
24665_ACEOF
24666
24667fi
24668done
24669
24670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
24671$as_echo_n "checking whether strerror_r returns char *... " >&6; }
24672if ${ac_cv_func_strerror_r_char_p+:} false; then :
24673 $as_echo_n "(cached) " >&6
24674else
24675
24676 ac_cv_func_strerror_r_char_p=no
24677 if test $ac_cv_have_decl_strerror_r = yes; then
24678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24679/* end confdefs.h. */
24680$ac_includes_default
24681int
24682main ()
24683{
24684
24685 char buf[100];
24686 char x = *strerror_r (0, buf, sizeof buf);
24687 char *p = strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024688 return !p || x;
cristy7d4a1d62011-10-13 15:54:12 +000024689
24690 ;
24691 return 0;
24692}
24693_ACEOF
24694if ac_fn_c_try_compile "$LINENO"; then :
24695 ac_cv_func_strerror_r_char_p=yes
24696fi
24697rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24698 else
24699 # strerror_r is not declared. Choose between
24700 # systems that have relatively inaccessible declarations for the
24701 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
24702 # former has a strerror_r that returns char*, while the latter
24703 # has a strerror_r that returns `int'.
24704 # This test should segfault on the DEC system.
24705 if test "$cross_compiling" = yes; then :
24706 :
24707else
24708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24709/* end confdefs.h. */
24710$ac_includes_default
24711 extern char *strerror_r ();
24712int
24713main ()
24714{
24715char buf[100];
24716 char x = *strerror_r (0, buf, sizeof buf);
cristyc6e91792011-10-13 18:39:26 +000024717 return ! isalpha (x);
cristy7d4a1d62011-10-13 15:54:12 +000024718 ;
24719 return 0;
24720}
24721_ACEOF
24722if ac_fn_c_try_run "$LINENO"; then :
24723 ac_cv_func_strerror_r_char_p=yes
24724fi
24725rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
24726 conftest.$ac_objext conftest.beam conftest.$ac_ext
24727fi
24728
24729 fi
24730
24731fi
24732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
24733$as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
24734if test $ac_cv_func_strerror_r_char_p = yes; then
24735
24736$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
24737
24738fi
24739
cristy3ed852e2009-09-05 21:47:34 +000024740for ac_func in vprintf
cristy8b350f62009-11-15 23:12:43 +000024741do :
24742 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
cristyda16f162011-02-19 23:52:17 +000024743if test "x$ac_cv_func_vprintf" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024744 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024745#define HAVE_VPRINTF 1
cristy3ed852e2009-09-05 21:47:34 +000024746_ACEOF
24747
cristy8b350f62009-11-15 23:12:43 +000024748ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
cristyda16f162011-02-19 23:52:17 +000024749if test "x$ac_cv_func__doprnt" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000024750
cristy8b350f62009-11-15 23:12:43 +000024751$as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000024752
24753fi
24754
24755fi
24756done
24757
24758
24759
cristy161b9262010-03-20 19:34:32 +000024760#
24761# Find math library
24762#
24763MATH_LIBS=''
24764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
24765$as_echo_n "checking for sqrt in -lm... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024766if ${ac_cv_lib_m_sqrt+:} false; then :
cristy161b9262010-03-20 19:34:32 +000024767 $as_echo_n "(cached) " >&6
24768else
24769 ac_check_lib_save_LIBS=$LIBS
24770LIBS="-lm $LIBS"
24771cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24772/* end confdefs.h. */
24773
24774/* Override any GCC internal prototype to avoid an error.
24775 Use char because int might match the return type of a GCC
24776 builtin and then its argument prototype would still apply. */
24777#ifdef __cplusplus
24778extern "C"
24779#endif
24780char sqrt ();
24781int
24782main ()
24783{
24784return sqrt ();
24785 ;
24786 return 0;
24787}
24788_ACEOF
24789if ac_fn_c_try_link "$LINENO"; then :
24790 ac_cv_lib_m_sqrt=yes
24791else
24792 ac_cv_lib_m_sqrt=no
24793fi
24794rm -f core conftest.err conftest.$ac_objext \
24795 conftest$ac_exeext conftest.$ac_ext
24796LIBS=$ac_check_lib_save_LIBS
24797fi
24798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
24799$as_echo "$ac_cv_lib_m_sqrt" >&6; }
cristyda16f162011-02-19 23:52:17 +000024800if test "x$ac_cv_lib_m_sqrt" = xyes; then :
cristy161b9262010-03-20 19:34:32 +000024801 MATH_LIBS="-lm"
24802fi
24803
24804LIBS="$MATH_LIBS $LIBS"
24805
24806
cristy568c2d42012-07-27 01:41:20 +000024807for 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 +000024808do :
24809 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24810ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024811if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000024812 cat >>confdefs.h <<_ACEOF
24813#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24814_ACEOF
24815
24816fi
24817done
24818
24819
cristye43a45e2009-09-28 14:49:00 +000024820#
24821# Check for clock_gettime().
24822#
cristy8b350f62009-11-15 23:12:43 +000024823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024824$as_echo_n "checking for library containing clock_gettime... " >&6; }
cristyda16f162011-02-19 23:52:17 +000024825if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024826 $as_echo_n "(cached) " >&6
24827else
24828 ac_func_search_save_LIBS=$LIBS
cristy8b350f62009-11-15 23:12:43 +000024829cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024830/* end confdefs.h. */
24831
24832/* Override any GCC internal prototype to avoid an error.
24833 Use char because int might match the return type of a GCC
24834 builtin and then its argument prototype would still apply. */
24835#ifdef __cplusplus
24836extern "C"
24837#endif
24838char clock_gettime ();
24839int
24840main ()
24841{
24842return clock_gettime ();
24843 ;
24844 return 0;
24845}
24846_ACEOF
24847for ac_lib in '' rt; do
24848 if test -z "$ac_lib"; then
24849 ac_res="none required"
24850 else
24851 ac_res=-l$ac_lib
24852 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
24853 fi
cristy8b350f62009-11-15 23:12:43 +000024854 if ac_fn_c_try_link "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024855 ac_cv_search_clock_gettime=$ac_res
cristye43a45e2009-09-28 14:49:00 +000024856fi
cristy8b350f62009-11-15 23:12:43 +000024857rm -f core conftest.err conftest.$ac_objext \
24858 conftest$ac_exeext
cristyda16f162011-02-19 23:52:17 +000024859 if ${ac_cv_search_clock_gettime+:} false; then :
cristye43a45e2009-09-28 14:49:00 +000024860 break
24861fi
24862done
cristyda16f162011-02-19 23:52:17 +000024863if ${ac_cv_search_clock_gettime+:} false; then :
cristy8b350f62009-11-15 23:12:43 +000024864
cristye43a45e2009-09-28 14:49:00 +000024865else
24866 ac_cv_search_clock_gettime=no
24867fi
24868rm conftest.$ac_ext
24869LIBS=$ac_func_search_save_LIBS
24870fi
cristy8b350f62009-11-15 23:12:43 +000024871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
cristye43a45e2009-09-28 14:49:00 +000024872$as_echo "$ac_cv_search_clock_gettime" >&6; }
24873ac_res=$ac_cv_search_clock_gettime
cristy8b350f62009-11-15 23:12:43 +000024874if test "$ac_res" != no; then :
cristye43a45e2009-09-28 14:49:00 +000024875 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
24876
24877
cristy8b350f62009-11-15 23:12:43 +000024878$as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024879
cristy8b350f62009-11-15 23:12:43 +000024880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether clock_gettime supports CLOCK_REALTIME" >&5
cristye43a45e2009-09-28 14:49:00 +000024881$as_echo_n "checking whether clock_gettime supports CLOCK_REALTIME... " >&6; }
cristy8b350f62009-11-15 23:12:43 +000024882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristye43a45e2009-09-28 14:49:00 +000024883/* end confdefs.h. */
cristyda16f162011-02-19 23:52:17 +000024884
24885 #include <time.h>
cristye43a45e2009-09-28 14:49:00 +000024886int
24887main ()
24888{
24889clockid_t clockType = CLOCK_REALTIME;
cristye43a45e2009-09-28 14:49:00 +000024890 ;
24891 return 0;
24892}
24893_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024894if ac_fn_c_try_compile "$LINENO"; then :
cristye43a45e2009-09-28 14:49:00 +000024895
cristy09b53e12011-10-14 12:47:22 +000024896 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
24897$as_echo "$as_me: yes" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024898
cristy8b350f62009-11-15 23:12:43 +000024899$as_echo "#define HAVE_CLOCK_REALTIME 1" >>confdefs.h
cristye43a45e2009-09-28 14:49:00 +000024900
24901
24902else
cristy09b53e12011-10-14 12:47:22 +000024903 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
24904$as_echo "$as_me: no" >&6;}
cristye43a45e2009-09-28 14:49:00 +000024905
24906fi
cristye43a45e2009-09-28 14:49:00 +000024907rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24908
24909else
24910
cristy8b350f62009-11-15 23:12:43 +000024911 for ac_func in gettimeofday ftime
24912do :
24913 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24914ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000024915if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristye43a45e2009-09-28 14:49:00 +000024916 cat >>confdefs.h <<_ACEOF
24917#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24918_ACEOF
24919 break
24920fi
24921done
24922
24923
24924
24925fi
24926
24927
cristy3ed852e2009-09-05 21:47:34 +000024928########
24929#
24930# Check for function prototypes
24931#
24932########
24933
cristy8b350f62009-11-15 23:12:43 +000024934ac_fn_c_check_decl "$LINENO" "pread" "ac_cv_have_decl_pread" "
cristy3ed852e2009-09-05 21:47:34 +000024935#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024936"
cristyda16f162011-02-19 23:52:17 +000024937if test "x$ac_cv_have_decl_pread" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024938 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024939else
cristy8b350f62009-11-15 23:12:43 +000024940 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024941fi
24942
cristy3ed852e2009-09-05 21:47:34 +000024943cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024944#define HAVE_DECL_PREAD $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024945_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024946ac_fn_c_check_decl "$LINENO" "pwrite" "ac_cv_have_decl_pwrite" "
cristy3ed852e2009-09-05 21:47:34 +000024947#include <unistd.h>
cristy8b350f62009-11-15 23:12:43 +000024948"
cristyda16f162011-02-19 23:52:17 +000024949if test "x$ac_cv_have_decl_pwrite" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024950 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024951else
cristy8b350f62009-11-15 23:12:43 +000024952 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024953fi
24954
cristy3ed852e2009-09-05 21:47:34 +000024955cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024956#define HAVE_DECL_PWRITE $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024957_ACEOF
24958
24959
cristy8b350f62009-11-15 23:12:43 +000024960ac_fn_c_check_decl "$LINENO" "strlcpy" "ac_cv_have_decl_strlcpy" "
cristy3ed852e2009-09-05 21:47:34 +000024961#include <strings.h>
cristy8b350f62009-11-15 23:12:43 +000024962"
cristyda16f162011-02-19 23:52:17 +000024963if test "x$ac_cv_have_decl_strlcpy" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024964 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024965else
cristy8b350f62009-11-15 23:12:43 +000024966 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024967fi
24968
cristy3ed852e2009-09-05 21:47:34 +000024969cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024970#define HAVE_DECL_STRLCPY $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024971_ACEOF
24972
24973
cristy8b350f62009-11-15 23:12:43 +000024974ac_fn_c_check_decl "$LINENO" "vsnprintf" "ac_cv_have_decl_vsnprintf" "
cristy3ed852e2009-09-05 21:47:34 +000024975#include <stdio.h>
24976#include <stdarg.h>
cristy8b350f62009-11-15 23:12:43 +000024977"
cristyda16f162011-02-19 23:52:17 +000024978if test "x$ac_cv_have_decl_vsnprintf" = xyes; then :
cristy8b350f62009-11-15 23:12:43 +000024979 ac_have_decl=1
cristy3ed852e2009-09-05 21:47:34 +000024980else
cristy8b350f62009-11-15 23:12:43 +000024981 ac_have_decl=0
cristy3ed852e2009-09-05 21:47:34 +000024982fi
24983
cristy3ed852e2009-09-05 21:47:34 +000024984cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000024985#define HAVE_DECL_VSNPRINTF $ac_have_decl
cristy3ed852e2009-09-05 21:47:34 +000024986_ACEOF
24987
24988
cristy3ed852e2009-09-05 21:47:34 +000024989########
24990#
24991# C++ Support Tests (For Magick++)
24992#
24993########
24994have_magick_plus_plus='no'
24995if test "$with_magick_plus_plus" = 'yes'; then
24996 OLIBS="$LIBS"
24997 LIBS=''
24998 ac_ext=cpp
24999ac_cpp='$CXXCPP $CPPFLAGS'
25000ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25001ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25002ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25003
25004
25005 # Full set of headers used...
25006 # algorithm cctype cerrno cmath cstdio cstdlib cstring ctime exception
25007 # functional iomanip iosfwd iostream iterator list string strstream utility
25008 ac_ext=cpp
25009ac_cpp='$CXXCPP $CPPFLAGS'
25010ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25011ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25012ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25013
25014 ac_ext=cpp
25015ac_cpp='$CXXCPP $CPPFLAGS'
25016ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25017ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25018ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25019if test -z "$CXX"; then
25020 if test -n "$CCC"; then
25021 CXX=$CCC
25022 else
25023 if test -n "$ac_tool_prefix"; then
25024 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25025 do
25026 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
25027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025029$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025030if ${ac_cv_prog_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025031 $as_echo_n "(cached) " >&6
25032else
25033 if test -n "$CXX"; then
25034 ac_cv_prog_CXX="$CXX" # Let the user override the test.
25035else
25036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25037for as_dir in $PATH
25038do
25039 IFS=$as_save_IFS
25040 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025041 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025043 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025045 break 2
25046 fi
25047done
cristy8b350f62009-11-15 23:12:43 +000025048 done
cristy3ed852e2009-09-05 21:47:34 +000025049IFS=$as_save_IFS
25050
25051fi
25052fi
25053CXX=$ac_cv_prog_CXX
25054if test -n "$CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025056$as_echo "$CXX" >&6; }
25057else
cristy8b350f62009-11-15 23:12:43 +000025058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025059$as_echo "no" >&6; }
25060fi
25061
25062
25063 test -n "$CXX" && break
25064 done
25065fi
25066if test -z "$CXX"; then
25067 ac_ct_CXX=$CXX
25068 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
25069do
25070 # Extract the first word of "$ac_prog", so it can be a program name with args.
25071set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000025072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000025073$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025074if ${ac_cv_prog_ac_ct_CXX+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025075 $as_echo_n "(cached) " >&6
25076else
25077 if test -n "$ac_ct_CXX"; then
25078 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
25079else
25080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25081for as_dir in $PATH
25082do
25083 IFS=$as_save_IFS
25084 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000025085 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000025086 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000025087 ac_cv_prog_ac_ct_CXX="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000025088 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000025089 break 2
25090 fi
25091done
cristy8b350f62009-11-15 23:12:43 +000025092 done
cristy3ed852e2009-09-05 21:47:34 +000025093IFS=$as_save_IFS
25094
25095fi
25096fi
25097ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
25098if test -n "$ac_ct_CXX"; then
cristy8b350f62009-11-15 23:12:43 +000025099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
cristy3ed852e2009-09-05 21:47:34 +000025100$as_echo "$ac_ct_CXX" >&6; }
25101else
cristy8b350f62009-11-15 23:12:43 +000025102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000025103$as_echo "no" >&6; }
25104fi
25105
25106
25107 test -n "$ac_ct_CXX" && break
25108done
25109
25110 if test "x$ac_ct_CXX" = x; then
25111 CXX="g++"
25112 else
25113 case $cross_compiling:$ac_tool_warned in
25114yes:)
cristy8b350f62009-11-15 23:12:43 +000025115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
cristy3ed852e2009-09-05 21:47:34 +000025116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25117ac_tool_warned=yes ;;
25118esac
25119 CXX=$ac_ct_CXX
25120 fi
25121fi
25122
25123 fi
25124fi
25125# Provide some information about the compiler.
cristy8b350f62009-11-15 23:12:43 +000025126$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
cristy3ed852e2009-09-05 21:47:34 +000025127set X $ac_compile
25128ac_compiler=$2
cristy8b350f62009-11-15 23:12:43 +000025129for ac_option in --version -v -V -qversion; do
25130 { { ac_try="$ac_compiler $ac_option >&5"
cristy3ed852e2009-09-05 21:47:34 +000025131case "(($ac_try" in
25132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25133 *) ac_try_echo=$ac_try;;
25134esac
cristy8b350f62009-11-15 23:12:43 +000025135eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
25136$as_echo "$ac_try_echo"; } >&5
25137 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
cristy3ed852e2009-09-05 21:47:34 +000025138 ac_status=$?
cristy8b350f62009-11-15 23:12:43 +000025139 if test -s conftest.err; then
25140 sed '10a\
25141... rest of stderr output deleted ...
25142 10q' conftest.err >conftest.er1
25143 cat conftest.er1 >&5
cristy8b350f62009-11-15 23:12:43 +000025144 fi
cristycd4c5312009-11-22 01:19:08 +000025145 rm -f conftest.er1 conftest.err
cristy8b350f62009-11-15 23:12:43 +000025146 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25147 test $ac_status = 0; }
25148done
cristy3ed852e2009-09-05 21:47:34 +000025149
cristy8b350f62009-11-15 23:12:43 +000025150{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
cristy3ed852e2009-09-05 21:47:34 +000025151$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025152if ${ac_cv_cxx_compiler_gnu+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025153 $as_echo_n "(cached) " >&6
25154else
cristy8b350f62009-11-15 23:12:43 +000025155 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025156/* end confdefs.h. */
25157
25158int
25159main ()
25160{
25161#ifndef __GNUC__
25162 choke me
25163#endif
25164
25165 ;
25166 return 0;
25167}
25168_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025169if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025170 ac_compiler_gnu=yes
25171else
cristy8b350f62009-11-15 23:12:43 +000025172 ac_compiler_gnu=no
cristy3ed852e2009-09-05 21:47:34 +000025173fi
cristy3ed852e2009-09-05 21:47:34 +000025174rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25175ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
25176
25177fi
cristy8b350f62009-11-15 23:12:43 +000025178{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
cristy3ed852e2009-09-05 21:47:34 +000025179$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
25180if test $ac_compiler_gnu = yes; then
25181 GXX=yes
25182else
25183 GXX=
25184fi
25185ac_test_CXXFLAGS=${CXXFLAGS+set}
25186ac_save_CXXFLAGS=$CXXFLAGS
cristy8b350f62009-11-15 23:12:43 +000025187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025188$as_echo_n "checking whether $CXX accepts -g... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025189if ${ac_cv_prog_cxx_g+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025190 $as_echo_n "(cached) " >&6
25191else
25192 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
25193 ac_cxx_werror_flag=yes
25194 ac_cv_prog_cxx_g=no
25195 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025197/* end confdefs.h. */
25198
25199int
25200main ()
25201{
25202
25203 ;
25204 return 0;
25205}
25206_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025207if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025208 ac_cv_prog_cxx_g=yes
25209else
cristy8b350f62009-11-15 23:12:43 +000025210 CXXFLAGS=""
25211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025212/* end confdefs.h. */
25213
25214int
25215main ()
25216{
25217
25218 ;
25219 return 0;
25220}
25221_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025222if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025223
cristy8b350f62009-11-15 23:12:43 +000025224else
25225 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
cristy3ed852e2009-09-05 21:47:34 +000025226 CXXFLAGS="-g"
cristy8b350f62009-11-15 23:12:43 +000025227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025228/* end confdefs.h. */
25229
25230int
25231main ()
25232{
25233
25234 ;
25235 return 0;
25236}
25237_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025238if ac_fn_cxx_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025239 ac_cv_prog_cxx_g=yes
cristy3ed852e2009-09-05 21:47:34 +000025240fi
cristy3ed852e2009-09-05 21:47:34 +000025241rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25242fi
cristy3ed852e2009-09-05 21:47:34 +000025243rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25244fi
cristy3ed852e2009-09-05 21:47:34 +000025245rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25246 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
25247fi
cristy8b350f62009-11-15 23:12:43 +000025248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
cristy3ed852e2009-09-05 21:47:34 +000025249$as_echo "$ac_cv_prog_cxx_g" >&6; }
25250if test "$ac_test_CXXFLAGS" = set; then
25251 CXXFLAGS=$ac_save_CXXFLAGS
25252elif test $ac_cv_prog_cxx_g = yes; then
25253 if test "$GXX" = yes; then
25254 CXXFLAGS="-g -O2"
25255 else
25256 CXXFLAGS="-g"
25257 fi
25258else
25259 if test "$GXX" = yes; then
25260 CXXFLAGS="-O2"
25261 else
25262 CXXFLAGS=
25263 fi
25264fi
25265ac_ext=cpp
25266ac_cpp='$CXXCPP $CPPFLAGS'
25267ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25268ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25269ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25270
cristy73bd4a52010-10-05 11:24:23 +000025271depcc="$CXX" am_compiler_list=
25272
25273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
25274$as_echo_n "checking dependency style of $depcc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025275if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025276 $as_echo_n "(cached) " >&6
25277else
25278 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
25279 # We make a subdir and do the tests there. Otherwise we can end up
25280 # making bogus files that we don't know about and never remove. For
25281 # instance it was reported that on HP-UX the gcc test will end up
cristyc0890a62012-07-19 00:18:20 +000025282 # making a dummy file named 'D' -- because '-MD' means "put the output
25283 # in D".
cristy7247bba2012-02-05 16:37:27 +000025284 rm -rf conftest.dir
cristy73bd4a52010-10-05 11:24:23 +000025285 mkdir conftest.dir
25286 # Copy depcomp to subdir because otherwise we won't find it if we're
25287 # using a relative directory.
25288 cp "$am_depcomp" conftest.dir
25289 cd conftest.dir
25290 # We will build objects and dependencies in a subdirectory because
25291 # it helps to detect inapplicable dependency modes. For instance
25292 # both Tru64's cc and ICC support -MD to output dependencies as a
25293 # side effect of compilation, but ICC will put the dependencies in
25294 # the current directory while Tru64 will put them in the object
25295 # directory.
25296 mkdir sub
25297
25298 am_cv_CXX_dependencies_compiler_type=none
25299 if test "$am_compiler_list" = ""; then
25300 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
25301 fi
25302 am__universal=false
25303 case " $depcc " in #(
25304 *\ -arch\ *\ -arch\ *) am__universal=true ;;
25305 esac
25306
25307 for depmode in $am_compiler_list; do
25308 # Setup a source with many dependencies, because some compilers
25309 # like to wrap large dependency lists on column 80 (with \), and
25310 # we should not choose a depcomp mode which is confused by this.
25311 #
25312 # We need to recreate these files for each test, as the compiler may
25313 # overwrite some of them when testing with obscure command lines.
25314 # This happens at least with the AIX C compiler.
25315 : > sub/conftest.c
25316 for i in 1 2 3 4 5 6; do
25317 echo '#include "conftst'$i'.h"' >> sub/conftest.c
cristyc0890a62012-07-19 00:18:20 +000025318 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
25319 # Solaris 10 /bin/sh.
25320 echo '/* dummy */' > sub/conftst$i.h
cristy73bd4a52010-10-05 11:24:23 +000025321 done
25322 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
25323
cristyc0890a62012-07-19 00:18:20 +000025324 # We check with '-c' and '-o' for the sake of the "dashmstdout"
cristy73bd4a52010-10-05 11:24:23 +000025325 # mode. It turns out that the SunPro C++ compiler does not properly
cristyc0890a62012-07-19 00:18:20 +000025326 # handle '-M -o', and we need to detect this. Also, some Intel
25327 # versions had trouble with output in subdirs.
cristy73bd4a52010-10-05 11:24:23 +000025328 am__obj=sub/conftest.${OBJEXT-o}
25329 am__minus_obj="-o $am__obj"
25330 case $depmode in
25331 gcc)
25332 # This depmode causes a compiler race in universal mode.
25333 test "$am__universal" = false || continue
25334 ;;
25335 nosideeffect)
cristyc0890a62012-07-19 00:18:20 +000025336 # After this tag, mechanisms are not by side-effect, so they'll
25337 # only be used when explicitly requested.
cristy73bd4a52010-10-05 11:24:23 +000025338 if test "x$enable_dependency_tracking" = xyes; then
25339 continue
25340 else
25341 break
25342 fi
25343 ;;
cristy7247bba2012-02-05 16:37:27 +000025344 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
cristyc0890a62012-07-19 00:18:20 +000025345 # This compiler won't grok '-c -o', but also, the minuso test has
cristy73bd4a52010-10-05 11:24:23 +000025346 # not run yet. These depmodes are late enough in the game, and
25347 # so weak that their functioning should not be impacted.
25348 am__obj=conftest.${OBJEXT-o}
25349 am__minus_obj=
25350 ;;
25351 none) break ;;
25352 esac
25353 if depmode=$depmode \
25354 source=sub/conftest.c object=$am__obj \
25355 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
25356 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
25357 >/dev/null 2>conftest.err &&
25358 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
25359 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
25360 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
25361 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
25362 # icc doesn't choke on unknown options, it will just issue warnings
25363 # or remarks (even with -Werror). So we grep stderr for any message
25364 # that says an option was ignored or not supported.
25365 # When given -MP, icc 7.0 and 7.1 complain thusly:
25366 # icc: Command line warning: ignoring option '-M'; no argument required
25367 # The diagnosis changed in icc 8.0:
25368 # icc: Command line remark: option '-MP' not supported
25369 if (grep 'ignoring option' conftest.err ||
25370 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
25371 am_cv_CXX_dependencies_compiler_type=$depmode
25372 break
25373 fi
25374 fi
25375 done
25376
25377 cd ..
25378 rm -rf conftest.dir
25379else
25380 am_cv_CXX_dependencies_compiler_type=none
25381fi
25382
25383fi
25384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
25385$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
25386CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
25387
25388 if
25389 test "x$enable_dependency_tracking" != xno \
25390 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
25391 am__fastdepCXX_TRUE=
25392 am__fastdepCXX_FALSE='#'
25393else
25394 am__fastdepCXX_TRUE='#'
25395 am__fastdepCXX_FALSE=
25396fi
25397
25398
25399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler recognizes bool as a built-in type" >&5
25400$as_echo_n "checking whether the compiler recognizes bool as a built-in type... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025401if ${ax_cv_cxx_bool+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025402 $as_echo_n "(cached) " >&6
25403else
25404
25405 ac_ext=cpp
25406ac_cpp='$CXXCPP $CPPFLAGS'
25407ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25408ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25409ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25410
25411 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25412/* end confdefs.h. */
25413
25414int f(int x){return 1;}
25415int f(char x){return 1;}
25416int f(bool x){return 1;}
25417
25418int
25419main ()
25420{
25421bool b = true; return f(b);
25422 ;
25423 return 0;
25424}
25425_ACEOF
25426if ac_fn_cxx_try_compile "$LINENO"; then :
25427 ax_cv_cxx_bool=yes
25428else
25429 ax_cv_cxx_bool=no
25430fi
25431rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25432 ac_ext=cpp
25433ac_cpp='$CXXCPP $CPPFLAGS'
25434ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25435ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25436ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25437
25438
25439fi
25440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_bool" >&5
25441$as_echo "$ax_cv_cxx_bool" >&6; }
25442if test "$ax_cv_cxx_bool" = yes; then
25443
25444$as_echo "#define HAVE_BOOL /**/" >>confdefs.h
25445
25446fi
25447
25448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler implements namespaces" >&5
25449$as_echo_n "checking whether the compiler implements namespaces... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025450if ${ax_cv_cxx_namespaces+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025451 $as_echo_n "(cached) " >&6
25452else
25453
25454 ac_ext=cpp
25455ac_cpp='$CXXCPP $CPPFLAGS'
25456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25459
25460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25461/* end confdefs.h. */
25462namespace Outer { namespace Inner { int i = 0; }}
25463int
25464main ()
25465{
25466using namespace Outer::Inner; return i;
25467 ;
25468 return 0;
25469}
25470_ACEOF
25471if ac_fn_cxx_try_compile "$LINENO"; then :
25472 ax_cv_cxx_namespaces=yes
25473else
25474 ax_cv_cxx_namespaces=no
25475fi
25476rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25477 ac_ext=cpp
25478ac_cpp='$CXXCPP $CPPFLAGS'
25479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25482
25483
25484fi
25485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_namespaces" >&5
25486$as_echo "$ax_cv_cxx_namespaces" >&6; }
25487if test "$ax_cv_cxx_namespaces" = yes; then
25488
25489$as_echo "#define HAVE_NAMESPACES /**/" >>confdefs.h
25490
25491fi
25492
25493
25494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if g++ supports namespace std" >&5
25495$as_echo_n "checking if g++ supports namespace std... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025496if ${ax_cv_cxx_have_std_namespace+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025497 $as_echo_n "(cached) " >&6
25498else
25499
25500 ac_ext=cpp
25501ac_cpp='$CXXCPP $CPPFLAGS'
25502ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25503ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25504ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25505
25506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25507/* end confdefs.h. */
25508#include <iostream>
25509 std::istream& is = std::cin;
25510int
25511main ()
25512{
25513
25514 ;
25515 return 0;
25516}
25517_ACEOF
25518if ac_fn_cxx_try_compile "$LINENO"; then :
25519 ax_cv_cxx_have_std_namespace=yes
25520else
25521 ax_cv_cxx_have_std_namespace=no
25522fi
25523rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25524 ac_ext=cpp
25525ac_cpp='$CXXCPP $CPPFLAGS'
25526ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25527ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25528ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25529
25530
25531fi
25532{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_have_std_namespace" >&5
25533$as_echo "$ax_cv_cxx_have_std_namespace" >&6; }
25534 if test "$ax_cv_cxx_have_std_namespace" = yes; then
25535
25536$as_echo "#define HAVE_NAMESPACE_STD /**/" >>confdefs.h
25537
25538 fi
25539
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports ISO C++ standard library" >&5
25541$as_echo_n "checking whether the compiler supports ISO C++ standard library... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025542if ${ac_cv_cxx_have_std_libs+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000025543 $as_echo_n "(cached) " >&6
25544else
25545
25546
25547 ac_ext=cpp
25548ac_cpp='$CXXCPP $CPPFLAGS'
25549ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25550ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25551ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25552
25553 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25554/* end confdefs.h. */
25555#include <iostream>
25556#include <map>
25557#include <iomanip>
25558#include <cmath>
25559#ifdef HAVE_NAMESPACES
25560using namespace std;
25561#endif
25562int
25563main ()
25564{
25565return 0;
25566 ;
25567 return 0;
25568}
25569_ACEOF
25570if ac_fn_cxx_try_compile "$LINENO"; then :
25571 ac_cv_cxx_have_std_libs=yes
25572else
25573 ac_cv_cxx_have_std_libs=no
25574fi
25575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25576 ac_ext=cpp
25577ac_cpp='$CXXCPP $CPPFLAGS'
25578ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25579ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25580ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25581
25582
25583fi
25584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_std_libs" >&5
25585$as_echo "$ac_cv_cxx_have_std_libs" >&6; }
25586if test "$ac_cv_cxx_have_std_libs" = yes; then
25587
25588$as_echo "#define HAVE_STD_LIBS /**/" >>confdefs.h
25589
25590fi
25591
cristy3ed852e2009-09-05 21:47:34 +000025592
25593 OPENMP_CXXFLAGS=
25594 # Check whether --enable-openmp was given.
cristy8b350f62009-11-15 23:12:43 +000025595if test "${enable_openmp+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000025596 enableval=$enable_openmp;
25597fi
25598
25599 if test "$enable_openmp" != no; then
cristycd4c5312009-11-22 01:19:08 +000025600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to support OpenMP" >&5
25601$as_echo_n "checking for $CXX option to support OpenMP... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025602if ${ac_cv_prog_cxx_openmp+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025603 $as_echo_n "(cached) " >&6
25604else
cristy8b350f62009-11-15 23:12:43 +000025605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25606/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025607
25608#ifndef _OPENMP
25609 choke me
25610#endif
25611#include <omp.h>
25612int main () { return omp_get_num_threads (); }
25613
25614_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025615if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025616 ac_cv_prog_cxx_openmp='none needed'
25617else
cristy8b350f62009-11-15 23:12:43 +000025618 ac_cv_prog_cxx_openmp='unsupported'
cristy14fefe52012-05-21 00:59:18 +000025619 for ac_option in -fopenmp -xopenmp -openmp -mp -omp -qsmp=omp -homp \
25620 -Popenmp --openmp; do
cristy3ed852e2009-09-05 21:47:34 +000025621 ac_save_CXXFLAGS=$CXXFLAGS
25622 CXXFLAGS="$CXXFLAGS $ac_option"
cristy8b350f62009-11-15 23:12:43 +000025623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25624/* end confdefs.h. */
cristy3ed852e2009-09-05 21:47:34 +000025625
25626#ifndef _OPENMP
25627 choke me
25628#endif
25629#include <omp.h>
25630int main () { return omp_get_num_threads (); }
25631
25632_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025633if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025634 ac_cv_prog_cxx_openmp=$ac_option
cristy3ed852e2009-09-05 21:47:34 +000025635fi
cristy8b350f62009-11-15 23:12:43 +000025636rm -f core conftest.err conftest.$ac_objext \
25637 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025638 CXXFLAGS=$ac_save_CXXFLAGS
25639 if test "$ac_cv_prog_cxx_openmp" != unsupported; then
25640 break
25641 fi
25642 done
25643fi
cristy8b350f62009-11-15 23:12:43 +000025644rm -f core conftest.err conftest.$ac_objext \
25645 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025646fi
cristy8b350f62009-11-15 23:12:43 +000025647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_openmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025648$as_echo "$ac_cv_prog_cxx_openmp" >&6; }
25649 case $ac_cv_prog_cxx_openmp in #(
25650 "none needed" | unsupported)
cristy8b350f62009-11-15 23:12:43 +000025651 ;; #(
cristy3ed852e2009-09-05 21:47:34 +000025652 *)
cristy8b350f62009-11-15 23:12:43 +000025653 OPENMP_CXXFLAGS=$ac_cv_prog_cxx_openmp ;;
cristy3ed852e2009-09-05 21:47:34 +000025654 esac
25655 fi
25656
25657
25658 ac_ext=c
25659ac_cpp='$CPP $CPPFLAGS'
25660ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25661ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25662ac_compiler_gnu=$ac_cv_c_compiler_gnu
25663
25664
cristy8b350f62009-11-15 23:12:43 +000025665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler is sufficient for Magick++" >&5
cristy3ed852e2009-09-05 21:47:34 +000025666$as_echo_n "checking whether C++ compiler is sufficient for Magick++... " >&6; }
25667 if \
cristy964cb7f2010-04-25 23:18:00 +000025668 test $ax_cv_cxx_bool = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025669 test $ax_cv_cxx_namespaces = 'yes' && \
cristy3ed852e2009-09-05 21:47:34 +000025670 test $ac_cv_cxx_have_std_libs = 'yes' && \
cristy964cb7f2010-04-25 23:18:00 +000025671 test $ax_cv_cxx_have_std_namespace = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000025672 have_magick_plus_plus='yes'
25673 else
25674 have_magick_plus_plus='no (failed tests)'
25675 fi
cristy09b53e12011-10-14 12:47:22 +000025676 { $as_echo "$as_me:${as_lineno-$LINENO}: $have_magick_plus_plus" >&5
25677$as_echo "$as_me: $have_magick_plus_plus" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000025678 LIBS="$OLIBS"
25679fi
cristy73bd4a52010-10-05 11:24:23 +000025680 if test "$have_magick_plus_plus" = 'yes'; then
25681 WITH_MAGICK_PLUS_PLUS_TRUE=
25682 WITH_MAGICK_PLUS_PLUS_FALSE='#'
25683else
25684 WITH_MAGICK_PLUS_PLUS_TRUE='#'
25685 WITH_MAGICK_PLUS_PLUS_FALSE=
25686fi
25687
cristy3ed852e2009-09-05 21:47:34 +000025688
25689# Only check for delegate libraries in subdirectories if requested.
25690if test "$enable_delegate_build" != 'no'; then
25691 # Check for delegate sub-directories and add -I & -L options as required.
25692 # This presumes that delegates are installed as detailed in the ImageMagick
25693 # README. If delegates are installed in a standard location where the
25694 # compiler will automatically find them then these options should not be
25695 # required.
25696
25697 #
25698 # Most delegates have includes in the same directory as the library, but not all...
25699 #
25700 # Includes
cristy2542fc62011-12-06 17:50:25 +000025701 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 +000025702 if test -d "$builddir/$dir"; then
25703 CPPFLAGS="$CPPFLAGS -I$builddir/$dir"
25704 else
25705 if test -d "$srcdirfull/$dir"; then
25706 CPPFLAGS="$CPPFLAGS -I$srcdirfull/$dir"
25707 fi
25708 fi
25709 done
25710
25711 # Libraries
cristy2542fc62011-12-06 17:50:25 +000025712 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 +000025713 if test -d "$builddir/$dir/.libs"; then
25714 LDFLAGS="$LDFLAGS -L$builddir/$dir/.libs"
25715 else
25716 if test -d "$srcdirfull/$dir/.libs"; then
25717 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir/.libs"
25718 fi
25719 fi
25720 if test -d "$builddir/$dir"; then
25721 LDFLAGS="$LDFLAGS -L$builddir/$dir"
25722 else
25723 if test -d "$srcdirfull/$dir"; then
25724 LDFLAGS="$LDFLAGS -L$srcdirfull/$dir"
25725 fi
25726 fi
25727 done
25728fi
25729
25730# Assume that delegate headers reside under same directory as ImageMagick
25731# installation prefix.
25732MAGICK_CPPFLAGS="-I$INCLUDE_DIR/ImageMagick $MAGICK_CPPFLAGS"
25733
25734#
25735# Find the X11 RGB database
25736#
cristy8b350f62009-11-15 23:12:43 +000025737{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11 configure files" >&5
cristy3ed852e2009-09-05 21:47:34 +000025738$as_echo_n "checking for X11 configure files... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025739if ${im_cv_x_configure+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025740 $as_echo_n "(cached) " >&6
25741else
25742 # Look for the header file in a standard set of common directories.
25743# Check X11 before X11Rn because it is often a symlink to the current release.
25744 for ac_dir in \
25745 /lib/usr/lib/X11 \
25746 /usr/X11/lib \
25747 /usr/X11R4/lib \
25748 /usr/X11R5/lib \
25749 /usr/X11R6/lib \
25750 /usr/X11R7/lib \
25751 /usr/X386/lib \
25752 /usr/XFree86/lib/X11 \
25753 /usr/athena/lib \
25754 /usr/lib \
25755 /usr/lib/X11 \
25756 /usr/lib/X11R4 \
25757 /usr/lib/X11R5 \
25758 /usr/lib/X11R6 \
25759 /usr/lib/X11R7 \
25760 /usr/local/X11/lib \
25761 /usr/local/X11R4/lib \
25762 /usr/local/X11R5/lib \
25763 /usr/local/X11R6/lib \
25764 /usr/local/lib \
25765 /usr/local/lib/X11 \
25766 /usr/local/lib/X11R4 \
25767 /usr/local/lib/X11R5 \
25768 /usr/local/lib/X11R6 \
25769 /usr/local/lib/X11R7 \
25770 /usr/local/x11r5/lib \
25771 /usr/lpp/Xamples/lib \
25772 /usr/openwin/lib \
25773 /usr/openwin/share/lib \
25774 /usr/unsupported/lib \
25775 /usr/x386/lib \
25776 ; do
25777 if test -f "$ac_dir/X11/rgb.txt"; then
25778 im_cv_x_configure="$ac_dir/X11/"
25779 break
25780 elif test -f "$ac_dir/rgb.txt"; then
25781 im_cv_x_configure="$ac_dir/"
25782 break
25783 fi
25784
25785 done
25786fi
cristy8b350f62009-11-15 23:12:43 +000025787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $im_cv_x_configure" >&5
cristy3ed852e2009-09-05 21:47:34 +000025788$as_echo "$im_cv_x_configure" >&6; }
25789X11_CONFIGURE_PATH="$im_cv_x_configure"
25790case "${build_os}" in
25791 mingw* )
25792 X11ConfigurePath=`$WinPathScript "$X11ConfigurePath=" 1`
25793 ;;
25794esac
25795
25796cat >>confdefs.h <<_ACEOF
25797#define X11_CONFIGURE_PATH "$X11ConfigurePath"
25798_ACEOF
25799
25800
25801#
25802# Find OpenMP library
25803#
25804GOMP_LIBS=''
25805if test "$enable_openmp" != 'no'; then
25806 if test "${GCC}" = "yes"; then
cristy18307f12011-12-30 01:20:16 +000025807 # Open64 (passes for GCC but uses different OpenMP implementation)
25808 if test "x$GOMP_LIBS" = x ; then
25809 if $CC --version 2>&1 | grep Open64 > /dev/null ; then
25810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for omp_get_num_procs in -lopenmp" >&5
25811$as_echo_n "checking for omp_get_num_procs in -lopenmp... " >&6; }
25812if ${ac_cv_lib_openmp_omp_get_num_procs+:} false; then :
25813 $as_echo_n "(cached) " >&6
25814else
25815 ac_check_lib_save_LIBS=$LIBS
25816LIBS="-lopenmp $LIBS"
25817cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25818/* end confdefs.h. */
25819
25820/* Override any GCC internal prototype to avoid an error.
25821 Use char because int might match the return type of a GCC
25822 builtin and then its argument prototype would still apply. */
25823#ifdef __cplusplus
25824extern "C"
25825#endif
25826char omp_get_num_procs ();
25827int
25828main ()
25829{
25830return omp_get_num_procs ();
25831 ;
25832 return 0;
25833}
25834_ACEOF
25835if ac_fn_c_try_link "$LINENO"; then :
25836 ac_cv_lib_openmp_omp_get_num_procs=yes
25837else
25838 ac_cv_lib_openmp_omp_get_num_procs=no
25839fi
25840rm -f core conftest.err conftest.$ac_objext \
25841 conftest$ac_exeext conftest.$ac_ext
25842LIBS=$ac_check_lib_save_LIBS
25843fi
25844{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openmp_omp_get_num_procs" >&5
25845$as_echo "$ac_cv_lib_openmp_omp_get_num_procs" >&6; }
25846if test "x$ac_cv_lib_openmp_omp_get_num_procs" = xyes; then :
25847 GOMP_LIBS="-lopenmp"
25848fi
25849
25850 fi
25851 fi
25852 # GCC
25853 if test "x$GOMP_LIBS" = x ; then
25854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GOMP_parallel_start in -lgomp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025855$as_echo_n "checking for GOMP_parallel_start in -lgomp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025856if ${ac_cv_lib_gomp_GOMP_parallel_start+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025857 $as_echo_n "(cached) " >&6
25858else
25859 ac_check_lib_save_LIBS=$LIBS
25860LIBS="-lgomp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025861cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025862/* end confdefs.h. */
25863
25864/* Override any GCC internal prototype to avoid an error.
25865 Use char because int might match the return type of a GCC
25866 builtin and then its argument prototype would still apply. */
25867#ifdef __cplusplus
25868extern "C"
25869#endif
25870char GOMP_parallel_start ();
25871int
25872main ()
25873{
25874return GOMP_parallel_start ();
25875 ;
25876 return 0;
25877}
25878_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025879if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025880 ac_cv_lib_gomp_GOMP_parallel_start=yes
25881else
cristy8b350f62009-11-15 23:12:43 +000025882 ac_cv_lib_gomp_GOMP_parallel_start=no
cristy3ed852e2009-09-05 21:47:34 +000025883fi
cristy8b350f62009-11-15 23:12:43 +000025884rm -f core conftest.err conftest.$ac_objext \
25885 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025886LIBS=$ac_check_lib_save_LIBS
25887fi
cristy8b350f62009-11-15 23:12:43 +000025888{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gomp_GOMP_parallel_start" >&5
cristy3ed852e2009-09-05 21:47:34 +000025889$as_echo "$ac_cv_lib_gomp_GOMP_parallel_start" >&6; }
cristyda16f162011-02-19 23:52:17 +000025890if test "x$ac_cv_lib_gomp_GOMP_parallel_start" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025891 GOMP_LIBS="-lgomp"
25892fi
cristy18307f12011-12-30 01:20:16 +000025893
25894 fi
cristy3ed852e2009-09-05 21:47:34 +000025895 else
cristy18307f12011-12-30 01:20:16 +000025896 # Sun CC
25897 if test "x$GOMP_LIBS" = x ; then
25898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sunw_mp_register_warn in -lmtsk" >&5
cristy3ed852e2009-09-05 21:47:34 +000025899$as_echo_n "checking for sunw_mp_register_warn in -lmtsk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025900if ${ac_cv_lib_mtsk_sunw_mp_register_warn+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025901 $as_echo_n "(cached) " >&6
25902else
25903 ac_check_lib_save_LIBS=$LIBS
25904LIBS="-lmtsk $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025905cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025906/* end confdefs.h. */
25907
25908/* Override any GCC internal prototype to avoid an error.
25909 Use char because int might match the return type of a GCC
25910 builtin and then its argument prototype would still apply. */
25911#ifdef __cplusplus
25912extern "C"
25913#endif
25914char sunw_mp_register_warn ();
25915int
25916main ()
25917{
25918return sunw_mp_register_warn ();
25919 ;
25920 return 0;
25921}
25922_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025923if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025924 ac_cv_lib_mtsk_sunw_mp_register_warn=yes
25925else
cristy8b350f62009-11-15 23:12:43 +000025926 ac_cv_lib_mtsk_sunw_mp_register_warn=no
cristy3ed852e2009-09-05 21:47:34 +000025927fi
cristy8b350f62009-11-15 23:12:43 +000025928rm -f core conftest.err conftest.$ac_objext \
25929 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025930LIBS=$ac_check_lib_save_LIBS
25931fi
cristy8b350f62009-11-15 23:12:43 +000025932{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mtsk_sunw_mp_register_warn" >&5
cristy3ed852e2009-09-05 21:47:34 +000025933$as_echo "$ac_cv_lib_mtsk_sunw_mp_register_warn" >&6; }
cristyda16f162011-02-19 23:52:17 +000025934if test "x$ac_cv_lib_mtsk_sunw_mp_register_warn" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025935 GOMP_LIBS="-lmtsk"
25936fi
cristy18307f12011-12-30 01:20:16 +000025937
25938 fi
25939 # AIX xlc
25940 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _xlsmpFlush in -lxlsmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025942$as_echo_n "checking for _xlsmpFlush in -lxlsmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025943if ${ac_cv_lib_xlsmp__xlsmpFlush+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025944 $as_echo_n "(cached) " >&6
25945else
25946 ac_check_lib_save_LIBS=$LIBS
25947LIBS="-lxlsmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025948cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025949/* end confdefs.h. */
25950
25951/* Override any GCC internal prototype to avoid an error.
25952 Use char because int might match the return type of a GCC
25953 builtin and then its argument prototype would still apply. */
25954#ifdef __cplusplus
25955extern "C"
25956#endif
25957char _xlsmpFlush ();
25958int
25959main ()
25960{
25961return _xlsmpFlush ();
25962 ;
25963 return 0;
25964}
25965_ACEOF
cristy8b350f62009-11-15 23:12:43 +000025966if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000025967 ac_cv_lib_xlsmp__xlsmpFlush=yes
25968else
cristy8b350f62009-11-15 23:12:43 +000025969 ac_cv_lib_xlsmp__xlsmpFlush=no
cristy3ed852e2009-09-05 21:47:34 +000025970fi
cristy8b350f62009-11-15 23:12:43 +000025971rm -f core conftest.err conftest.$ac_objext \
25972 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025973LIBS=$ac_check_lib_save_LIBS
25974fi
cristy8b350f62009-11-15 23:12:43 +000025975{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xlsmp__xlsmpFlush" >&5
cristy3ed852e2009-09-05 21:47:34 +000025976$as_echo "$ac_cv_lib_xlsmp__xlsmpFlush" >&6; }
cristyda16f162011-02-19 23:52:17 +000025977if test "x$ac_cv_lib_xlsmp__xlsmpFlush" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000025978 GOMP_LIBS="-lxlsmp"
25979fi
cristy18307f12011-12-30 01:20:16 +000025980
25981 fi
25982 # SGI IRIX 6.5 MIPSpro C/C++
25983 if test "x$GOMP_LIBS" = x ; then
cristy8b350f62009-11-15 23:12:43 +000025984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mp_destroy in -lmp" >&5
cristy3ed852e2009-09-05 21:47:34 +000025985$as_echo_n "checking for mp_destroy in -lmp... " >&6; }
cristyda16f162011-02-19 23:52:17 +000025986if ${ac_cv_lib_mp_mp_destroy+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000025987 $as_echo_n "(cached) " >&6
25988else
25989 ac_check_lib_save_LIBS=$LIBS
25990LIBS="-lmp $LIBS"
cristy8b350f62009-11-15 23:12:43 +000025991cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000025992/* end confdefs.h. */
25993
25994/* Override any GCC internal prototype to avoid an error.
25995 Use char because int might match the return type of a GCC
25996 builtin and then its argument prototype would still apply. */
25997#ifdef __cplusplus
25998extern "C"
25999#endif
26000char mp_destroy ();
26001int
26002main ()
26003{
26004return mp_destroy ();
26005 ;
26006 return 0;
26007}
26008_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026009if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026010 ac_cv_lib_mp_mp_destroy=yes
26011else
cristy8b350f62009-11-15 23:12:43 +000026012 ac_cv_lib_mp_mp_destroy=no
cristy3ed852e2009-09-05 21:47:34 +000026013fi
cristy8b350f62009-11-15 23:12:43 +000026014rm -f core conftest.err conftest.$ac_objext \
26015 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026016LIBS=$ac_check_lib_save_LIBS
26017fi
cristy8b350f62009-11-15 23:12:43 +000026018{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mp_mp_destroy" >&5
cristy3ed852e2009-09-05 21:47:34 +000026019$as_echo "$ac_cv_lib_mp_mp_destroy" >&6; }
cristyda16f162011-02-19 23:52:17 +000026020if test "x$ac_cv_lib_mp_mp_destroy" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026021 GOMP_LIBS="-lmp"
26022fi
cristy18307f12011-12-30 01:20:16 +000026023
26024 fi
cristy3ed852e2009-09-05 21:47:34 +000026025 fi
26026 LIBS="$GOMP_LIBS $LIBS"
26027fi
26028
26029
26030#
26031# Find Posix threads library
26032#
26033THREAD_LIBS=''
26034if test "$with_threads" != 'no' && test "$have_threads" = 'yes'; then
26035
26036 if test "x$PTHREAD_LIBS" = "x"; then
26037 case "${host_cpu}-${host_os}" in
26038 *-freebsd*)
cristy73bd4a52010-10-05 11:24:23 +000026039
26040
26041
26042ac_ext=c
26043ac_cpp='$CPP $CPPFLAGS'
26044ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26045ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26046ac_compiler_gnu=$ac_cv_c_compiler_gnu
26047
26048magick_pthread_lib_ok=no
26049
26050LIB=-lc_r
26051save_LIBS="$LIBS"
26052LIBS="$LIBS $LIB"
26053
26054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26055$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26056cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26057/* end confdefs.h. */
26058#include <pthread.h>
26059int
26060main ()
26061{
26062 pthread_t th;
26063 pthread_join(th, 0);
26064 pthread_attr_init(0);
26065 pthread_cleanup_push(0, 0);
26066 pthread_create(0,0,0,0);
26067 pthread_cleanup_pop(0);
26068 ;
26069 return 0;
26070}
26071_ACEOF
26072if ac_fn_c_try_link "$LINENO"; then :
26073 magick_pthread_lib_ok=yes
26074fi
26075rm -f core conftest.err conftest.$ac_objext \
26076 conftest$ac_exeext conftest.$ac_ext
26077
26078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26079$as_echo "${magick_pthread_lib_ok}" >&6; }
26080if test "$magick_pthread_lib_ok" = yes
26081then
26082 PTHREAD_LIBS=-lc_r
26083 :
26084else
26085
26086 :
26087fi
26088
26089LIBS="$save_LIBS"
26090
26091ac_ext=c
26092ac_cpp='$CPP $CPPFLAGS'
26093ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26094ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26095ac_compiler_gnu=$ac_cv_c_compiler_gnu
26096
26097 ;;
cristy3ed852e2009-09-05 21:47:34 +000026098 esac
26099 fi
26100
26101 for lib in pthread pthreads; do
26102 if test "x$PTHREAD_LIBS" = "x"; then
cristy73bd4a52010-10-05 11:24:23 +000026103
26104
26105
26106ac_ext=c
26107ac_cpp='$CPP $CPPFLAGS'
26108ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26109ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26110ac_compiler_gnu=$ac_cv_c_compiler_gnu
26111
26112magick_pthread_lib_ok=no
26113
26114LIB=-l$lib
26115save_LIBS="$LIBS"
26116LIBS="$LIBS $LIB"
26117
26118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library $LIB" >&5
26119$as_echo_n "checking for the pthreads library $LIB... " >&6; }
26120cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26121/* end confdefs.h. */
26122#include <pthread.h>
26123int
26124main ()
26125{
26126 pthread_t th;
26127 pthread_join(th, 0);
26128 pthread_attr_init(0);
26129 pthread_cleanup_push(0, 0);
26130 pthread_create(0,0,0,0);
26131 pthread_cleanup_pop(0);
26132 ;
26133 return 0;
26134}
26135_ACEOF
26136if ac_fn_c_try_link "$LINENO"; then :
26137 magick_pthread_lib_ok=yes
26138fi
26139rm -f core conftest.err conftest.$ac_objext \
26140 conftest$ac_exeext conftest.$ac_ext
26141
26142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${magick_pthread_lib_ok}" >&5
26143$as_echo "${magick_pthread_lib_ok}" >&6; }
26144if test "$magick_pthread_lib_ok" = yes
26145then
26146 PTHREAD_LIBS=-l$lib
26147 :
26148else
26149
26150 :
26151fi
26152
26153LIBS="$save_LIBS"
26154
26155ac_ext=c
26156ac_cpp='$CPP $CPPFLAGS'
26157ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
26158ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
26159ac_compiler_gnu=$ac_cv_c_compiler_gnu
26160
26161
cristy3ed852e2009-09-05 21:47:34 +000026162 fi
26163 done
26164
26165 THREAD_LIBS="$PTHREAD_LIBS"
26166 LIBS="$LIBS $THREAD_LIBS"
26167fi
26168
26169
26170#
26171# Check for umem.
26172#
26173have_umem='no'
26174UMEM_LIBS=''
26175if test "$with_umem" != 'no'; then
cristy8b350f62009-11-15 23:12:43 +000026176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for UMEM support " >&5
cristy3ed852e2009-09-05 21:47:34 +000026177$as_echo_n "checking for UMEM support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026178 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26179$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026180 failed=0
26181 passed=0
cristy8b350f62009-11-15 23:12:43 +000026182 ac_fn_c_check_header_mongrel "$LINENO" "umem.h" "ac_cv_header_umem_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026183if test "x$ac_cv_header_umem_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026184 passed=`expr $passed + 1`
26185else
26186 failed=`expr $failed + 1`
26187fi
26188
26189
cristy8b350f62009-11-15 23:12:43 +000026190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_alloc in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026191$as_echo_n "checking for umem_alloc in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026192if ${ac_cv_lib_umem_umem_alloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026193 $as_echo_n "(cached) " >&6
26194else
26195 ac_check_lib_save_LIBS=$LIBS
26196LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026197cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026198/* end confdefs.h. */
26199
26200/* Override any GCC internal prototype to avoid an error.
26201 Use char because int might match the return type of a GCC
26202 builtin and then its argument prototype would still apply. */
26203#ifdef __cplusplus
26204extern "C"
26205#endif
26206char umem_alloc ();
26207int
26208main ()
26209{
26210return umem_alloc ();
26211 ;
26212 return 0;
26213}
26214_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026215if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026216 ac_cv_lib_umem_umem_alloc=yes
26217else
cristy8b350f62009-11-15 23:12:43 +000026218 ac_cv_lib_umem_umem_alloc=no
cristy3ed852e2009-09-05 21:47:34 +000026219fi
cristy8b350f62009-11-15 23:12:43 +000026220rm -f core conftest.err conftest.$ac_objext \
26221 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026222LIBS=$ac_check_lib_save_LIBS
26223fi
cristy8b350f62009-11-15 23:12:43 +000026224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_alloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026225$as_echo "$ac_cv_lib_umem_umem_alloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026226if test "x$ac_cv_lib_umem_umem_alloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026227 passed=`expr $passed + 1`
26228else
26229 failed=`expr $failed + 1`
26230fi
26231
cristy8b350f62009-11-15 23:12:43 +000026232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umem_free in -lumem" >&5
cristy3ed852e2009-09-05 21:47:34 +000026233$as_echo_n "checking for umem_free in -lumem... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026234if ${ac_cv_lib_umem_umem_free+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026235 $as_echo_n "(cached) " >&6
26236else
26237 ac_check_lib_save_LIBS=$LIBS
26238LIBS="-lumem $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026239cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026240/* end confdefs.h. */
26241
26242/* Override any GCC internal prototype to avoid an error.
26243 Use char because int might match the return type of a GCC
26244 builtin and then its argument prototype would still apply. */
26245#ifdef __cplusplus
26246extern "C"
26247#endif
26248char umem_free ();
26249int
26250main ()
26251{
26252return umem_free ();
26253 ;
26254 return 0;
26255}
26256_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026257if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026258 ac_cv_lib_umem_umem_free=yes
26259else
cristy8b350f62009-11-15 23:12:43 +000026260 ac_cv_lib_umem_umem_free=no
cristy3ed852e2009-09-05 21:47:34 +000026261fi
cristy8b350f62009-11-15 23:12:43 +000026262rm -f core conftest.err conftest.$ac_objext \
26263 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026264LIBS=$ac_check_lib_save_LIBS
26265fi
cristy8b350f62009-11-15 23:12:43 +000026266{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_umem_umem_free" >&5
cristy3ed852e2009-09-05 21:47:34 +000026267$as_echo "$ac_cv_lib_umem_umem_free" >&6; }
cristyda16f162011-02-19 23:52:17 +000026268if test "x$ac_cv_lib_umem_umem_free" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026269 passed=`expr $passed + 1`
26270else
26271 failed=`expr $failed + 1`
26272fi
26273
cristy8b350f62009-11-15 23:12:43 +000026274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if umem memory allocation library is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026275$as_echo_n "checking if umem memory allocation library is complete... " >&6; }
26276 if test $passed -gt 0; then
26277 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026278 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26279$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026280 have_umem='no (failed tests)'
26281 else
26282 UMEM_LIBS='-lumem'
26283 LIBS="$UMEM_LIBS $LIBS"
26284
cristy8b350f62009-11-15 23:12:43 +000026285$as_echo "#define HasUMEM 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026286
cristy09b53e12011-10-14 12:47:22 +000026287 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26288$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026289 have_umem='yes'
26290 fi
26291 else
cristy09b53e12011-10-14 12:47:22 +000026292 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26293$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026294 fi
26295fi
cristy73bd4a52010-10-05 11:24:23 +000026296 if test "$have_umem" = 'yes'; then
26297 HasUMEM_TRUE=
26298 HasUMEM_FALSE='#'
26299else
26300 HasUMEM_TRUE='#'
26301 HasUMEM_FALSE=
26302fi
26303
cristy3ed852e2009-09-05 21:47:34 +000026304
26305
26306#
26307# Add support for ccmalloc memory debugging library if requested
26308#
26309have_ccmalloc='no'
26310CCMALLOC_LIBS=''
26311if test "$enable_ccmalloc" = 'yes'; then
26312 # Extract the first word of "ccmalloc", so it can be a program name with args.
26313set dummy ccmalloc; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000026314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000026315$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026316if ${ac_cv_path_CCMALLOCDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026317 $as_echo_n "(cached) " >&6
26318else
26319 case $CCMALLOCDelegate in
26320 [\\/]* | ?:[\\/]*)
26321 ac_cv_path_CCMALLOCDelegate="$CCMALLOCDelegate" # Let the user override the test with a path.
26322 ;;
26323 *)
26324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26325for as_dir in $PATH
26326do
26327 IFS=$as_save_IFS
26328 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000026329 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000026330 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000026331 ac_cv_path_CCMALLOCDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000026332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000026333 break 2
26334 fi
26335done
cristy8b350f62009-11-15 23:12:43 +000026336 done
cristy3ed852e2009-09-05 21:47:34 +000026337IFS=$as_save_IFS
26338
26339 ;;
26340esac
26341fi
26342CCMALLOCDelegate=$ac_cv_path_CCMALLOCDelegate
26343if test -n "$CCMALLOCDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000026344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCMALLOCDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000026345$as_echo "$CCMALLOCDelegate" >&6; }
26346else
cristy8b350f62009-11-15 23:12:43 +000026347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026348$as_echo "no" >&6; }
26349fi
26350
26351
26352 if test -n "$CCMALLOCDelegate"; then
26353 eval `grep PREFIX= $CCMALLOCDelegate | sed -e 's/PREFIX/CCMALLOC_PREFIX/'`
26354 OLIBS="$LIBS"
26355 # Assume that gcc is used with ccmalloc.
26356 LIBS="$LIBS $CCMALLOC_PREFIX/lib/ccmalloc-gcc.o"
cristy8b350f62009-11-15 23:12:43 +000026357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccmalloc_malloc in -lccmalloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026358$as_echo_n "checking for ccmalloc_malloc in -lccmalloc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026359if ${ac_cv_lib_ccmalloc_ccmalloc_malloc+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026360 $as_echo_n "(cached) " >&6
26361else
26362 ac_check_lib_save_LIBS=$LIBS
26363LIBS="-lccmalloc -ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026364cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026365/* end confdefs.h. */
26366
26367/* Override any GCC internal prototype to avoid an error.
26368 Use char because int might match the return type of a GCC
26369 builtin and then its argument prototype would still apply. */
26370#ifdef __cplusplus
26371extern "C"
26372#endif
26373char ccmalloc_malloc ();
26374int
26375main ()
26376{
26377return ccmalloc_malloc ();
26378 ;
26379 return 0;
26380}
26381_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026382if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026383 ac_cv_lib_ccmalloc_ccmalloc_malloc=yes
26384else
cristy8b350f62009-11-15 23:12:43 +000026385 ac_cv_lib_ccmalloc_ccmalloc_malloc=no
cristy3ed852e2009-09-05 21:47:34 +000026386fi
cristy8b350f62009-11-15 23:12:43 +000026387rm -f core conftest.err conftest.$ac_objext \
26388 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026389LIBS=$ac_check_lib_save_LIBS
26390fi
cristy8b350f62009-11-15 23:12:43 +000026391{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ccmalloc_ccmalloc_malloc" >&5
cristy3ed852e2009-09-05 21:47:34 +000026392$as_echo "$ac_cv_lib_ccmalloc_ccmalloc_malloc" >&6; }
cristyda16f162011-02-19 23:52:17 +000026393if test "x$ac_cv_lib_ccmalloc_ccmalloc_malloc" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026394 CCMALLOC_LIBS="$CCMALLOC_PREFIX/lib/ccmalloc-gcc.o -lccmalloc -ldl"
26395fi
26396
26397 if test -n "$CCMALLOC_LIBS"; then
26398 LIBS="$OLIBS"
26399 LIBS="$LIBS $CCMALLOC_LIBS"
26400 have_ccmalloc='yes'
26401 else
26402 LIBS="$OLIBS"
26403 fi
26404 fi
26405fi
26406
26407#
26408# Add support for efence memory debugging library if requested
26409#
26410if test "$enable_efence" = 'yes'; then
26411 EFENCE_LIBS='-lefence'
26412 LIBS="$EFENCE_LIBS $LIBS"
26413fi
26414
cristy3ed852e2009-09-05 21:47:34 +000026415
26416#
26417# Check for BZLIB
26418#
26419
26420
26421# Check whether --with-bzlib was given.
cristy8b350f62009-11-15 23:12:43 +000026422if test "${with_bzlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000026423 withval=$with_bzlib; with_bzlib=$withval
26424else
26425 with_bzlib='yes'
26426fi
26427
26428
26429if test "$with_bzlib" != 'yes'; then
26430 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-bzlib=$with_bzlib "
26431fi
26432
26433have_bzlib='no'
26434if test "$with_bzlib" != 'no'; then
26435 BZLIB_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000026436 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
26437$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000026438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000026439$as_echo_n "checking for BZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000026440 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
26441$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026442 failed=0
26443 passed=0
26444 found_libbz=0
cristy8b350f62009-11-15 23:12:43 +000026445 ac_fn_c_check_header_mongrel "$LINENO" "bzlib.h" "ac_cv_header_bzlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000026446if test "x$ac_cv_header_bzlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026447 passed=`expr $passed + 1`
26448else
26449 failed=`expr $failed + 1`
26450fi
26451
26452
cristy8b350f62009-11-15 23:12:43 +000026453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BZ2_bzDecompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026454$as_echo_n "checking for BZ2_bzDecompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026455if ${ac_cv_lib_bz2_BZ2_bzDecompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026456 $as_echo_n "(cached) " >&6
26457else
26458 ac_check_lib_save_LIBS=$LIBS
26459LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026460cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026461/* end confdefs.h. */
26462
26463/* Override any GCC internal prototype to avoid an error.
26464 Use char because int might match the return type of a GCC
26465 builtin and then its argument prototype would still apply. */
26466#ifdef __cplusplus
26467extern "C"
26468#endif
26469char BZ2_bzDecompress ();
26470int
26471main ()
26472{
26473return BZ2_bzDecompress ();
26474 ;
26475 return 0;
26476}
26477_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026478if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026479 ac_cv_lib_bz2_BZ2_bzDecompress=yes
26480else
cristy8b350f62009-11-15 23:12:43 +000026481 ac_cv_lib_bz2_BZ2_bzDecompress=no
cristy3ed852e2009-09-05 21:47:34 +000026482fi
cristy8b350f62009-11-15 23:12:43 +000026483rm -f core conftest.err conftest.$ac_objext \
26484 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026485LIBS=$ac_check_lib_save_LIBS
26486fi
cristy8b350f62009-11-15 23:12:43 +000026487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2_BZ2_bzDecompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026488$as_echo "$ac_cv_lib_bz2_BZ2_bzDecompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026489if test "x$ac_cv_lib_bz2_BZ2_bzDecompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026490 found_libbz=`expr $found_libbz + 1`
26491fi
26492
26493 if test "$native_win32_build" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000026494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _imp__BZ2_decompress in -lbz2" >&5
cristy3ed852e2009-09-05 21:47:34 +000026495$as_echo_n "checking for _imp__BZ2_decompress in -lbz2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026496if ${ac_cv_lib_bz2__imp__BZ2_decompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026497 $as_echo_n "(cached) " >&6
26498else
26499 ac_check_lib_save_LIBS=$LIBS
26500LIBS="-lbz2 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026501cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026502/* end confdefs.h. */
26503
26504/* Override any GCC internal prototype to avoid an error.
26505 Use char because int might match the return type of a GCC
26506 builtin and then its argument prototype would still apply. */
26507#ifdef __cplusplus
26508extern "C"
26509#endif
26510char _imp__BZ2_decompress ();
26511int
26512main ()
26513{
26514return _imp__BZ2_decompress ();
26515 ;
26516 return 0;
26517}
26518_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026519if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026520 ac_cv_lib_bz2__imp__BZ2_decompress=yes
26521else
cristy8b350f62009-11-15 23:12:43 +000026522 ac_cv_lib_bz2__imp__BZ2_decompress=no
cristy3ed852e2009-09-05 21:47:34 +000026523fi
cristy8b350f62009-11-15 23:12:43 +000026524rm -f core conftest.err conftest.$ac_objext \
26525 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026526LIBS=$ac_check_lib_save_LIBS
26527fi
cristy8b350f62009-11-15 23:12:43 +000026528{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bz2__imp__BZ2_decompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000026529$as_echo "$ac_cv_lib_bz2__imp__BZ2_decompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000026530if test "x$ac_cv_lib_bz2__imp__BZ2_decompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026531 found_libbz=`expr $found_libbz + 1`
26532fi
26533
26534 fi
26535 if test $found_libbz -gt 0; then
26536 passed=`expr $passed + 1`
26537 else
26538 failed=`expr $failed + 1`
26539 fi
cristy8b350f62009-11-15 23:12:43 +000026540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if BZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000026541$as_echo_n "checking if BZLIB package is complete... " >&6; }
26542 if test $passed -gt 0; then
26543 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000026544 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
26545$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026546 have_bzlib='no (failed tests)'
26547 else
26548 BZLIB_LIBS='-lbz2'
26549 LIBS="$BZLIB_LIBS $LIBS"
26550
cristy8b350f62009-11-15 23:12:43 +000026551$as_echo "#define BZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026552
cristy09b53e12011-10-14 12:47:22 +000026553 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
26554$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026555 have_bzlib='yes'
26556 fi
26557 else
cristy09b53e12011-10-14 12:47:22 +000026558 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
26559$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000026560 fi
26561fi
cristy73bd4a52010-10-05 11:24:23 +000026562 if test "$have_bzlib" = 'yes'; then
26563 BZLIB_DELEGATE_TRUE=
26564 BZLIB_DELEGATE_FALSE='#'
26565else
26566 BZLIB_DELEGATE_TRUE='#'
26567 BZLIB_DELEGATE_FALSE=
26568fi
26569
cristy3ed852e2009-09-05 21:47:34 +000026570
26571
26572#
26573# Find the X11 include and library directories.
26574#
26575IPC_LIBS=''
26576X11_LIBS=''
26577XEXT_LIBS=''
26578XT_LIBS=''
cristy8b350f62009-11-15 23:12:43 +000026579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
cristyc7083c12009-10-14 03:16:55 +000026580$as_echo_n "checking for X... " >&6; }
26581
26582
26583# Check whether --with-x was given.
cristy8b350f62009-11-15 23:12:43 +000026584if test "${with_x+set}" = set; then :
cristyc7083c12009-10-14 03:16:55 +000026585 withval=$with_x;
26586fi
26587
26588# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
26589if test "x$with_x" = xno; then
26590 # The user explicitly disabled X.
26591 have_x=disabled
26592else
26593 case $x_includes,$x_libraries in #(
cristy98dddb52010-11-04 00:30:15 +000026594 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
cristyda16f162011-02-19 23:52:17 +000026595 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
cristyc7083c12009-10-14 03:16:55 +000026596 $as_echo_n "(cached) " >&6
26597else
26598 # One or both of the vars are not set, and there is no cached value.
26599ac_x_includes=no ac_x_libraries=no
26600rm -f -r conftest.dir
26601if mkdir conftest.dir; then
26602 cd conftest.dir
26603 cat >Imakefile <<'_ACEOF'
26604incroot:
26605 @echo incroot='${INCROOT}'
26606usrlibdir:
26607 @echo usrlibdir='${USRLIBDIR}'
26608libdir:
26609 @echo libdir='${LIBDIR}'
26610_ACEOF
26611 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
cristy98dddb52010-11-04 00:30:15 +000026612 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
cristyc7083c12009-10-14 03:16:55 +000026613 for ac_var in incroot usrlibdir libdir; do
26614 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
26615 done
26616 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
26617 for ac_extension in a so sl dylib la dll; do
26618 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
26619 test -f "$ac_im_libdir/libX11.$ac_extension"; then
26620 ac_im_usrlibdir=$ac_im_libdir; break
26621 fi
26622 done
26623 # Screen out bogus values from the imake configuration. They are
26624 # bogus both because they are the default anyway, and because
26625 # using them would break gcc on systems where it needs fixed includes.
26626 case $ac_im_incroot in
26627 /usr/include) ac_x_includes= ;;
26628 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
26629 esac
26630 case $ac_im_usrlibdir in
26631 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
26632 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
26633 esac
26634 fi
26635 cd ..
26636 rm -f -r conftest.dir
26637fi
26638
26639# Standard set of common directories for X headers.
26640# Check X11 before X11Rn because it is often a symlink to the current release.
26641ac_x_header_dirs='
26642/usr/X11/include
cristy8b350f62009-11-15 23:12:43 +000026643/usr/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026644/usr/X11R6/include
26645/usr/X11R5/include
26646/usr/X11R4/include
26647
26648/usr/include/X11
cristy8b350f62009-11-15 23:12:43 +000026649/usr/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026650/usr/include/X11R6
26651/usr/include/X11R5
26652/usr/include/X11R4
26653
26654/usr/local/X11/include
cristy8b350f62009-11-15 23:12:43 +000026655/usr/local/X11R7/include
cristyc7083c12009-10-14 03:16:55 +000026656/usr/local/X11R6/include
26657/usr/local/X11R5/include
26658/usr/local/X11R4/include
26659
26660/usr/local/include/X11
cristy8b350f62009-11-15 23:12:43 +000026661/usr/local/include/X11R7
cristyc7083c12009-10-14 03:16:55 +000026662/usr/local/include/X11R6
26663/usr/local/include/X11R5
26664/usr/local/include/X11R4
26665
26666/usr/X386/include
26667/usr/x386/include
26668/usr/XFree86/include/X11
26669
26670/usr/include
26671/usr/local/include
26672/usr/unsupported/include
26673/usr/athena/include
26674/usr/local/x11r5/include
26675/usr/lpp/Xamples/include
26676
26677/usr/openwin/include
26678/usr/openwin/share/include'
26679
26680if test "$ac_x_includes" = no; then
26681 # Guess where to find include files, by looking for Xlib.h.
26682 # First, try using that file with no special directory specified.
cristy8b350f62009-11-15 23:12:43 +000026683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026684/* end confdefs.h. */
26685#include <X11/Xlib.h>
26686_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026687if ac_fn_c_try_cpp "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026688 # We can compile using X headers with no special include directory.
26689ac_x_includes=
26690else
cristyc7083c12009-10-14 03:16:55 +000026691 for ac_dir in $ac_x_header_dirs; do
26692 if test -r "$ac_dir/X11/Xlib.h"; then
26693 ac_x_includes=$ac_dir
26694 break
26695 fi
26696done
26697fi
cristyda16f162011-02-19 23:52:17 +000026698rm -f conftest.err conftest.i conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026699fi # $ac_x_includes = no
26700
26701if test "$ac_x_libraries" = no; then
26702 # Check for the libraries.
26703 # See if we find them without any special options.
26704 # Don't add to $LIBS permanently.
26705 ac_save_LIBS=$LIBS
26706 LIBS="-lX11 $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026708/* end confdefs.h. */
26709#include <X11/Xlib.h>
26710int
26711main ()
26712{
26713XrmInitialize ()
26714 ;
26715 return 0;
26716}
26717_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026718if ac_fn_c_try_link "$LINENO"; then :
cristyc7083c12009-10-14 03:16:55 +000026719 LIBS=$ac_save_LIBS
26720# We can link X programs with no special library path.
26721ac_x_libraries=
26722else
cristy8b350f62009-11-15 23:12:43 +000026723 LIBS=$ac_save_LIBS
cristyc7083c12009-10-14 03:16:55 +000026724for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
26725do
26726 # Don't even attempt the hair of trying to link an X program!
26727 for ac_extension in a so sl dylib la dll; do
26728 if test -r "$ac_dir/libX11.$ac_extension"; then
26729 ac_x_libraries=$ac_dir
26730 break 2
26731 fi
26732 done
26733done
26734fi
cristy8b350f62009-11-15 23:12:43 +000026735rm -f core conftest.err conftest.$ac_objext \
26736 conftest$ac_exeext conftest.$ac_ext
cristyc7083c12009-10-14 03:16:55 +000026737fi # $ac_x_libraries = no
26738
26739case $ac_x_includes,$ac_x_libraries in #(
26740 no,* | *,no | *\'*)
26741 # Didn't find X, or a directory has "'" in its name.
26742 ac_cv_have_x="have_x=no";; #(
26743 *)
26744 # Record where we found X for the cache.
26745 ac_cv_have_x="have_x=yes\
26746 ac_x_includes='$ac_x_includes'\
26747 ac_x_libraries='$ac_x_libraries'"
26748esac
26749fi
26750;; #(
26751 *) have_x=yes;;
26752 esac
26753 eval "$ac_cv_have_x"
26754fi # $with_x != no
26755
26756if test "$have_x" != yes; then
cristy8b350f62009-11-15 23:12:43 +000026757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
cristyc7083c12009-10-14 03:16:55 +000026758$as_echo "$have_x" >&6; }
26759 no_x=yes
26760else
26761 # If each of the values was on the command line, it overrides each guess.
26762 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
26763 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
26764 # Update the cache value to reflect the command line values.
26765 ac_cv_have_x="have_x=yes\
26766 ac_x_includes='$x_includes'\
26767 ac_x_libraries='$x_libraries'"
cristy8b350f62009-11-15 23:12:43 +000026768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
cristyc7083c12009-10-14 03:16:55 +000026769$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
26770fi
26771
cristy3ed852e2009-09-05 21:47:34 +000026772if test "$no_x" = yes; then
26773 # Not all programs may use this symbol, but it does not hurt to define it.
26774
cristy8b350f62009-11-15 23:12:43 +000026775$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000026776
26777 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
26778else
26779 if test -n "$x_includes"; then
26780 X_CFLAGS="$X_CFLAGS -I$x_includes"
26781 fi
26782
26783 # It would also be nice to do this for all -L options, not just this one.
26784 if test -n "$x_libraries"; then
26785 X_LIBS="$X_LIBS -L$x_libraries"
26786 # For Solaris; some versions of Sun CC require a space after -R and
26787 # others require no space. Words are not sufficient . . . .
cristy8b350f62009-11-15 23:12:43 +000026788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
cristy3ed852e2009-09-05 21:47:34 +000026789$as_echo_n "checking whether -R must be followed by a space... " >&6; }
26790 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
26791 ac_xsave_c_werror_flag=$ac_c_werror_flag
26792 ac_c_werror_flag=yes
cristy8b350f62009-11-15 23:12:43 +000026793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026794/* end confdefs.h. */
26795
26796int
26797main ()
26798{
26799
26800 ;
26801 return 0;
26802}
26803_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026804if ac_fn_c_try_link "$LINENO"; then :
26805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000026806$as_echo "no" >&6; }
26807 X_LIBS="$X_LIBS -R$x_libraries"
26808else
cristy8b350f62009-11-15 23:12:43 +000026809 LIBS="$ac_xsave_LIBS -R $x_libraries"
26810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026811/* end confdefs.h. */
26812
26813int
26814main ()
26815{
26816
26817 ;
26818 return 0;
26819}
26820_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026821if ac_fn_c_try_link "$LINENO"; then :
26822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
cristy3ed852e2009-09-05 21:47:34 +000026823$as_echo "yes" >&6; }
26824 X_LIBS="$X_LIBS -R $x_libraries"
26825else
cristy8b350f62009-11-15 23:12:43 +000026826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
cristy3ed852e2009-09-05 21:47:34 +000026827$as_echo "neither works" >&6; }
26828fi
cristy8b350f62009-11-15 23:12:43 +000026829rm -f core conftest.err conftest.$ac_objext \
26830 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026831fi
cristy8b350f62009-11-15 23:12:43 +000026832rm -f core conftest.err conftest.$ac_objext \
26833 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026834 ac_c_werror_flag=$ac_xsave_c_werror_flag
26835 LIBS=$ac_xsave_LIBS
26836 fi
26837
26838 # Check for system-dependent libraries X programs must link with.
26839 # Do this before checking for the system-independent R6 libraries
26840 # (-lICE), since we may need -lsocket or whatever for X linking.
26841
26842 if test "$ISC" = yes; then
26843 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
26844 else
26845 # Martyn Johnson says this is needed for Ultrix, if the X
26846 # libraries were built with DECnet support. And Karl Berry says
26847 # the Alpha needs dnet_stub (dnet does not exist).
26848 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
cristy8b350f62009-11-15 23:12:43 +000026849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026850/* end confdefs.h. */
26851
26852/* Override any GCC internal prototype to avoid an error.
26853 Use char because int might match the return type of a GCC
26854 builtin and then its argument prototype would still apply. */
26855#ifdef __cplusplus
26856extern "C"
26857#endif
26858char XOpenDisplay ();
26859int
26860main ()
26861{
26862return XOpenDisplay ();
26863 ;
26864 return 0;
26865}
26866_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026867if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026868
cristy8b350f62009-11-15 23:12:43 +000026869else
26870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
cristy3ed852e2009-09-05 21:47:34 +000026871$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026872if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026873 $as_echo_n "(cached) " >&6
26874else
26875 ac_check_lib_save_LIBS=$LIBS
26876LIBS="-ldnet $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026877cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026878/* end confdefs.h. */
26879
26880/* Override any GCC internal prototype to avoid an error.
26881 Use char because int might match the return type of a GCC
26882 builtin and then its argument prototype would still apply. */
26883#ifdef __cplusplus
26884extern "C"
26885#endif
26886char dnet_ntoa ();
26887int
26888main ()
26889{
26890return dnet_ntoa ();
26891 ;
26892 return 0;
26893}
26894_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026895if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026896 ac_cv_lib_dnet_dnet_ntoa=yes
26897else
cristy8b350f62009-11-15 23:12:43 +000026898 ac_cv_lib_dnet_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026899fi
cristy8b350f62009-11-15 23:12:43 +000026900rm -f core conftest.err conftest.$ac_objext \
26901 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026902LIBS=$ac_check_lib_save_LIBS
26903fi
cristy8b350f62009-11-15 23:12:43 +000026904{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026905$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026906if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026907 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
26908fi
26909
26910 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
cristy8b350f62009-11-15 23:12:43 +000026911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
cristy3ed852e2009-09-05 21:47:34 +000026912$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026913if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026914 $as_echo_n "(cached) " >&6
26915else
26916 ac_check_lib_save_LIBS=$LIBS
26917LIBS="-ldnet_stub $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026918cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026919/* end confdefs.h. */
26920
26921/* Override any GCC internal prototype to avoid an error.
26922 Use char because int might match the return type of a GCC
26923 builtin and then its argument prototype would still apply. */
26924#ifdef __cplusplus
26925extern "C"
26926#endif
26927char dnet_ntoa ();
26928int
26929main ()
26930{
26931return dnet_ntoa ();
26932 ;
26933 return 0;
26934}
26935_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026936if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026937 ac_cv_lib_dnet_stub_dnet_ntoa=yes
26938else
cristy8b350f62009-11-15 23:12:43 +000026939 ac_cv_lib_dnet_stub_dnet_ntoa=no
cristy3ed852e2009-09-05 21:47:34 +000026940fi
cristy8b350f62009-11-15 23:12:43 +000026941rm -f core conftest.err conftest.$ac_objext \
26942 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026943LIBS=$ac_check_lib_save_LIBS
26944fi
cristy8b350f62009-11-15 23:12:43 +000026945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
cristy3ed852e2009-09-05 21:47:34 +000026946$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
cristyda16f162011-02-19 23:52:17 +000026947if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026948 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
26949fi
26950
26951 fi
26952fi
cristy8b350f62009-11-15 23:12:43 +000026953rm -f core conftest.err conftest.$ac_objext \
26954 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026955 LIBS="$ac_xsave_LIBS"
26956
26957 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
26958 # to get the SysV transport functions.
26959 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
26960 # needs -lnsl.
26961 # The nsl library prevents programs from opening the X display
26962 # on Irix 5.2, according to T.E. Dickey.
26963 # The functions gethostbyname, getservbyname, and inet_addr are
26964 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
cristy8b350f62009-11-15 23:12:43 +000026965 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
cristyda16f162011-02-19 23:52:17 +000026966if test "x$ac_cv_func_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000026967
cristy3ed852e2009-09-05 21:47:34 +000026968fi
26969
cristy3ed852e2009-09-05 21:47:34 +000026970 if test $ac_cv_func_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000026971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
cristy3ed852e2009-09-05 21:47:34 +000026972$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000026973if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000026974 $as_echo_n "(cached) " >&6
26975else
26976 ac_check_lib_save_LIBS=$LIBS
26977LIBS="-lnsl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000026978cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000026979/* end confdefs.h. */
26980
26981/* Override any GCC internal prototype to avoid an error.
26982 Use char because int might match the return type of a GCC
26983 builtin and then its argument prototype would still apply. */
26984#ifdef __cplusplus
26985extern "C"
26986#endif
26987char gethostbyname ();
26988int
26989main ()
26990{
26991return gethostbyname ();
26992 ;
26993 return 0;
26994}
26995_ACEOF
cristy8b350f62009-11-15 23:12:43 +000026996if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000026997 ac_cv_lib_nsl_gethostbyname=yes
26998else
cristy8b350f62009-11-15 23:12:43 +000026999 ac_cv_lib_nsl_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027000fi
cristy8b350f62009-11-15 23:12:43 +000027001rm -f core conftest.err conftest.$ac_objext \
27002 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027003LIBS=$ac_check_lib_save_LIBS
27004fi
cristy8b350f62009-11-15 23:12:43 +000027005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027006$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027007if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027008 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
27009fi
27010
27011 if test $ac_cv_lib_nsl_gethostbyname = no; then
cristy8b350f62009-11-15 23:12:43 +000027012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
cristy3ed852e2009-09-05 21:47:34 +000027013$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027014if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027015 $as_echo_n "(cached) " >&6
27016else
27017 ac_check_lib_save_LIBS=$LIBS
27018LIBS="-lbsd $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027019cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027020/* end confdefs.h. */
27021
27022/* Override any GCC internal prototype to avoid an error.
27023 Use char because int might match the return type of a GCC
27024 builtin and then its argument prototype would still apply. */
27025#ifdef __cplusplus
27026extern "C"
27027#endif
27028char gethostbyname ();
27029int
27030main ()
27031{
27032return gethostbyname ();
27033 ;
27034 return 0;
27035}
27036_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027037if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027038 ac_cv_lib_bsd_gethostbyname=yes
27039else
cristy8b350f62009-11-15 23:12:43 +000027040 ac_cv_lib_bsd_gethostbyname=no
cristy3ed852e2009-09-05 21:47:34 +000027041fi
cristy8b350f62009-11-15 23:12:43 +000027042rm -f core conftest.err conftest.$ac_objext \
27043 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027044LIBS=$ac_check_lib_save_LIBS
27045fi
cristy8b350f62009-11-15 23:12:43 +000027046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
cristy3ed852e2009-09-05 21:47:34 +000027047$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
cristyda16f162011-02-19 23:52:17 +000027048if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027049 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
27050fi
27051
27052 fi
27053 fi
27054
27055 # lieder@skyler.mavd.honeywell.com says without -lsocket,
27056 # socket/setsockopt and other routines are undefined under SCO ODT
27057 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
27058 # on later versions), says Simon Leinen: it contains gethostby*
27059 # variants that don't use the name server (or something). -lsocket
27060 # must be given before -lnsl if both are needed. We assume that
27061 # if connect needs -lnsl, so does gethostbyname.
cristy8b350f62009-11-15 23:12:43 +000027062 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
cristyda16f162011-02-19 23:52:17 +000027063if test "x$ac_cv_func_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027064
cristy3ed852e2009-09-05 21:47:34 +000027065fi
27066
cristy3ed852e2009-09-05 21:47:34 +000027067 if test $ac_cv_func_connect = no; then
cristy8b350f62009-11-15 23:12:43 +000027068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
cristy3ed852e2009-09-05 21:47:34 +000027069$as_echo_n "checking for connect in -lsocket... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027070if ${ac_cv_lib_socket_connect+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027071 $as_echo_n "(cached) " >&6
27072else
27073 ac_check_lib_save_LIBS=$LIBS
27074LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027076/* end confdefs.h. */
27077
27078/* Override any GCC internal prototype to avoid an error.
27079 Use char because int might match the return type of a GCC
27080 builtin and then its argument prototype would still apply. */
27081#ifdef __cplusplus
27082extern "C"
27083#endif
27084char connect ();
27085int
27086main ()
27087{
27088return connect ();
27089 ;
27090 return 0;
27091}
27092_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027093if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027094 ac_cv_lib_socket_connect=yes
27095else
cristy8b350f62009-11-15 23:12:43 +000027096 ac_cv_lib_socket_connect=no
cristy3ed852e2009-09-05 21:47:34 +000027097fi
cristy8b350f62009-11-15 23:12:43 +000027098rm -f core conftest.err conftest.$ac_objext \
27099 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027100LIBS=$ac_check_lib_save_LIBS
27101fi
cristy8b350f62009-11-15 23:12:43 +000027102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
cristy3ed852e2009-09-05 21:47:34 +000027103$as_echo "$ac_cv_lib_socket_connect" >&6; }
cristyda16f162011-02-19 23:52:17 +000027104if test "x$ac_cv_lib_socket_connect" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027105 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
27106fi
27107
27108 fi
27109
27110 # Guillermo Gomez says -lposix is necessary on A/UX.
cristy8b350f62009-11-15 23:12:43 +000027111 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
cristyda16f162011-02-19 23:52:17 +000027112if test "x$ac_cv_func_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027113
cristy3ed852e2009-09-05 21:47:34 +000027114fi
27115
cristy3ed852e2009-09-05 21:47:34 +000027116 if test $ac_cv_func_remove = no; then
cristy8b350f62009-11-15 23:12:43 +000027117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
cristy3ed852e2009-09-05 21:47:34 +000027118$as_echo_n "checking for remove in -lposix... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027119if ${ac_cv_lib_posix_remove+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027120 $as_echo_n "(cached) " >&6
27121else
27122 ac_check_lib_save_LIBS=$LIBS
27123LIBS="-lposix $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027124cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027125/* end confdefs.h. */
27126
27127/* Override any GCC internal prototype to avoid an error.
27128 Use char because int might match the return type of a GCC
27129 builtin and then its argument prototype would still apply. */
27130#ifdef __cplusplus
27131extern "C"
27132#endif
27133char remove ();
27134int
27135main ()
27136{
27137return remove ();
27138 ;
27139 return 0;
27140}
27141_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027142if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027143 ac_cv_lib_posix_remove=yes
27144else
cristy8b350f62009-11-15 23:12:43 +000027145 ac_cv_lib_posix_remove=no
cristy3ed852e2009-09-05 21:47:34 +000027146fi
cristy8b350f62009-11-15 23:12:43 +000027147rm -f core conftest.err conftest.$ac_objext \
27148 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027149LIBS=$ac_check_lib_save_LIBS
27150fi
cristy8b350f62009-11-15 23:12:43 +000027151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
cristy3ed852e2009-09-05 21:47:34 +000027152$as_echo "$ac_cv_lib_posix_remove" >&6; }
cristyda16f162011-02-19 23:52:17 +000027153if test "x$ac_cv_lib_posix_remove" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027154 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
27155fi
27156
27157 fi
27158
27159 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
cristy8b350f62009-11-15 23:12:43 +000027160 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
cristyda16f162011-02-19 23:52:17 +000027161if test "x$ac_cv_func_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027162
cristy3ed852e2009-09-05 21:47:34 +000027163fi
27164
cristy3ed852e2009-09-05 21:47:34 +000027165 if test $ac_cv_func_shmat = no; then
cristy8b350f62009-11-15 23:12:43 +000027166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
cristy3ed852e2009-09-05 21:47:34 +000027167$as_echo_n "checking for shmat in -lipc... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027168if ${ac_cv_lib_ipc_shmat+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027169 $as_echo_n "(cached) " >&6
27170else
27171 ac_check_lib_save_LIBS=$LIBS
27172LIBS="-lipc $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027173cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027174/* end confdefs.h. */
27175
27176/* Override any GCC internal prototype to avoid an error.
27177 Use char because int might match the return type of a GCC
27178 builtin and then its argument prototype would still apply. */
27179#ifdef __cplusplus
27180extern "C"
27181#endif
27182char shmat ();
27183int
27184main ()
27185{
27186return shmat ();
27187 ;
27188 return 0;
27189}
27190_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027191if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027192 ac_cv_lib_ipc_shmat=yes
27193else
cristy8b350f62009-11-15 23:12:43 +000027194 ac_cv_lib_ipc_shmat=no
cristy3ed852e2009-09-05 21:47:34 +000027195fi
cristy8b350f62009-11-15 23:12:43 +000027196rm -f core conftest.err conftest.$ac_objext \
27197 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027198LIBS=$ac_check_lib_save_LIBS
27199fi
cristy8b350f62009-11-15 23:12:43 +000027200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
cristy3ed852e2009-09-05 21:47:34 +000027201$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
cristyda16f162011-02-19 23:52:17 +000027202if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027203 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
27204fi
27205
27206 fi
27207 fi
27208
27209 # Check for libraries that X11R6 Xt/Xaw programs need.
27210 ac_save_LDFLAGS=$LDFLAGS
27211 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
27212 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
27213 # check for ICE first), but we must link in the order -lSM -lICE or
27214 # we get undefined symbols. So assume we have SM if we have ICE.
27215 # These have to be linked with before -lX11, unlike the other
27216 # libraries we check for below, so use a different variable.
27217 # John Interrante, Karl Berry
cristy8b350f62009-11-15 23:12:43 +000027218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
cristy3ed852e2009-09-05 21:47:34 +000027219$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027220if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027221 $as_echo_n "(cached) " >&6
27222else
27223 ac_check_lib_save_LIBS=$LIBS
27224LIBS="-lICE $X_EXTRA_LIBS $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027225cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027226/* end confdefs.h. */
27227
27228/* Override any GCC internal prototype to avoid an error.
27229 Use char because int might match the return type of a GCC
27230 builtin and then its argument prototype would still apply. */
27231#ifdef __cplusplus
27232extern "C"
27233#endif
27234char IceConnectionNumber ();
27235int
27236main ()
27237{
27238return IceConnectionNumber ();
27239 ;
27240 return 0;
27241}
27242_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027243if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027244 ac_cv_lib_ICE_IceConnectionNumber=yes
27245else
cristy8b350f62009-11-15 23:12:43 +000027246 ac_cv_lib_ICE_IceConnectionNumber=no
cristy3ed852e2009-09-05 21:47:34 +000027247fi
cristy8b350f62009-11-15 23:12:43 +000027248rm -f core conftest.err conftest.$ac_objext \
27249 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027250LIBS=$ac_check_lib_save_LIBS
27251fi
cristy8b350f62009-11-15 23:12:43 +000027252{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
cristy3ed852e2009-09-05 21:47:34 +000027253$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
cristyda16f162011-02-19 23:52:17 +000027254if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027255 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
27256fi
27257
27258 LDFLAGS=$ac_save_LDFLAGS
27259
27260fi
27261
27262if test "$no_x" != 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000027263 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27264$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X11" >&5
cristy3ed852e2009-09-05 21:47:34 +000027266$as_echo_n "checking for X11... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027267 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27268$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027269 LDFLAGS="$LDFLAGS $X_LIBS"
27270 X11_LIBS="$X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
27271 LIBS="$X11_LIBS $LIBS"
27272 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
27273
27274
cristy8b350f62009-11-15 23:12:43 +000027275$as_echo "#define X11_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027276
27277 #
27278 # Check for X11 shared memory extension
27279 #
27280 # shmctl is required to support the shared memory extension
cristy8b350f62009-11-15 23:12:43 +000027281 ac_fn_c_check_func "$LINENO" "shmctl" "ac_cv_func_shmctl"
cristyda16f162011-02-19 23:52:17 +000027282if test "x$ac_cv_func_shmctl" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027283 have_shmctl='yes'
27284fi
27285
27286 if test "$have_shmctl" != 'yes'; then
27287 PERSIST_LIBS=$LIBS
27288 LIBS="$LIBS -lcygipc"
cristy8b350f62009-11-15 23:12:43 +000027289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027290/* end confdefs.h. */
27291
27292/* Override any GCC internal prototype to avoid an error.
27293 Use char because int might match the return type of a GCC
27294 builtin and then its argument prototype would still apply. */
27295#ifdef __cplusplus
27296extern "C"
27297#endif
27298char shmctl ();
27299int
27300main ()
27301{
27302return shmctl ();
27303 ;
27304 return 0;
27305}
27306_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027307if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027308 have_shmctl='yes'; IPC_LIBS='-lcygipc'
cristy3ed852e2009-09-05 21:47:34 +000027309fi
cristy8b350f62009-11-15 23:12:43 +000027310rm -f core conftest.err conftest.$ac_objext \
27311 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027312 LIBS=$PERSIST_LIBS
27313 fi
27314
27315 if test "$have_shmctl" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShmAttach in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027317$as_echo_n "checking for XShmAttach in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027318if ${ac_cv_lib_Xext_XShmAttach+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027319 $as_echo_n "(cached) " >&6
27320else
27321 ac_check_lib_save_LIBS=$LIBS
27322LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027323cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027324/* end confdefs.h. */
27325
27326/* Override any GCC internal prototype to avoid an error.
27327 Use char because int might match the return type of a GCC
27328 builtin and then its argument prototype would still apply. */
27329#ifdef __cplusplus
27330extern "C"
27331#endif
27332char XShmAttach ();
27333int
27334main ()
27335{
27336return XShmAttach ();
27337 ;
27338 return 0;
27339}
27340_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027341if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027342 ac_cv_lib_Xext_XShmAttach=yes
27343else
cristy8b350f62009-11-15 23:12:43 +000027344 ac_cv_lib_Xext_XShmAttach=no
cristy3ed852e2009-09-05 21:47:34 +000027345fi
cristy8b350f62009-11-15 23:12:43 +000027346rm -f core conftest.err conftest.$ac_objext \
27347 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027348LIBS=$ac_check_lib_save_LIBS
27349fi
cristy8b350f62009-11-15 23:12:43 +000027350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShmAttach" >&5
cristy3ed852e2009-09-05 21:47:34 +000027351$as_echo "$ac_cv_lib_Xext_XShmAttach" >&6; }
cristyda16f162011-02-19 23:52:17 +000027352if test "x$ac_cv_lib_Xext_XShmAttach" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027353 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027354$as_echo "#define HAVE_SHARED_MEMORY 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027355
27356fi
27357
27358 fi
27359
27360 #
27361 # Check for X11 shape extension
27362 #
cristy8b350f62009-11-15 23:12:43 +000027363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XShapeCombineMask in -lXext" >&5
cristy3ed852e2009-09-05 21:47:34 +000027364$as_echo_n "checking for XShapeCombineMask in -lXext... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027365if ${ac_cv_lib_Xext_XShapeCombineMask+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027366 $as_echo_n "(cached) " >&6
27367else
27368 ac_check_lib_save_LIBS=$LIBS
27369LIBS="-lXext $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027370cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027371/* end confdefs.h. */
27372
27373/* Override any GCC internal prototype to avoid an error.
27374 Use char because int might match the return type of a GCC
27375 builtin and then its argument prototype would still apply. */
27376#ifdef __cplusplus
27377extern "C"
27378#endif
27379char XShapeCombineMask ();
27380int
27381main ()
27382{
27383return XShapeCombineMask ();
27384 ;
27385 return 0;
27386}
27387_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027388if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027389 ac_cv_lib_Xext_XShapeCombineMask=yes
27390else
cristy8b350f62009-11-15 23:12:43 +000027391 ac_cv_lib_Xext_XShapeCombineMask=no
cristy3ed852e2009-09-05 21:47:34 +000027392fi
cristy8b350f62009-11-15 23:12:43 +000027393rm -f core conftest.err conftest.$ac_objext \
27394 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027395LIBS=$ac_check_lib_save_LIBS
27396fi
cristy8b350f62009-11-15 23:12:43 +000027397{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xext_XShapeCombineMask" >&5
cristy3ed852e2009-09-05 21:47:34 +000027398$as_echo "$ac_cv_lib_Xext_XShapeCombineMask" >&6; }
cristyda16f162011-02-19 23:52:17 +000027399if test "x$ac_cv_lib_Xext_XShapeCombineMask" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027400 XEXT_LIBS='-lXext' ;
cristy8b350f62009-11-15 23:12:43 +000027401$as_echo "#define HAVE_SHAPE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027402
27403fi
27404
cristy8b350f62009-11-15 23:12:43 +000027405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XtSetEventDispatcher in -lXt" >&5
cristy3ed852e2009-09-05 21:47:34 +000027406$as_echo_n "checking for XtSetEventDispatcher in -lXt... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027407if ${ac_cv_lib_Xt_XtSetEventDispatcher+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027408 $as_echo_n "(cached) " >&6
27409else
27410 ac_check_lib_save_LIBS=$LIBS
27411LIBS="-lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027412cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027413/* end confdefs.h. */
27414
27415/* Override any GCC internal prototype to avoid an error.
27416 Use char because int might match the return type of a GCC
27417 builtin and then its argument prototype would still apply. */
27418#ifdef __cplusplus
27419extern "C"
27420#endif
27421char XtSetEventDispatcher ();
27422int
27423main ()
27424{
27425return XtSetEventDispatcher ();
27426 ;
27427 return 0;
27428}
27429_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027430if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027431 ac_cv_lib_Xt_XtSetEventDispatcher=yes
27432else
cristy8b350f62009-11-15 23:12:43 +000027433 ac_cv_lib_Xt_XtSetEventDispatcher=no
cristy3ed852e2009-09-05 21:47:34 +000027434fi
cristy8b350f62009-11-15 23:12:43 +000027435rm -f core conftest.err conftest.$ac_objext \
27436 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027437LIBS=$ac_check_lib_save_LIBS
27438fi
cristy8b350f62009-11-15 23:12:43 +000027439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xt_XtSetEventDispatcher" >&5
cristy3ed852e2009-09-05 21:47:34 +000027440$as_echo "$ac_cv_lib_Xt_XtSetEventDispatcher" >&6; }
cristyda16f162011-02-19 23:52:17 +000027441if test "x$ac_cv_lib_Xt_XtSetEventDispatcher" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027442 XT_LIBS='-lXt'
27443fi
27444
27445 LIBS="$XEXT_LIBS $XT_LIBS $LIBS"
27446fi
27447if test "$no_x" != 'yes'; then
27448 have_x='yes'
27449else
27450 have_x='no'
27451fi
cristy73bd4a52010-10-05 11:24:23 +000027452 if test "$have_x" = 'yes'; then
27453 X11_DELEGATE_TRUE=
27454 X11_DELEGATE_FALSE='#'
27455else
27456 X11_DELEGATE_TRUE='#'
27457 X11_DELEGATE_FALSE=
27458fi
27459
cristy3ed852e2009-09-05 21:47:34 +000027460
27461
27462
27463
27464#
27465# Check for ZLIB
27466#
27467
27468# Check whether --with-zlib was given.
cristy8b350f62009-11-15 23:12:43 +000027469if test "${with_zlib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027470 withval=$with_zlib; with_zlib=$withval
27471else
27472 with_zlib='yes'
27473fi
27474
27475
27476if test "$with_zlib" != 'yes'; then
27477 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-zlib=$with_zlib "
27478fi
27479
27480have_zlib='no'
27481ZLIB_LIBS=''
27482if test "$with_zlib" != 'no' || test "$with_png" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000027483 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27484$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000027485 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ZLIB" >&5
cristy3ed852e2009-09-05 21:47:34 +000027486$as_echo_n "checking for ZLIB... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000027487 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27488$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027489 ZLIB_LIBS=''
27490 failed=0
27491 passed=0
cristy8b350f62009-11-15 23:12:43 +000027492 ac_fn_c_check_header_mongrel "$LINENO" "zconf.h" "ac_cv_header_zconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027493if test "x$ac_cv_header_zconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027494 passed=`expr $passed + 1`
27495else
27496 failed=`expr $failed + 1`
27497fi
27498
27499
cristy8b350f62009-11-15 23:12:43 +000027500 ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000027501if test "x$ac_cv_header_zlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027502 passed=`expr $passed + 1`
27503else
27504 failed=`expr $failed + 1`
27505fi
27506
27507
cristy8b350f62009-11-15 23:12:43 +000027508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for compress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027509$as_echo_n "checking for compress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027510if ${ac_cv_lib_z_compress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027511 $as_echo_n "(cached) " >&6
27512else
27513 ac_check_lib_save_LIBS=$LIBS
27514LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027515cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027516/* end confdefs.h. */
27517
27518/* Override any GCC internal prototype to avoid an error.
27519 Use char because int might match the return type of a GCC
27520 builtin and then its argument prototype would still apply. */
27521#ifdef __cplusplus
27522extern "C"
27523#endif
27524char compress ();
27525int
27526main ()
27527{
27528return compress ();
27529 ;
27530 return 0;
27531}
27532_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027533if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027534 ac_cv_lib_z_compress=yes
27535else
cristy8b350f62009-11-15 23:12:43 +000027536 ac_cv_lib_z_compress=no
cristy3ed852e2009-09-05 21:47:34 +000027537fi
cristy8b350f62009-11-15 23:12:43 +000027538rm -f core conftest.err conftest.$ac_objext \
27539 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027540LIBS=$ac_check_lib_save_LIBS
27541fi
cristy8b350f62009-11-15 23:12:43 +000027542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_compress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027543$as_echo "$ac_cv_lib_z_compress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027544if test "x$ac_cv_lib_z_compress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027545 passed=`expr $passed + 1`
27546else
27547 failed=`expr $failed + 1`
27548fi
27549
cristy8b350f62009-11-15 23:12:43 +000027550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uncompress in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027551$as_echo_n "checking for uncompress in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027552if ${ac_cv_lib_z_uncompress+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027553 $as_echo_n "(cached) " >&6
27554else
27555 ac_check_lib_save_LIBS=$LIBS
27556LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027557cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027558/* end confdefs.h. */
27559
27560/* Override any GCC internal prototype to avoid an error.
27561 Use char because int might match the return type of a GCC
27562 builtin and then its argument prototype would still apply. */
27563#ifdef __cplusplus
27564extern "C"
27565#endif
27566char uncompress ();
27567int
27568main ()
27569{
27570return uncompress ();
27571 ;
27572 return 0;
27573}
27574_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027575if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027576 ac_cv_lib_z_uncompress=yes
27577else
cristy8b350f62009-11-15 23:12:43 +000027578 ac_cv_lib_z_uncompress=no
cristy3ed852e2009-09-05 21:47:34 +000027579fi
cristy8b350f62009-11-15 23:12:43 +000027580rm -f core conftest.err conftest.$ac_objext \
27581 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027582LIBS=$ac_check_lib_save_LIBS
27583fi
cristy8b350f62009-11-15 23:12:43 +000027584{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_uncompress" >&5
cristy3ed852e2009-09-05 21:47:34 +000027585$as_echo "$ac_cv_lib_z_uncompress" >&6; }
cristyda16f162011-02-19 23:52:17 +000027586if test "x$ac_cv_lib_z_uncompress" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027587 passed=`expr $passed + 1`
27588else
27589 failed=`expr $failed + 1`
27590fi
27591
cristy8b350f62009-11-15 23:12:43 +000027592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027593$as_echo_n "checking for deflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027594if ${ac_cv_lib_z_deflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027595 $as_echo_n "(cached) " >&6
27596else
27597 ac_check_lib_save_LIBS=$LIBS
27598LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027599cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027600/* end confdefs.h. */
27601
27602/* Override any GCC internal prototype to avoid an error.
27603 Use char because int might match the return type of a GCC
27604 builtin and then its argument prototype would still apply. */
27605#ifdef __cplusplus
27606extern "C"
27607#endif
27608char deflate ();
27609int
27610main ()
27611{
27612return deflate ();
27613 ;
27614 return 0;
27615}
27616_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027617if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027618 ac_cv_lib_z_deflate=yes
27619else
cristy8b350f62009-11-15 23:12:43 +000027620 ac_cv_lib_z_deflate=no
cristy3ed852e2009-09-05 21:47:34 +000027621fi
cristy8b350f62009-11-15 23:12:43 +000027622rm -f core conftest.err conftest.$ac_objext \
27623 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027624LIBS=$ac_check_lib_save_LIBS
27625fi
cristy8b350f62009-11-15 23:12:43 +000027626{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027627$as_echo "$ac_cv_lib_z_deflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027628if test "x$ac_cv_lib_z_deflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027629 passed=`expr $passed + 1`
27630else
27631 failed=`expr $failed + 1`
27632fi
27633
cristy8b350f62009-11-15 23:12:43 +000027634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inflate in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027635$as_echo_n "checking for inflate in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027636if ${ac_cv_lib_z_inflate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027637 $as_echo_n "(cached) " >&6
27638else
27639 ac_check_lib_save_LIBS=$LIBS
27640LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027641cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027642/* end confdefs.h. */
27643
27644/* Override any GCC internal prototype to avoid an error.
27645 Use char because int might match the return type of a GCC
27646 builtin and then its argument prototype would still apply. */
27647#ifdef __cplusplus
27648extern "C"
27649#endif
27650char inflate ();
27651int
27652main ()
27653{
27654return inflate ();
27655 ;
27656 return 0;
27657}
27658_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027659if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027660 ac_cv_lib_z_inflate=yes
27661else
cristy8b350f62009-11-15 23:12:43 +000027662 ac_cv_lib_z_inflate=no
cristy3ed852e2009-09-05 21:47:34 +000027663fi
cristy8b350f62009-11-15 23:12:43 +000027664rm -f core conftest.err conftest.$ac_objext \
27665 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027666LIBS=$ac_check_lib_save_LIBS
27667fi
cristy8b350f62009-11-15 23:12:43 +000027668{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_inflate" >&5
cristy3ed852e2009-09-05 21:47:34 +000027669$as_echo "$ac_cv_lib_z_inflate" >&6; }
cristyda16f162011-02-19 23:52:17 +000027670if test "x$ac_cv_lib_z_inflate" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027671 passed=`expr $passed + 1`
27672else
27673 failed=`expr $failed + 1`
27674fi
27675
cristy8b350f62009-11-15 23:12:43 +000027676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gzseek in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027677$as_echo_n "checking for gzseek in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027678if ${ac_cv_lib_z_gzseek+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027679 $as_echo_n "(cached) " >&6
27680else
27681 ac_check_lib_save_LIBS=$LIBS
27682LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027683cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027684/* end confdefs.h. */
27685
27686/* Override any GCC internal prototype to avoid an error.
27687 Use char because int might match the return type of a GCC
27688 builtin and then its argument prototype would still apply. */
27689#ifdef __cplusplus
27690extern "C"
27691#endif
27692char gzseek ();
27693int
27694main ()
27695{
27696return gzseek ();
27697 ;
27698 return 0;
27699}
27700_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027701if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027702 ac_cv_lib_z_gzseek=yes
27703else
cristy8b350f62009-11-15 23:12:43 +000027704 ac_cv_lib_z_gzseek=no
cristy3ed852e2009-09-05 21:47:34 +000027705fi
cristy8b350f62009-11-15 23:12:43 +000027706rm -f core conftest.err conftest.$ac_objext \
27707 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027708LIBS=$ac_check_lib_save_LIBS
27709fi
cristy8b350f62009-11-15 23:12:43 +000027710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gzseek" >&5
cristy3ed852e2009-09-05 21:47:34 +000027711$as_echo "$ac_cv_lib_z_gzseek" >&6; }
cristyda16f162011-02-19 23:52:17 +000027712if test "x$ac_cv_lib_z_gzseek" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027713 passed=`expr $passed + 1`
27714else
27715 failed=`expr $failed + 1`
27716fi
27717
cristy8b350f62009-11-15 23:12:43 +000027718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gztell in -lz" >&5
cristy3ed852e2009-09-05 21:47:34 +000027719$as_echo_n "checking for gztell in -lz... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027720if ${ac_cv_lib_z_gztell+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027721 $as_echo_n "(cached) " >&6
27722else
27723 ac_check_lib_save_LIBS=$LIBS
27724LIBS="-lz $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027725cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027726/* end confdefs.h. */
27727
27728/* Override any GCC internal prototype to avoid an error.
27729 Use char because int might match the return type of a GCC
27730 builtin and then its argument prototype would still apply. */
27731#ifdef __cplusplus
27732extern "C"
27733#endif
27734char gztell ();
27735int
27736main ()
27737{
27738return gztell ();
27739 ;
27740 return 0;
27741}
27742_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027743if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027744 ac_cv_lib_z_gztell=yes
27745else
cristy8b350f62009-11-15 23:12:43 +000027746 ac_cv_lib_z_gztell=no
cristy3ed852e2009-09-05 21:47:34 +000027747fi
cristy8b350f62009-11-15 23:12:43 +000027748rm -f core conftest.err conftest.$ac_objext \
27749 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027750LIBS=$ac_check_lib_save_LIBS
27751fi
cristy8b350f62009-11-15 23:12:43 +000027752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_gztell" >&5
cristy3ed852e2009-09-05 21:47:34 +000027753$as_echo "$ac_cv_lib_z_gztell" >&6; }
cristyda16f162011-02-19 23:52:17 +000027754if test "x$ac_cv_lib_z_gztell" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027755 passed=`expr $passed + 1`
27756else
27757 failed=`expr $failed + 1`
27758fi
27759
cristy8b350f62009-11-15 23:12:43 +000027760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ZLIB package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000027761$as_echo_n "checking if ZLIB package is complete... " >&6; }
27762 if test $passed -gt 0; then
27763 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000027764 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
27765$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027766 have_zlib='no (failed tests)'
27767 else
27768 ZLIB_LIBS='-lz'
27769 LIBS="$ZLIB_LIBS $LIBS"
27770
cristy8b350f62009-11-15 23:12:43 +000027771$as_echo "#define ZLIB_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000027772
cristy09b53e12011-10-14 12:47:22 +000027773 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
27774$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027775 have_zlib='yes'
27776 fi
27777 else
cristy09b53e12011-10-14 12:47:22 +000027778 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
27779$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000027780 fi
27781fi
cristy73bd4a52010-10-05 11:24:23 +000027782 if test "$have_zlib" = 'yes'; then
27783 ZLIB_DELEGATE_TRUE=
27784 ZLIB_DELEGATE_FALSE='#'
27785else
27786 ZLIB_DELEGATE_TRUE='#'
27787 ZLIB_DELEGATE_FALSE=
27788fi
27789
cristy3ed852e2009-09-05 21:47:34 +000027790
27791
cristy5eef09f2012-10-16 12:08:28 +000027792# whether modules are built or not.
27793with_ltdl='yes'
27794have_ltdl='no'
27795LTDL_LIBS=''
27796if test "$build_modules" != 'no' ; then
27797 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27798$as_echo "$as_me: -------------------------------------------------------------" >&6;}
27799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libltdl" >&5
27800$as_echo_n "checking for libltdl... " >&6; }
27801 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
27802$as_echo "$as_me: " >&6;}
27803 failed=0
27804 passed=0
27805 ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
27806if test "x$ac_cv_header_ltdl_h" = xyes; then :
27807 passed=`expr $passed + 1`
27808else
27809 failed=`expr $failed + 1`
27810fi
27811
27812
27813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlinit in -lltdl" >&5
27814$as_echo_n "checking for lt_dlinit in -lltdl... " >&6; }
27815if ${ac_cv_lib_ltdl_lt_dlinit+:} false; then :
27816 $as_echo_n "(cached) " >&6
27817else
27818 ac_check_lib_save_LIBS=$LIBS
27819LIBS="-lltdl $LIBS"
27820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27821/* end confdefs.h. */
27822
27823/* Override any GCC internal prototype to avoid an error.
27824 Use char because int might match the return type of a GCC
27825 builtin and then its argument prototype would still apply. */
27826#ifdef __cplusplus
27827extern "C"
27828#endif
27829char lt_dlinit ();
27830int
27831main ()
27832{
27833return lt_dlinit ();
27834 ;
27835 return 0;
27836}
27837_ACEOF
27838if ac_fn_c_try_link "$LINENO"; then :
27839 ac_cv_lib_ltdl_lt_dlinit=yes
27840else
27841 ac_cv_lib_ltdl_lt_dlinit=no
27842fi
27843rm -f core conftest.err conftest.$ac_objext \
27844 conftest$ac_exeext conftest.$ac_ext
27845LIBS=$ac_check_lib_save_LIBS
27846fi
27847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlinit" >&5
27848$as_echo "$ac_cv_lib_ltdl_lt_dlinit" >&6; }
27849if test "x$ac_cv_lib_ltdl_lt_dlinit" = xyes; then :
27850 passed=`expr $passed + 1`
27851else
27852 failed=`expr $failed + 1`
27853fi
27854
27855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libltdl package is complete" >&5
27856$as_echo_n "checking if libltdl package is complete... " >&6; }
27857 if test $passed -gt 0 ; then
27858 if test $failed -gt 0 ; then
27859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
27860$as_echo "no -- some components failed test" >&6; }
27861 have_ltdl='no (failed tests)'
27862 else
27863 LTDL_LIBS='-lltdl'
27864 LIBS="$LTDL_LIBS $LIBS"
27865
27866$as_echo "#define LTDL_DELEGATE 1" >>confdefs.h
27867
27868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27869$as_echo "yes" >&6; }
27870 have_ltdl='yes'
27871 fi
27872 else
27873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27874$as_echo "no" >&6; }
27875 fi
cristyaf4cbf32012-10-16 23:47:41 +000027876 if test "$have_ltdl" != 'yes' ; then
27877 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27878$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27879as_fn_error 1 "libltdl is required for modules build
27880See \`config.log' for more details" "$LINENO" 5; }
27881 fi
cristy5eef09f2012-10-16 12:08:28 +000027882fi
27883 if test "$have_ltdl" != 'no'; then
27884 WITH_LTDL_TRUE=
27885 WITH_LTDL_FALSE='#'
27886else
27887 WITH_LTDL_TRUE='#'
27888 WITH_LTDL_FALSE=
27889fi
27890
27891
cristy3ed852e2009-09-05 21:47:34 +000027892#
27893# If profiling, then check for -ldl and dlopen (required for Solaris & gcc)
27894#
27895LIB_DL=''
27896if test "$enable_profiling" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000027897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
cristy3ed852e2009-09-05 21:47:34 +000027898$as_echo_n "checking for dlopen in -ldl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000027899if ${ac_cv_lib_dl_dlopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000027900 $as_echo_n "(cached) " >&6
27901else
27902 ac_check_lib_save_LIBS=$LIBS
27903LIBS="-ldl $LIBS"
cristy8b350f62009-11-15 23:12:43 +000027904cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027905/* end confdefs.h. */
27906
27907/* Override any GCC internal prototype to avoid an error.
27908 Use char because int might match the return type of a GCC
27909 builtin and then its argument prototype would still apply. */
27910#ifdef __cplusplus
27911extern "C"
27912#endif
27913char dlopen ();
27914int
27915main ()
27916{
27917return dlopen ();
27918 ;
27919 return 0;
27920}
27921_ACEOF
cristy8b350f62009-11-15 23:12:43 +000027922if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000027923 ac_cv_lib_dl_dlopen=yes
27924else
cristy8b350f62009-11-15 23:12:43 +000027925 ac_cv_lib_dl_dlopen=no
cristy3ed852e2009-09-05 21:47:34 +000027926fi
cristy8b350f62009-11-15 23:12:43 +000027927rm -f core conftest.err conftest.$ac_objext \
27928 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000027929LIBS=$ac_check_lib_save_LIBS
27930fi
cristy8b350f62009-11-15 23:12:43 +000027931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000027932$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000027933if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000027934 LIB_DL='-ldl'
27935fi
27936
27937 LIBS="$LIB_DL $LIBS"
27938fi
27939
27940
27941
27942#
27943# Check for Autotrace delegate library.
27944#
27945
27946# Check whether --with-autotrace was given.
cristy8b350f62009-11-15 23:12:43 +000027947if test "${with_autotrace+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000027948 withval=$with_autotrace; with_autotrace=$withval
27949else
27950 with_autotrace='no'
27951fi
27952
27953
27954if test "$with_autotrace" != 'yes'; then
27955 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-autotrace=$with_autotrace "
27956fi
27957
27958have_autotrace='no'
27959AUTOTRACE_CFLAGS=""
27960AUTOTRACE_LIBS=""
27961AUTOTRACE_PKG=""
27962if test "x$with_autotrace" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000027963 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
27964$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000027965
27966pkg_failed=no
27967{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for AUTOTRACE" >&5
27968$as_echo_n "checking for AUTOTRACE... " >&6; }
27969
27970if test -n "$AUTOTRACE_CFLAGS"; then
27971 pkg_cv_AUTOTRACE_CFLAGS="$AUTOTRACE_CFLAGS"
27972 elif test -n "$PKG_CONFIG"; then
27973 if test -n "$PKG_CONFIG" && \
27974 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27975 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27976 ac_status=$?
27977 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27978 test $ac_status = 0; }; then
27979 pkg_cv_AUTOTRACE_CFLAGS=`$PKG_CONFIG --cflags "autotrace >= 0.31.1" 2>/dev/null`
27980else
27981 pkg_failed=yes
27982fi
27983 else
27984 pkg_failed=untried
27985fi
27986if test -n "$AUTOTRACE_LIBS"; then
27987 pkg_cv_AUTOTRACE_LIBS="$AUTOTRACE_LIBS"
27988 elif test -n "$PKG_CONFIG"; then
27989 if test -n "$PKG_CONFIG" && \
27990 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"autotrace >= 0.31.1\""; } >&5
27991 ($PKG_CONFIG --exists --print-errors "autotrace >= 0.31.1") 2>&5
27992 ac_status=$?
27993 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27994 test $ac_status = 0; }; then
27995 pkg_cv_AUTOTRACE_LIBS=`$PKG_CONFIG --libs "autotrace >= 0.31.1" 2>/dev/null`
27996else
27997 pkg_failed=yes
27998fi
27999 else
28000 pkg_failed=untried
28001fi
28002
28003
28004
28005if test $pkg_failed = yes; then
28006
28007if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28008 _pkg_short_errors_supported=yes
28009else
28010 _pkg_short_errors_supported=no
28011fi
28012 if test $_pkg_short_errors_supported = yes; then
28013 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "autotrace >= 0.31.1" 2>&1`
28014 else
28015 AUTOTRACE_PKG_ERRORS=`$PKG_CONFIG --print-errors "autotrace >= 0.31.1" 2>&1`
28016 fi
28017 # Put the nasty error message in config.log where it belongs
28018 echo "$AUTOTRACE_PKG_ERRORS" >&5
28019
28020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28021$as_echo "no" >&6; }
28022 have_autotrace=no
28023elif test $pkg_failed = untried; then
28024 have_autotrace=no
28025else
28026 AUTOTRACE_CFLAGS=$pkg_cv_AUTOTRACE_CFLAGS
28027 AUTOTRACE_LIBS=$pkg_cv_AUTOTRACE_LIBS
28028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28029$as_echo "yes" >&6; }
28030 have_autotrace=yes
28031fi
cristy09b53e12011-10-14 12:47:22 +000028032 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28033$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028034fi
28035
28036if test "$have_autotrace" = 'yes'; then
28037 failed=0
28038
cristy8b350f62009-11-15 23:12:43 +000028039$as_echo "#define AUTOTRACE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028040
cristyc6722092012-10-14 00:19:31 +000028041 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028042 CPPFLAGS="$AUTOTRACE_CFLAGS $CPPFLAGS"
28043 fi
28044fi
28045
cristy73bd4a52010-10-05 11:24:23 +000028046 if test "$have_autotrace" = 'yes'; then
28047 AUTOTRACE_DELEGATE_TRUE=
28048 AUTOTRACE_DELEGATE_FALSE='#'
28049else
28050 AUTOTRACE_DELEGATE_TRUE='#'
28051 AUTOTRACE_DELEGATE_FALSE=
28052fi
28053
cristy3ed852e2009-09-05 21:47:34 +000028054
28055
28056
28057
28058#
28059# Check for Display Postscript delegate library.
28060#
28061
28062# Check whether --with-dps was given.
cristy8b350f62009-11-15 23:12:43 +000028063if test "${with_dps+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028064 withval=$with_dps; with_dps=$withval
28065else
28066 with_dps='yes'
28067fi
28068
28069
28070if test "$with_dps" != 'yes'; then
28071 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dps=$with_dps "
28072fi
28073
28074have_dps='no'
28075DPS_LIBS=''
28076if test "$with_dps" != 'no' && test "$with_x" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028077 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28078$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000028080$as_echo_n "checking for DPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028081 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28082$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028083 failed=0
28084 passed=0
28085 PERSIST_CPPFLAGS="$CPPFLAGS"
28086 CPPFLAGS="$CPPFLAGS -I${ac_x_includes}/X11"
cristy8b350f62009-11-15 23:12:43 +000028087 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 +000028088if test "x$ac_cv_header_DPS_dpsXclient_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028089 passed=`expr $passed + 1`
28090else
28091 failed=`expr $failed + 1`
28092fi
28093
28094
28095 # DPS issues:
28096 # XFree86-4.x needs -lXt to provide XtMalloc for -ldps.
28097 # Cygwin doesn't deliver -lXt as a DLL, which prevents a DLL build.
28098 # Adobe DPS (as delivered on Solaris) doesn't require -lXt.
28099 # ImageMagick itself doesn't use -lXt.
28100 have_libdps='no'
28101 LIBDPS_XT=''
cristy8b350f62009-11-15 23:12:43 +000028102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028103$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028104if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028105 $as_echo_n "(cached) " >&6
28106else
28107 ac_check_lib_save_LIBS=$LIBS
28108LIBS="-ldps $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028109cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028110/* end confdefs.h. */
28111
28112/* Override any GCC internal prototype to avoid an error.
28113 Use char because int might match the return type of a GCC
28114 builtin and then its argument prototype would still apply. */
28115#ifdef __cplusplus
28116extern "C"
28117#endif
28118char DPSInitialize ();
28119int
28120main ()
28121{
28122return DPSInitialize ();
28123 ;
28124 return 0;
28125}
28126_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028127if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028128 ac_cv_lib_dps_DPSInitialize=yes
28129else
cristy8b350f62009-11-15 23:12:43 +000028130 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028131fi
cristy8b350f62009-11-15 23:12:43 +000028132rm -f core conftest.err conftest.$ac_objext \
28133 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028134LIBS=$ac_check_lib_save_LIBS
28135fi
cristy8b350f62009-11-15 23:12:43 +000028136{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028137$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028138if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028139 have_libdps='yes'
28140else
28141 have_libdps='no'
28142fi
28143
28144 if test "$have_libdps" != 'yes'; then
28145 # Unset cache variable so we can try again.
28146 unset ac_cv_lib_dps_DPSInitialize
cristy8b350f62009-11-15 23:12:43 +000028147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DPSInitialize in -ldps" >&5
cristy3ed852e2009-09-05 21:47:34 +000028148$as_echo_n "checking for DPSInitialize in -ldps... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028149if ${ac_cv_lib_dps_DPSInitialize+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028150 $as_echo_n "(cached) " >&6
28151else
28152 ac_check_lib_save_LIBS=$LIBS
28153LIBS="-ldps -lXt $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028154cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028155/* end confdefs.h. */
28156
28157/* Override any GCC internal prototype to avoid an error.
28158 Use char because int might match the return type of a GCC
28159 builtin and then its argument prototype would still apply. */
28160#ifdef __cplusplus
28161extern "C"
28162#endif
28163char DPSInitialize ();
28164int
28165main ()
28166{
28167return DPSInitialize ();
28168 ;
28169 return 0;
28170}
28171_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028172if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028173 ac_cv_lib_dps_DPSInitialize=yes
28174else
cristy8b350f62009-11-15 23:12:43 +000028175 ac_cv_lib_dps_DPSInitialize=no
cristy3ed852e2009-09-05 21:47:34 +000028176fi
cristy8b350f62009-11-15 23:12:43 +000028177rm -f core conftest.err conftest.$ac_objext \
28178 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028179LIBS=$ac_check_lib_save_LIBS
28180fi
cristy8b350f62009-11-15 23:12:43 +000028181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dps_DPSInitialize" >&5
cristy3ed852e2009-09-05 21:47:34 +000028182$as_echo "$ac_cv_lib_dps_DPSInitialize" >&6; }
cristyda16f162011-02-19 23:52:17 +000028183if test "x$ac_cv_lib_dps_DPSInitialize" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028184 have_libdps='yes'
28185else
28186 have_libdps='no'
28187fi
28188
28189 if test "$have_libdps" = 'yes'; then
28190 LIBDPS_XT='-lXt'
28191 fi
28192 fi
28193 if test "$have_libdps" = 'yes'; then
28194 passed=`expr $passed + 1`
28195 else
28196 failed=`expr $failed + 1`
28197 fi
cristy8b350f62009-11-15 23:12:43 +000028198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDPSPixelsPerPoint in -ldpstk" >&5
cristy3ed852e2009-09-05 21:47:34 +000028199$as_echo_n "checking for XDPSPixelsPerPoint in -ldpstk... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028200if ${ac_cv_lib_dpstk_XDPSPixelsPerPoint+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028201 $as_echo_n "(cached) " >&6
28202else
28203 ac_check_lib_save_LIBS=$LIBS
28204LIBS="-ldpstk -ldps $LIBDPS_XT $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028205cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028206/* end confdefs.h. */
28207
28208/* Override any GCC internal prototype to avoid an error.
28209 Use char because int might match the return type of a GCC
28210 builtin and then its argument prototype would still apply. */
28211#ifdef __cplusplus
28212extern "C"
28213#endif
28214char XDPSPixelsPerPoint ();
28215int
28216main ()
28217{
28218return XDPSPixelsPerPoint ();
28219 ;
28220 return 0;
28221}
28222_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028223if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028224 ac_cv_lib_dpstk_XDPSPixelsPerPoint=yes
28225else
cristy8b350f62009-11-15 23:12:43 +000028226 ac_cv_lib_dpstk_XDPSPixelsPerPoint=no
cristy3ed852e2009-09-05 21:47:34 +000028227fi
cristy8b350f62009-11-15 23:12:43 +000028228rm -f core conftest.err conftest.$ac_objext \
28229 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028230LIBS=$ac_check_lib_save_LIBS
28231fi
cristy8b350f62009-11-15 23:12:43 +000028232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&5
cristy3ed852e2009-09-05 21:47:34 +000028233$as_echo "$ac_cv_lib_dpstk_XDPSPixelsPerPoint" >&6; }
cristyda16f162011-02-19 23:52:17 +000028234if test "x$ac_cv_lib_dpstk_XDPSPixelsPerPoint" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028235 passed=`expr $passed + 1`
28236else
28237 failed=`expr $failed + 1`
28238fi
28239
cristy8b350f62009-11-15 23:12:43 +000028240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DPS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028241$as_echo_n "checking if DPS package is complete... " >&6; }
28242 if test $passed -gt 0; then
28243 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028244 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28245$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028246 have_dps='no (failed tests)'
28247 CPPFLAGS="$PERSIST_CPPFLAGS"
28248 else
28249 DPS_LIBS="-ldpstk -ldps ${LIBDPS_XT}"
28250 LIBS="$DPS_LIBS $LIBS"
28251
cristy8b350f62009-11-15 23:12:43 +000028252$as_echo "#define DPS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028253
cristy09b53e12011-10-14 12:47:22 +000028254 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28255$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028256 have_dps='yes'
28257 fi
28258 else
cristy09b53e12011-10-14 12:47:22 +000028259 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28260$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028261 CPPFLAGS=$PERSIST_CPPFLAGS
28262 fi
28263fi
cristy73bd4a52010-10-05 11:24:23 +000028264 if test "$have_dps" = 'yes'; then
28265 DPS_DELEGATE_TRUE=
28266 DPS_DELEGATE_FALSE='#'
28267else
28268 DPS_DELEGATE_TRUE='#'
28269 DPS_DELEGATE_FALSE=
28270fi
28271
cristy3ed852e2009-09-05 21:47:34 +000028272
28273
28274
28275#
28276# Check for DJVU delegate library.
28277#
28278
28279# Check whether --with-djvu was given.
cristy8b350f62009-11-15 23:12:43 +000028280if test "${with_djvu+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028281 withval=$with_djvu; with_djvu=$withval
28282else
28283 with_djvu='yes'
28284fi
28285
28286
28287if test "$with_djvu" != 'yes'; then
28288 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-djvu=$with_djvu "
28289fi
28290
28291have_djvu='no'
28292DJVU_LIBS=''
28293if test "$with_djvu" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028294 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28295$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DJVU" >&5
cristy3ed852e2009-09-05 21:47:34 +000028297$as_echo_n "checking for DJVU... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028298 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28299$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028300 failed=0
28301 passed=0
cristy8b350f62009-11-15 23:12:43 +000028302 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 +000028303if test "x$ac_cv_header_libdjvu_ddjvuapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028304 passed=`expr $passed + 1`
28305else
28306 failed=`expr $failed + 1`
28307fi
28308
28309
cristy8b350f62009-11-15 23:12:43 +000028310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ddjvu_context_create in -ldjvulibre" >&5
cristy3ed852e2009-09-05 21:47:34 +000028311$as_echo_n "checking for ddjvu_context_create in -ldjvulibre... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028312if ${ac_cv_lib_djvulibre_ddjvu_context_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028313 $as_echo_n "(cached) " >&6
28314else
28315 ac_check_lib_save_LIBS=$LIBS
28316LIBS="-ldjvulibre $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028317cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028318/* end confdefs.h. */
28319
28320/* Override any GCC internal prototype to avoid an error.
28321 Use char because int might match the return type of a GCC
28322 builtin and then its argument prototype would still apply. */
28323#ifdef __cplusplus
28324extern "C"
28325#endif
28326char ddjvu_context_create ();
28327int
28328main ()
28329{
28330return ddjvu_context_create ();
28331 ;
28332 return 0;
28333}
28334_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028335if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028336 ac_cv_lib_djvulibre_ddjvu_context_create=yes
28337else
cristy8b350f62009-11-15 23:12:43 +000028338 ac_cv_lib_djvulibre_ddjvu_context_create=no
cristy3ed852e2009-09-05 21:47:34 +000028339fi
cristy8b350f62009-11-15 23:12:43 +000028340rm -f core conftest.err conftest.$ac_objext \
28341 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028342LIBS=$ac_check_lib_save_LIBS
28343fi
cristy8b350f62009-11-15 23:12:43 +000028344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_djvulibre_ddjvu_context_create" >&5
cristy3ed852e2009-09-05 21:47:34 +000028345$as_echo "$ac_cv_lib_djvulibre_ddjvu_context_create" >&6; }
cristyda16f162011-02-19 23:52:17 +000028346if test "x$ac_cv_lib_djvulibre_ddjvu_context_create" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028347 passed=`expr $passed + 1`
28348else
28349 failed=`expr $failed + 1`
28350fi
28351
cristy8b350f62009-11-15 23:12:43 +000028352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if DJVU package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028353$as_echo_n "checking if DJVU package is complete... " >&6; }
28354 if test $passed -gt 0; then
28355 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028356 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28357$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028358 have_djvu='no (failed tests)'
28359 else
28360 DJVU_LIBS='-ldjvulibre'
28361 LIBS="$DJVU_LIBS $LIBS"
28362
cristy8b350f62009-11-15 23:12:43 +000028363$as_echo "#define DJVU_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028364
cristy09b53e12011-10-14 12:47:22 +000028365 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28366$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028367 have_djvu='yes'
28368 fi
28369 else
cristy09b53e12011-10-14 12:47:22 +000028370 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28371$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028372 fi
28373fi
cristy73bd4a52010-10-05 11:24:23 +000028374 if test "$have_djvu" = 'yes'; then
28375 DJVU_DELEGATE_TRUE=
28376 DJVU_DELEGATE_FALSE='#'
28377else
28378 DJVU_DELEGATE_TRUE='#'
28379 DJVU_DELEGATE_FALSE=
28380fi
28381
cristy3ed852e2009-09-05 21:47:34 +000028382
28383
28384
28385#
cristy430a7312010-01-21 20:44:04 +000028386# Set DejaVu font directory.
28387#
28388
28389# Check whether --with-dejavu-font-dir was given.
28390if test "${with_dejavu_font_dir+set}" = set; then :
28391 withval=$with_dejavu_font_dir; with_dejavu_font_dir=$withval
28392else
28393 with_dejavu_font_dir='default'
28394fi
28395
28396
28397if test "$with_dejavu_font_dir" != 'default'; then
28398 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-dejavu-font-dir=$with_dejavu_font_dir "
28399fi
28400
28401
28402#
cristy3ed852e2009-09-05 21:47:34 +000028403# Check for FFTW delegate library.
28404#
28405
28406# Check whether --with-fftw was given.
cristy8b350f62009-11-15 23:12:43 +000028407if test "${with_fftw+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028408 withval=$with_fftw; with_fftw=$withval
28409else
28410 with_fftw='yes'
28411fi
28412
28413
28414if test "$with_fftw" != 'yes'; then
28415 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fftw=$with_fftw "
28416fi
28417
cristy81beccd2011-10-03 18:17:24 +000028418have_fftw='no'
28419FFTW_LIBS=''
28420if test "$with_fftw" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028421 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28422$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FFTW" >&5
28424$as_echo_n "checking for FFTW... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028425 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28426$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028427 failed=0
28428 passed=0
28429 ac_fn_c_check_header_mongrel "$LINENO" "fftw3.h" "ac_cv_header_fftw3_h" "$ac_includes_default"
28430if test "x$ac_cv_header_fftw3_h" = xyes; then :
28431 passed=`expr $passed + 1`
28432else
28433 failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000028434fi
28435
cristy81beccd2011-10-03 18:17:24 +000028436
28437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fftw_execute in -lfftw3" >&5
28438$as_echo_n "checking for fftw_execute in -lfftw3... " >&6; }
28439if ${ac_cv_lib_fftw3_fftw_execute+:} false; then :
28440 $as_echo_n "(cached) " >&6
28441else
28442 ac_check_lib_save_LIBS=$LIBS
28443LIBS="-lfftw3 $LIBS"
28444cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28445/* end confdefs.h. */
28446
28447/* Override any GCC internal prototype to avoid an error.
28448 Use char because int might match the return type of a GCC
28449 builtin and then its argument prototype would still apply. */
28450#ifdef __cplusplus
28451extern "C"
28452#endif
28453char fftw_execute ();
28454int
28455main ()
28456{
28457return fftw_execute ();
28458 ;
28459 return 0;
28460}
28461_ACEOF
28462if ac_fn_c_try_link "$LINENO"; then :
28463 ac_cv_lib_fftw3_fftw_execute=yes
28464else
28465 ac_cv_lib_fftw3_fftw_execute=no
28466fi
28467rm -f core conftest.err conftest.$ac_objext \
28468 conftest$ac_exeext conftest.$ac_ext
28469LIBS=$ac_check_lib_save_LIBS
28470fi
28471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fftw3_fftw_execute" >&5
28472$as_echo "$ac_cv_lib_fftw3_fftw_execute" >&6; }
28473if test "x$ac_cv_lib_fftw3_fftw_execute" = xyes; then :
28474 passed=`expr $passed + 1`
28475else
28476 failed=`expr $failed + 1`
28477fi
28478
28479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FFTW package is complete" >&5
28480$as_echo_n "checking if FFTW package is complete... " >&6; }
28481 if test $passed -gt 0; then
28482 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028483 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28484$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028485 have_fftw='no (failed tests)'
28486 else
28487 FFTW_LIBS='-lfftw3'
28488 LIBS="$FFTW_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028489
cristy8b350f62009-11-15 23:12:43 +000028490$as_echo "#define FFTW_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028491
cristy09b53e12011-10-14 12:47:22 +000028492 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28493$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000028494 have_fftw='yes'
28495 fi
28496 else
cristy09b53e12011-10-14 12:47:22 +000028497 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28498$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028499 fi
28500fi
cristy73bd4a52010-10-05 11:24:23 +000028501 if test "$have_fftw" = 'yes'; then
28502 FFTW_DELEGATE_TRUE=
28503 FFTW_DELEGATE_FALSE='#'
28504else
28505 FFTW_DELEGATE_TRUE='#'
28506 FFTW_DELEGATE_FALSE=
28507fi
28508
cristy3ed852e2009-09-05 21:47:34 +000028509
28510
28511
28512#
28513# Check for FlashPIX delegate library.
28514#
28515
28516# Check whether --with-fpx was given.
cristy8b350f62009-11-15 23:12:43 +000028517if test "${with_fpx+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028518 withval=$with_fpx; with_fpx=$withval
28519else
28520 with_fpx='yes'
28521fi
28522
28523
28524if test "$with_fpx" != 'yes'; then
28525 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fpx=$with_fpx "
28526fi
28527
28528have_fpx='no'
28529FPX_LIBS=''
28530if test "$with_fpx" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028531 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28532$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FlashPIX" >&5
cristy3ed852e2009-09-05 21:47:34 +000028534$as_echo_n "checking for FlashPIX... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028535 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28536$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028537 failed=0
28538 passed=0
28539 ac_ext=cpp
28540ac_cpp='$CXXCPP $CPPFLAGS'
28541ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28542ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28543ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28544
28545
cristy8b350f62009-11-15 23:12:43 +000028546ac_fn_cxx_check_header_mongrel "$LINENO" "fpxlib.h" "ac_cv_header_fpxlib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000028547if test "x$ac_cv_header_fpxlib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028548 passed=`expr $passed + 1`
28549else
28550 failed=`expr $failed + 1`
28551fi
28552
28553
cristy8b350f62009-11-15 23:12:43 +000028554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FPX_OpenImageByFilename in -lfpx" >&5
cristy3ed852e2009-09-05 21:47:34 +000028555$as_echo_n "checking for FPX_OpenImageByFilename in -lfpx... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028556if ${ac_cv_lib_fpx_FPX_OpenImageByFilename+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000028557 $as_echo_n "(cached) " >&6
28558else
28559 ac_check_lib_save_LIBS=$LIBS
28560LIBS="-lfpx $LIBS"
cristy8b350f62009-11-15 23:12:43 +000028561cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028562/* end confdefs.h. */
28563
28564/* Override any GCC internal prototype to avoid an error.
28565 Use char because int might match the return type of a GCC
28566 builtin and then its argument prototype would still apply. */
28567#ifdef __cplusplus
28568extern "C"
28569#endif
28570char FPX_OpenImageByFilename ();
28571int
28572main ()
28573{
28574return FPX_OpenImageByFilename ();
28575 ;
28576 return 0;
28577}
28578_ACEOF
cristy8b350f62009-11-15 23:12:43 +000028579if ac_fn_cxx_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000028580 ac_cv_lib_fpx_FPX_OpenImageByFilename=yes
28581else
cristy8b350f62009-11-15 23:12:43 +000028582 ac_cv_lib_fpx_FPX_OpenImageByFilename=no
cristy3ed852e2009-09-05 21:47:34 +000028583fi
cristy8b350f62009-11-15 23:12:43 +000028584rm -f core conftest.err conftest.$ac_objext \
28585 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000028586LIBS=$ac_check_lib_save_LIBS
28587fi
cristy8b350f62009-11-15 23:12:43 +000028588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fpx_FPX_OpenImageByFilename" >&5
cristy3ed852e2009-09-05 21:47:34 +000028589$as_echo "$ac_cv_lib_fpx_FPX_OpenImageByFilename" >&6; }
cristyda16f162011-02-19 23:52:17 +000028590if test "x$ac_cv_lib_fpx_FPX_OpenImageByFilename" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028591 passed=`expr $passed + 1`
28592else
28593 failed=`expr $failed + 1`
28594fi
28595
28596 ac_ext=c
28597ac_cpp='$CPP $CPPFLAGS'
28598ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28599ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28600ac_compiler_gnu=$ac_cv_c_compiler_gnu
28601
cristy8b350f62009-11-15 23:12:43 +000028602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FlashPIX package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000028603$as_echo_n "checking if FlashPIX package is complete... " >&6; }
28604 if test $passed -gt 0; then
28605 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000028606 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28607$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028608 have_fpx='no (failed tests)'
28609 else
28610 FPX_LIBS='-lfpx'
28611
cristy8b350f62009-11-15 23:12:43 +000028612$as_echo "#define FPX_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028613
cristy09b53e12011-10-14 12:47:22 +000028614 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28615$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028616 have_fpx='yes'
28617 PERLMAINCC="$CXX"
28618 fi
28619 else
cristy09b53e12011-10-14 12:47:22 +000028620 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28621$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028622 fi
28623fi
cristy73bd4a52010-10-05 11:24:23 +000028624 if test "$have_fpx" = 'yes'; then
28625 FPX_DELEGATE_TRUE=
28626 FPX_DELEGATE_FALSE='#'
28627else
28628 FPX_DELEGATE_TRUE='#'
28629 FPX_DELEGATE_FALSE=
28630fi
28631
cristy3ed852e2009-09-05 21:47:34 +000028632
28633
28634
28635#
28636# Check for fontconfig delegate library.
28637#
28638
28639# Check whether --with-fontconfig was given.
cristy8b350f62009-11-15 23:12:43 +000028640if test "${with_fontconfig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028641 withval=$with_fontconfig; with_fontconfig=$withval
28642else
cristyfc3d0222012-02-07 15:05:57 +000028643 with_fontconfig='yes'
cristy3ed852e2009-09-05 21:47:34 +000028644fi
28645
28646
28647if test "$with_fontconfig" != 'yes'; then
28648 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontconfig=$with_fontconfig "
28649fi
28650
28651have_fontconfig='no'
28652FONTCONFIG_CFLAGS=""
28653FONTCONFIG_LIBS=""
28654FONTCONFIG_PKG=""
28655if test "x$with_fontconfig" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000028656 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28657$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000028658
28659pkg_failed=no
28660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FONTCONFIG" >&5
28661$as_echo_n "checking for FONTCONFIG... " >&6; }
28662
28663if test -n "$FONTCONFIG_CFLAGS"; then
28664 pkg_cv_FONTCONFIG_CFLAGS="$FONTCONFIG_CFLAGS"
28665 elif test -n "$PKG_CONFIG"; then
28666 if test -n "$PKG_CONFIG" && \
28667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28668 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28669 ac_status=$?
28670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28671 test $ac_status = 0; }; then
28672 pkg_cv_FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig >= 2.1.0" 2>/dev/null`
28673else
28674 pkg_failed=yes
28675fi
28676 else
28677 pkg_failed=untried
28678fi
28679if test -n "$FONTCONFIG_LIBS"; then
28680 pkg_cv_FONTCONFIG_LIBS="$FONTCONFIG_LIBS"
28681 elif test -n "$PKG_CONFIG"; then
28682 if test -n "$PKG_CONFIG" && \
28683 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"fontconfig >= 2.1.0\""; } >&5
28684 ($PKG_CONFIG --exists --print-errors "fontconfig >= 2.1.0") 2>&5
28685 ac_status=$?
28686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28687 test $ac_status = 0; }; then
28688 pkg_cv_FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig >= 2.1.0" 2>/dev/null`
28689else
28690 pkg_failed=yes
28691fi
28692 else
28693 pkg_failed=untried
28694fi
28695
28696
28697
28698if test $pkg_failed = yes; then
28699
28700if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
28701 _pkg_short_errors_supported=yes
28702else
28703 _pkg_short_errors_supported=no
28704fi
28705 if test $_pkg_short_errors_supported = yes; then
28706 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "fontconfig >= 2.1.0" 2>&1`
28707 else
28708 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --print-errors "fontconfig >= 2.1.0" 2>&1`
28709 fi
28710 # Put the nasty error message in config.log where it belongs
28711 echo "$FONTCONFIG_PKG_ERRORS" >&5
28712
28713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28714$as_echo "no" >&6; }
28715 have_fontconfig=no
28716elif test $pkg_failed = untried; then
28717 have_fontconfig=no
28718else
28719 FONTCONFIG_CFLAGS=$pkg_cv_FONTCONFIG_CFLAGS
28720 FONTCONFIG_LIBS=$pkg_cv_FONTCONFIG_LIBS
28721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
28722$as_echo "yes" >&6; }
28723 have_fontconfig=yes
28724fi
cristy09b53e12011-10-14 12:47:22 +000028725 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28726$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028727fi
28728
28729if test "$have_fontconfig" = 'yes'; then
28730
cristy8b350f62009-11-15 23:12:43 +000028731$as_echo "#define FONTCONFIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028732
cristyc6722092012-10-14 00:19:31 +000028733 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000028734 CPPFLAGS="$FONTCONFIG_CFLAGS $CPPFLAGS"
cristyd09bcf92010-03-25 03:04:45 +000028735 fi
cristy3ed852e2009-09-05 21:47:34 +000028736fi
28737
cristy73bd4a52010-10-05 11:24:23 +000028738 if test "$have_fontconfig" = 'yes'; then
28739 FONTCONFIG_DELEGATE_TRUE=
28740 FONTCONFIG_DELEGATE_FALSE='#'
28741else
28742 FONTCONFIG_DELEGATE_TRUE='#'
28743 FONTCONFIG_DELEGATE_FALSE=
28744fi
28745
cristy3ed852e2009-09-05 21:47:34 +000028746
28747
28748
28749
28750#
cristy81beccd2011-10-03 18:17:24 +000028751# Check for freetype delegate library.
cristy3ed852e2009-09-05 21:47:34 +000028752#
28753
28754# Check whether --with-freetype was given.
cristy8b350f62009-11-15 23:12:43 +000028755if test "${with_freetype+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028756 withval=$with_freetype; with_freetype=$withval
28757else
28758 with_freetype='yes'
28759fi
28760
28761
cristy81beccd2011-10-03 18:17:24 +000028762
cristy3ed852e2009-09-05 21:47:34 +000028763if test "$with_freetype" != 'yes'; then
28764 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-freetype=$with_freetype "
28765fi
28766
cristy81beccd2011-10-03 18:17:24 +000028767have_freetype='no'
28768FREETYPE_LIBS=''
28769if test "$with_freetype" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028770 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28771$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FreeType 2.0 " >&5
28773$as_echo_n "checking for FreeType 2.0 ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028774 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28775$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000028776 failed=0
28777 passed=0
cristy98ca0f52011-10-08 23:19:10 +000028778 PERSIST_LDFLAGS="$LDFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028779 PERSIST_CPPFLAGS="$CPPFLAGS"
cristy98ca0f52011-10-08 23:19:10 +000028780 freetype_config=''
28781 # Allow the user to specify the location of freetype.
28782 if test "$with_freetype" != 'yes'; then
28783 if test -x "${with_freetype}/bin/freetype-config"; then
28784 freetype_config="${with_freetype}/bin/freetype-config"
28785 elif test -x "${with_freetype}"; then
28786 freetype_config=${with_freetype}
28787 fi
28788 fi
28789 if test -z "$freetype_config"; then
28790 # Extract the first word of "freetype-config", so it can be a program name with args.
28791set dummy freetype-config; ac_word=$2
cristy81beccd2011-10-03 18:17:24 +000028792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28793$as_echo_n "checking for $ac_word... " >&6; }
cristy98ca0f52011-10-08 23:19:10 +000028794if ${ac_cv_path_freetype_config+:} false; then :
cristy81beccd2011-10-03 18:17:24 +000028795 $as_echo_n "(cached) " >&6
28796else
cristy98ca0f52011-10-08 23:19:10 +000028797 case $freetype_config in
28798 [\\/]* | ?:[\\/]*)
28799 ac_cv_path_freetype_config="$freetype_config" # Let the user override the test with a path.
28800 ;;
28801 *)
28802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
cristy81beccd2011-10-03 18:17:24 +000028803for as_dir in $PATH
28804do
28805 IFS=$as_save_IFS
28806 test -z "$as_dir" && as_dir=.
28807 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000028808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy98ca0f52011-10-08 23:19:10 +000028809 ac_cv_path_freetype_config="$as_dir/$ac_word$ac_exec_ext"
cristy81beccd2011-10-03 18:17:24 +000028810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28811 break 2
28812 fi
28813done
28814 done
28815IFS=$as_save_IFS
28816
cristy98ca0f52011-10-08 23:19:10 +000028817 ;;
28818esac
cristy81beccd2011-10-03 18:17:24 +000028819fi
cristy98ca0f52011-10-08 23:19:10 +000028820freetype_config=$ac_cv_path_freetype_config
cristy81beccd2011-10-03 18:17:24 +000028821if test -n "$freetype_config"; then
28822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $freetype_config" >&5
28823$as_echo "$freetype_config" >&6; }
28824else
28825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28826$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000028827fi
28828
cristy98ca0f52011-10-08 23:19:10 +000028829 fi
28830 if test -n "$freetype_config"; then
28831 freetype_prefix=`${freetype_config} --prefix`
28832 freetype_exec_prefix=`${freetype_config} --exec-prefix`
28833 LDFLAGS="$LDFLAGS -L${freetype_exec_prefix}/lib"
28834 CPPFLAGS="$CPPFLAGS -I${freetype_prefix}/include/freetype2"
cristy81beccd2011-10-03 18:17:24 +000028835 fi
28836
28837 if test "$FREETYPE_LIBS" = ''; then
cristy98ca0f52011-10-08 23:19:10 +000028838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_Init_FreeType in -lfreetype" >&5
cristy81beccd2011-10-03 18:17:24 +000028839$as_echo_n "checking for FT_Init_FreeType in -lfreetype... " >&6; }
28840if ${ac_cv_lib_freetype_FT_Init_FreeType+:} false; then :
28841 $as_echo_n "(cached) " >&6
28842else
28843 ac_check_lib_save_LIBS=$LIBS
28844LIBS="-lfreetype $LIBS"
28845cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28846/* end confdefs.h. */
28847
28848/* Override any GCC internal prototype to avoid an error.
28849 Use char because int might match the return type of a GCC
28850 builtin and then its argument prototype would still apply. */
28851#ifdef __cplusplus
28852extern "C"
28853#endif
28854char FT_Init_FreeType ();
28855int
28856main ()
28857{
28858return FT_Init_FreeType ();
28859 ;
28860 return 0;
28861}
28862_ACEOF
28863if ac_fn_c_try_link "$LINENO"; then :
28864 ac_cv_lib_freetype_FT_Init_FreeType=yes
28865else
28866 ac_cv_lib_freetype_FT_Init_FreeType=no
28867fi
28868rm -f core conftest.err conftest.$ac_objext \
28869 conftest$ac_exeext conftest.$ac_ext
28870LIBS=$ac_check_lib_save_LIBS
28871fi
28872{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_Init_FreeType" >&5
28873$as_echo "$ac_cv_lib_freetype_FT_Init_FreeType" >&6; }
28874if test "x$ac_cv_lib_freetype_FT_Init_FreeType" = xyes; then :
28875 FREETYPE_LIBS='-lfreetype'
28876fi
28877
cristy98ca0f52011-10-08 23:19:10 +000028878 if test "$FREETYPE_LIBS" != ''; then
28879 passed=`expr $passed + 1`
28880 else
28881 failed=`expr $failed + 1`
28882 LDFLAGS="$PERSIST_LDFLAGS"
28883 fi
cristy81beccd2011-10-03 18:17:24 +000028884 fi
28885
28886 ac_fn_c_check_header_mongrel "$LINENO" "ft2build.h" "ac_cv_header_ft2build_h" "$ac_includes_default"
28887if test "x$ac_cv_header_ft2build_h" = xyes; then :
28888 FT2BUILD_H='#include <ft2build.h>'
28889else
28890 ft2build=''
28891fi
28892
28893
28894 ac_fn_c_check_header_compile "$LINENO" "freetype/freetype.h" "ac_cv_header_freetype_freetype_h" "$FT2BUILD_H
28895"
28896if test "x$ac_cv_header_freetype_freetype_h" = xyes; then :
28897 have_freetype_h='yes'
28898else
28899 have_freetype_h='no'
28900fi
28901
28902
cristy98ca0f52011-10-08 23:19:10 +000028903 if test "$have_freetype_h" = 'yes'; then
28904 passed=`expr $passed + 1`
cristy81beccd2011-10-03 18:17:24 +000028905 else
cristy98ca0f52011-10-08 23:19:10 +000028906 failed=`expr $failed + 1`
28907 CPPFLAGS="$PERSIST_CPPFLAGS"
cristy81beccd2011-10-03 18:17:24 +000028908 fi
28909
28910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if FreeType package is complete" >&5
28911$as_echo_n "checking if FreeType package is complete... " >&6; }
28912 if test $passed -gt 0; then
cristy98ca0f52011-10-08 23:19:10 +000028913 if test $failed -gt 0; then
28914 FREETYPE_LIBS=''
cristy09b53e12011-10-14 12:47:22 +000028915 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
28916$as_echo "$as_me: no -- some components failed test" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028917 have_freetype='no (failed tests)'
28918 else
28919 LIBS="$FREETYPE_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000028920
cristy8b350f62009-11-15 23:12:43 +000028921$as_echo "#define FREETYPE_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000028922
cristy98ca0f52011-10-08 23:19:10 +000028923 if test "$ac_cv_header_ft2build_h" = 'yes'; then
cristy81beccd2011-10-03 18:17:24 +000028924
28925$as_echo "#define HAVE_FT2BUILD_H 1" >>confdefs.h
28926
cristy81beccd2011-10-03 18:17:24 +000028927 fi
cristy09b53e12011-10-14 12:47:22 +000028928 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
28929$as_echo "$as_me: yes" >&6;}
cristy98ca0f52011-10-08 23:19:10 +000028930 have_freetype='yes'
28931 fi
cristy81beccd2011-10-03 18:17:24 +000028932 else
cristy09b53e12011-10-14 12:47:22 +000028933 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
28934$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000028935 fi
28936fi
cristy73bd4a52010-10-05 11:24:23 +000028937 if test "$have_freetype" = 'yes'; then
28938 FREETYPE_DELEGATE_TRUE=
28939 FREETYPE_DELEGATE_FALSE='#'
28940else
28941 FREETYPE_DELEGATE_TRUE='#'
28942 FREETYPE_DELEGATE_FALSE=
28943fi
28944
cristy3ed852e2009-09-05 21:47:34 +000028945
28946
28947
cristy3ed852e2009-09-05 21:47:34 +000028948#
28949# Check for Ghostscript library or framework.
28950#
28951# Test for iapi.h & test for gsapi_new_instance in -lgs
28952# or -framework Ghostscript
28953
28954
28955# Check whether --with-gslib was given.
cristy8b350f62009-11-15 23:12:43 +000028956if test "${with_gslib+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000028957 withval=$with_gslib; with_gslib=$withval
28958else
28959 with_gslib='no'
28960fi
28961
28962
cristyb7931f12009-09-25 10:22:21 +000028963gslib_framework='no'
cristy3ed852e2009-09-05 21:47:34 +000028964if test "$with_gslib" != 'yes'; then
28965 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gslib=$with_gslib "
28966fi
28967
28968have_gslib='no'
28969GS_LIBS=''
28970if test "$with_gslib" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000028971 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
28972$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000028973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000028974$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000028975 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
28976$as_echo "$as_me: " >&6;}
cristyb7931f12009-09-25 10:22:21 +000028977 framework=0
cristy3ed852e2009-09-05 21:47:34 +000028978 failed=0
28979 passed=0
cristy8b350f62009-11-15 23:12:43 +000028980 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 +000028981if test "x$ac_cv_header_ghostscript_iapi_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028982 passed=`expr $passed + 1`
28983else
28984 failed=`expr $failed + 1`
28985fi
28986
28987
cristy8b350f62009-11-15 23:12:43 +000028988 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 +000028989if test "x$ac_cv_header_ghostscript_ierrors_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000028990 passed=`expr $passed + 1`
28991else
28992 failed=`expr $failed + 1`
28993fi
28994
28995
cristy73bd4a52010-10-05 11:24:23 +000028996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in Ghostscript framework" >&5
28997$as_echo_n "checking for gsapi_new_instance in Ghostscript framework... " >&6; }
cristyda16f162011-02-19 23:52:17 +000028998if ${ac_cv_framework_Ghostscript_gsapi_new_instance+:} false; then :
cristy73bd4a52010-10-05 11:24:23 +000028999 $as_echo_n "(cached) " >&6
29000else
29001 ac_check_framework_save_LIBS=$LIBS
29002LIBS="-framework Ghostscript $LIBS"
29003cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29004/* end confdefs.h. */
29005
29006/* Override any GCC internal prototype to avoid an error.
29007 Use char because int might match the return type of a GCC
29008 builtin and then its argument prototype would still apply. */
29009#ifdef __cplusplus
29010extern "C"
29011#endif
29012char gsapi_new_instance ();
29013int
29014main ()
29015{
29016return gsapi_new_instance ();
29017 ;
29018 return 0;
29019}
29020_ACEOF
29021if ac_fn_c_try_link "$LINENO"; then :
29022 ac_cv_framework_Ghostscript_gsapi_new_instance=yes
29023else
29024 ac_cv_framework_Ghostscript_gsapi_new_instance=no
29025fi
29026rm -f core conftest.err conftest.$ac_objext \
29027 conftest$ac_exeext conftest.$ac_ext
29028LIBS=$ac_check_framework_save_LIBS
29029fi
29030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_framework_Ghostscript_gsapi_new_instance" >&5
29031$as_echo "$ac_cv_framework_Ghostscript_gsapi_new_instance" >&6; }
29032if test $ac_cv_framework_Ghostscript_gsapi_new_instance = yes; then :
29033 framework=`expr $framework + 1`
29034else
29035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gsapi_new_instance in -lgs" >&5
cristy3ed852e2009-09-05 21:47:34 +000029036$as_echo_n "checking for gsapi_new_instance in -lgs... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029037if ${ac_cv_lib_gs_gsapi_new_instance+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029038 $as_echo_n "(cached) " >&6
29039else
29040 ac_check_lib_save_LIBS=$LIBS
29041LIBS="-lgs $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029042cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029043/* end confdefs.h. */
29044
29045/* Override any GCC internal prototype to avoid an error.
29046 Use char because int might match the return type of a GCC
29047 builtin and then its argument prototype would still apply. */
29048#ifdef __cplusplus
29049extern "C"
29050#endif
29051char gsapi_new_instance ();
29052int
29053main ()
29054{
29055return gsapi_new_instance ();
29056 ;
29057 return 0;
29058}
29059_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029060if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029061 ac_cv_lib_gs_gsapi_new_instance=yes
29062else
cristy8b350f62009-11-15 23:12:43 +000029063 ac_cv_lib_gs_gsapi_new_instance=no
cristy3ed852e2009-09-05 21:47:34 +000029064fi
cristy8b350f62009-11-15 23:12:43 +000029065rm -f core conftest.err conftest.$ac_objext \
29066 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029067LIBS=$ac_check_lib_save_LIBS
29068fi
cristy8b350f62009-11-15 23:12:43 +000029069{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gs_gsapi_new_instance" >&5
cristy3ed852e2009-09-05 21:47:34 +000029070$as_echo "$ac_cv_lib_gs_gsapi_new_instance" >&6; }
cristyda16f162011-02-19 23:52:17 +000029071if test "x$ac_cv_lib_gs_gsapi_new_instance" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029072 passed=`expr $passed + 1`
29073else
29074 failed=`expr $failed + 1`
29075fi
cristy73bd4a52010-10-05 11:24:23 +000029076
29077fi
cristy8b350f62009-11-15 23:12:43 +000029078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if Ghostscript package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029079$as_echo_n "checking if Ghostscript package is complete... " >&6; }
29080 if test $passed -gt 0; then
29081 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029082 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29083$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029084 have_gslib='no (failed tests)'
29085 else
29086 if test $framework -gt 0; then
29087 GS_LIBS='-framework Ghostscript'
cristyb7931f12009-09-25 10:22:21 +000029088 gslib_framework='yes'
cristy09b53e12011-10-14 12:47:22 +000029089 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using framework." >&5
29090$as_echo "$as_me: yes, using framework." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029091 else
cristy09b53e12011-10-14 12:47:22 +000029092 { $as_echo "$as_me:${as_lineno-$LINENO}: yes, using library." >&5
29093$as_echo "$as_me: yes, using library." >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029094 GS_LIBS='-lgs'
29095 fi
29096 LIBS="$GS_LIBS $LIBS"
29097
cristy8b350f62009-11-15 23:12:43 +000029098$as_echo "#define GS_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029099
29100 have_gslib='yes'
29101 fi
29102 else
cristy09b53e12011-10-14 12:47:22 +000029103 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29104$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029105 fi
29106fi
cristy73bd4a52010-10-05 11:24:23 +000029107 if test "$have_gslib" = 'yes'; then
29108 GS_DELEGATE_TRUE=
29109 GS_DELEGATE_FALSE='#'
29110else
29111 GS_DELEGATE_TRUE='#'
29112 GS_DELEGATE_FALSE=
29113fi
29114
cristy3ed852e2009-09-05 21:47:34 +000029115
29116
29117# Set default font search path
29118
29119# Check whether --with-fontpath was given.
cristy8b350f62009-11-15 23:12:43 +000029120if test "${with_fontpath+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029121 withval=$with_fontpath; with_fontpath=$withval
29122else
29123 with_fontpath=''
29124fi
29125
29126
29127if test "$with_fontpath" != "yes" && test -z "$with_fontpath"; then
29128 with_fontpath=''
29129else
29130
29131cat >>confdefs.h <<_ACEOF
29132#define MAGICK_FONT_PATH "$with_fontpath"
29133_ACEOF
29134
29135fi
29136if test "$with_fontpath=" != ''; then
29137 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-fontpath=$with_fontpath "
29138fi
29139
29140# Set Ghostscript font directory
29141
29142# Check whether --with-gs-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000029143if test "${with_gs_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029144 withval=$with_gs_font_dir; with_gs_font_dir=$withval
29145else
29146 with_gs_font_dir='default'
29147fi
29148
29149
29150if test "$with_gs_font_dir" != 'default'; then
29151 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gs-font-dir=$with_gs_font_dir "
29152fi
29153
29154
29155#
29156# Check for GVC delegate library.
29157#
29158
29159# Check whether --with-gvc was given.
cristy8b350f62009-11-15 23:12:43 +000029160if test "${with_gvc+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029161 withval=$with_gvc; with_gvc=$withval
29162else
cristy1b70dc82012-07-01 23:15:05 +000029163 with_gvc='no'
cristy3ed852e2009-09-05 21:47:34 +000029164fi
29165
29166
29167if test "$with_gvc" != 'yes'; then
29168 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-gvc=$with_gvc "
29169fi
29170
29171GVC_PKG=""
29172if test "x$with_gvc" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029173 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29174$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029175
29176pkg_failed=no
29177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GVC" >&5
29178$as_echo_n "checking for GVC... " >&6; }
29179
29180if test -n "$GVC_CFLAGS"; then
29181 pkg_cv_GVC_CFLAGS="$GVC_CFLAGS"
29182 elif test -n "$PKG_CONFIG"; then
29183 if test -n "$PKG_CONFIG" && \
29184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29185 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29186 ac_status=$?
29187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29188 test $ac_status = 0; }; then
29189 pkg_cv_GVC_CFLAGS=`$PKG_CONFIG --cflags "libgvc >= 2.9.0" 2>/dev/null`
29190else
29191 pkg_failed=yes
29192fi
29193 else
29194 pkg_failed=untried
29195fi
29196if test -n "$GVC_LIBS"; then
29197 pkg_cv_GVC_LIBS="$GVC_LIBS"
29198 elif test -n "$PKG_CONFIG"; then
29199 if test -n "$PKG_CONFIG" && \
29200 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libgvc >= 2.9.0\""; } >&5
29201 ($PKG_CONFIG --exists --print-errors "libgvc >= 2.9.0") 2>&5
29202 ac_status=$?
29203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29204 test $ac_status = 0; }; then
29205 pkg_cv_GVC_LIBS=`$PKG_CONFIG --libs "libgvc >= 2.9.0" 2>/dev/null`
29206else
29207 pkg_failed=yes
29208fi
29209 else
29210 pkg_failed=untried
29211fi
29212
29213
29214
29215if test $pkg_failed = yes; then
29216
29217if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29218 _pkg_short_errors_supported=yes
29219else
29220 _pkg_short_errors_supported=no
29221fi
29222 if test $_pkg_short_errors_supported = yes; then
29223 GVC_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libgvc >= 2.9.0" 2>&1`
29224 else
29225 GVC_PKG_ERRORS=`$PKG_CONFIG --print-errors "libgvc >= 2.9.0" 2>&1`
29226 fi
29227 # Put the nasty error message in config.log where it belongs
29228 echo "$GVC_PKG_ERRORS" >&5
29229
29230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
29231$as_echo "no" >&6; }
29232 have_gvc=no
29233elif test $pkg_failed = untried; then
29234 have_gvc=no
29235else
29236 GVC_CFLAGS=$pkg_cv_GVC_CFLAGS
29237 GVC_LIBS=$pkg_cv_GVC_LIBS
29238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
29239$as_echo "yes" >&6; }
29240 have_gvc=yes
29241fi
cristy09b53e12011-10-14 12:47:22 +000029242 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29243$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029244fi
29245
29246if test "$have_gvc" = 'yes'; then
29247
cristy8b350f62009-11-15 23:12:43 +000029248$as_echo "#define GVC_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029249
cristyc6722092012-10-14 00:19:31 +000029250 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000029251 CPPFLAGS="$GVC_CFLAGS $CPPFLAGS"
29252 fi
29253fi
29254
cristy73bd4a52010-10-05 11:24:23 +000029255 if test "$have_gvc" = 'yes'; then
29256 GVC_DELEGATE_TRUE=
29257 GVC_DELEGATE_FALSE='#'
29258else
29259 GVC_DELEGATE_TRUE='#'
29260 GVC_DELEGATE_FALSE=
29261fi
29262
cristy3ed852e2009-09-05 21:47:34 +000029263
29264
29265
29266
29267#
29268# Check for JBIG delegate library.
29269#
29270
29271
29272# Check whether --with-jbig was given.
cristy8b350f62009-11-15 23:12:43 +000029273if test "${with_jbig+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029274 withval=$with_jbig; with_jbig=$withval
29275else
29276 with_jbig='yes'
29277fi
29278
29279
29280have_jbig='no'
29281JBIG_LIBS=''
29282if test "$with_jbig" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029283 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29284$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JBIG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029286$as_echo_n "checking for JBIG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029287 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29288$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029289 failed=0
29290 passed=0
cristy8b350f62009-11-15 23:12:43 +000029291 ac_fn_c_check_header_mongrel "$LINENO" "jbig.h" "ac_cv_header_jbig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029292if test "x$ac_cv_header_jbig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029293 passed=`expr $passed + 1`
29294else
29295 failed=`expr $failed + 1`
29296fi
29297
29298
cristy8b350f62009-11-15 23:12:43 +000029299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jbg_dec_init in -ljbig" >&5
cristy3ed852e2009-09-05 21:47:34 +000029300$as_echo_n "checking for jbg_dec_init in -ljbig... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029301if ${ac_cv_lib_jbig_jbg_dec_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029302 $as_echo_n "(cached) " >&6
29303else
29304 ac_check_lib_save_LIBS=$LIBS
29305LIBS="-ljbig $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029306cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029307/* end confdefs.h. */
29308
29309/* Override any GCC internal prototype to avoid an error.
29310 Use char because int might match the return type of a GCC
29311 builtin and then its argument prototype would still apply. */
29312#ifdef __cplusplus
29313extern "C"
29314#endif
29315char jbg_dec_init ();
29316int
29317main ()
29318{
29319return jbg_dec_init ();
29320 ;
29321 return 0;
29322}
29323_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029324if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029325 ac_cv_lib_jbig_jbg_dec_init=yes
29326else
cristy8b350f62009-11-15 23:12:43 +000029327 ac_cv_lib_jbig_jbg_dec_init=no
cristy3ed852e2009-09-05 21:47:34 +000029328fi
cristy8b350f62009-11-15 23:12:43 +000029329rm -f core conftest.err conftest.$ac_objext \
29330 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029331LIBS=$ac_check_lib_save_LIBS
29332fi
cristy8b350f62009-11-15 23:12:43 +000029333{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jbig_jbg_dec_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000029334$as_echo "$ac_cv_lib_jbig_jbg_dec_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000029335if test "x$ac_cv_lib_jbig_jbg_dec_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029336 passed=`expr $passed + 1`
29337else
29338 failed=`expr $failed + 1`
29339fi
29340
cristy8b350f62009-11-15 23:12:43 +000029341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JBIG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029342$as_echo_n "checking if JBIG package is complete... " >&6; }
29343 if test $passed -gt 0; then
29344 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029345 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29346$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029347 have_jbig='no (failed tests)'
29348 else
29349 JBIG_LIBS='-ljbig'
29350 LIBS="$JBIG_LIBS $LIBS"
29351
cristy8b350f62009-11-15 23:12:43 +000029352$as_echo "#define JBIG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029353
cristy09b53e12011-10-14 12:47:22 +000029354 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29355$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029356 have_jbig='yes'
29357 fi
29358 else
cristy09b53e12011-10-14 12:47:22 +000029359 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29360$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029361 fi
29362fi
cristy73bd4a52010-10-05 11:24:23 +000029363 if test "$have_jbig" = 'yes'; then
29364 JBIG_DELEGATE_TRUE=
29365 JBIG_DELEGATE_FALSE='#'
29366else
29367 JBIG_DELEGATE_TRUE='#'
29368 JBIG_DELEGATE_FALSE=
29369fi
29370
cristy3ed852e2009-09-05 21:47:34 +000029371
29372
29373
29374#
29375# Check for JPEG delegate library.
29376#
29377
29378# Check whether --with-jpeg was given.
cristy8b350f62009-11-15 23:12:43 +000029379if test "${with_jpeg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029380 withval=$with_jpeg; with_jpeg=$withval
29381else
29382 with_jpeg='yes'
29383fi
29384
29385
29386if test "$with_jpeg" != 'yes'; then
29387 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jpeg=$with_jpeg "
29388fi
29389
29390have_jpeg='no'
29391JPEG_LIBS=''
29392if test "$with_jpeg" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029393 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29394$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG" >&5
cristy3ed852e2009-09-05 21:47:34 +000029396$as_echo_n "checking for JPEG... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029397 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29398$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029399 failed=0
29400 passed=0
cristy8b350f62009-11-15 23:12:43 +000029401 ac_fn_c_check_header_mongrel "$LINENO" "jconfig.h" "ac_cv_header_jconfig_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029402if test "x$ac_cv_header_jconfig_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029403 passed=`expr $passed + 1`
29404else
29405 failed=`expr $failed + 1`
29406fi
29407
29408
cristy8b350f62009-11-15 23:12:43 +000029409 ac_fn_c_check_header_mongrel "$LINENO" "jerror.h" "ac_cv_header_jerror_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029410if test "x$ac_cv_header_jerror_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029411 passed=`expr $passed + 1`
29412else
29413 failed=`expr $failed + 1`
29414fi
29415
29416
cristy8b350f62009-11-15 23:12:43 +000029417 ac_fn_c_check_header_mongrel "$LINENO" "jmorecfg.h" "ac_cv_header_jmorecfg_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029418if test "x$ac_cv_header_jmorecfg_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029419 passed=`expr $passed + 1`
29420else
29421 failed=`expr $failed + 1`
29422fi
29423
29424
cristy8b350f62009-11-15 23:12:43 +000029425 ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029426if test "x$ac_cv_header_jpeglib_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029427 passed=`expr $passed + 1`
29428else
29429 failed=`expr $failed + 1`
29430fi
29431
29432
cristy8b350f62009-11-15 23:12:43 +000029433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_read_header in -ljpeg" >&5
cristy3ed852e2009-09-05 21:47:34 +000029434$as_echo_n "checking for jpeg_read_header in -ljpeg... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029435if ${ac_cv_lib_jpeg_jpeg_read_header+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029436 $as_echo_n "(cached) " >&6
29437else
29438 ac_check_lib_save_LIBS=$LIBS
29439LIBS="-ljpeg $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029441/* end confdefs.h. */
29442
29443/* Override any GCC internal prototype to avoid an error.
29444 Use char because int might match the return type of a GCC
29445 builtin and then its argument prototype would still apply. */
29446#ifdef __cplusplus
29447extern "C"
29448#endif
29449char jpeg_read_header ();
29450int
29451main ()
29452{
29453return jpeg_read_header ();
29454 ;
29455 return 0;
29456}
29457_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029458if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029459 ac_cv_lib_jpeg_jpeg_read_header=yes
29460else
cristy8b350f62009-11-15 23:12:43 +000029461 ac_cv_lib_jpeg_jpeg_read_header=no
cristy3ed852e2009-09-05 21:47:34 +000029462fi
cristy8b350f62009-11-15 23:12:43 +000029463rm -f core conftest.err conftest.$ac_objext \
29464 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029465LIBS=$ac_check_lib_save_LIBS
29466fi
cristy8b350f62009-11-15 23:12:43 +000029467{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_read_header" >&5
cristy3ed852e2009-09-05 21:47:34 +000029468$as_echo "$ac_cv_lib_jpeg_jpeg_read_header" >&6; }
cristyda16f162011-02-19 23:52:17 +000029469if test "x$ac_cv_lib_jpeg_jpeg_read_header" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029470 passed=`expr $passed + 1`
29471else
29472 failed=`expr $failed + 1`
29473fi
29474
29475
29476# Test for compatible JPEG library
29477if test "$ac_cv_jpeg_version_ok" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000029478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG library is version 6b or later" >&5
cristy3ed852e2009-09-05 21:47:34 +000029479$as_echo_n "checking for JPEG library is version 6b or later... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029480if ${ac_cv_jpeg_version_ok+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029481 $as_echo_n "(cached) " >&6
29482else
cristy8b350f62009-11-15 23:12:43 +000029483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029484/* end confdefs.h. */
29485#include <stdio.h>
29486#include <stdlib.h>
29487#include <jpeglib.h>
29488
29489int
29490main ()
29491{
29492
29493#if JPEG_LIB_VERSION < 62
29494#error IJG JPEG library must be version 6b or newer!
29495#endif
29496return 0;
29497
29498 ;
29499 return 0;
29500}
29501_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029502if ac_fn_c_try_compile "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029503 ac_cv_jpeg_version_ok='yes'; passed=`expr $passed + 1`
29504else
cristy8b350f62009-11-15 23:12:43 +000029505 ac_cv_jpeg_version_ok='no'; failed=`expr $failed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029506fi
cristy3ed852e2009-09-05 21:47:34 +000029507rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
29508fi
cristy8b350f62009-11-15 23:12:43 +000029509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_jpeg_version_ok" >&5
cristy3ed852e2009-09-05 21:47:34 +000029510$as_echo "$ac_cv_jpeg_version_ok" >&6; }
29511fi
cristy8b350f62009-11-15 23:12:43 +000029512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029513$as_echo_n "checking if JPEG package is complete... " >&6; }
29514 if test $passed -gt 0; then
29515 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029516 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29517$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029518 have_jpeg='no (failed tests)'
29519 else
29520 JPEG_LIBS='-ljpeg'
29521 LIBS="$JPEG_LIBS $LIBS"
29522
cristy8b350f62009-11-15 23:12:43 +000029523$as_echo "#define JPEG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029524
cristy09b53e12011-10-14 12:47:22 +000029525 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29526$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029527 have_jpeg='yes'
29528 fi
29529 else
cristy09b53e12011-10-14 12:47:22 +000029530 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29531$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029532 fi
29533fi
cristy73bd4a52010-10-05 11:24:23 +000029534 if test "$have_jpeg" = 'yes'; then
29535 JPEG_DELEGATE_TRUE=
29536 JPEG_DELEGATE_FALSE='#'
29537else
29538 JPEG_DELEGATE_TRUE='#'
29539 JPEG_DELEGATE_FALSE=
29540fi
29541
cristy3ed852e2009-09-05 21:47:34 +000029542
29543
29544
29545#
29546# Check for JPEG Version 2 delegate library.
29547#
29548
29549# Check whether --with-jp2 was given.
cristy8b350f62009-11-15 23:12:43 +000029550if test "${with_jp2+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029551 withval=$with_jp2; with_jp2=$withval
29552else
29553 with_jp2='yes'
29554fi
29555
29556
29557if test "$with_jp2" != 'yes'; then
29558 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-jp2=$with_jp2 "
29559fi
29560
29561have_jp2='no'
29562JP2_LIBS=''
29563if test "$with_jp2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029564 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29565$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000029566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JPEG Version 2" >&5
cristy3ed852e2009-09-05 21:47:34 +000029567$as_echo_n "checking for JPEG Version 2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029568 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29569$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029570 failed=0
29571 passed=0
cristy8b350f62009-11-15 23:12:43 +000029572 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 +000029573if test "x$ac_cv_header_jasper_jasper_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029574 passed=`expr $passed + 1`
29575else
29576 failed=`expr $failed + 1`
29577fi
29578
29579
cristy8b350f62009-11-15 23:12:43 +000029580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jas_stream_fopen in -ljasper" >&5
cristy3ed852e2009-09-05 21:47:34 +000029581$as_echo_n "checking for jas_stream_fopen in -ljasper... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029582if ${ac_cv_lib_jasper_jas_stream_fopen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029583 $as_echo_n "(cached) " >&6
29584else
29585 ac_check_lib_save_LIBS=$LIBS
29586LIBS="-ljasper $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029587cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029588/* end confdefs.h. */
29589
29590/* Override any GCC internal prototype to avoid an error.
29591 Use char because int might match the return type of a GCC
29592 builtin and then its argument prototype would still apply. */
29593#ifdef __cplusplus
29594extern "C"
29595#endif
29596char jas_stream_fopen ();
29597int
29598main ()
29599{
29600return jas_stream_fopen ();
29601 ;
29602 return 0;
29603}
29604_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029605if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000029606 ac_cv_lib_jasper_jas_stream_fopen=yes
29607else
cristy8b350f62009-11-15 23:12:43 +000029608 ac_cv_lib_jasper_jas_stream_fopen=no
cristy3ed852e2009-09-05 21:47:34 +000029609fi
cristy8b350f62009-11-15 23:12:43 +000029610rm -f core conftest.err conftest.$ac_objext \
29611 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029612LIBS=$ac_check_lib_save_LIBS
29613fi
cristy8b350f62009-11-15 23:12:43 +000029614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jasper_jas_stream_fopen" >&5
cristy3ed852e2009-09-05 21:47:34 +000029615$as_echo "$ac_cv_lib_jasper_jas_stream_fopen" >&6; }
cristyda16f162011-02-19 23:52:17 +000029616if test "x$ac_cv_lib_jasper_jas_stream_fopen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029617 passed=`expr $passed + 1`
29618else
29619 failed=`expr $failed + 1`
29620fi
29621
cristy8b350f62009-11-15 23:12:43 +000029622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JPEG version 2 support package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029623$as_echo_n "checking if JPEG version 2 support package is complete... " >&6; }
29624 if test $passed -gt 0; then
29625 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029626 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29627$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029628 have_jp2='no (failed tests)'
29629 else
29630 JP2_LIBS='-ljasper'
29631 LIBS="$JP2_LIBS $LIBS"
29632
cristy8b350f62009-11-15 23:12:43 +000029633$as_echo "#define JP2_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029634
cristy09b53e12011-10-14 12:47:22 +000029635 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29636$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029637 have_jp2='yes'
29638 fi
29639 else
cristy09b53e12011-10-14 12:47:22 +000029640 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29641$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029642 fi
29643fi
cristy73bd4a52010-10-05 11:24:23 +000029644 if test "$have_jp2" = 'yes'; then
29645 JP2_DELEGATE_TRUE=
29646 JP2_DELEGATE_FALSE='#'
29647else
29648 JP2_DELEGATE_TRUE='#'
29649 JP2_DELEGATE_FALSE=
29650fi
29651
cristy3ed852e2009-09-05 21:47:34 +000029652
29653
29654
29655#
29656# Check for LCMS delegate library.
29657#
cristy71203402010-06-18 13:12:03 +000029658# Disable LCMS.
cristy3ed852e2009-09-05 21:47:34 +000029659
29660# Check whether --with-lcms was given.
cristy8b350f62009-11-15 23:12:43 +000029661if test "${with_lcms+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029662 withval=$with_lcms; with_lcms=$withval
29663else
29664 with_lcms='yes'
29665fi
29666
cristy71203402010-06-18 13:12:03 +000029667if test "$with_lcms" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000029668 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms=$with_lcms "
29669fi
29670
cristy71203402010-06-18 13:12:03 +000029671# Disable LCMS2.
29672
29673# Check whether --with-lcms2 was given.
29674if test "${with_lcms2+set}" = set; then :
29675 withval=$with_lcms2; with_lcms2=$withval
29676else
29677 with_lcms2='yes'
29678fi
29679
29680if test "$with_lcms2" != 'yes' ; then
29681 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lcms2=$with_lcms2 "
29682fi
29683
29684have_lcms2='no'
cristy3ed852e2009-09-05 21:47:34 +000029685LCMS_LIBS=''
cristy71203402010-06-18 13:12:03 +000029686if test "$with_lcms2" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029687 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29688$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v2" >&5
29690$as_echo_n "checking for LCMS v2... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029691 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29692$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029693 failed=0
29694 passed=0
29695 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029696
29697 # Check for <lcms2.h>
cristyd09bcf92010-03-25 03:04:45 +000029698 ac_fn_c_check_header_mongrel "$LINENO" "lcms2.h" "ac_cv_header_lcms2_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029699if test "x$ac_cv_header_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029700 have_lcms_header='yes'
29701fi
29702
29703
29704 if test "$have_lcms_header" = 'yes'; then
cristyd09bcf92010-03-25 03:04:45 +000029705
29706$as_echo "#define HAVE_LCMS2_H 1" >>confdefs.h
29707
cristy71203402010-06-18 13:12:03 +000029708 passed=`expr $passed + 1`
29709 fi
29710
29711 # Check for <lcms2/lcms2.h)
29712 if test "$have_lcms_header" != 'yes'; then
29713 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 +000029714if test "x$ac_cv_header_lcms2_lcms2_h" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029715 have_lcms_header='yes'
29716fi
29717
29718
cristy71203402010-06-18 13:12:03 +000029719 if test "$have_lcms_header" = 'yes'; then
29720 passed=`expr $passed + 1`
cristyd09bcf92010-03-25 03:04:45 +000029721
cristy71203402010-06-18 13:12:03 +000029722$as_echo "#define HAVE_LCMS2_LCMS2_H 1" >>confdefs.h
cristyd09bcf92010-03-25 03:04:45 +000029723
cristy71203402010-06-18 13:12:03 +000029724 fi
cristyd09bcf92010-03-25 03:04:45 +000029725 fi
cristy71203402010-06-18 13:12:03 +000029726
29727 # Failed to find lcms header?
29728 if test "$have_lcms_header" != 'yes'; then
29729 failed=`expr $failed + 1`
29730 fi
29731
29732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetLogErrorHandler in -llcms2" >&5
29733$as_echo_n "checking for cmsSetLogErrorHandler in -llcms2... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029734if ${ac_cv_lib_lcms2_cmsSetLogErrorHandler+:} false; then :
cristyd09bcf92010-03-25 03:04:45 +000029735 $as_echo_n "(cached) " >&6
29736else
29737 ac_check_lib_save_LIBS=$LIBS
29738LIBS="-llcms2 $LIBS"
29739cat confdefs.h - <<_ACEOF >conftest.$ac_ext
29740/* end confdefs.h. */
29741
29742/* Override any GCC internal prototype to avoid an error.
29743 Use char because int might match the return type of a GCC
29744 builtin and then its argument prototype would still apply. */
29745#ifdef __cplusplus
29746extern "C"
29747#endif
cristy71203402010-06-18 13:12:03 +000029748char cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029749int
29750main ()
29751{
cristy71203402010-06-18 13:12:03 +000029752return cmsSetLogErrorHandler ();
cristyd09bcf92010-03-25 03:04:45 +000029753 ;
29754 return 0;
29755}
29756_ACEOF
29757if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029758 ac_cv_lib_lcms2_cmsSetLogErrorHandler=yes
cristyd09bcf92010-03-25 03:04:45 +000029759else
cristy71203402010-06-18 13:12:03 +000029760 ac_cv_lib_lcms2_cmsSetLogErrorHandler=no
cristyd09bcf92010-03-25 03:04:45 +000029761fi
29762rm -f core conftest.err conftest.$ac_objext \
29763 conftest$ac_exeext conftest.$ac_ext
29764LIBS=$ac_check_lib_save_LIBS
29765fi
cristy71203402010-06-18 13:12:03 +000029766{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&5
29767$as_echo "$ac_cv_lib_lcms2_cmsSetLogErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029768if test "x$ac_cv_lib_lcms2_cmsSetLogErrorHandler" = xyes; then :
cristyd09bcf92010-03-25 03:04:45 +000029769 passed=`expr $passed + 1`
29770else
29771 failed=`expr $failed + 1`
29772fi
29773
cristy71203402010-06-18 13:12:03 +000029774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS v2 package is complete" >&5
29775$as_echo_n "checking if LCMS v2 package is complete... " >&6; }
cristyd09bcf92010-03-25 03:04:45 +000029776 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029777 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029778 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29779$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029780 have_lcms2='no (failed tests)'
29781 else
29782 LCMS_LIBS='-llcms2'
29783 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029784 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29785$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029786 have_lcms2='yes'
29787 fi
cristyd09bcf92010-03-25 03:04:45 +000029788 else
cristy09b53e12011-10-14 12:47:22 +000029789 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29790$as_echo "$as_me: no" >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029791 fi
29792fi
29793
cristy71203402010-06-18 13:12:03 +000029794#
29795# Check for LCMS v1 (1.11 or later)
29796#
29797if test $have_lcms2 = 'yes'; then
29798 with_lcms='no'
29799fi
29800
29801have_lcms='no'
cristyd09bcf92010-03-25 03:04:45 +000029802if test "$with_lcms" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000029803 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29804$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy71203402010-06-18 13:12:03 +000029805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LCMS v1.1X" >&5
29806$as_echo_n "checking for LCMS v1.1X... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000029807 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
29808$as_echo "$as_me: " >&6;}
cristyd09bcf92010-03-25 03:04:45 +000029809 failed=0
29810 passed=0
29811 have_lcms_header='no'
cristy71203402010-06-18 13:12:03 +000029812
29813 # Check for <lcms.h>
29814 if test "$have_lcms_header" != 'yes'; then
29815 ac_fn_c_check_header_mongrel "$LINENO" "lcms.h" "ac_cv_header_lcms_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000029816if test "x$ac_cv_header_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029817 have_lcms_header='yes'
29818fi
29819
29820
cristy71203402010-06-18 13:12:03 +000029821 if test "$have_lcms_header" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000029822 passed=`expr $passed + 1`
29823
cristy8b350f62009-11-15 23:12:43 +000029824$as_echo "#define HAVE_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029825
cristy71203402010-06-18 13:12:03 +000029826 fi
29827 fi
29828
29829 # Check for <lcms/lcms.h>
29830 if test "$have_lcms_header" != 'yes'; then
29831 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 +000029832if test "x$ac_cv_header_lcms_lcms_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029833 have_lcms_header='yes'
29834fi
29835
29836
cristy71203402010-06-18 13:12:03 +000029837 if test "$have_lcms_header" = 'yes'; then
29838 passed=`expr $passed + 1`
cristy3ed852e2009-09-05 21:47:34 +000029839
cristy8b350f62009-11-15 23:12:43 +000029840$as_echo "#define HAVE_LCMS_LCMS_H 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000029841
cristy71203402010-06-18 13:12:03 +000029842 fi
cristy3ed852e2009-09-05 21:47:34 +000029843 fi
cristy71203402010-06-18 13:12:03 +000029844
29845 # Failed to find lcms header?
29846 if test "$have_lcms_header" != 'yes'; then
29847 failed=`expr $failed + 1`
29848 fi
29849
29850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cmsSetErrorHandler in -llcms" >&5
29851$as_echo_n "checking for cmsSetErrorHandler in -llcms... " >&6; }
cristyda16f162011-02-19 23:52:17 +000029852if ${ac_cv_lib_lcms_cmsSetErrorHandler+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000029853 $as_echo_n "(cached) " >&6
29854else
29855 ac_check_lib_save_LIBS=$LIBS
29856LIBS="-llcms $LIBS"
cristy8b350f62009-11-15 23:12:43 +000029857cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029858/* end confdefs.h. */
29859
29860/* Override any GCC internal prototype to avoid an error.
29861 Use char because int might match the return type of a GCC
29862 builtin and then its argument prototype would still apply. */
29863#ifdef __cplusplus
29864extern "C"
29865#endif
cristy71203402010-06-18 13:12:03 +000029866char cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029867int
29868main ()
29869{
cristy71203402010-06-18 13:12:03 +000029870return cmsSetErrorHandler ();
cristy3ed852e2009-09-05 21:47:34 +000029871 ;
29872 return 0;
29873}
29874_ACEOF
cristy8b350f62009-11-15 23:12:43 +000029875if ac_fn_c_try_link "$LINENO"; then :
cristy71203402010-06-18 13:12:03 +000029876 ac_cv_lib_lcms_cmsSetErrorHandler=yes
cristy3ed852e2009-09-05 21:47:34 +000029877else
cristy71203402010-06-18 13:12:03 +000029878 ac_cv_lib_lcms_cmsSetErrorHandler=no
cristy3ed852e2009-09-05 21:47:34 +000029879fi
cristy8b350f62009-11-15 23:12:43 +000029880rm -f core conftest.err conftest.$ac_objext \
29881 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000029882LIBS=$ac_check_lib_save_LIBS
29883fi
cristy71203402010-06-18 13:12:03 +000029884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lcms_cmsSetErrorHandler" >&5
29885$as_echo "$ac_cv_lib_lcms_cmsSetErrorHandler" >&6; }
cristyda16f162011-02-19 23:52:17 +000029886if test "x$ac_cv_lib_lcms_cmsSetErrorHandler" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000029887 passed=`expr $passed + 1`
29888else
29889 failed=`expr $failed + 1`
29890fi
29891
cristy8b350f62009-11-15 23:12:43 +000029892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if LCMS package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000029893$as_echo_n "checking if LCMS package is complete... " >&6; }
29894 if test $passed -gt 0; then
cristy71203402010-06-18 13:12:03 +000029895 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000029896 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
29897$as_echo "$as_me: no -- some components failed test" >&6;}
cristy71203402010-06-18 13:12:03 +000029898 have_lcms='no (failed tests)'
29899 else
29900 LCMS_LIBS='-llcms'
29901 LIBS="$LCMS_LIBS $LIBS"
cristy09b53e12011-10-14 12:47:22 +000029902 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
29903$as_echo "$as_me: yes" >&6;}
cristy71203402010-06-18 13:12:03 +000029904 have_lcms='yes'
29905 fi
cristy3ed852e2009-09-05 21:47:34 +000029906 else
cristy09b53e12011-10-14 12:47:22 +000029907 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
29908$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000029909 fi
29910fi
cristy71203402010-06-18 13:12:03 +000029911
cristy73bd4a52010-10-05 11:24:23 +000029912 if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29913 LCMS_DELEGATE_TRUE=
29914 LCMS_DELEGATE_FALSE='#'
29915else
29916 LCMS_DELEGATE_TRUE='#'
29917 LCMS_DELEGATE_FALSE=
29918fi
29919
cristy71203402010-06-18 13:12:03 +000029920if test "$have_lcms2" = 'yes' -o "$have_lcms" = 'yes'; then
29921
29922$as_echo "#define LCMS_DELEGATE 1" >>confdefs.h
29923
29924fi
29925
cristy3ed852e2009-09-05 21:47:34 +000029926
29927
29928
29929#
29930# Check for the LQR (Liquid Rescale) delegate library.
29931#
29932
29933# Check whether --with-lqr was given.
cristy8b350f62009-11-15 23:12:43 +000029934if test "${with_lqr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000029935 withval=$with_lqr; with_lqr=$withval
29936else
29937 with_lqr='yes'
29938fi
29939
29940
29941if test "$with_lqr" != 'yes'; then
29942 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lqr=$with_lqr "
29943fi
29944
29945have_lqr='no'
29946LQR_CFLAGS=""
29947LQR_LIBS=""
29948LQR_PKG=""
29949if test "x$with_lqr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000029950 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
29951$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000029952
29953pkg_failed=no
29954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LQR" >&5
29955$as_echo_n "checking for LQR... " >&6; }
29956
29957if test -n "$LQR_CFLAGS"; then
29958 pkg_cv_LQR_CFLAGS="$LQR_CFLAGS"
29959 elif test -n "$PKG_CONFIG"; then
29960 if test -n "$PKG_CONFIG" && \
29961 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29962 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29963 ac_status=$?
29964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29965 test $ac_status = 0; }; then
29966 pkg_cv_LQR_CFLAGS=`$PKG_CONFIG --cflags "lqr-1 >= 0.1.0" 2>/dev/null`
29967else
29968 pkg_failed=yes
29969fi
29970 else
29971 pkg_failed=untried
29972fi
29973if test -n "$LQR_LIBS"; then
29974 pkg_cv_LQR_LIBS="$LQR_LIBS"
29975 elif test -n "$PKG_CONFIG"; then
29976 if test -n "$PKG_CONFIG" && \
29977 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lqr-1 >= 0.1.0\""; } >&5
29978 ($PKG_CONFIG --exists --print-errors "lqr-1 >= 0.1.0") 2>&5
29979 ac_status=$?
29980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
29981 test $ac_status = 0; }; then
29982 pkg_cv_LQR_LIBS=`$PKG_CONFIG --libs "lqr-1 >= 0.1.0" 2>/dev/null`
29983else
29984 pkg_failed=yes
29985fi
29986 else
29987 pkg_failed=untried
29988fi
29989
29990
29991
29992if test $pkg_failed = yes; then
29993
29994if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
29995 _pkg_short_errors_supported=yes
29996else
29997 _pkg_short_errors_supported=no
29998fi
29999 if test $_pkg_short_errors_supported = yes; then
30000 LQR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "lqr-1 >= 0.1.0" 2>&1`
30001 else
30002 LQR_PKG_ERRORS=`$PKG_CONFIG --print-errors "lqr-1 >= 0.1.0" 2>&1`
30003 fi
30004 # Put the nasty error message in config.log where it belongs
30005 echo "$LQR_PKG_ERRORS" >&5
30006
30007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30008$as_echo "no" >&6; }
30009 have_lqr=no
30010elif test $pkg_failed = untried; then
30011 have_lqr=no
30012else
30013 LQR_CFLAGS=$pkg_cv_LQR_CFLAGS
30014 LQR_LIBS=$pkg_cv_LQR_LIBS
30015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30016$as_echo "yes" >&6; }
30017 have_lqr=yes
30018fi
cristy09b53e12011-10-14 12:47:22 +000030019 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30020$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030021fi
30022
30023if test "$have_lqr" = 'yes'; then
30024
cristy8b350f62009-11-15 23:12:43 +000030025$as_echo "#define LQR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030026
30027 CFLAGS="$LQR_CFLAGS $CFLAGS"
30028fi
30029
cristy73bd4a52010-10-05 11:24:23 +000030030 if test "$have_lqr" = 'yes'; then
30031 LQR_DELEGATE_TRUE=
30032 LQR_DELEGATE_FALSE='#'
30033else
30034 LQR_DELEGATE_TRUE='#'
30035 LQR_DELEGATE_FALSE=
30036fi
30037
cristy3ed852e2009-09-05 21:47:34 +000030038
30039
30040
30041
cristy81beccd2011-10-03 18:17:24 +000030042# Disable LZMA (lzma library)
cristyfbb0ef02010-12-19 02:32:11 +000030043
30044# Check whether --with-lzma was given.
30045if test "${with_lzma+set}" = set; then :
30046 withval=$with_lzma; with_lzma=$withval
30047else
30048 with_lzma='yes'
30049fi
30050
cristy81beccd2011-10-03 18:17:24 +000030051if test "$with_lzma" != 'yes' ; then
cristyfbb0ef02010-12-19 02:32:11 +000030052 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-lzma=$with_lzma "
30053fi
30054
cristyb94e5002011-11-14 13:20:10 +000030055LZMA_PKG=""
30056if test "x$with_lzma" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030057 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30058$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb94e5002011-11-14 13:20:10 +000030059
30060pkg_failed=no
30061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LZMA" >&5
cristyfbb0ef02010-12-19 02:32:11 +000030062$as_echo_n "checking for LZMA... " >&6; }
cristyb94e5002011-11-14 13:20:10 +000030063
30064if test -n "$LZMA_CFLAGS"; then
30065 pkg_cv_LZMA_CFLAGS="$LZMA_CFLAGS"
30066 elif test -n "$PKG_CONFIG"; then
30067 if test -n "$PKG_CONFIG" && \
30068 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30069 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30070 ac_status=$?
30071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30072 test $ac_status = 0; }; then
30073 pkg_cv_LZMA_CFLAGS=`$PKG_CONFIG --cflags "liblzma >= 2.9.0" 2>/dev/null`
30074else
30075 pkg_failed=yes
30076fi
30077 else
30078 pkg_failed=untried
30079fi
30080if test -n "$LZMA_LIBS"; then
30081 pkg_cv_LZMA_LIBS="$LZMA_LIBS"
30082 elif test -n "$PKG_CONFIG"; then
30083 if test -n "$PKG_CONFIG" && \
30084 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"liblzma >= 2.9.0\""; } >&5
30085 ($PKG_CONFIG --exists --print-errors "liblzma >= 2.9.0") 2>&5
30086 ac_status=$?
30087 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30088 test $ac_status = 0; }; then
30089 pkg_cv_LZMA_LIBS=`$PKG_CONFIG --libs "liblzma >= 2.9.0" 2>/dev/null`
30090else
30091 pkg_failed=yes
30092fi
30093 else
30094 pkg_failed=untried
30095fi
30096
30097
30098
30099if test $pkg_failed = yes; then
30100
30101if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30102 _pkg_short_errors_supported=yes
30103else
30104 _pkg_short_errors_supported=no
30105fi
30106 if test $_pkg_short_errors_supported = yes; then
30107 LZMA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "liblzma >= 2.9.0" 2>&1`
30108 else
30109 LZMA_PKG_ERRORS=`$PKG_CONFIG --print-errors "liblzma >= 2.9.0" 2>&1`
30110 fi
30111 # Put the nasty error message in config.log where it belongs
30112 echo "$LZMA_PKG_ERRORS" >&5
30113
30114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30115$as_echo "no" >&6; }
30116 have_lzma=no
30117elif test $pkg_failed = untried; then
30118 have_lzma=no
30119else
30120 LZMA_CFLAGS=$pkg_cv_LZMA_CFLAGS
30121 LZMA_LIBS=$pkg_cv_LZMA_LIBS
30122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30123$as_echo "yes" >&6; }
30124 have_lzma=yes
30125fi
30126 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
cristy09b53e12011-10-14 12:47:22 +000030127$as_echo "$as_me: " >&6;}
cristyfbb0ef02010-12-19 02:32:11 +000030128fi
30129
cristyb94e5002011-11-14 13:20:10 +000030130if test "$have_lzma" = 'yes'; then
cristyfbb0ef02010-12-19 02:32:11 +000030131
30132$as_echo "#define LZMA_DELEGATE 1" >>confdefs.h
30133
cristyc6722092012-10-14 00:19:31 +000030134 if test "$build_modules" = 'no'; then
cristyb94e5002011-11-14 13:20:10 +000030135 CPPFLAGS="$LZMA_CFLAGS $CPPFLAGS"
cristyfbb0ef02010-12-19 02:32:11 +000030136 fi
cristyfbb0ef02010-12-19 02:32:11 +000030137fi
cristyb94e5002011-11-14 13:20:10 +000030138
cristyfbb0ef02010-12-19 02:32:11 +000030139 if test "$have_lzma" = 'yes'; then
30140 LZMA_DELEGATE_TRUE=
30141 LZMA_DELEGATE_FALSE='#'
30142else
30143 LZMA_DELEGATE_TRUE='#'
30144 LZMA_DELEGATE_FALSE=
30145fi
30146
30147
30148
30149
cristyb94e5002011-11-14 13:20:10 +000030150
cristy3ed852e2009-09-05 21:47:34 +000030151#
30152# Check for the OpenEXR delegate library.
30153#
30154
30155# Check whether --with-openexr was given.
cristy8b350f62009-11-15 23:12:43 +000030156if test "${with_openexr+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030157 withval=$with_openexr; with_openexr=$withval
30158else
30159 with_openexr='yes'
30160fi
30161
30162
30163if test "$with_openexr" != 'yes'; then
30164 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-openexr=$with_openexr "
30165fi
30166
30167have_openexr='no'
30168OPENEXR_CFLAGS=""
30169OPENEXR_LIBS=""
30170OPENEXR_PKG=""
30171if test "x$with_openexr" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030172 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30173$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030174
30175pkg_failed=no
30176{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENEXR" >&5
30177$as_echo_n "checking for OPENEXR... " >&6; }
30178
30179if test -n "$OPENEXR_CFLAGS"; then
30180 pkg_cv_OPENEXR_CFLAGS="$OPENEXR_CFLAGS"
30181 elif test -n "$PKG_CONFIG"; then
30182 if test -n "$PKG_CONFIG" && \
30183 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30184 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30185 ac_status=$?
30186 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30187 test $ac_status = 0; }; then
30188 pkg_cv_OPENEXR_CFLAGS=`$PKG_CONFIG --cflags "OpenEXR >= 1.0.6" 2>/dev/null`
30189else
30190 pkg_failed=yes
30191fi
30192 else
30193 pkg_failed=untried
30194fi
30195if test -n "$OPENEXR_LIBS"; then
30196 pkg_cv_OPENEXR_LIBS="$OPENEXR_LIBS"
30197 elif test -n "$PKG_CONFIG"; then
30198 if test -n "$PKG_CONFIG" && \
30199 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"OpenEXR >= 1.0.6\""; } >&5
30200 ($PKG_CONFIG --exists --print-errors "OpenEXR >= 1.0.6") 2>&5
30201 ac_status=$?
30202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30203 test $ac_status = 0; }; then
30204 pkg_cv_OPENEXR_LIBS=`$PKG_CONFIG --libs "OpenEXR >= 1.0.6" 2>/dev/null`
30205else
30206 pkg_failed=yes
30207fi
30208 else
30209 pkg_failed=untried
30210fi
30211
30212
30213
30214if test $pkg_failed = yes; then
30215
30216if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30217 _pkg_short_errors_supported=yes
30218else
30219 _pkg_short_errors_supported=no
30220fi
30221 if test $_pkg_short_errors_supported = yes; then
30222 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "OpenEXR >= 1.0.6" 2>&1`
30223 else
30224 OPENEXR_PKG_ERRORS=`$PKG_CONFIG --print-errors "OpenEXR >= 1.0.6" 2>&1`
30225 fi
30226 # Put the nasty error message in config.log where it belongs
30227 echo "$OPENEXR_PKG_ERRORS" >&5
30228
30229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30230$as_echo "no" >&6; }
30231 have_openexr=no
30232elif test $pkg_failed = untried; then
30233 have_openexr=no
30234else
30235 OPENEXR_CFLAGS=$pkg_cv_OPENEXR_CFLAGS
30236 OPENEXR_LIBS=$pkg_cv_OPENEXR_LIBS
30237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30238$as_echo "yes" >&6; }
30239 have_openexr=yes
30240fi
cristy09b53e12011-10-14 12:47:22 +000030241 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30242$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000030243fi
30244
30245if test "$have_openexr" = 'yes'; then
30246
cristy8b350f62009-11-15 23:12:43 +000030247$as_echo "#define OPENEXR_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030248
cristyc6722092012-10-14 00:19:31 +000030249 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000030250 CFLAGS="$OPENEXR_CFLAGS $CFLAGS"
30251 fi
30252fi
30253
cristy73bd4a52010-10-05 11:24:23 +000030254 if test "$have_openexr" = 'yes'; then
30255 OPENEXR_DELEGATE_TRUE=
30256 OPENEXR_DELEGATE_FALSE='#'
30257else
30258 OPENEXR_DELEGATE_TRUE='#'
30259 OPENEXR_DELEGATE_FALSE=
30260fi
30261
cristy3ed852e2009-09-05 21:47:34 +000030262
30263
30264
30265
30266#
cristy41cbe8a2011-10-27 01:35:18 +000030267# Check for PANGO delegate library.
30268#
30269
30270# Check whether --with-pango was given.
30271if test "${with_pango+set}" = set; then :
30272 withval=$with_pango; with_pango=$withval
30273else
cristyfc3d0222012-02-07 15:05:57 +000030274 with_pango='yes'
cristy41cbe8a2011-10-27 01:35:18 +000030275fi
30276
30277
30278if test "$with_pango" != 'yes'; then
30279 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-pango=$with_pango "
30280fi
30281
30282have_pango='no'
cristya054b762012-03-26 23:16:00 +000030283have_pangocairo='no'
cristy41cbe8a2011-10-27 01:35:18 +000030284PANGO_CFLAGS=""
30285PANGO_LIBS=""
30286PANGO_PKG=""
30287if test "x$with_pango" = "xyes"; then
30288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
30289$as_echo "-------------------------------------------------------------" >&6; }
30290
30291pkg_failed=no
30292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30293$as_echo_n "checking for PANGO... " >&6; }
30294
30295if test -n "$PANGO_CFLAGS"; then
30296 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30297 elif test -n "$PKG_CONFIG"; then
30298 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030299 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30300 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030301 ac_status=$?
30302 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30303 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030304 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030305else
30306 pkg_failed=yes
30307fi
30308 else
30309 pkg_failed=untried
30310fi
30311if test -n "$PANGO_LIBS"; then
30312 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30313 elif test -n "$PKG_CONFIG"; then
30314 if test -n "$PKG_CONFIG" && \
cristya054b762012-03-26 23:16:00 +000030315 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pangocairo >= 1.28.1\""; } >&5
30316 ($PKG_CONFIG --exists --print-errors "pangocairo >= 1.28.1") 2>&5
cristy41cbe8a2011-10-27 01:35:18 +000030317 ac_status=$?
30318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30319 test $ac_status = 0; }; then
cristya054b762012-03-26 23:16:00 +000030320 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pangocairo >= 1.28.1" 2>/dev/null`
cristy41cbe8a2011-10-27 01:35:18 +000030321else
30322 pkg_failed=yes
30323fi
30324 else
30325 pkg_failed=untried
30326fi
30327
30328
30329
30330if test $pkg_failed = yes; then
30331
30332if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30333 _pkg_short_errors_supported=yes
30334else
30335 _pkg_short_errors_supported=no
30336fi
30337 if test $_pkg_short_errors_supported = yes; then
cristya054b762012-03-26 23:16:00 +000030338 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030339 else
cristya054b762012-03-26 23:16:00 +000030340 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pangocairo >= 1.28.1" 2>&1`
cristy41cbe8a2011-10-27 01:35:18 +000030341 fi
30342 # Put the nasty error message in config.log where it belongs
30343 echo "$PANGO_PKG_ERRORS" >&5
30344
30345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30346$as_echo "no" >&6; }
cristya054b762012-03-26 23:16:00 +000030347 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030348elif test $pkg_failed = untried; then
cristya054b762012-03-26 23:16:00 +000030349 have_pangocairo=no
cristy41cbe8a2011-10-27 01:35:18 +000030350else
30351 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30352 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30354$as_echo "yes" >&6; }
cristya054b762012-03-26 23:16:00 +000030355 have_pangocairo=yes
cristy41cbe8a2011-10-27 01:35:18 +000030356fi
30357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30358$as_echo "" >&6; }
cristy7dc48ed2011-10-28 14:11:43 +000030359
30360pkg_failed=no
30361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PANGO" >&5
30362$as_echo_n "checking for PANGO... " >&6; }
30363
30364if test -n "$PANGO_CFLAGS"; then
30365 pkg_cv_PANGO_CFLAGS="$PANGO_CFLAGS"
30366 elif test -n "$PKG_CONFIG"; then
30367 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030368 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30369 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030370 ac_status=$?
30371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30372 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030373 pkg_cv_PANGO_CFLAGS=`$PKG_CONFIG --cflags "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030374else
30375 pkg_failed=yes
30376fi
30377 else
30378 pkg_failed=untried
30379fi
30380if test -n "$PANGO_LIBS"; then
30381 pkg_cv_PANGO_LIBS="$PANGO_LIBS"
30382 elif test -n "$PKG_CONFIG"; then
30383 if test -n "$PKG_CONFIG" && \
cristy2542fc62011-12-06 17:50:25 +000030384 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"pango >= 1.28.1\""; } >&5
30385 ($PKG_CONFIG --exists --print-errors "pango >= 1.28.1") 2>&5
cristy7dc48ed2011-10-28 14:11:43 +000030386 ac_status=$?
30387 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30388 test $ac_status = 0; }; then
cristy2542fc62011-12-06 17:50:25 +000030389 pkg_cv_PANGO_LIBS=`$PKG_CONFIG --libs "pango >= 1.28.1" 2>/dev/null`
cristy7dc48ed2011-10-28 14:11:43 +000030390else
30391 pkg_failed=yes
30392fi
30393 else
30394 pkg_failed=untried
30395fi
30396
30397
30398
30399if test $pkg_failed = yes; then
30400
30401if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30402 _pkg_short_errors_supported=yes
30403else
30404 _pkg_short_errors_supported=no
30405fi
30406 if test $_pkg_short_errors_supported = yes; then
cristy2542fc62011-12-06 17:50:25 +000030407 PANGO_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030408 else
cristy2542fc62011-12-06 17:50:25 +000030409 PANGO_PKG_ERRORS=`$PKG_CONFIG --print-errors "pango >= 1.28.1" 2>&1`
cristy7dc48ed2011-10-28 14:11:43 +000030410 fi
30411 # Put the nasty error message in config.log where it belongs
30412 echo "$PANGO_PKG_ERRORS" >&5
30413
30414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30415$as_echo "no" >&6; }
30416 have_pango=no
30417elif test $pkg_failed = untried; then
30418 have_pango=no
30419else
30420 PANGO_CFLAGS=$pkg_cv_PANGO_CFLAGS
30421 PANGO_LIBS=$pkg_cv_PANGO_LIBS
30422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30423$as_echo "yes" >&6; }
30424 have_pango=yes
30425fi
30426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
30427$as_echo "" >&6; }
cristy41cbe8a2011-10-27 01:35:18 +000030428fi
30429
30430if test "$have_pango" = 'yes'; then
30431
30432$as_echo "#define PANGO_DELEGATE 1" >>confdefs.h
30433
cristyc6722092012-10-14 00:19:31 +000030434 if test "$build_modules" = 'no'; then
cristy41cbe8a2011-10-27 01:35:18 +000030435 CPPFLAGS="$PANGO_CFLAGS $CPPFLAGS"
30436 fi
30437fi
30438
cristya054b762012-03-26 23:16:00 +000030439if test "$have_pangocairo" = 'yes'; then
cristy41cbe8a2011-10-27 01:35:18 +000030440
cristya054b762012-03-26 23:16:00 +000030441$as_echo "#define PANGOCAIRO_DELEGATE 1" >>confdefs.h
cristy41cbe8a2011-10-27 01:35:18 +000030442
cristyc6722092012-10-14 00:19:31 +000030443 if test "$build_modules" = 'no'; then
cristya054b762012-03-26 23:16:00 +000030444 CPPFLAGS="$PANGOCAIRO_CFLAGS $CPPFLAGS"
cristy41cbe8a2011-10-27 01:35:18 +000030445 fi
30446fi
30447
30448 if test "$have_pango" = 'yes'; then
30449 PANGO_DELEGATE_TRUE=
30450 PANGO_DELEGATE_FALSE='#'
30451else
30452 PANGO_DELEGATE_TRUE='#'
30453 PANGO_DELEGATE_FALSE=
30454fi
30455
cristya054b762012-03-26 23:16:00 +000030456 if test "$have_pangocairo" = 'yes'; then
30457 PANGOCAIRO_DELEGATE_TRUE=
30458 PANGOCAIRO_DELEGATE_FALSE='#'
cristy41cbe8a2011-10-27 01:35:18 +000030459else
cristya054b762012-03-26 23:16:00 +000030460 PANGOCAIRO_DELEGATE_TRUE='#'
30461 PANGOCAIRO_DELEGATE_FALSE=
cristy41cbe8a2011-10-27 01:35:18 +000030462fi
30463
30464
30465
30466
30467
30468#
cristy3ed852e2009-09-05 21:47:34 +000030469# Check for PNG delegate library.
30470#
30471
30472# Check whether --with-png was given.
cristy8b350f62009-11-15 23:12:43 +000030473if test "${with_png+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030474 withval=$with_png; with_png=$withval
30475else
30476 with_png='yes'
30477fi
30478
30479
30480if test "$with_png" != 'yes'; then
30481 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-png=$with_png "
30482fi
30483
cristy81beccd2011-10-03 18:17:24 +000030484have_png='no'
30485PNG_LIBS=''
30486
30487if test "$with_png" != 'no' -a "$have_zlib" != 'no' ; then
cristy09b53e12011-10-14 12:47:22 +000030488 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30489$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PNG support " >&5
30491$as_echo_n "checking for PNG support ... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000030492 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30493$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000030494 failed=0
30495 passed=0
30496 ac_fn_c_check_header_mongrel "$LINENO" "png.h" "ac_cv_header_png_h" "$ac_includes_default"
30497if test "x$ac_cv_header_png_h" = xyes; then :
30498 passed=`expr $passed + 1`
30499else
30500 failed=`expr $failed + 1`
cristy64877302011-08-23 19:10:31 +000030501fi
30502
cristy81beccd2011-10-03 18:17:24 +000030503
30504
30505 if test $passed -gt 0; then
30506 for var in 5 4 2 '' ; do
cristy0615f0e2011-10-12 11:36:46 +000030507 if test "$have_png" = 'no' ; then
30508 if test "x${var}" = 'x' ; then
cristy81beccd2011-10-03 18:17:24 +000030509 pnglib='png'
30510 else
30511 pnglib="png1${var}"
30512 fi
30513
30514# Test for compatible LIBPNG library
30515 failed=0
30516 passed=0
cristy0615f0e2011-10-12 11:36:46 +000030517 if test "$with_png" = 'yes' -o "$with_png" = "libpng1${var}" ; then
cristy81beccd2011-10-03 18:17:24 +000030518 if test "${pnglib}" != 'png' ; then
30519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG1${var} support " >&5
30520$as_echo_n "checking for LIBPNG1${var} support ... " >&6; }
30521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30522/* end confdefs.h. */
30523#include <stdio.h>
30524#include <stdlib.h>
30525#include <png.h>
30526
30527int
30528main ()
30529{
30530
30531#if PNG_LIBPNG_VER_MINOR != ${var}
30532#error LIBPNG library must be version 1${var}!
30533Kaboom, Kaboom
30534#endif
30535return 0;
30536
30537 ;
30538 return 0;
30539}
30540_ACEOF
30541if ac_fn_c_try_compile "$LINENO"; then :
30542 ac_cv_libpng_ok='yes'
30543else
30544 ac_cv_libpng_ok='no'
30545fi
30546rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
30547 if test "$ac_cv_libpng_ok" = 'yes' ; then
30548 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030549 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30550$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030551 else
30552 failed=`expr $failed + 1`
cristy09b53e12011-10-14 12:47:22 +000030553 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
30554$as_echo "$as_me: no" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030555 fi
30556 else
30557 passed=`expr $passed + 1`
cristy09b53e12011-10-14 12:47:22 +000030558 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30559$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030560 fi
30561 fi
30562
30563 if test $passed -gt 0 -a $failed -le 0; then
30564 if test "1${var}" = '15' ; then
30565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng15" >&5
30566$as_echo_n "checking for png_get_io_ptr in -lpng15... " >&6; }
30567if ${ac_cv_lib_png15_png_get_io_ptr+:} false; then :
30568 $as_echo_n "(cached) " >&6
30569else
30570 ac_check_lib_save_LIBS=$LIBS
30571LIBS="-lpng15 $LIBS"
30572cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30573/* end confdefs.h. */
30574
30575/* Override any GCC internal prototype to avoid an error.
30576 Use char because int might match the return type of a GCC
30577 builtin and then its argument prototype would still apply. */
30578#ifdef __cplusplus
30579extern "C"
30580#endif
30581char png_get_io_ptr ();
30582int
30583main ()
30584{
30585return png_get_io_ptr ();
30586 ;
30587 return 0;
30588}
30589_ACEOF
30590if ac_fn_c_try_link "$LINENO"; then :
30591 ac_cv_lib_png15_png_get_io_ptr=yes
30592else
30593 ac_cv_lib_png15_png_get_io_ptr=no
30594fi
30595rm -f core conftest.err conftest.$ac_objext \
30596 conftest$ac_exeext conftest.$ac_ext
30597LIBS=$ac_check_lib_save_LIBS
30598fi
30599{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_get_io_ptr" >&5
30600$as_echo "$ac_cv_lib_png15_png_get_io_ptr" >&6; }
30601if test "x$ac_cv_lib_png15_png_get_io_ptr" = xyes; then :
30602 passed=`expr $passed + 1`
30603else
30604 failed=`expr $failed + 1`
30605fi
30606
30607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_longjmp in -lpng15" >&5
30608$as_echo_n "checking for png_longjmp in -lpng15... " >&6; }
30609if ${ac_cv_lib_png15_png_longjmp+:} false; then :
30610 $as_echo_n "(cached) " >&6
30611else
30612 ac_check_lib_save_LIBS=$LIBS
30613LIBS="-lpng15 $LIBS"
30614cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30615/* end confdefs.h. */
30616
30617/* Override any GCC internal prototype to avoid an error.
30618 Use char because int might match the return type of a GCC
30619 builtin and then its argument prototype would still apply. */
30620#ifdef __cplusplus
30621extern "C"
30622#endif
30623char png_longjmp ();
30624int
30625main ()
30626{
30627return png_longjmp ();
30628 ;
30629 return 0;
30630}
30631_ACEOF
30632if ac_fn_c_try_link "$LINENO"; then :
30633 ac_cv_lib_png15_png_longjmp=yes
30634else
30635 ac_cv_lib_png15_png_longjmp=no
30636fi
30637rm -f core conftest.err conftest.$ac_objext \
30638 conftest$ac_exeext conftest.$ac_ext
30639LIBS=$ac_check_lib_save_LIBS
30640fi
30641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png15_png_longjmp" >&5
30642$as_echo "$ac_cv_lib_png15_png_longjmp" >&6; }
30643if test "x$ac_cv_lib_png15_png_longjmp" = xyes; then :
30644 passed=`expr $passed + 1`
30645else
30646 failed=`expr $failed + 1`
30647fi
30648
30649 fi
30650 if test "1${var}" = '14' ; then
30651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng14" >&5
30652$as_echo_n "checking for png_get_io_ptr in -lpng14... " >&6; }
30653if ${ac_cv_lib_png14_png_get_io_ptr+:} false; then :
30654 $as_echo_n "(cached) " >&6
30655else
30656 ac_check_lib_save_LIBS=$LIBS
30657LIBS="-lpng14 $LIBS"
30658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30659/* end confdefs.h. */
30660
30661/* Override any GCC internal prototype to avoid an error.
30662 Use char because int might match the return type of a GCC
30663 builtin and then its argument prototype would still apply. */
30664#ifdef __cplusplus
30665extern "C"
30666#endif
30667char png_get_io_ptr ();
30668int
30669main ()
30670{
30671return png_get_io_ptr ();
30672 ;
30673 return 0;
30674}
30675_ACEOF
30676if ac_fn_c_try_link "$LINENO"; then :
30677 ac_cv_lib_png14_png_get_io_ptr=yes
30678else
30679 ac_cv_lib_png14_png_get_io_ptr=no
30680fi
30681rm -f core conftest.err conftest.$ac_objext \
30682 conftest$ac_exeext conftest.$ac_ext
30683LIBS=$ac_check_lib_save_LIBS
30684fi
30685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_ptr" >&5
30686$as_echo "$ac_cv_lib_png14_png_get_io_ptr" >&6; }
30687if test "x$ac_cv_lib_png14_png_get_io_ptr" = xyes; then :
30688 passed=`expr $passed + 1`
30689else
30690 failed=`expr $failed + 1`
30691fi
30692
30693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_state in -lpng14" >&5
30694$as_echo_n "checking for png_get_io_state in -lpng14... " >&6; }
30695if ${ac_cv_lib_png14_png_get_io_state+:} false; then :
30696 $as_echo_n "(cached) " >&6
30697else
30698 ac_check_lib_save_LIBS=$LIBS
30699LIBS="-lpng14 $LIBS"
30700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30701/* end confdefs.h. */
30702
30703/* Override any GCC internal prototype to avoid an error.
30704 Use char because int might match the return type of a GCC
30705 builtin and then its argument prototype would still apply. */
30706#ifdef __cplusplus
30707extern "C"
30708#endif
30709char png_get_io_state ();
30710int
30711main ()
30712{
30713return png_get_io_state ();
30714 ;
30715 return 0;
30716}
30717_ACEOF
30718if ac_fn_c_try_link "$LINENO"; then :
30719 ac_cv_lib_png14_png_get_io_state=yes
30720else
30721 ac_cv_lib_png14_png_get_io_state=no
30722fi
30723rm -f core conftest.err conftest.$ac_objext \
30724 conftest$ac_exeext conftest.$ac_ext
30725LIBS=$ac_check_lib_save_LIBS
30726fi
30727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png14_png_get_io_state" >&5
30728$as_echo "$ac_cv_lib_png14_png_get_io_state" >&6; }
30729if test "x$ac_cv_lib_png14_png_get_io_state" = xyes; then :
30730 passed=`expr $passed + 1`
30731else
30732 failed=`expr $failed + 1`
30733fi
30734
30735 fi
30736 if test "1${var}" = '12' ; then
30737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng12" >&5
30738$as_echo_n "checking for png_get_io_ptr in -lpng12... " >&6; }
30739if ${ac_cv_lib_png12_png_get_io_ptr+:} false; then :
30740 $as_echo_n "(cached) " >&6
30741else
30742 ac_check_lib_save_LIBS=$LIBS
30743LIBS="-lpng12 $LIBS"
30744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30745/* end confdefs.h. */
30746
30747/* Override any GCC internal prototype to avoid an error.
30748 Use char because int might match the return type of a GCC
30749 builtin and then its argument prototype would still apply. */
30750#ifdef __cplusplus
30751extern "C"
30752#endif
30753char png_get_io_ptr ();
30754int
30755main ()
30756{
30757return png_get_io_ptr ();
30758 ;
30759 return 0;
30760}
30761_ACEOF
30762if ac_fn_c_try_link "$LINENO"; then :
30763 ac_cv_lib_png12_png_get_io_ptr=yes
30764else
30765 ac_cv_lib_png12_png_get_io_ptr=no
30766fi
30767rm -f core conftest.err conftest.$ac_objext \
30768 conftest$ac_exeext conftest.$ac_ext
30769LIBS=$ac_check_lib_save_LIBS
30770fi
30771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png12_png_get_io_ptr" >&5
30772$as_echo "$ac_cv_lib_png12_png_get_io_ptr" >&6; }
30773if test "x$ac_cv_lib_png12_png_get_io_ptr" = xyes; then :
30774 passed=`expr $passed + 1`
30775else
30776 failed=`expr $failed + 1`
30777fi
30778
30779 fi
30780 if test "1${var}" = '1' ; then
30781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for png_get_io_ptr in -lpng" >&5
30782$as_echo_n "checking for png_get_io_ptr in -lpng... " >&6; }
30783if ${ac_cv_lib_png_png_get_io_ptr+:} false; then :
30784 $as_echo_n "(cached) " >&6
30785else
30786 ac_check_lib_save_LIBS=$LIBS
30787LIBS="-lpng $LIBS"
30788cat confdefs.h - <<_ACEOF >conftest.$ac_ext
30789/* end confdefs.h. */
30790
30791/* Override any GCC internal prototype to avoid an error.
30792 Use char because int might match the return type of a GCC
30793 builtin and then its argument prototype would still apply. */
30794#ifdef __cplusplus
30795extern "C"
30796#endif
30797char png_get_io_ptr ();
30798int
30799main ()
30800{
30801return png_get_io_ptr ();
30802 ;
30803 return 0;
30804}
30805_ACEOF
30806if ac_fn_c_try_link "$LINENO"; then :
30807 ac_cv_lib_png_png_get_io_ptr=yes
30808else
30809 ac_cv_lib_png_png_get_io_ptr=no
30810fi
30811rm -f core conftest.err conftest.$ac_objext \
30812 conftest$ac_exeext conftest.$ac_ext
30813LIBS=$ac_check_lib_save_LIBS
30814fi
30815{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_png_png_get_io_ptr" >&5
30816$as_echo "$ac_cv_lib_png_png_get_io_ptr" >&6; }
30817if test "x$ac_cv_lib_png_png_get_io_ptr" = xyes; then :
30818 passed=`expr $passed + 1`
30819else
30820 failed=`expr $failed + 1`
30821fi
30822
30823 fi
30824 if test $passed -gt 0 -a $failed -le 0 ; then
30825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ${pnglib} package is complete" >&5
30826$as_echo_n "checking if ${pnglib} package is complete... " >&6; }
30827 if test $passed -gt 0 ; then
30828 if test $failed -gt 0 ; then
cristy09b53e12011-10-14 12:47:22 +000030829 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
30830$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030831 have_png='no (failed tests)'
30832 else
30833 PNG_LIBS="-l${pnglib}"
30834 LIBS="$PNG_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000030835
cristy8b350f62009-11-15 23:12:43 +000030836$as_echo "#define PNG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000030837
cristy09b53e12011-10-14 12:47:22 +000030838 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
30839$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000030840 have_png='yes'
30841 fi
30842 fi
30843 fi
30844 fi
30845 fi
30846 done
30847 fi
cristy3ed852e2009-09-05 21:47:34 +000030848fi
cristy64877302011-08-23 19:10:31 +000030849
cristy73bd4a52010-10-05 11:24:23 +000030850 if test "$have_png" = 'yes'; then
30851 PNG_DELEGATE_TRUE=
30852 PNG_DELEGATE_FALSE='#'
30853else
30854 PNG_DELEGATE_TRUE='#'
30855 PNG_DELEGATE_FALSE=
30856fi
30857
cristy3ed852e2009-09-05 21:47:34 +000030858
cristy50d3f5c2011-09-10 20:09:06 +000030859
cristy3ed852e2009-09-05 21:47:34 +000030860
30861
30862#
30863# Check for RSVG delegate library.
30864#
30865
30866# Check whether --with-rsvg was given.
cristy8b350f62009-11-15 23:12:43 +000030867if test "${with_rsvg+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000030868 withval=$with_rsvg; with_rsvg=$withval
30869else
cristy1164d5f2012-08-15 00:58:25 +000030870 with_rsvg='no'
cristy3ed852e2009-09-05 21:47:34 +000030871fi
30872
30873
30874if test "$with_rsvg" != 'yes'; then
30875 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-rsvg=$with_rsvg "
30876fi
30877
30878have_rsvg='no'
30879have_cairo='no'
30880RSVG_CFLAGS=""
30881RSVG_LIBS=""
30882RSVG_PKG=""
30883if test "x$with_rsvg" = "xyes"; then
cristy09b53e12011-10-14 12:47:22 +000030884 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
30885$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030886
30887pkg_failed=no
30888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for RSVG" >&5
30889$as_echo_n "checking for RSVG... " >&6; }
30890
30891if test -n "$RSVG_CFLAGS"; then
30892 pkg_cv_RSVG_CFLAGS="$RSVG_CFLAGS"
30893 elif test -n "$PKG_CONFIG"; then
30894 if test -n "$PKG_CONFIG" && \
30895 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30896 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30897 ac_status=$?
30898 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30899 test $ac_status = 0; }; then
30900 pkg_cv_RSVG_CFLAGS=`$PKG_CONFIG --cflags "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30901else
30902 pkg_failed=yes
30903fi
30904 else
30905 pkg_failed=untried
30906fi
30907if test -n "$RSVG_LIBS"; then
30908 pkg_cv_RSVG_LIBS="$RSVG_LIBS"
30909 elif test -n "$PKG_CONFIG"; then
30910 if test -n "$PKG_CONFIG" && \
30911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"librsvg-2.0 >= 2.9.0\""; } >&5
30912 ($PKG_CONFIG --exists --print-errors "librsvg-2.0 >= 2.9.0") 2>&5
30913 ac_status=$?
30914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30915 test $ac_status = 0; }; then
30916 pkg_cv_RSVG_LIBS=`$PKG_CONFIG --libs "librsvg-2.0 >= 2.9.0" 2>/dev/null`
30917else
30918 pkg_failed=yes
30919fi
30920 else
30921 pkg_failed=untried
30922fi
30923
30924
30925
30926if test $pkg_failed = yes; then
30927
30928if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30929 _pkg_short_errors_supported=yes
30930else
30931 _pkg_short_errors_supported=no
30932fi
30933 if test $_pkg_short_errors_supported = yes; then
30934 RSVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30935 else
30936 RSVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "librsvg-2.0 >= 2.9.0" 2>&1`
30937 fi
30938 # Put the nasty error message in config.log where it belongs
30939 echo "$RSVG_PKG_ERRORS" >&5
30940
30941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
30942$as_echo "no" >&6; }
30943 have_rsvg=no
30944elif test $pkg_failed = untried; then
30945 have_rsvg=no
30946else
30947 RSVG_CFLAGS=$pkg_cv_RSVG_CFLAGS
30948 RSVG_LIBS=$pkg_cv_RSVG_LIBS
30949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
30950$as_echo "yes" >&6; }
30951 have_rsvg=yes
30952fi
cristy09b53e12011-10-14 12:47:22 +000030953 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
30954$as_echo "$as_me: " >&6;}
cristy73bd4a52010-10-05 11:24:23 +000030955
30956pkg_failed=no
30957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CAIRO_SVG" >&5
30958$as_echo_n "checking for CAIRO_SVG... " >&6; }
30959
30960if test -n "$CAIRO_SVG_CFLAGS"; then
30961 pkg_cv_CAIRO_SVG_CFLAGS="$CAIRO_SVG_CFLAGS"
30962 elif test -n "$PKG_CONFIG"; then
30963 if test -n "$PKG_CONFIG" && \
30964 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30965 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30966 ac_status=$?
30967 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30968 test $ac_status = 0; }; then
30969 pkg_cv_CAIRO_SVG_CFLAGS=`$PKG_CONFIG --cflags "cairo-svg" 2>/dev/null`
30970else
30971 pkg_failed=yes
30972fi
30973 else
30974 pkg_failed=untried
30975fi
30976if test -n "$CAIRO_SVG_LIBS"; then
30977 pkg_cv_CAIRO_SVG_LIBS="$CAIRO_SVG_LIBS"
30978 elif test -n "$PKG_CONFIG"; then
30979 if test -n "$PKG_CONFIG" && \
30980 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo-svg\""; } >&5
30981 ($PKG_CONFIG --exists --print-errors "cairo-svg") 2>&5
30982 ac_status=$?
30983 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
30984 test $ac_status = 0; }; then
30985 pkg_cv_CAIRO_SVG_LIBS=`$PKG_CONFIG --libs "cairo-svg" 2>/dev/null`
30986else
30987 pkg_failed=yes
30988fi
30989 else
30990 pkg_failed=untried
30991fi
30992
30993
30994
30995if test $pkg_failed = yes; then
30996
30997if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
30998 _pkg_short_errors_supported=yes
30999else
31000 _pkg_short_errors_supported=no
31001fi
31002 if test $_pkg_short_errors_supported = yes; then
31003 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "cairo-svg" 2>&1`
31004 else
31005 CAIRO_SVG_PKG_ERRORS=`$PKG_CONFIG --print-errors "cairo-svg" 2>&1`
31006 fi
31007 # Put the nasty error message in config.log where it belongs
31008 echo "$CAIRO_SVG_PKG_ERRORS" >&5
31009
31010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31011$as_echo "no" >&6; }
31012 have_cairo=no
31013elif test $pkg_failed = untried; then
31014 have_cairo=no
31015else
31016 CAIRO_SVG_CFLAGS=$pkg_cv_CAIRO_SVG_CFLAGS
31017 CAIRO_SVG_LIBS=$pkg_cv_CAIRO_SVG_LIBS
31018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31019$as_echo "yes" >&6; }
31020 have_cairo=yes
31021fi
cristy09b53e12011-10-14 12:47:22 +000031022 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31023$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031024fi
31025
31026if test "$have_rsvg" = 'yes'; then
31027
cristy8b350f62009-11-15 23:12:43 +000031028$as_echo "#define RSVG_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031029
cristyc6722092012-10-14 00:19:31 +000031030 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031031 CPPFLAGS="$RSVG_CFLAGS $CPPFLAGS"
31032 fi
31033fi
31034
31035if test "$have_cairo" = 'yes'; then
31036
cristy8b350f62009-11-15 23:12:43 +000031037$as_echo "#define CAIRO_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031038
cristyc6722092012-10-14 00:19:31 +000031039 if test "$build_modules" = 'no'; then
cristy3ed852e2009-09-05 21:47:34 +000031040 CPPFLAGS="$CAIRO_SVG_CFLAGS $CPPFLAGS"
31041 fi
31042fi
31043
cristy73bd4a52010-10-05 11:24:23 +000031044 if test "$have_rsvg" = 'yes'; then
31045 RSVG_DELEGATE_TRUE=
31046 RSVG_DELEGATE_FALSE='#'
31047else
31048 RSVG_DELEGATE_TRUE='#'
31049 RSVG_DELEGATE_FALSE=
31050fi
31051
31052 if test "$have_cairo" = 'yes'; then
31053 CAIRO_DELEGATE_TRUE=
31054 CAIRO_DELEGATE_FALSE='#'
31055else
31056 CAIRO_DELEGATE_TRUE='#'
31057 CAIRO_DELEGATE_FALSE=
31058fi
31059
cristy3ed852e2009-09-05 21:47:34 +000031060
31061
31062
31063
31064#
31065# Check for TIFF delegate library.
31066#
31067
31068# Check whether --with-tiff was given.
cristy8b350f62009-11-15 23:12:43 +000031069if test "${with_tiff+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031070 withval=$with_tiff; with_tiff=$withval
31071else
31072 with_tiff='yes'
31073fi
31074
31075
31076if test "$with_tiff" != 'yes'; then
31077 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-tiff=$with_tiff "
31078fi
31079
31080have_tiff='no'
31081TIFF_LIBS=''
31082if test "$with_tiff" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031083 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31084$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000031085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031086$as_echo_n "checking for TIFF... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031087 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31088$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031089 failed=0
31090 passed=0
cristy8b350f62009-11-15 23:12:43 +000031091 ac_fn_c_check_header_mongrel "$LINENO" "tiff.h" "ac_cv_header_tiff_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031092if test "x$ac_cv_header_tiff_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031093 passed=`expr $passed + 1`
31094else
31095 failed=`expr $failed + 1`
31096fi
31097
31098
cristy8b350f62009-11-15 23:12:43 +000031099 ac_fn_c_check_header_mongrel "$LINENO" "tiffio.h" "ac_cv_header_tiffio_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031100if test "x$ac_cv_header_tiffio_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031101 passed=`expr $passed + 1`
31102else
31103 failed=`expr $failed + 1`
31104fi
31105
31106
cristy8b350f62009-11-15 23:12:43 +000031107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031108$as_echo_n "checking for TIFFOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031109if ${ac_cv_lib_tiff_TIFFOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031110 $as_echo_n "(cached) " >&6
31111else
31112 ac_check_lib_save_LIBS=$LIBS
31113LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031114cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031115/* end confdefs.h. */
31116
31117/* Override any GCC internal prototype to avoid an error.
31118 Use char because int might match the return type of a GCC
31119 builtin and then its argument prototype would still apply. */
31120#ifdef __cplusplus
31121extern "C"
31122#endif
31123char TIFFOpen ();
31124int
31125main ()
31126{
31127return TIFFOpen ();
31128 ;
31129 return 0;
31130}
31131_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031132if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031133 ac_cv_lib_tiff_TIFFOpen=yes
31134else
cristy8b350f62009-11-15 23:12:43 +000031135 ac_cv_lib_tiff_TIFFOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031136fi
cristy8b350f62009-11-15 23:12:43 +000031137rm -f core conftest.err conftest.$ac_objext \
31138 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031139LIBS=$ac_check_lib_save_LIBS
31140fi
cristy8b350f62009-11-15 23:12:43 +000031141{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031142$as_echo "$ac_cv_lib_tiff_TIFFOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031143if test "x$ac_cv_lib_tiff_TIFFOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031144 passed=`expr $passed + 1`
31145else
31146 failed=`expr $failed + 1`
31147fi
31148
cristy8b350f62009-11-15 23:12:43 +000031149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFClientOpen in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031150$as_echo_n "checking for TIFFClientOpen in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031151if ${ac_cv_lib_tiff_TIFFClientOpen+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031152 $as_echo_n "(cached) " >&6
31153else
31154 ac_check_lib_save_LIBS=$LIBS
31155LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031156cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031157/* end confdefs.h. */
31158
31159/* Override any GCC internal prototype to avoid an error.
31160 Use char because int might match the return type of a GCC
31161 builtin and then its argument prototype would still apply. */
31162#ifdef __cplusplus
31163extern "C"
31164#endif
31165char TIFFClientOpen ();
31166int
31167main ()
31168{
31169return TIFFClientOpen ();
31170 ;
31171 return 0;
31172}
31173_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031174if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031175 ac_cv_lib_tiff_TIFFClientOpen=yes
31176else
cristy8b350f62009-11-15 23:12:43 +000031177 ac_cv_lib_tiff_TIFFClientOpen=no
cristy3ed852e2009-09-05 21:47:34 +000031178fi
cristy8b350f62009-11-15 23:12:43 +000031179rm -f core conftest.err conftest.$ac_objext \
31180 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031181LIBS=$ac_check_lib_save_LIBS
31182fi
cristy8b350f62009-11-15 23:12:43 +000031183{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFClientOpen" >&5
cristy3ed852e2009-09-05 21:47:34 +000031184$as_echo "$ac_cv_lib_tiff_TIFFClientOpen" >&6; }
cristyda16f162011-02-19 23:52:17 +000031185if test "x$ac_cv_lib_tiff_TIFFClientOpen" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031186 passed=`expr $passed + 1`
31187else
31188 failed=`expr $failed + 1`
31189fi
31190
cristy8b350f62009-11-15 23:12:43 +000031191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFIsByteSwapped in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031192$as_echo_n "checking for TIFFIsByteSwapped in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031193if ${ac_cv_lib_tiff_TIFFIsByteSwapped+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031194 $as_echo_n "(cached) " >&6
31195else
31196 ac_check_lib_save_LIBS=$LIBS
31197LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031198cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031199/* end confdefs.h. */
31200
31201/* Override any GCC internal prototype to avoid an error.
31202 Use char because int might match the return type of a GCC
31203 builtin and then its argument prototype would still apply. */
31204#ifdef __cplusplus
31205extern "C"
31206#endif
31207char TIFFIsByteSwapped ();
31208int
31209main ()
31210{
31211return TIFFIsByteSwapped ();
31212 ;
31213 return 0;
31214}
31215_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031216if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031217 ac_cv_lib_tiff_TIFFIsByteSwapped=yes
31218else
cristy8b350f62009-11-15 23:12:43 +000031219 ac_cv_lib_tiff_TIFFIsByteSwapped=no
cristy3ed852e2009-09-05 21:47:34 +000031220fi
cristy8b350f62009-11-15 23:12:43 +000031221rm -f core conftest.err conftest.$ac_objext \
31222 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031223LIBS=$ac_check_lib_save_LIBS
31224fi
cristy8b350f62009-11-15 23:12:43 +000031225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFIsByteSwapped" >&5
cristy3ed852e2009-09-05 21:47:34 +000031226$as_echo "$ac_cv_lib_tiff_TIFFIsByteSwapped" >&6; }
cristyda16f162011-02-19 23:52:17 +000031227if test "x$ac_cv_lib_tiff_TIFFIsByteSwapped" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031228 passed=`expr $passed + 1`
31229else
31230 failed=`expr $failed + 1`
31231fi
31232
cristy8b350f62009-11-15 23:12:43 +000031233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBATile in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031234$as_echo_n "checking for TIFFReadRGBATile in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031235if ${ac_cv_lib_tiff_TIFFReadRGBATile+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031236 $as_echo_n "(cached) " >&6
31237else
31238 ac_check_lib_save_LIBS=$LIBS
31239LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031240cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031241/* end confdefs.h. */
31242
31243/* Override any GCC internal prototype to avoid an error.
31244 Use char because int might match the return type of a GCC
31245 builtin and then its argument prototype would still apply. */
31246#ifdef __cplusplus
31247extern "C"
31248#endif
31249char TIFFReadRGBATile ();
31250int
31251main ()
31252{
31253return TIFFReadRGBATile ();
31254 ;
31255 return 0;
31256}
31257_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031258if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031259 ac_cv_lib_tiff_TIFFReadRGBATile=yes
31260else
cristy8b350f62009-11-15 23:12:43 +000031261 ac_cv_lib_tiff_TIFFReadRGBATile=no
cristy3ed852e2009-09-05 21:47:34 +000031262fi
cristy8b350f62009-11-15 23:12:43 +000031263rm -f core conftest.err conftest.$ac_objext \
31264 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031265LIBS=$ac_check_lib_save_LIBS
31266fi
cristy8b350f62009-11-15 23:12:43 +000031267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBATile" >&5
cristy3ed852e2009-09-05 21:47:34 +000031268$as_echo "$ac_cv_lib_tiff_TIFFReadRGBATile" >&6; }
cristyda16f162011-02-19 23:52:17 +000031269if test "x$ac_cv_lib_tiff_TIFFReadRGBATile" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031270 passed=`expr $passed + 1`
31271else
31272 failed=`expr $failed + 1`
31273fi
31274
cristy8b350f62009-11-15 23:12:43 +000031275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TIFFReadRGBAStrip in -ltiff" >&5
cristy3ed852e2009-09-05 21:47:34 +000031276$as_echo_n "checking for TIFFReadRGBAStrip in -ltiff... " >&6; }
cristyda16f162011-02-19 23:52:17 +000031277if ${ac_cv_lib_tiff_TIFFReadRGBAStrip+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031278 $as_echo_n "(cached) " >&6
31279else
31280 ac_check_lib_save_LIBS=$LIBS
31281LIBS="-ltiff $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031282cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031283/* end confdefs.h. */
31284
31285/* Override any GCC internal prototype to avoid an error.
31286 Use char because int might match the return type of a GCC
31287 builtin and then its argument prototype would still apply. */
31288#ifdef __cplusplus
31289extern "C"
31290#endif
31291char TIFFReadRGBAStrip ();
31292int
31293main ()
31294{
31295return TIFFReadRGBAStrip ();
31296 ;
31297 return 0;
31298}
31299_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031300if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000031301 ac_cv_lib_tiff_TIFFReadRGBAStrip=yes
31302else
cristy8b350f62009-11-15 23:12:43 +000031303 ac_cv_lib_tiff_TIFFReadRGBAStrip=no
cristy3ed852e2009-09-05 21:47:34 +000031304fi
cristy8b350f62009-11-15 23:12:43 +000031305rm -f core conftest.err conftest.$ac_objext \
31306 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031307LIBS=$ac_check_lib_save_LIBS
31308fi
cristy8b350f62009-11-15 23:12:43 +000031309{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tiff_TIFFReadRGBAStrip" >&5
cristy3ed852e2009-09-05 21:47:34 +000031310$as_echo "$ac_cv_lib_tiff_TIFFReadRGBAStrip" >&6; }
cristyda16f162011-02-19 23:52:17 +000031311if test "x$ac_cv_lib_tiff_TIFFReadRGBAStrip" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031312 passed=`expr $passed + 1`
31313else
31314 failed=`expr $failed + 1`
31315fi
31316
cristy8b350f62009-11-15 23:12:43 +000031317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if TIFF package is complete" >&5
cristy3ed852e2009-09-05 21:47:34 +000031318$as_echo_n "checking if TIFF package is complete... " >&6; }
31319 if test $passed -gt 0; then
31320 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031321 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31322$as_echo "$as_me: no -- some components failed test" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031323 have_tiff='no (failed tests)'
31324 else
31325 TIFF_LIBS='-ltiff'
31326 LIBS="$TIFF_LIBS $LIBS"
31327
cristy8b350f62009-11-15 23:12:43 +000031328$as_echo "#define TIFF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031329
cristy09b53e12011-10-14 12:47:22 +000031330 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31331$as_echo "$as_me: yes" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031332 have_tiff='yes'
cristy8b350f62009-11-15 23:12:43 +000031333 for ac_header in tiffconf.h
31334do :
31335 ac_fn_c_check_header_mongrel "$LINENO" "tiffconf.h" "ac_cv_header_tiffconf_h" "$ac_includes_default"
cristyda16f162011-02-19 23:52:17 +000031336if test "x$ac_cv_header_tiffconf_h" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000031337 cat >>confdefs.h <<_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031338#define HAVE_TIFFCONF_H 1
cristy3ed852e2009-09-05 21:47:34 +000031339_ACEOF
31340
31341fi
31342
31343done
31344
cristy8b350f62009-11-15 23:12:43 +000031345 for ac_func in TIFFIsCODECConfigured TIFFMergeFieldInfo \
cristy3f590e52011-11-14 14:29:44 +000031346 TIFFIsBigEndian TIFFReadEXIFDirectory TIFFSetErrorHandlerExt \
31347 TIFFSetTagExtender TIFFSetWarningHandlerExt \
31348 TIFFSwabArrayOfTriples
cristy8b350f62009-11-15 23:12:43 +000031349do :
31350 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
31351ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
cristy98dddb52010-11-04 00:30:15 +000031352if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
cristy3ed852e2009-09-05 21:47:34 +000031353 cat >>confdefs.h <<_ACEOF
31354#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
31355_ACEOF
31356
31357fi
31358done
31359
31360 fi
31361 else
cristy09b53e12011-10-14 12:47:22 +000031362 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31363$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031364 fi
31365fi
cristy73bd4a52010-10-05 11:24:23 +000031366 if test "$have_tiff" = 'yes'; then
31367 TIFF_DELEGATE_TRUE=
31368 TIFF_DELEGATE_FALSE='#'
31369else
31370 TIFF_DELEGATE_TRUE='#'
31371 TIFF_DELEGATE_FALSE=
31372fi
31373
cristy3ed852e2009-09-05 21:47:34 +000031374
31375
31376
31377#
cristyb1860752011-03-14 00:27:46 +000031378# Check for WEBP delegate library.
31379#
31380
31381# Check whether --with-webp was given.
31382if test "${with_webp+set}" = set; then :
31383 withval=$with_webp; with_webp=$withval
31384else
31385 with_webp='yes'
31386fi
31387
31388
31389if test "$with_webp" != 'yes'; then
31390 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-webp=$with_webp "
31391fi
31392
31393have_webp='no'
31394WEBP_LIBS=''
31395if test "$with_webp" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031396 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31397$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristyb1860752011-03-14 00:27:46 +000031398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WEBP" >&5
31399$as_echo_n "checking for WEBP... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031400 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31401$as_echo "$as_me: " >&6;}
cristyb1860752011-03-14 00:27:46 +000031402 failed=0
31403 passed=0
31404 ac_fn_c_check_header_mongrel "$LINENO" "webp/decode.h" "ac_cv_header_webp_decode_h" "$ac_includes_default"
31405if test "x$ac_cv_header_webp_decode_h" = xyes; then :
31406 passed=`expr $passed + 1`
31407else
31408 failed=`expr $failed + 1`
31409fi
31410
31411
31412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WebPDecodeRGB in -lwebp" >&5
31413$as_echo_n "checking for WebPDecodeRGB in -lwebp... " >&6; }
31414if ${ac_cv_lib_webp_WebPDecodeRGB+:} false; then :
31415 $as_echo_n "(cached) " >&6
31416else
31417 ac_check_lib_save_LIBS=$LIBS
31418LIBS="-lwebp $LIBS"
31419cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31420/* end confdefs.h. */
31421
31422/* Override any GCC internal prototype to avoid an error.
31423 Use char because int might match the return type of a GCC
31424 builtin and then its argument prototype would still apply. */
31425#ifdef __cplusplus
31426extern "C"
31427#endif
31428char WebPDecodeRGB ();
31429int
31430main ()
31431{
31432return WebPDecodeRGB ();
31433 ;
31434 return 0;
31435}
31436_ACEOF
31437if ac_fn_c_try_link "$LINENO"; then :
31438 ac_cv_lib_webp_WebPDecodeRGB=yes
31439else
31440 ac_cv_lib_webp_WebPDecodeRGB=no
31441fi
31442rm -f core conftest.err conftest.$ac_objext \
31443 conftest$ac_exeext conftest.$ac_ext
31444LIBS=$ac_check_lib_save_LIBS
31445fi
31446{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_webp_WebPDecodeRGB" >&5
31447$as_echo "$ac_cv_lib_webp_WebPDecodeRGB" >&6; }
31448if test "x$ac_cv_lib_webp_WebPDecodeRGB" = xyes; then :
31449 passed=`expr $passed + 1`
31450else
31451 failed=`expr $failed + 1`
31452fi
31453
31454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WEBP package is complete" >&5
31455$as_echo_n "checking if WEBP package is complete... " >&6; }
31456 if test $passed -gt 0; then
31457 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031458 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31459$as_echo "$as_me: no -- some components failed test" >&6;}
cristyb1860752011-03-14 00:27:46 +000031460 have_webp='no (failed tests)'
31461 else
31462 WEBP_LIBS='-lwebp'
31463 LIBS="$WEBP_LIBS $LIBS"
31464
31465$as_echo "#define WEBP_DELEGATE 1" >>confdefs.h
31466
cristy09b53e12011-10-14 12:47:22 +000031467 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31468$as_echo "$as_me: yes" >&6;}
cristyb1860752011-03-14 00:27:46 +000031469 have_webp='yes'
31470 fi
31471 else
cristy09b53e12011-10-14 12:47:22 +000031472 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31473$as_echo "$as_me: no" >&6;}
cristyb1860752011-03-14 00:27:46 +000031474 fi
31475fi
31476 if test "$have_webp" = 'yes'; then
31477 WEBP_DELEGATE_TRUE=
31478 WEBP_DELEGATE_FALSE='#'
31479else
31480 WEBP_DELEGATE_TRUE='#'
31481 WEBP_DELEGATE_FALSE=
31482fi
31483
31484
31485
31486
31487#
cristy3ed852e2009-09-05 21:47:34 +000031488# Set Windows font directory.
31489#
31490
31491# Check whether --with-windows-font-dir was given.
cristy8b350f62009-11-15 23:12:43 +000031492if test "${with_windows_font_dir+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031493 withval=$with_windows_font_dir; with_windows_font_dir=$withval
31494else
31495 with_windows_font_dir=''
31496fi
31497
31498if test "$with_windows_font_dir" != '' ; then
31499 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-windows-font-dir=$with_windows_font_dir "
31500fi
31501
31502
31503#
31504# Check for WMF delegate library.
31505#
31506
31507# Check whether --with-wmf was given.
cristy8b350f62009-11-15 23:12:43 +000031508if test "${with_wmf+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031509 withval=$with_wmf; with_wmf=$withval
31510else
cristyfc3d0222012-02-07 15:05:57 +000031511 with_wmf='no'
cristy3ed852e2009-09-05 21:47:34 +000031512fi
31513
31514
31515if test "$with_wmf" != 'yes'; then
31516 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-wmf=$with_wmf "
31517fi
31518
31519have_wmf='no'
31520WMF_LIBS=''
cristy03f7cf92011-12-15 01:40:41 +000031521WMF_LIBS_DEPS=''
31522OLIBS="$LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031523if test "$with_wmf" != 'no'; then
cristy03f7cf92011-12-15 01:40:41 +000031524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -------------------------------------------------------------" >&5
31525$as_echo "-------------------------------------------------------------" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for WMF" >&5
cristy3ed852e2009-09-05 21:47:34 +000031527$as_echo_n "checking for WMF... " >&6; }
cristy03f7cf92011-12-15 01:40:41 +000031528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
31529$as_echo "" >&6; }
31530 have_libwmf='no'
31531 have_libwmflite='no'
31532 have_libwmf_ipa_h='no'
31533
31534 ac_fn_c_check_header_compile "$LINENO" "libwmf/ipa.h" "ac_cv_header_libwmf_ipa_h" "$FT2BUILD_H
31535"
31536if test "x$ac_cv_header_libwmf_ipa_h" = xyes; then :
31537 have_libwmf_ipa_h='yes'
cristy3ed852e2009-09-05 21:47:34 +000031538fi
31539
31540
cristy03f7cf92011-12-15 01:40:41 +000031541 if test "$have_libwmf_ipa_h" = 'yes'; then
31542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_lite_create in -lwmflite" >&5
31543$as_echo_n "checking for wmf_lite_create in -lwmflite... " >&6; }
31544if ${ac_cv_lib_wmflite_wmf_lite_create+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000031545 $as_echo_n "(cached) " >&6
31546else
31547 ac_check_lib_save_LIBS=$LIBS
cristy03f7cf92011-12-15 01:40:41 +000031548LIBS="-lwmflite $LIBS"
cristy8b350f62009-11-15 23:12:43 +000031549cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031550/* end confdefs.h. */
31551
31552/* Override any GCC internal prototype to avoid an error.
31553 Use char because int might match the return type of a GCC
31554 builtin and then its argument prototype would still apply. */
31555#ifdef __cplusplus
31556extern "C"
31557#endif
cristy03f7cf92011-12-15 01:40:41 +000031558char wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031559int
31560main ()
31561{
cristy03f7cf92011-12-15 01:40:41 +000031562return wmf_lite_create ();
cristy3ed852e2009-09-05 21:47:34 +000031563 ;
31564 return 0;
31565}
31566_ACEOF
cristy8b350f62009-11-15 23:12:43 +000031567if ac_fn_c_try_link "$LINENO"; then :
cristy03f7cf92011-12-15 01:40:41 +000031568 ac_cv_lib_wmflite_wmf_lite_create=yes
cristy3ed852e2009-09-05 21:47:34 +000031569else
cristy03f7cf92011-12-15 01:40:41 +000031570 ac_cv_lib_wmflite_wmf_lite_create=no
cristy3ed852e2009-09-05 21:47:34 +000031571fi
cristy8b350f62009-11-15 23:12:43 +000031572rm -f core conftest.err conftest.$ac_objext \
31573 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000031574LIBS=$ac_check_lib_save_LIBS
31575fi
cristy03f7cf92011-12-15 01:40:41 +000031576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmflite_wmf_lite_create" >&5
31577$as_echo "$ac_cv_lib_wmflite_wmf_lite_create" >&6; }
31578if test "x$ac_cv_lib_wmflite_wmf_lite_create" = xyes; then :
31579 have_libwmflite='yes'
cristy9243a2d2011-08-22 17:32:32 +000031580fi
31581
cristy03f7cf92011-12-15 01:40:41 +000031582 if test "$have_libwmflite" = 'yes'; then
31583
31584$as_echo "#define WMFLITE_DELEGATE 1" >>confdefs.h
31585
31586 WMF_LIBS='-lwmflite'
glennrp33e524b2011-08-24 17:41:57 +000031587 LIBS="$WMF_LIBS $LIBS"
cristy03f7cf92011-12-15 01:40:41 +000031588 have_wmf='yes'
31589 else
31590 WMF_LIBS_DEPS=''
31591 WMF_CONFIG_LIBS=`libwmf-config --libs`
31592 for lib in xml2 expat freetype jpeg png z; do
31593 testlib="-l${lib}"
31594 echo "$WMF_CONFIG_LIBS" | grep -- "$testlib" > /dev/null && WMF_LIBS_DEPS="$WMF_LIBS_DEPS $testlib"
31595 done
31596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wmf_api_create in -lwmf" >&5
31597$as_echo_n "checking for wmf_api_create in -lwmf... " >&6; }
31598if ${ac_cv_lib_wmf_wmf_api_create+:} false; then :
31599 $as_echo_n "(cached) " >&6
31600else
31601 ac_check_lib_save_LIBS=$LIBS
31602LIBS="-lwmf $WMF_LIBS_DEPS $LIBS"
31603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31604/* end confdefs.h. */
31605
31606/* Override any GCC internal prototype to avoid an error.
31607 Use char because int might match the return type of a GCC
31608 builtin and then its argument prototype would still apply. */
31609#ifdef __cplusplus
31610extern "C"
31611#endif
31612char wmf_api_create ();
31613int
31614main ()
31615{
31616return wmf_api_create ();
31617 ;
31618 return 0;
31619}
31620_ACEOF
31621if ac_fn_c_try_link "$LINENO"; then :
31622 ac_cv_lib_wmf_wmf_api_create=yes
31623else
31624 ac_cv_lib_wmf_wmf_api_create=no
31625fi
31626rm -f core conftest.err conftest.$ac_objext \
31627 conftest$ac_exeext conftest.$ac_ext
31628LIBS=$ac_check_lib_save_LIBS
31629fi
31630{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_wmf_wmf_api_create" >&5
31631$as_echo "$ac_cv_lib_wmf_wmf_api_create" >&6; }
31632if test "x$ac_cv_lib_wmf_wmf_api_create" = xyes; then :
31633 have_libwmf='yes'
31634fi
31635
31636 if test "$have_libwmf" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000031637
cristy8b350f62009-11-15 23:12:43 +000031638$as_echo "#define WMF_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031639
cristy03f7cf92011-12-15 01:40:41 +000031640 WMF_LIBS='-lwmf'
31641 LIBS="$WMF_LIBS $LIBS"
31642 have_wmf='yes'
31643 else
31644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no -- some components failed test" >&5
31645$as_echo "no -- some components failed test" >&6; }
31646 have_wmf='no (failed tests)'
31647 have_wmflite='no (failed tests)'
31648 LIBS="$OLIBS"
31649 WMF_LIBS=''
31650 fi
glennrp33e524b2011-08-24 17:41:57 +000031651 fi
cristy03f7cf92011-12-15 01:40:41 +000031652 fi
31653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if WMF package is complete" >&5
31654$as_echo_n "checking if WMF package is complete... " >&6; }
31655 if test "$have_wmf" = 'yes'; then
31656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
31657$as_echo "yes" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031658 else
cristy03f7cf92011-12-15 01:40:41 +000031659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31660$as_echo "no" >&6; }
glennrp33e524b2011-08-24 17:41:57 +000031661 fi
cristy3ed852e2009-09-05 21:47:34 +000031662fi
cristy73bd4a52010-10-05 11:24:23 +000031663 if test "$have_wmf" = 'yes'; then
31664 WMF_DELEGATE_TRUE=
31665 WMF_DELEGATE_FALSE='#'
31666else
31667 WMF_DELEGATE_TRUE='#'
31668 WMF_DELEGATE_FALSE=
31669fi
31670
cristy3ed852e2009-09-05 21:47:34 +000031671
31672
31673
cristy81beccd2011-10-03 18:17:24 +000031674
31675
cristy3ed852e2009-09-05 21:47:34 +000031676#
31677# Check for XML delegate library.
31678#
31679
31680# Check whether --with-xml was given.
cristy8b350f62009-11-15 23:12:43 +000031681if test "${with_xml+set}" = set; then :
cristy3ed852e2009-09-05 21:47:34 +000031682 withval=$with_xml; with_xml=$withval
31683else
cristyfc3d0222012-02-07 15:05:57 +000031684 with_xml='yes'
cristy3ed852e2009-09-05 21:47:34 +000031685fi
31686
31687
cristy81beccd2011-10-03 18:17:24 +000031688if test "$with_xml" != 'yes' ; then
cristy3ed852e2009-09-05 21:47:34 +000031689 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-xml=$with_xml "
31690fi
31691
cristy81beccd2011-10-03 18:17:24 +000031692have_xml='no'
31693XML_LIBS=''
31694if test "$with_xml" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000031695 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
31696$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML" >&5
31698$as_echo_n "checking for XML... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000031699 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
31700$as_echo "$as_me: " >&6;}
cristy81beccd2011-10-03 18:17:24 +000031701 PERSIST_LDFLAGS=$LDFLAGS
31702 PERSIST_CPPFLAGS=$CPPFLAGS
31703 xml2_config=''
31704 # Extract the first word of "xml2-config", so it can be a program name with args.
31705set dummy xml2-config; ac_word=$2
31706{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
31707$as_echo_n "checking for $ac_word... " >&6; }
31708if ${ac_cv_path_xml2_config+:} false; then :
31709 $as_echo_n "(cached) " >&6
31710else
31711 case $xml2_config in
31712 [\\/]* | ?:[\\/]*)
31713 ac_cv_path_xml2_config="$xml2_config" # Let the user override the test with a path.
31714 ;;
31715 *)
31716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
31717for as_dir in $PATH
31718do
31719 IFS=$as_save_IFS
31720 test -z "$as_dir" && as_dir=.
31721 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000031722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy81beccd2011-10-03 18:17:24 +000031723 ac_cv_path_xml2_config="$as_dir/$ac_word$ac_exec_ext"
31724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
31725 break 2
31726 fi
31727done
31728 done
31729IFS=$as_save_IFS
31730
31731 ;;
31732esac
31733fi
31734xml2_config=$ac_cv_path_xml2_config
31735if test -n "$xml2_config"; then
31736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xml2_config" >&5
31737$as_echo "$xml2_config" >&6; }
31738else
31739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
31740$as_echo "no" >&6; }
cristy3ed852e2009-09-05 21:47:34 +000031741fi
31742
cristy81beccd2011-10-03 18:17:24 +000031743 if test -n "$xml2_config"; then
31744 # Debian installs libxml headers under /usr/include/libxml2/libxml with
31745 # the shared library installed under /usr/lib, whereas the package
31746 # installs itself under $prefix/libxml and $prefix/lib.
31747 xml2_prefix=`xml2-config --prefix`
31748 if test -d "${xml2_prefix}/include/libxml2"; then
31749 CPPFLAGS="$CPPFLAGS -I${xml2_prefix}/include/libxml2"
31750 fi
31751 if test "${xml2_prefix}" != '/usr'; then
31752 LDFLAGS="$LDFLAGS -L${xml2_prefix}/lib"
31753 fi
31754 fi
31755 failed=0
31756 passed=0
31757 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
31758if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
31759 passed=`expr $passed + 1`
31760else
31761 failed=`expr $failed + 1`
31762fi
31763
31764
31765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlSAXVersion in -lxml2" >&5
31766$as_echo_n "checking for xmlSAXVersion in -lxml2... " >&6; }
31767if ${ac_cv_lib_xml2_xmlSAXVersion+:} false; then :
31768 $as_echo_n "(cached) " >&6
31769else
31770 ac_check_lib_save_LIBS=$LIBS
31771LIBS="-lxml2 $LIBS"
31772cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31773/* end confdefs.h. */
31774
31775/* Override any GCC internal prototype to avoid an error.
31776 Use char because int might match the return type of a GCC
31777 builtin and then its argument prototype would still apply. */
31778#ifdef __cplusplus
31779extern "C"
31780#endif
31781char xmlSAXVersion ();
31782int
31783main ()
31784{
31785return xmlSAXVersion ();
31786 ;
31787 return 0;
31788}
31789_ACEOF
31790if ac_fn_c_try_link "$LINENO"; then :
31791 ac_cv_lib_xml2_xmlSAXVersion=yes
31792else
31793 ac_cv_lib_xml2_xmlSAXVersion=no
31794fi
31795rm -f core conftest.err conftest.$ac_objext \
31796 conftest$ac_exeext conftest.$ac_ext
31797LIBS=$ac_check_lib_save_LIBS
31798fi
31799{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlSAXVersion" >&5
31800$as_echo "$ac_cv_lib_xml2_xmlSAXVersion" >&6; }
31801if test "x$ac_cv_lib_xml2_xmlSAXVersion" = xyes; then :
31802 passed=`expr $passed + 1`
31803else
31804 failed=`expr $failed + 1`
31805fi
31806
31807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlParseChunk in -lxml2" >&5
31808$as_echo_n "checking for xmlParseChunk in -lxml2... " >&6; }
31809if ${ac_cv_lib_xml2_xmlParseChunk+:} false; then :
31810 $as_echo_n "(cached) " >&6
31811else
31812 ac_check_lib_save_LIBS=$LIBS
31813LIBS="-lxml2 $LIBS"
31814cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31815/* end confdefs.h. */
31816
31817/* Override any GCC internal prototype to avoid an error.
31818 Use char because int might match the return type of a GCC
31819 builtin and then its argument prototype would still apply. */
31820#ifdef __cplusplus
31821extern "C"
31822#endif
31823char xmlParseChunk ();
31824int
31825main ()
31826{
31827return xmlParseChunk ();
31828 ;
31829 return 0;
31830}
31831_ACEOF
31832if ac_fn_c_try_link "$LINENO"; then :
31833 ac_cv_lib_xml2_xmlParseChunk=yes
31834else
31835 ac_cv_lib_xml2_xmlParseChunk=no
31836fi
31837rm -f core conftest.err conftest.$ac_objext \
31838 conftest$ac_exeext conftest.$ac_ext
31839LIBS=$ac_check_lib_save_LIBS
31840fi
31841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlParseChunk" >&5
31842$as_echo "$ac_cv_lib_xml2_xmlParseChunk" >&6; }
31843if test "x$ac_cv_lib_xml2_xmlParseChunk" = xyes; then :
31844 passed=`expr $passed + 1`
31845else
31846 failed=`expr $failed + 1`
31847fi
31848
31849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlCreatePushParserCtxt in -lxml2" >&5
31850$as_echo_n "checking for xmlCreatePushParserCtxt in -lxml2... " >&6; }
31851if ${ac_cv_lib_xml2_xmlCreatePushParserCtxt+:} false; then :
31852 $as_echo_n "(cached) " >&6
31853else
31854 ac_check_lib_save_LIBS=$LIBS
31855LIBS="-lxml2 $LIBS"
31856cat confdefs.h - <<_ACEOF >conftest.$ac_ext
31857/* end confdefs.h. */
31858
31859/* Override any GCC internal prototype to avoid an error.
31860 Use char because int might match the return type of a GCC
31861 builtin and then its argument prototype would still apply. */
31862#ifdef __cplusplus
31863extern "C"
31864#endif
31865char xmlCreatePushParserCtxt ();
31866int
31867main ()
31868{
31869return xmlCreatePushParserCtxt ();
31870 ;
31871 return 0;
31872}
31873_ACEOF
31874if ac_fn_c_try_link "$LINENO"; then :
31875 ac_cv_lib_xml2_xmlCreatePushParserCtxt=yes
31876else
31877 ac_cv_lib_xml2_xmlCreatePushParserCtxt=no
31878fi
31879rm -f core conftest.err conftest.$ac_objext \
31880 conftest$ac_exeext conftest.$ac_ext
31881LIBS=$ac_check_lib_save_LIBS
31882fi
31883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&5
31884$as_echo "$ac_cv_lib_xml2_xmlCreatePushParserCtxt" >&6; }
31885if test "x$ac_cv_lib_xml2_xmlCreatePushParserCtxt" = xyes; then :
31886 passed=`expr $passed + 1`
31887else
31888 failed=`expr $failed + 1`
31889fi
31890
31891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if XML package is complete" >&5
31892$as_echo_n "checking if XML package is complete... " >&6; }
31893 if test $passed -gt 0; then
31894 if test $failed -gt 0; then
cristy09b53e12011-10-14 12:47:22 +000031895 { $as_echo "$as_me:${as_lineno-$LINENO}: no -- some components failed test" >&5
31896$as_echo "$as_me: no -- some components failed test" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031897 have_xml='no (failed tests)'
31898 LDFLAGS="$PERSIST_LDFLAGS"
31899 CPPFLAGS="$PERSIST_CPPFLAGS"
31900 else
31901 XML_LIBS='-lxml2'
31902 LIBS="$XML_LIBS $LIBS"
cristy3ed852e2009-09-05 21:47:34 +000031903
cristy8b350f62009-11-15 23:12:43 +000031904$as_echo "#define XML_DELEGATE 1" >>confdefs.h
cristy3ed852e2009-09-05 21:47:34 +000031905
cristy09b53e12011-10-14 12:47:22 +000031906 { $as_echo "$as_me:${as_lineno-$LINENO}: yes" >&5
31907$as_echo "$as_me: yes" >&6;}
cristy81beccd2011-10-03 18:17:24 +000031908 have_xml='yes'
31909 fi
31910 else
cristy09b53e12011-10-14 12:47:22 +000031911 { $as_echo "$as_me:${as_lineno-$LINENO}: no" >&5
31912$as_echo "$as_me: no" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000031913 fi
31914fi
cristy73bd4a52010-10-05 11:24:23 +000031915 if test "$have_xml" = 'yes'; then
31916 XML_DELEGATE_TRUE=
31917 XML_DELEGATE_FALSE='#'
31918else
31919 XML_DELEGATE_TRUE='#'
31920 XML_DELEGATE_FALSE=
31921fi
31922
cristy3ed852e2009-09-05 21:47:34 +000031923
31924
31925
31926# Substitute compiler name to build/link PerlMagick
31927#
31928
31929
31930#
31931# Configure install Paths
31932#
cristy7def36a2011-10-28 19:04:41 +000031933
cristy2a11bef2011-10-28 18:33:11 +000031934# Path to ImageMagick header files
31935INCLUDE_RELATIVE_PATH="ImageMagick"
cristy670aa3c2011-11-03 00:54:00 +000031936INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}"
31937DEFINE_INCLUDE_PATH="${INCLUDEARCH_DIR}/${INCLUDE_RELATIVE_PATH}/"
cristy2a11bef2011-10-28 18:33:11 +000031938case "${build_os}" in
31939 mingw* )
31940 DEFINE_INCLUDE_PATH=`$WinPathScript "$DEFINE_INCLUDE_PATH" 1`
31941 ;;
31942esac
31943
31944cat >>confdefs.h <<_ACEOF
31945#define INCLUDE_PATH "$DEFINE_INCLUDE_PATH"
31946_ACEOF
31947
31948
cristy3ed852e2009-09-05 21:47:34 +000031949
31950# Subdirectory under lib to place ImageMagick lib files
31951LIBRARY_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
31952
31953cat >>confdefs.h <<_ACEOF
31954#define LIBRARY_RELATIVE_PATH "$LIBRARY_RELATIVE_PATH"
31955_ACEOF
31956
31957
31958# Path to ImageMagick bin directory
31959EXECUTABLE_PATH="${BIN_DIR}"
31960DEFINE_EXECUTABLE_PATH="${BIN_DIR}/"
31961case "${build_os}" in
31962 mingw* )
31963 DEFINE_EXECUTABLE_PATH=`$WinPathScript "$DEFINE_EXECUTABLE_PATH" 1`
31964 ;;
31965esac
31966
31967cat >>confdefs.h <<_ACEOF
31968#define EXECUTABLE_PATH "$DEFINE_EXECUTABLE_PATH"
31969_ACEOF
31970
31971
31972
31973# Path to ImageMagick lib
31974LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}"
31975DEFINE_LIBRARY_PATH="${LIB_DIR}/${LIBRARY_RELATIVE_PATH}/"
31976case "${build_os}" in
31977 mingw* )
31978 DEFINE_LIBRARY_PATH=`$WinPathScript "$DEFINE_LIBRARY_PATH" 1`
31979 ;;
31980esac
31981
31982cat >>confdefs.h <<_ACEOF
31983#define LIBRARY_PATH "$DEFINE_LIBRARY_PATH"
31984_ACEOF
31985
31986
31987
cristy3ed852e2009-09-05 21:47:34 +000031988#
31989# Subdirectory under lib to place ImageMagick coder module files
31990CODER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/coders"
31991
31992cat >>confdefs.h <<_ACEOF
31993#define CODER_RELATIVE_PATH "$CODER_RELATIVE_PATH"
31994_ACEOF
31995
31996CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}"
31997DEFINE_CODER_PATH="${LIB_DIR}/${CODER_RELATIVE_PATH}/"
31998case "${build_os}" in
31999 mingw* )
32000 DEFINE_CODER_PATH=`$WinPathScript "$DEFINE_CODER_PATH" 1`
32001 ;;
32002esac
32003
32004cat >>confdefs.h <<_ACEOF
32005#define CODER_PATH "$DEFINE_CODER_PATH"
32006_ACEOF
32007
32008
32009
32010#
32011# Subdirectory under lib to place ImageMagick filter module files
32012FILTER_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/modules-Q${QUANTUM_DEPTH}/filters"
32013
32014cat >>confdefs.h <<_ACEOF
32015#define FILTER_RELATIVE_PATH "$FILTER_RELATIVE_PATH"
32016_ACEOF
32017
32018FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}"
32019DEFINE_FILTER_PATH="${LIB_DIR}/${FILTER_RELATIVE_PATH}/"
32020case "${build_os}" in
32021 mingw* )
32022 DEFINE_FILTER_PATH=`$WinPathScript "$DEFINE_FILTER_PATH" 1`
32023 ;;
32024esac
32025
32026cat >>confdefs.h <<_ACEOF
32027#define FILTER_PATH "$DEFINE_FILTER_PATH"
32028_ACEOF
32029
32030
32031
32032#
32033# Path to ImageMagick documentation files
cristy4e65ec22012-04-08 01:33:27 +000032034DOCUMENTATION_RELATIVE_PATH="${PACKAGE_NAME}-${PACKAGE_VERSION}"
cristyd55889c2011-03-27 00:50:24 +000032035DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}"
32036DEFINE_DOCUMENTATION_PATH="${DOC_DIR}/${DOCUMENTATION_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032037case "${build_os}" in
32038 mingw* )
32039 DEFINE_DOCUMENTATION_PATH=`$WinPathScript "$DEFINE_DOCUMENTATION_PATH" 1`
32040 ;;
32041esac
32042
32043cat >>confdefs.h <<_ACEOF
32044#define DOCUMENTATION_PATH "$DEFINE_DOCUMENTATION_PATH"
32045_ACEOF
32046
32047
32048
cristy2a11bef2011-10-28 18:33:11 +000032049# Subdirectory to place architecture-dependent configuration files
cristyba0f1972011-03-28 12:42:52 +000032050CONFIGURE_RELATIVE_PATH="${PACKAGE_NAME}"
cristy45dbd322011-03-27 16:40:38 +000032051
32052cat >>confdefs.h <<_ACEOF
32053#define CONFIGURE_RELATIVE_PATH "$CONFIGURE_RELATIVE_PATH"
32054_ACEOF
32055
cristy7def36a2011-10-28 19:04:41 +000032056CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
cristy45dbd322011-03-27 16:40:38 +000032057DEFINE_CONFIGURE_PATH="${SYSCONF_DIR}/${CONFIGURE_RELATIVE_PATH}/"
32058case "${build_os}" in
32059 mingw* )
32060 DEFINE_CONFIGURE_PATH=`$WinPathScript "$DEFINE_CONFIGURE_PATH" 1`
32061 ;;
32062esac
32063
32064cat >>confdefs.h <<_ACEOF
32065#define CONFIGURE_PATH "$DEFINE_CONFIGURE_PATH"
32066_ACEOF
32067
32068
32069
cristy2a11bef2011-10-28 18:33:11 +000032070# Subdirectory to place architecture-independent configuration files
cristy4f820712011-04-01 12:35:43 +000032071SHARE_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}"
cristy3ed852e2009-09-05 21:47:34 +000032072
32073cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032074#define SHARE_RELATIVE_PATH "$SHARE_RELATIVE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032075_ACEOF
32076
cristy670aa3c2011-11-03 00:54:00 +000032077SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}"
cristy4f820712011-04-01 12:35:43 +000032078DEFINE_SHARE_PATH="${DATA_DIR}/${SHARE_RELATIVE_PATH}/"
cristy3ed852e2009-09-05 21:47:34 +000032079case "${build_os}" in
32080 mingw* )
cristy4f820712011-04-01 12:35:43 +000032081 DEFINE_SHARE_PATH=`$WinPathScript "$DEFINE_SHARE_PATH" 1`
cristy3ed852e2009-09-05 21:47:34 +000032082 ;;
32083esac
32084
32085cat >>confdefs.h <<_ACEOF
cristy4f820712011-04-01 12:35:43 +000032086#define SHARE_PATH "$DEFINE_SHARE_PATH"
cristy3ed852e2009-09-05 21:47:34 +000032087_ACEOF
32088
32089
32090
cristy408ebcd2011-11-14 01:36:57 +000032091# Subdirectory to place architecture-dependent configuration files
32092SHAREARCH_RELATIVE_PATH="${LIBRARY_RELATIVE_PATH}/config"
cristy670aa3c2011-11-03 00:54:00 +000032093
32094cat >>confdefs.h <<_ACEOF
32095#define SHAREARCH_RELATIVE_PATH "$SHAREARCH_RELATIVE_PATH"
32096_ACEOF
32097
cristy408ebcd2011-11-14 01:36:57 +000032098SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}"
32099DEFINE_SHAREARCH_PATH="${SHAREARCH_DIR}/${SHAREARCH_RELATIVE_PATH}/"
cristy670aa3c2011-11-03 00:54:00 +000032100case "${build_os}" in
32101 mingw* )
32102 DEFINE_SHAREARCH_PATH=`$WinPathScript "$DEFINE_SHAREARCH_PATH" 1`
32103 ;;
32104esac
32105
32106cat >>confdefs.h <<_ACEOF
32107#define SHAREARCH_PATH "$DEFINE_SHAREARCH_PATH"
32108_ACEOF
32109
32110
32111
cristy3ed852e2009-09-05 21:47:34 +000032112#
32113# program_transform_name is formed for use in a Makefile, so create a
32114# modified version for use in a shell script.
32115configure_transform_name=`echo ${program_transform_name} | sed 's,\\$\\$,$,'`
32116
32117# Default delegate definitions
cristy09b53e12011-10-14 12:47:22 +000032118{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
32119$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000032120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ImageMagick delegate programs" >&5
cristy3ed852e2009-09-05 21:47:34 +000032121$as_echo_n "checking for ImageMagick delegate programs... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000032122{ $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
32123$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000032124AutotraceDecodeDelegateDefault='autotrace'
cristy3d7f8062009-09-24 20:45:35 +000032125BlenderDecodeDelegateDefault='blender'
cristy3ed852e2009-09-05 21:47:34 +000032126BZIPDelegateDefault='bzip2'
32127BrowseDelegateDefault='xdg-open'
32128CGMDecodeDelegateDefault='ralcgm'
32129CatDelegateDefault='cat'
32130DNGDecodeDelegateDefault='ufraw-batch'
32131GVCDecodeDelegateDefault='dot'
32132DVIDecodeDelegateDefault='dvips'
32133EchoDelegateDefault='echo'
32134EditorDelegateDefault='xterm'
32135FIGDecodeDelegateDefault='fig2dev'
32136ConvertDelegateDefault=`echo convert | sed ${configure_transform_name}`
32137DisplayDelegateDefault=`echo display | sed ${configure_transform_name}`
32138MogrifyDelegateDefault=`echo mogrify | sed ${configure_transform_name}`
32139GnuplotDecodeDelegateDefault='gnuplot'
cristy3ed852e2009-09-05 21:47:34 +000032140HPGLDecodeDelegateDefault='hp2xx'
32141HTMLDecodeDelegateDefault='html2ps'
32142ILBMDecodeDelegateDefault='ilbmtoppm'
32143ILBMEncodeDelegateDefault='ppmtoilbm'
32144LPDelegateDefault='lp'
32145LPRDelegateDefault='lpr'
cristy3ed852e2009-09-05 21:47:34 +000032146LaunchDelegateDefault='gimp'
32147MANDelegateDefault='groff'
32148MPEGDecodeDelegateDefault='ffmpeg'
32149MPEGEncodeDelegateDefault='ffmpeg'
cristy935c86e2010-06-05 23:50:07 +000032150MrSIDDecodeDelegateDefault='mrsidgeodecode'
cristy3ed852e2009-09-05 21:47:34 +000032151MVDelegateDefault='mv'
32152PCLDelegateDefault='pcl6'
32153PGPDecodeDelegateDefault='pgpv'
32154POVDelegateDefault='povray'
32155if test "$native_win32_build" = 'yes'; then
32156 PSDelegateDefault='gswin32c'
cristyb7931f12009-09-25 10:22:21 +000032157elif test "$gslib_framework" = 'yes'; then
cristy3ed852e2009-09-05 21:47:34 +000032158 PSDelegateDefault='gsc'
32159else
32160 PSDelegateDefault='gs'
32161fi
32162RLEEncodeDelegateDefault='rawtorle'
32163RMDelegateDefault='rm'
cristy5281e322012-02-09 21:12:45 +000032164RSVGDecodeDelegateDefault='rsvg-convert'
cristy3ed852e2009-09-05 21:47:34 +000032165SCANDecodeDelegateDefault='scanimage'
cristyec6934f2012-08-14 18:38:40 +000032166SVGDecodeDelegateDefault='inkscape'
cristy3ed852e2009-09-05 21:47:34 +000032167TXTDelegateDefault='enscript'
cristy16db5ed2010-07-29 13:32:02 +000032168UniconvertorDelegateDefault='uniconvertor'
cristy3ed852e2009-09-05 21:47:34 +000032169WMFDecodeDelegateDefault='wmf2eps'
32170WWWDecodeDelegateDefault='curl'
32171XPSDelegateDefault='gxps'
32172ZipDelegateDefault='gzip'
32173
32174# Search for delegates
32175# Extract the first word of ""$AutotraceDecodeDelegateDefault"", so it can be a program name with args.
32176set dummy "$AutotraceDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032177{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032178$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032179if ${ac_cv_path_AutotraceDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032180 $as_echo_n "(cached) " >&6
32181else
32182 case $AutotraceDecodeDelegate in
32183 [\\/]* | ?:[\\/]*)
32184 ac_cv_path_AutotraceDecodeDelegate="$AutotraceDecodeDelegate" # Let the user override the test with a path.
32185 ;;
32186 *)
32187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32188for as_dir in $PATH
32189do
32190 IFS=$as_save_IFS
32191 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032192 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032194 ac_cv_path_AutotraceDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032196 break 2
32197 fi
32198done
cristy8b350f62009-11-15 23:12:43 +000032199 done
cristy3ed852e2009-09-05 21:47:34 +000032200IFS=$as_save_IFS
32201
32202 test -z "$ac_cv_path_AutotraceDecodeDelegate" && ac_cv_path_AutotraceDecodeDelegate=""$AutotraceDecodeDelegateDefault""
32203 ;;
32204esac
32205fi
32206AutotraceDecodeDelegate=$ac_cv_path_AutotraceDecodeDelegate
32207if test -n "$AutotraceDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AutotraceDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032209$as_echo "$AutotraceDecodeDelegate" >&6; }
32210else
cristy8b350f62009-11-15 23:12:43 +000032211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032212$as_echo "no" >&6; }
32213fi
32214
32215
cristy3ed852e2009-09-05 21:47:34 +000032216# Extract the first word of ""$BlenderDecodeDelegateDefault"", so it can be a program name with args.
32217set dummy "$BlenderDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032218{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032219$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032220if ${ac_cv_path_BlenderDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032221 $as_echo_n "(cached) " >&6
32222else
32223 case $BlenderDecodeDelegate in
32224 [\\/]* | ?:[\\/]*)
32225 ac_cv_path_BlenderDecodeDelegate="$BlenderDecodeDelegate" # Let the user override the test with a path.
32226 ;;
32227 *)
32228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32229for as_dir in $PATH
32230do
32231 IFS=$as_save_IFS
32232 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032233 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032234 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032235 ac_cv_path_BlenderDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032237 break 2
32238 fi
32239done
cristy8b350f62009-11-15 23:12:43 +000032240 done
cristy3ed852e2009-09-05 21:47:34 +000032241IFS=$as_save_IFS
32242
32243 test -z "$ac_cv_path_BlenderDecodeDelegate" && ac_cv_path_BlenderDecodeDelegate=""$BlenderDecodeDelegateDefault""
32244 ;;
32245esac
32246fi
32247BlenderDecodeDelegate=$ac_cv_path_BlenderDecodeDelegate
32248if test -n "$BlenderDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BlenderDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032250$as_echo "$BlenderDecodeDelegate" >&6; }
32251else
cristy8b350f62009-11-15 23:12:43 +000032252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032253$as_echo "no" >&6; }
32254fi
32255
32256
32257# Extract the first word of ""$BZIPDelegateDefault"", so it can be a program name with args.
32258set dummy "$BZIPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032260$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032261if ${ac_cv_path_BZIPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032262 $as_echo_n "(cached) " >&6
32263else
32264 case $BZIPDelegate in
32265 [\\/]* | ?:[\\/]*)
32266 ac_cv_path_BZIPDelegate="$BZIPDelegate" # Let the user override the test with a path.
32267 ;;
32268 *)
32269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32270for as_dir in $PATH
32271do
32272 IFS=$as_save_IFS
32273 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032274 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032276 ac_cv_path_BZIPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032278 break 2
32279 fi
32280done
cristy8b350f62009-11-15 23:12:43 +000032281 done
cristy3ed852e2009-09-05 21:47:34 +000032282IFS=$as_save_IFS
32283
32284 test -z "$ac_cv_path_BZIPDelegate" && ac_cv_path_BZIPDelegate=""$BZIPDelegateDefault""
32285 ;;
32286esac
32287fi
32288BZIPDelegate=$ac_cv_path_BZIPDelegate
32289if test -n "$BZIPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032291$as_echo "$BZIPDelegate" >&6; }
32292else
cristy8b350f62009-11-15 23:12:43 +000032293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032294$as_echo "no" >&6; }
32295fi
32296
32297
cristyc59f0e72012-08-27 12:59:33 +000032298for ac_prog in "$BrowseDelegateDefault" google-chrome firefox konqueror mozilla lynx
32299do
32300 # Extract the first word of "$ac_prog", so it can be a program name with args.
32301set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032303$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032304if ${ac_cv_path_BrowseDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032305 $as_echo_n "(cached) " >&6
32306else
32307 case $BrowseDelegate in
32308 [\\/]* | ?:[\\/]*)
32309 ac_cv_path_BrowseDelegate="$BrowseDelegate" # Let the user override the test with a path.
32310 ;;
32311 *)
32312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32313for as_dir in $PATH
32314do
32315 IFS=$as_save_IFS
32316 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032317 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032319 ac_cv_path_BrowseDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032321 break 2
32322 fi
32323done
cristy8b350f62009-11-15 23:12:43 +000032324 done
cristy3ed852e2009-09-05 21:47:34 +000032325IFS=$as_save_IFS
32326
cristy3ed852e2009-09-05 21:47:34 +000032327 ;;
32328esac
32329fi
32330BrowseDelegate=$ac_cv_path_BrowseDelegate
32331if test -n "$BrowseDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BrowseDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032333$as_echo "$BrowseDelegate" >&6; }
32334else
cristy8b350f62009-11-15 23:12:43 +000032335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032336$as_echo "no" >&6; }
32337fi
32338
32339
cristyc59f0e72012-08-27 12:59:33 +000032340 test -n "$BrowseDelegate" && break
32341done
32342test -n "$BrowseDelegate" || BrowseDelegate=""$BrowseDelegateDefault""
32343
cristy3ed852e2009-09-05 21:47:34 +000032344# Extract the first word of ""$CGMDecodeDelegateDefault"", so it can be a program name with args.
32345set dummy "$CGMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032346{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032347$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032348if ${ac_cv_path_CGMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032349 $as_echo_n "(cached) " >&6
32350else
32351 case $CGMDecodeDelegate in
32352 [\\/]* | ?:[\\/]*)
32353 ac_cv_path_CGMDecodeDelegate="$CGMDecodeDelegate" # Let the user override the test with a path.
32354 ;;
32355 *)
32356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32357for as_dir in $PATH
32358do
32359 IFS=$as_save_IFS
32360 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032361 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032363 ac_cv_path_CGMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032365 break 2
32366 fi
32367done
cristy8b350f62009-11-15 23:12:43 +000032368 done
cristy3ed852e2009-09-05 21:47:34 +000032369IFS=$as_save_IFS
32370
32371 test -z "$ac_cv_path_CGMDecodeDelegate" && ac_cv_path_CGMDecodeDelegate=""$CGMDecodeDelegateDefault""
32372 ;;
32373esac
32374fi
32375CGMDecodeDelegate=$ac_cv_path_CGMDecodeDelegate
32376if test -n "$CGMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CGMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032378$as_echo "$CGMDecodeDelegate" >&6; }
32379else
cristy8b350f62009-11-15 23:12:43 +000032380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032381$as_echo "no" >&6; }
32382fi
32383
32384
32385# Extract the first word of ""$CatDelegateDefault"", so it can be a program name with args.
32386set dummy "$CatDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032387{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032388$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032389if ${ac_cv_path_CatDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032390 $as_echo_n "(cached) " >&6
32391else
32392 case $CatDelegate in
32393 [\\/]* | ?:[\\/]*)
32394 ac_cv_path_CatDelegate="$CatDelegate" # Let the user override the test with a path.
32395 ;;
32396 *)
32397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32398for as_dir in $PATH
32399do
32400 IFS=$as_save_IFS
32401 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032402 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032404 ac_cv_path_CatDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032406 break 2
32407 fi
32408done
cristy8b350f62009-11-15 23:12:43 +000032409 done
cristy3ed852e2009-09-05 21:47:34 +000032410IFS=$as_save_IFS
32411
32412 test -z "$ac_cv_path_CatDelegate" && ac_cv_path_CatDelegate=""$CatDelegateDefault""
32413 ;;
32414esac
32415fi
32416CatDelegate=$ac_cv_path_CatDelegate
32417if test -n "$CatDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CatDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032419$as_echo "$CatDelegate" >&6; }
32420else
cristy8b350f62009-11-15 23:12:43 +000032421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032422$as_echo "no" >&6; }
32423fi
32424
32425
32426# Extract the first word of ""$DNGDecodeDelegateDefault"", so it can be a program name with args.
32427set dummy "$DNGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032428{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032429$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032430if ${ac_cv_path_DNGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032431 $as_echo_n "(cached) " >&6
32432else
32433 case $DNGDecodeDelegate in
32434 [\\/]* | ?:[\\/]*)
32435 ac_cv_path_DNGDecodeDelegate="$DNGDecodeDelegate" # Let the user override the test with a path.
32436 ;;
32437 *)
32438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32439for as_dir in $PATH
32440do
32441 IFS=$as_save_IFS
32442 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032443 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032445 ac_cv_path_DNGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032447 break 2
32448 fi
32449done
cristy8b350f62009-11-15 23:12:43 +000032450 done
cristy3ed852e2009-09-05 21:47:34 +000032451IFS=$as_save_IFS
32452
32453 test -z "$ac_cv_path_DNGDecodeDelegate" && ac_cv_path_DNGDecodeDelegate=""$DNGDecodeDelegateDefault""
32454 ;;
32455esac
32456fi
32457DNGDecodeDelegate=$ac_cv_path_DNGDecodeDelegate
32458if test -n "$DNGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DNGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032460$as_echo "$DNGDecodeDelegate" >&6; }
32461else
cristy8b350f62009-11-15 23:12:43 +000032462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032463$as_echo "no" >&6; }
32464fi
32465
32466
32467# Extract the first word of ""$GVCDecodeDelegateDefault"", so it can be a program name with args.
32468set dummy "$GVCDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032469{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032470$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032471if ${ac_cv_path_GVCDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032472 $as_echo_n "(cached) " >&6
32473else
32474 case $GVCDecodeDelegate in
32475 [\\/]* | ?:[\\/]*)
32476 ac_cv_path_GVCDecodeDelegate="$GVCDecodeDelegate" # Let the user override the test with a path.
32477 ;;
32478 *)
32479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32480for as_dir in $PATH
32481do
32482 IFS=$as_save_IFS
32483 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032484 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032486 ac_cv_path_GVCDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032488 break 2
32489 fi
32490done
cristy8b350f62009-11-15 23:12:43 +000032491 done
cristy3ed852e2009-09-05 21:47:34 +000032492IFS=$as_save_IFS
32493
32494 test -z "$ac_cv_path_GVCDecodeDelegate" && ac_cv_path_GVCDecodeDelegate=""$GVCDecodeDelegateDefault""
32495 ;;
32496esac
32497fi
32498GVCDecodeDelegate=$ac_cv_path_GVCDecodeDelegate
32499if test -n "$GVCDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GVCDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032501$as_echo "$GVCDecodeDelegate" >&6; }
32502else
cristy8b350f62009-11-15 23:12:43 +000032503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032504$as_echo "no" >&6; }
32505fi
32506
32507
32508# Extract the first word of ""$DVIDecodeDelegateDefault"", so it can be a program name with args.
32509set dummy "$DVIDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032511$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032512if ${ac_cv_path_DVIDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032513 $as_echo_n "(cached) " >&6
32514else
32515 case $DVIDecodeDelegate in
32516 [\\/]* | ?:[\\/]*)
32517 ac_cv_path_DVIDecodeDelegate="$DVIDecodeDelegate" # Let the user override the test with a path.
32518 ;;
32519 *)
32520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32521for as_dir in $PATH
32522do
32523 IFS=$as_save_IFS
32524 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032525 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032527 ac_cv_path_DVIDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032529 break 2
32530 fi
32531done
cristy8b350f62009-11-15 23:12:43 +000032532 done
cristy3ed852e2009-09-05 21:47:34 +000032533IFS=$as_save_IFS
32534
32535 test -z "$ac_cv_path_DVIDecodeDelegate" && ac_cv_path_DVIDecodeDelegate=""$DVIDecodeDelegateDefault""
32536 ;;
32537esac
32538fi
32539DVIDecodeDelegate=$ac_cv_path_DVIDecodeDelegate
32540if test -n "$DVIDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DVIDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032542$as_echo "$DVIDecodeDelegate" >&6; }
32543else
cristy8b350f62009-11-15 23:12:43 +000032544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032545$as_echo "no" >&6; }
32546fi
32547
32548
32549# Extract the first word of ""$EchoDelegateDefault"", so it can be a program name with args.
32550set dummy "$EchoDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032552$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032553if ${ac_cv_path_EchoDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032554 $as_echo_n "(cached) " >&6
32555else
32556 case $EchoDelegate in
32557 [\\/]* | ?:[\\/]*)
32558 ac_cv_path_EchoDelegate="$EchoDelegate" # Let the user override the test with a path.
32559 ;;
32560 *)
32561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32562for as_dir in $PATH
32563do
32564 IFS=$as_save_IFS
32565 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032566 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032567 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032568 ac_cv_path_EchoDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032570 break 2
32571 fi
32572done
cristy8b350f62009-11-15 23:12:43 +000032573 done
cristy3ed852e2009-09-05 21:47:34 +000032574IFS=$as_save_IFS
32575
32576 test -z "$ac_cv_path_EchoDelegate" && ac_cv_path_EchoDelegate=""$EchoDelegateDefault""
32577 ;;
32578esac
32579fi
32580EchoDelegate=$ac_cv_path_EchoDelegate
32581if test -n "$EchoDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EchoDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032583$as_echo "$EchoDelegate" >&6; }
32584else
cristy8b350f62009-11-15 23:12:43 +000032585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032586$as_echo "no" >&6; }
32587fi
32588
32589
32590# Extract the first word of ""$EditorDelegateDefault"", so it can be a program name with args.
32591set dummy "$EditorDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032593$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032594if ${ac_cv_path_EditorDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032595 $as_echo_n "(cached) " >&6
32596else
32597 case $EditorDelegate in
32598 [\\/]* | ?:[\\/]*)
32599 ac_cv_path_EditorDelegate="$EditorDelegate" # Let the user override the test with a path.
32600 ;;
32601 *)
32602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32603for as_dir in $PATH
32604do
32605 IFS=$as_save_IFS
32606 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032607 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032608 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032609 ac_cv_path_EditorDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032611 break 2
32612 fi
32613done
cristy8b350f62009-11-15 23:12:43 +000032614 done
cristy3ed852e2009-09-05 21:47:34 +000032615IFS=$as_save_IFS
32616
32617 test -z "$ac_cv_path_EditorDelegate" && ac_cv_path_EditorDelegate=""$EditorDelegateDefault""
32618 ;;
32619esac
32620fi
32621EditorDelegate=$ac_cv_path_EditorDelegate
32622if test -n "$EditorDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EditorDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032624$as_echo "$EditorDelegate" >&6; }
32625else
cristy8b350f62009-11-15 23:12:43 +000032626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032627$as_echo "no" >&6; }
32628fi
32629
32630
32631# Extract the first word of ""$FIGDecodeDelegateDefault"", so it can be a program name with args.
32632set dummy "$FIGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032634$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032635if ${ac_cv_path_FIGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032636 $as_echo_n "(cached) " >&6
32637else
32638 case $FIGDecodeDelegate in
32639 [\\/]* | ?:[\\/]*)
32640 ac_cv_path_FIGDecodeDelegate="$FIGDecodeDelegate" # Let the user override the test with a path.
32641 ;;
32642 *)
32643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32644for as_dir in $PATH
32645do
32646 IFS=$as_save_IFS
32647 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032648 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032649 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032650 ac_cv_path_FIGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032652 break 2
32653 fi
32654done
cristy8b350f62009-11-15 23:12:43 +000032655 done
cristy3ed852e2009-09-05 21:47:34 +000032656IFS=$as_save_IFS
32657
32658 test -z "$ac_cv_path_FIGDecodeDelegate" && ac_cv_path_FIGDecodeDelegate=""$FIGDecodeDelegateDefault""
32659 ;;
32660esac
32661fi
32662FIGDecodeDelegate=$ac_cv_path_FIGDecodeDelegate
32663if test -n "$FIGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032665$as_echo "$FIGDecodeDelegate" >&6; }
32666else
cristy8b350f62009-11-15 23:12:43 +000032667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032668$as_echo "no" >&6; }
32669fi
32670
32671
32672# Extract the first word of ""$ConvertDelegateDefault"", so it can be a program name with args.
32673set dummy "$ConvertDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032675$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032676if ${ac_cv_path_ConvertDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032677 $as_echo_n "(cached) " >&6
32678else
32679 case $ConvertDelegate in
32680 [\\/]* | ?:[\\/]*)
32681 ac_cv_path_ConvertDelegate="$ConvertDelegate" # Let the user override the test with a path.
32682 ;;
32683 *)
32684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32685for as_dir in $PATH
32686do
32687 IFS=$as_save_IFS
32688 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032689 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032691 ac_cv_path_ConvertDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032693 break 2
32694 fi
32695done
cristy8b350f62009-11-15 23:12:43 +000032696 done
cristy3ed852e2009-09-05 21:47:34 +000032697IFS=$as_save_IFS
32698
32699 test -z "$ac_cv_path_ConvertDelegate" && ac_cv_path_ConvertDelegate=""$ConvertDelegateDefault""
32700 ;;
32701esac
32702fi
32703ConvertDelegate=$ac_cv_path_ConvertDelegate
32704if test -n "$ConvertDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ConvertDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032706$as_echo "$ConvertDelegate" >&6; }
32707else
cristy8b350f62009-11-15 23:12:43 +000032708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032709$as_echo "no" >&6; }
32710fi
32711
32712
32713# Extract the first word of ""$DisplayDelegateDefault"", so it can be a program name with args.
32714set dummy "$DisplayDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032715{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032716$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032717if ${ac_cv_path_DisplayDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032718 $as_echo_n "(cached) " >&6
32719else
32720 case $DisplayDelegate in
32721 [\\/]* | ?:[\\/]*)
32722 ac_cv_path_DisplayDelegate="$DisplayDelegate" # Let the user override the test with a path.
32723 ;;
32724 *)
32725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32726for as_dir in $PATH
32727do
32728 IFS=$as_save_IFS
32729 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032730 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032732 ac_cv_path_DisplayDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032734 break 2
32735 fi
32736done
cristy8b350f62009-11-15 23:12:43 +000032737 done
cristy3ed852e2009-09-05 21:47:34 +000032738IFS=$as_save_IFS
32739
32740 test -z "$ac_cv_path_DisplayDelegate" && ac_cv_path_DisplayDelegate=""$DisplayDelegateDefault""
32741 ;;
32742esac
32743fi
32744DisplayDelegate=$ac_cv_path_DisplayDelegate
32745if test -n "$DisplayDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DisplayDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032747$as_echo "$DisplayDelegate" >&6; }
32748else
cristy8b350f62009-11-15 23:12:43 +000032749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032750$as_echo "no" >&6; }
32751fi
32752
32753
32754# Extract the first word of ""$MogrifyDelegateDefault"", so it can be a program name with args.
32755set dummy "$MogrifyDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032757$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032758if ${ac_cv_path_MogrifyDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032759 $as_echo_n "(cached) " >&6
32760else
32761 case $MogrifyDelegate in
32762 [\\/]* | ?:[\\/]*)
32763 ac_cv_path_MogrifyDelegate="$MogrifyDelegate" # Let the user override the test with a path.
32764 ;;
32765 *)
32766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32767for as_dir in $PATH
32768do
32769 IFS=$as_save_IFS
32770 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032771 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032773 ac_cv_path_MogrifyDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032775 break 2
32776 fi
32777done
cristy8b350f62009-11-15 23:12:43 +000032778 done
cristy3ed852e2009-09-05 21:47:34 +000032779IFS=$as_save_IFS
32780
32781 test -z "$ac_cv_path_MogrifyDelegate" && ac_cv_path_MogrifyDelegate=""$MogrifyDelegateDefault""
32782 ;;
32783esac
32784fi
32785MogrifyDelegate=$ac_cv_path_MogrifyDelegate
32786if test -n "$MogrifyDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MogrifyDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032788$as_echo "$MogrifyDelegate" >&6; }
32789else
cristy8b350f62009-11-15 23:12:43 +000032790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032791$as_echo "no" >&6; }
32792fi
32793
32794
32795# Extract the first word of ""$GnuplotDecodeDelegateDefault"", so it can be a program name with args.
32796set dummy "$GnuplotDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032798$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032799if ${ac_cv_path_GnuplotDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032800 $as_echo_n "(cached) " >&6
32801else
32802 case $GnuplotDecodeDelegate in
32803 [\\/]* | ?:[\\/]*)
32804 ac_cv_path_GnuplotDecodeDelegate="$GnuplotDecodeDelegate" # Let the user override the test with a path.
32805 ;;
32806 *)
32807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32808for as_dir in $PATH
32809do
32810 IFS=$as_save_IFS
32811 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032812 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032814 ac_cv_path_GnuplotDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032816 break 2
32817 fi
32818done
cristy8b350f62009-11-15 23:12:43 +000032819 done
cristy3ed852e2009-09-05 21:47:34 +000032820IFS=$as_save_IFS
32821
32822 test -z "$ac_cv_path_GnuplotDecodeDelegate" && ac_cv_path_GnuplotDecodeDelegate=""$GnuplotDecodeDelegateDefault""
32823 ;;
32824esac
32825fi
32826GnuplotDecodeDelegate=$ac_cv_path_GnuplotDecodeDelegate
32827if test -n "$GnuplotDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GnuplotDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032829$as_echo "$GnuplotDecodeDelegate" >&6; }
32830else
cristy8b350f62009-11-15 23:12:43 +000032831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032832$as_echo "no" >&6; }
32833fi
32834
32835
cristy3ed852e2009-09-05 21:47:34 +000032836# Extract the first word of ""$HPGLDecodeDelegateDefault"", so it can be a program name with args.
32837set dummy "$HPGLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032839$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032840if ${ac_cv_path_HPGLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032841 $as_echo_n "(cached) " >&6
32842else
32843 case $HPGLDecodeDelegate in
32844 [\\/]* | ?:[\\/]*)
32845 ac_cv_path_HPGLDecodeDelegate="$HPGLDecodeDelegate" # Let the user override the test with a path.
32846 ;;
32847 *)
32848 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32849for as_dir in $PATH
32850do
32851 IFS=$as_save_IFS
32852 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032853 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032854 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032855 ac_cv_path_HPGLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032856 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032857 break 2
32858 fi
32859done
cristy8b350f62009-11-15 23:12:43 +000032860 done
cristy3ed852e2009-09-05 21:47:34 +000032861IFS=$as_save_IFS
32862
32863 test -z "$ac_cv_path_HPGLDecodeDelegate" && ac_cv_path_HPGLDecodeDelegate=""$HPGLDecodeDelegateDefault""
32864 ;;
32865esac
32866fi
32867HPGLDecodeDelegate=$ac_cv_path_HPGLDecodeDelegate
32868if test -n "$HPGLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HPGLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032870$as_echo "$HPGLDecodeDelegate" >&6; }
32871else
cristy8b350f62009-11-15 23:12:43 +000032872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032873$as_echo "no" >&6; }
32874fi
32875
32876
32877# Extract the first word of ""$HTMLDecodeDelegateDefault"", so it can be a program name with args.
32878set dummy "$HTMLDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032880$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032881if ${ac_cv_path_HTMLDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032882 $as_echo_n "(cached) " >&6
32883else
32884 case $HTMLDecodeDelegate in
32885 [\\/]* | ?:[\\/]*)
32886 ac_cv_path_HTMLDecodeDelegate="$HTMLDecodeDelegate" # Let the user override the test with a path.
32887 ;;
32888 *)
32889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32890for as_dir in $PATH
32891do
32892 IFS=$as_save_IFS
32893 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032894 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032896 ac_cv_path_HTMLDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032898 break 2
32899 fi
32900done
cristy8b350f62009-11-15 23:12:43 +000032901 done
cristy3ed852e2009-09-05 21:47:34 +000032902IFS=$as_save_IFS
32903
32904 test -z "$ac_cv_path_HTMLDecodeDelegate" && ac_cv_path_HTMLDecodeDelegate=""$HTMLDecodeDelegateDefault""
32905 ;;
32906esac
32907fi
32908HTMLDecodeDelegate=$ac_cv_path_HTMLDecodeDelegate
32909if test -n "$HTMLDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HTMLDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032911$as_echo "$HTMLDecodeDelegate" >&6; }
32912else
cristy8b350f62009-11-15 23:12:43 +000032913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032914$as_echo "no" >&6; }
32915fi
32916
32917
32918# Extract the first word of ""$ILBMDecodeDelegateDefault"", so it can be a program name with args.
32919set dummy "$ILBMDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032921$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032922if ${ac_cv_path_ILBMDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032923 $as_echo_n "(cached) " >&6
32924else
32925 case $ILBMDecodeDelegate in
32926 [\\/]* | ?:[\\/]*)
32927 ac_cv_path_ILBMDecodeDelegate="$ILBMDecodeDelegate" # Let the user override the test with a path.
32928 ;;
32929 *)
32930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32931for as_dir in $PATH
32932do
32933 IFS=$as_save_IFS
32934 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032935 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032936 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032937 ac_cv_path_ILBMDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032939 break 2
32940 fi
32941done
cristy8b350f62009-11-15 23:12:43 +000032942 done
cristy3ed852e2009-09-05 21:47:34 +000032943IFS=$as_save_IFS
32944
32945 test -z "$ac_cv_path_ILBMDecodeDelegate" && ac_cv_path_ILBMDecodeDelegate=""$ILBMDecodeDelegateDefault""
32946 ;;
32947esac
32948fi
32949ILBMDecodeDelegate=$ac_cv_path_ILBMDecodeDelegate
32950if test -n "$ILBMDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032952$as_echo "$ILBMDecodeDelegate" >&6; }
32953else
cristy8b350f62009-11-15 23:12:43 +000032954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032955$as_echo "no" >&6; }
32956fi
32957
32958
32959# Extract the first word of ""$ILBMEncodeDelegateDefault"", so it can be a program name with args.
32960set dummy "$ILBMEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000032961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000032962$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000032963if ${ac_cv_path_ILBMEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000032964 $as_echo_n "(cached) " >&6
32965else
32966 case $ILBMEncodeDelegate in
32967 [\\/]* | ?:[\\/]*)
32968 ac_cv_path_ILBMEncodeDelegate="$ILBMEncodeDelegate" # Let the user override the test with a path.
32969 ;;
32970 *)
32971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32972for as_dir in $PATH
32973do
32974 IFS=$as_save_IFS
32975 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000032976 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000032977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000032978 ac_cv_path_ILBMEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000032979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000032980 break 2
32981 fi
32982done
cristy8b350f62009-11-15 23:12:43 +000032983 done
cristy3ed852e2009-09-05 21:47:34 +000032984IFS=$as_save_IFS
32985
32986 test -z "$ac_cv_path_ILBMEncodeDelegate" && ac_cv_path_ILBMEncodeDelegate=""$ILBMEncodeDelegateDefault""
32987 ;;
32988esac
32989fi
32990ILBMEncodeDelegate=$ac_cv_path_ILBMEncodeDelegate
32991if test -n "$ILBMEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000032992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ILBMEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000032993$as_echo "$ILBMEncodeDelegate" >&6; }
32994else
cristy8b350f62009-11-15 23:12:43 +000032995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000032996$as_echo "no" >&6; }
32997fi
32998
32999
33000# Extract the first word of ""$LPDelegateDefault"", so it can be a program name with args.
33001set dummy "$LPDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033003$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033004if ${ac_cv_path_LPDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033005 $as_echo_n "(cached) " >&6
33006else
33007 case $LPDelegate in
33008 [\\/]* | ?:[\\/]*)
33009 ac_cv_path_LPDelegate="$LPDelegate" # Let the user override the test with a path.
33010 ;;
33011 *)
33012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33013for as_dir in $PATH
33014do
33015 IFS=$as_save_IFS
33016 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033017 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033019 ac_cv_path_LPDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033021 break 2
33022 fi
33023done
cristy8b350f62009-11-15 23:12:43 +000033024 done
cristy3ed852e2009-09-05 21:47:34 +000033025IFS=$as_save_IFS
33026
33027 test -z "$ac_cv_path_LPDelegate" && ac_cv_path_LPDelegate="no"
33028 ;;
33029esac
33030fi
33031LPDelegate=$ac_cv_path_LPDelegate
33032if test -n "$LPDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033034$as_echo "$LPDelegate" >&6; }
33035else
cristy8b350f62009-11-15 23:12:43 +000033036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033037$as_echo "no" >&6; }
33038fi
33039
33040
33041# Extract the first word of ""$LPRDelegateDefault"", so it can be a program name with args.
33042set dummy "$LPRDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033043{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033044$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033045if ${ac_cv_path_LPRDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033046 $as_echo_n "(cached) " >&6
33047else
33048 case $LPRDelegate in
33049 [\\/]* | ?:[\\/]*)
33050 ac_cv_path_LPRDelegate="$LPRDelegate" # Let the user override the test with a path.
33051 ;;
33052 *)
33053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33054for as_dir in $PATH
33055do
33056 IFS=$as_save_IFS
33057 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033058 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033059 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033060 ac_cv_path_LPRDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033061 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033062 break 2
33063 fi
33064done
cristy8b350f62009-11-15 23:12:43 +000033065 done
cristy3ed852e2009-09-05 21:47:34 +000033066IFS=$as_save_IFS
33067
33068 test -z "$ac_cv_path_LPRDelegate" && ac_cv_path_LPRDelegate=""$LPRDelegateDefault""
33069 ;;
33070esac
33071fi
33072LPRDelegate=$ac_cv_path_LPRDelegate
33073if test -n "$LPRDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LPRDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033075$as_echo "$LPRDelegate" >&6; }
33076else
cristy8b350f62009-11-15 23:12:43 +000033077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033078$as_echo "no" >&6; }
33079fi
33080
33081
cristy3ed852e2009-09-05 21:47:34 +000033082# Extract the first word of ""$LaunchDelegateDefault"", so it can be a program name with args.
33083set dummy "$LaunchDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033085$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033086if ${ac_cv_path_LaunchDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033087 $as_echo_n "(cached) " >&6
33088else
33089 case $LaunchDelegate in
33090 [\\/]* | ?:[\\/]*)
33091 ac_cv_path_LaunchDelegate="$LaunchDelegate" # Let the user override the test with a path.
33092 ;;
33093 *)
33094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33095for as_dir in $PATH
33096do
33097 IFS=$as_save_IFS
33098 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033099 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033101 ac_cv_path_LaunchDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033103 break 2
33104 fi
33105done
cristy8b350f62009-11-15 23:12:43 +000033106 done
cristy3ed852e2009-09-05 21:47:34 +000033107IFS=$as_save_IFS
33108
33109 test -z "$ac_cv_path_LaunchDelegate" && ac_cv_path_LaunchDelegate=""$LaunchDelegateDefault""
33110 ;;
33111esac
33112fi
33113LaunchDelegate=$ac_cv_path_LaunchDelegate
33114if test -n "$LaunchDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LaunchDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033116$as_echo "$LaunchDelegate" >&6; }
33117else
cristy8b350f62009-11-15 23:12:43 +000033118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033119$as_echo "no" >&6; }
33120fi
33121
33122
33123# Extract the first word of ""$MANDelegateDefault"", so it can be a program name with args.
33124set dummy "$MANDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033126$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033127if ${ac_cv_path_MANDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033128 $as_echo_n "(cached) " >&6
33129else
33130 case $MANDelegate in
33131 [\\/]* | ?:[\\/]*)
33132 ac_cv_path_MANDelegate="$MANDelegate" # Let the user override the test with a path.
33133 ;;
33134 *)
33135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33136for as_dir in $PATH
33137do
33138 IFS=$as_save_IFS
33139 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033140 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033141 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033142 ac_cv_path_MANDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033144 break 2
33145 fi
33146done
cristy8b350f62009-11-15 23:12:43 +000033147 done
cristy3ed852e2009-09-05 21:47:34 +000033148IFS=$as_save_IFS
33149
33150 test -z "$ac_cv_path_MANDelegate" && ac_cv_path_MANDelegate=""$MANDelegateDefault""
33151 ;;
33152esac
33153fi
33154MANDelegate=$ac_cv_path_MANDelegate
33155if test -n "$MANDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033157$as_echo "$MANDelegate" >&6; }
33158else
cristy8b350f62009-11-15 23:12:43 +000033159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033160$as_echo "no" >&6; }
33161fi
33162
33163
33164# Extract the first word of ""$MPEGDecodeDelegateDefault"", so it can be a program name with args.
33165set dummy "$MPEGDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033167$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033168if ${ac_cv_path_MPEGDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033169 $as_echo_n "(cached) " >&6
33170else
33171 case $MPEGDecodeDelegate in
33172 [\\/]* | ?:[\\/]*)
33173 ac_cv_path_MPEGDecodeDelegate="$MPEGDecodeDelegate" # Let the user override the test with a path.
33174 ;;
33175 *)
33176 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33177for as_dir in $PATH
33178do
33179 IFS=$as_save_IFS
33180 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033181 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033182 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033183 ac_cv_path_MPEGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033185 break 2
33186 fi
33187done
cristy8b350f62009-11-15 23:12:43 +000033188 done
cristy3ed852e2009-09-05 21:47:34 +000033189IFS=$as_save_IFS
33190
33191 test -z "$ac_cv_path_MPEGDecodeDelegate" && ac_cv_path_MPEGDecodeDelegate=""$MPEGDecodeDelegateDefault""
33192 ;;
33193esac
33194fi
33195MPEGDecodeDelegate=$ac_cv_path_MPEGDecodeDelegate
33196if test -n "$MPEGDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033198$as_echo "$MPEGDecodeDelegate" >&6; }
33199else
cristy8b350f62009-11-15 23:12:43 +000033200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033201$as_echo "no" >&6; }
33202fi
33203
33204
33205# Extract the first word of ""$MPEGEncodeDelegateDefault"", so it can be a program name with args.
33206set dummy "$MPEGEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033208$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033209if ${ac_cv_path_MPEGEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033210 $as_echo_n "(cached) " >&6
33211else
33212 case $MPEGEncodeDelegate in
33213 [\\/]* | ?:[\\/]*)
33214 ac_cv_path_MPEGEncodeDelegate="$MPEGEncodeDelegate" # Let the user override the test with a path.
33215 ;;
33216 *)
33217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33218for as_dir in $PATH
33219do
33220 IFS=$as_save_IFS
33221 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033222 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033224 ac_cv_path_MPEGEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033226 break 2
33227 fi
33228done
cristy8b350f62009-11-15 23:12:43 +000033229 done
cristy3ed852e2009-09-05 21:47:34 +000033230IFS=$as_save_IFS
33231
33232 test -z "$ac_cv_path_MPEGEncodeDelegate" && ac_cv_path_MPEGEncodeDelegate=""$MPEGEncodeDelegateDefault""
33233 ;;
33234esac
33235fi
33236MPEGEncodeDelegate=$ac_cv_path_MPEGEncodeDelegate
33237if test -n "$MPEGEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MPEGEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033239$as_echo "$MPEGEncodeDelegate" >&6; }
33240else
cristy8b350f62009-11-15 23:12:43 +000033241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033242$as_echo "no" >&6; }
33243fi
33244
33245
cristy935c86e2010-06-05 23:50:07 +000033246# Extract the first word of ""$MrSIDDecodeDelegateDefault"", so it can be a program name with args.
33247set dummy "$MrSIDDecodeDelegateDefault"; ac_word=$2
33248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33249$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033250if ${ac_cv_path_MrSIDDecodeDelegate+:} false; then :
cristy935c86e2010-06-05 23:50:07 +000033251 $as_echo_n "(cached) " >&6
33252else
33253 case $MrSIDDecodeDelegate in
33254 [\\/]* | ?:[\\/]*)
33255 ac_cv_path_MrSIDDecodeDelegate="$MrSIDDecodeDelegate" # Let the user override the test with a path.
33256 ;;
33257 *)
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259for as_dir in $PATH
33260do
33261 IFS=$as_save_IFS
33262 test -z "$as_dir" && as_dir=.
33263 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy935c86e2010-06-05 23:50:07 +000033265 ac_cv_path_MrSIDDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33267 break 2
33268 fi
33269done
33270 done
33271IFS=$as_save_IFS
33272
33273 test -z "$ac_cv_path_MrSIDDecodeDelegate" && ac_cv_path_MrSIDDecodeDelegate=""$MrSIDDecodeDelegateDefault""
33274 ;;
33275esac
33276fi
33277MrSIDDecodeDelegate=$ac_cv_path_MrSIDDecodeDelegate
33278if test -n "$MrSIDDecodeDelegate"; then
33279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MrSIDDecodeDelegate" >&5
33280$as_echo "$MrSIDDecodeDelegate" >&6; }
33281else
33282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33283$as_echo "no" >&6; }
33284fi
33285
33286
cristy3ed852e2009-09-05 21:47:34 +000033287# Extract the first word of ""$MVDelegateDefault"", so it can be a program name with args.
33288set dummy "$MVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033290$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033291if ${ac_cv_path_MVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033292 $as_echo_n "(cached) " >&6
33293else
33294 case $MVDelegate in
33295 [\\/]* | ?:[\\/]*)
33296 ac_cv_path_MVDelegate="$MVDelegate" # Let the user override the test with a path.
33297 ;;
33298 *)
33299 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33300for as_dir in $PATH
33301do
33302 IFS=$as_save_IFS
33303 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033304 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033306 ac_cv_path_MVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033308 break 2
33309 fi
33310done
cristy8b350f62009-11-15 23:12:43 +000033311 done
cristy3ed852e2009-09-05 21:47:34 +000033312IFS=$as_save_IFS
33313
33314 test -z "$ac_cv_path_MVDelegate" && ac_cv_path_MVDelegate=""$MVDelegateDefault""
33315 ;;
33316esac
33317fi
33318MVDelegate=$ac_cv_path_MVDelegate
33319if test -n "$MVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033321$as_echo "$MVDelegate" >&6; }
33322else
cristy8b350f62009-11-15 23:12:43 +000033323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033324$as_echo "no" >&6; }
33325fi
33326
33327
33328# Extract the first word of ""$PCLDelegateDefault"", so it can be a program name with args.
33329set dummy "$PCLDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033330{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033331$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033332if ${ac_cv_path_PCLDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033333 $as_echo_n "(cached) " >&6
33334else
33335 case $PCLDelegate in
33336 [\\/]* | ?:[\\/]*)
33337 ac_cv_path_PCLDelegate="$PCLDelegate" # Let the user override the test with a path.
33338 ;;
33339 *)
33340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33341for as_dir in $PATH
33342do
33343 IFS=$as_save_IFS
33344 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033345 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033346 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033347 ac_cv_path_PCLDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033348 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033349 break 2
33350 fi
33351done
cristy8b350f62009-11-15 23:12:43 +000033352 done
cristy3ed852e2009-09-05 21:47:34 +000033353IFS=$as_save_IFS
33354
33355 test -z "$ac_cv_path_PCLDelegate" && ac_cv_path_PCLDelegate=""$PCLDelegateDefault""
33356 ;;
33357esac
33358fi
33359PCLDelegate=$ac_cv_path_PCLDelegate
33360if test -n "$PCLDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCLDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033362$as_echo "$PCLDelegate" >&6; }
33363else
cristy8b350f62009-11-15 23:12:43 +000033364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033365$as_echo "no" >&6; }
33366fi
33367
33368
33369# Extract the first word of ""$PGPDecodeDelegateDefault"", so it can be a program name with args.
33370set dummy "$PGPDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033372$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033373if ${ac_cv_path_PGPDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033374 $as_echo_n "(cached) " >&6
33375else
33376 case $PGPDecodeDelegate in
33377 [\\/]* | ?:[\\/]*)
33378 ac_cv_path_PGPDecodeDelegate="$PGPDecodeDelegate" # Let the user override the test with a path.
33379 ;;
33380 *)
33381 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33382for as_dir in $PATH
33383do
33384 IFS=$as_save_IFS
33385 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033386 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033387 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033388 ac_cv_path_PGPDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033389 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033390 break 2
33391 fi
33392done
cristy8b350f62009-11-15 23:12:43 +000033393 done
cristy3ed852e2009-09-05 21:47:34 +000033394IFS=$as_save_IFS
33395
33396 test -z "$ac_cv_path_PGPDecodeDelegate" && ac_cv_path_PGPDecodeDelegate=""$PGPDecodeDelegateDefault""
33397 ;;
33398esac
33399fi
33400PGPDecodeDelegate=$ac_cv_path_PGPDecodeDelegate
33401if test -n "$PGPDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGPDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033403$as_echo "$PGPDecodeDelegate" >&6; }
33404else
cristy8b350f62009-11-15 23:12:43 +000033405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033406$as_echo "no" >&6; }
33407fi
33408
33409
33410# Extract the first word of ""$POVDelegateDefault"", so it can be a program name with args.
33411set dummy "$POVDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033413$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033414if ${ac_cv_path_POVDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033415 $as_echo_n "(cached) " >&6
33416else
33417 case $POVDelegate in
33418 [\\/]* | ?:[\\/]*)
33419 ac_cv_path_POVDelegate="$POVDelegate" # Let the user override the test with a path.
33420 ;;
33421 *)
33422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33423for as_dir in $PATH
33424do
33425 IFS=$as_save_IFS
33426 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033427 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033429 ac_cv_path_POVDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033431 break 2
33432 fi
33433done
cristy8b350f62009-11-15 23:12:43 +000033434 done
cristy3ed852e2009-09-05 21:47:34 +000033435IFS=$as_save_IFS
33436
33437 test -z "$ac_cv_path_POVDelegate" && ac_cv_path_POVDelegate=""$POVDelegateDefault""
33438 ;;
33439esac
33440fi
33441POVDelegate=$ac_cv_path_POVDelegate
33442if test -n "$POVDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POVDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033444$as_echo "$POVDelegate" >&6; }
33445else
cristy8b350f62009-11-15 23:12:43 +000033446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033447$as_echo "no" >&6; }
33448fi
33449
33450
33451for ac_prog in gsx gsc "$PSDelegateDefault"
33452do
33453 # Extract the first word of "$ac_prog", so it can be a program name with args.
33454set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033456$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033457if ${ac_cv_path_PSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033458 $as_echo_n "(cached) " >&6
33459else
33460 case $PSDelegate in
33461 [\\/]* | ?:[\\/]*)
33462 ac_cv_path_PSDelegate="$PSDelegate" # Let the user override the test with a path.
33463 ;;
33464 *)
33465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33466for as_dir in $PATH
33467do
33468 IFS=$as_save_IFS
33469 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033470 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033472 ac_cv_path_PSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033474 break 2
33475 fi
33476done
cristy8b350f62009-11-15 23:12:43 +000033477 done
cristy3ed852e2009-09-05 21:47:34 +000033478IFS=$as_save_IFS
33479
33480 ;;
33481esac
33482fi
33483PSDelegate=$ac_cv_path_PSDelegate
33484if test -n "$PSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033486$as_echo "$PSDelegate" >&6; }
33487else
cristy8b350f62009-11-15 23:12:43 +000033488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033489$as_echo "no" >&6; }
33490fi
33491
33492
33493 test -n "$PSDelegate" && break
33494done
33495test -n "$PSDelegate" || PSDelegate=""$PSDelegateDefault""
33496
33497# Extract the first word of ""$RLEEncodeDelegateDefault"", so it can be a program name with args.
33498set dummy "$RLEEncodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033500$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033501if ${ac_cv_path_RLEEncodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033502 $as_echo_n "(cached) " >&6
33503else
33504 case $RLEEncodeDelegate in
33505 [\\/]* | ?:[\\/]*)
33506 ac_cv_path_RLEEncodeDelegate="$RLEEncodeDelegate" # Let the user override the test with a path.
33507 ;;
33508 *)
33509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33510for as_dir in $PATH
33511do
33512 IFS=$as_save_IFS
33513 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033514 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033515 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033516 ac_cv_path_RLEEncodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033518 break 2
33519 fi
33520done
cristy8b350f62009-11-15 23:12:43 +000033521 done
cristy3ed852e2009-09-05 21:47:34 +000033522IFS=$as_save_IFS
33523
33524 test -z "$ac_cv_path_RLEEncodeDelegate" && ac_cv_path_RLEEncodeDelegate=""$RLEEncodeDelegateDefault""
33525 ;;
33526esac
33527fi
33528RLEEncodeDelegate=$ac_cv_path_RLEEncodeDelegate
33529if test -n "$RLEEncodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RLEEncodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033531$as_echo "$RLEEncodeDelegate" >&6; }
33532else
cristy8b350f62009-11-15 23:12:43 +000033533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033534$as_echo "no" >&6; }
33535fi
33536
33537
33538# Extract the first word of ""$RMDelegateDefault"", so it can be a program name with args.
33539set dummy "$RMDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033540{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033541$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033542if ${ac_cv_path_RMDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033543 $as_echo_n "(cached) " >&6
33544else
33545 case $RMDelegate in
33546 [\\/]* | ?:[\\/]*)
33547 ac_cv_path_RMDelegate="$RMDelegate" # Let the user override the test with a path.
33548 ;;
33549 *)
33550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33551for as_dir in $PATH
33552do
33553 IFS=$as_save_IFS
33554 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033555 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033557 ac_cv_path_RMDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033559 break 2
33560 fi
33561done
cristy8b350f62009-11-15 23:12:43 +000033562 done
cristy3ed852e2009-09-05 21:47:34 +000033563IFS=$as_save_IFS
33564
33565 test -z "$ac_cv_path_RMDelegate" && ac_cv_path_RMDelegate=""$RMDelegateDefault""
33566 ;;
33567esac
33568fi
33569RMDelegate=$ac_cv_path_RMDelegate
33570if test -n "$RMDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RMDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033572$as_echo "$RMDelegate" >&6; }
33573else
cristy8b350f62009-11-15 23:12:43 +000033574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033575$as_echo "no" >&6; }
33576fi
33577
33578
cristy4689cf02010-02-17 21:15:45 +000033579# Extract the first word of ""$RSVGDecodeDelegateDefault"", so it can be a program name with args.
33580set dummy "$RSVGDecodeDelegateDefault"; ac_word=$2
33581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33582$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033583if ${ac_cv_path_RSVGDecodeDelegate+:} false; then :
cristy4689cf02010-02-17 21:15:45 +000033584 $as_echo_n "(cached) " >&6
33585else
33586 case $RSVGDecodeDelegate in
33587 [\\/]* | ?:[\\/]*)
33588 ac_cv_path_RSVGDecodeDelegate="$RSVGDecodeDelegate" # Let the user override the test with a path.
33589 ;;
33590 *)
33591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33592for as_dir in $PATH
33593do
33594 IFS=$as_save_IFS
33595 test -z "$as_dir" && as_dir=.
33596 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033597 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy4689cf02010-02-17 21:15:45 +000033598 ac_cv_path_RSVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33599 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33600 break 2
33601 fi
33602done
33603 done
33604IFS=$as_save_IFS
33605
33606 test -z "$ac_cv_path_RSVGDecodeDelegate" && ac_cv_path_RSVGDecodeDelegate=""$RSVGDecodeDelegateDefault""
33607 ;;
33608esac
33609fi
33610RSVGDecodeDelegate=$ac_cv_path_RSVGDecodeDelegate
33611if test -n "$RSVGDecodeDelegate"; then
33612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RSVGDecodeDelegate" >&5
33613$as_echo "$RSVGDecodeDelegate" >&6; }
33614else
33615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33616$as_echo "no" >&6; }
33617fi
33618
33619
cristy3ed852e2009-09-05 21:47:34 +000033620# Extract the first word of ""$SCANDecodeDelegateDefault"", so it can be a program name with args.
33621set dummy "$SCANDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033623$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033624if ${ac_cv_path_SCANDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033625 $as_echo_n "(cached) " >&6
33626else
33627 case $SCANDecodeDelegate in
33628 [\\/]* | ?:[\\/]*)
33629 ac_cv_path_SCANDecodeDelegate="$SCANDecodeDelegate" # Let the user override the test with a path.
33630 ;;
33631 *)
33632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33633for as_dir in $PATH
33634do
33635 IFS=$as_save_IFS
33636 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033637 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033639 ac_cv_path_SCANDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033641 break 2
33642 fi
33643done
cristy8b350f62009-11-15 23:12:43 +000033644 done
cristy3ed852e2009-09-05 21:47:34 +000033645IFS=$as_save_IFS
33646
33647 test -z "$ac_cv_path_SCANDecodeDelegate" && ac_cv_path_SCANDecodeDelegate=""$SCANDecodeDelegateDefault""
33648 ;;
33649esac
33650fi
33651SCANDecodeDelegate=$ac_cv_path_SCANDecodeDelegate
33652if test -n "$SCANDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SCANDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033654$as_echo "$SCANDecodeDelegate" >&6; }
33655else
cristy8b350f62009-11-15 23:12:43 +000033656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033657$as_echo "no" >&6; }
33658fi
33659
33660
cristyec6934f2012-08-14 18:38:40 +000033661# Extract the first word of ""$SVGDecodeDelegateDefault"", so it can be a program name with args.
33662set dummy "$SVGDecodeDelegateDefault"; ac_word=$2
33663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33664$as_echo_n "checking for $ac_word... " >&6; }
33665if ${ac_cv_path_SVGDecodeDelegate+:} false; then :
33666 $as_echo_n "(cached) " >&6
33667else
33668 case $SVGDecodeDelegate in
33669 [\\/]* | ?:[\\/]*)
33670 ac_cv_path_SVGDecodeDelegate="$SVGDecodeDelegate" # Let the user override the test with a path.
33671 ;;
33672 *)
33673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33674for as_dir in $PATH
33675do
33676 IFS=$as_save_IFS
33677 test -z "$as_dir" && as_dir=.
33678 for ac_exec_ext in '' $ac_executable_extensions; do
33679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33680 ac_cv_path_SVGDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
33681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33682 break 2
33683 fi
33684done
33685 done
33686IFS=$as_save_IFS
33687
33688 test -z "$ac_cv_path_SVGDecodeDelegate" && ac_cv_path_SVGDecodeDelegate=""$SVGDecodeDelegateDefault""
33689 ;;
33690esac
33691fi
33692SVGDecodeDelegate=$ac_cv_path_SVGDecodeDelegate
33693if test -n "$SVGDecodeDelegate"; then
33694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SVGDecodeDelegate" >&5
33695$as_echo "$SVGDecodeDelegate" >&6; }
33696else
33697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33698$as_echo "no" >&6; }
33699fi
33700
33701
cristy3ed852e2009-09-05 21:47:34 +000033702# Extract the first word of ""$TXTDelegateDefault"", so it can be a program name with args.
33703set dummy "$TXTDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033704{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033705$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033706if ${ac_cv_path_TXTDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033707 $as_echo_n "(cached) " >&6
33708else
33709 case $TXTDelegate in
33710 [\\/]* | ?:[\\/]*)
33711 ac_cv_path_TXTDelegate="$TXTDelegate" # Let the user override the test with a path.
33712 ;;
33713 *)
33714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33715for as_dir in $PATH
33716do
33717 IFS=$as_save_IFS
33718 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033719 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033721 ac_cv_path_TXTDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033723 break 2
33724 fi
33725done
cristy8b350f62009-11-15 23:12:43 +000033726 done
cristy3ed852e2009-09-05 21:47:34 +000033727IFS=$as_save_IFS
33728
33729 test -z "$ac_cv_path_TXTDelegate" && ac_cv_path_TXTDelegate=""$TXTDelegateDefault""
33730 ;;
33731esac
33732fi
33733TXTDelegate=$ac_cv_path_TXTDelegate
33734if test -n "$TXTDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TXTDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033736$as_echo "$TXTDelegate" >&6; }
33737else
cristy8b350f62009-11-15 23:12:43 +000033738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033739$as_echo "no" >&6; }
33740fi
33741
33742
cristy5ac9ac82010-07-29 13:24:24 +000033743# Extract the first word of ""$UniconvertorDelegateDefault"", so it can be a program name with args.
33744set dummy "$UniconvertorDelegateDefault"; ac_word=$2
33745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
33746$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033747if ${ac_cv_path_UniconvertorDelegate+:} false; then :
cristy5ac9ac82010-07-29 13:24:24 +000033748 $as_echo_n "(cached) " >&6
33749else
33750 case $UniconvertorDelegate in
33751 [\\/]* | ?:[\\/]*)
33752 ac_cv_path_UniconvertorDelegate="$UniconvertorDelegate" # Let the user override the test with a path.
33753 ;;
33754 *)
33755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33756for as_dir in $PATH
33757do
33758 IFS=$as_save_IFS
33759 test -z "$as_dir" && as_dir=.
33760 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033761 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy5ac9ac82010-07-29 13:24:24 +000033762 ac_cv_path_UniconvertorDelegate="$as_dir/$ac_word$ac_exec_ext"
33763 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
33764 break 2
33765 fi
33766done
33767 done
33768IFS=$as_save_IFS
33769
33770 test -z "$ac_cv_path_UniconvertorDelegate" && ac_cv_path_UniconvertorDelegate=""$UniconvertorDelegateDefault""
33771 ;;
33772esac
33773fi
33774UniconvertorDelegate=$ac_cv_path_UniconvertorDelegate
33775if test -n "$UniconvertorDelegate"; then
33776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UniconvertorDelegate" >&5
33777$as_echo "$UniconvertorDelegate" >&6; }
33778else
33779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
33780$as_echo "no" >&6; }
33781fi
33782
33783
cristy3ed852e2009-09-05 21:47:34 +000033784# Extract the first word of ""$WMFDecodeDelegateDefault"", so it can be a program name with args.
33785set dummy "$WMFDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033787$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033788if ${ac_cv_path_WMFDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033789 $as_echo_n "(cached) " >&6
33790else
33791 case $WMFDecodeDelegate in
33792 [\\/]* | ?:[\\/]*)
33793 ac_cv_path_WMFDecodeDelegate="$WMFDecodeDelegate" # Let the user override the test with a path.
33794 ;;
33795 *)
33796 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33797for as_dir in $PATH
33798do
33799 IFS=$as_save_IFS
33800 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033801 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033803 ac_cv_path_WMFDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033805 break 2
33806 fi
33807done
cristy8b350f62009-11-15 23:12:43 +000033808 done
cristy3ed852e2009-09-05 21:47:34 +000033809IFS=$as_save_IFS
33810
33811 test -z "$ac_cv_path_WMFDecodeDelegate" && ac_cv_path_WMFDecodeDelegate=""$WMFDecodeDelegateDefault""
33812 ;;
33813esac
33814fi
33815WMFDecodeDelegate=$ac_cv_path_WMFDecodeDelegate
33816if test -n "$WMFDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WMFDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033818$as_echo "$WMFDecodeDelegate" >&6; }
33819else
cristy8b350f62009-11-15 23:12:43 +000033820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033821$as_echo "no" >&6; }
33822fi
33823
33824
33825# Extract the first word of ""$WWWDecodeDelegateDefault"", so it can be a program name with args.
33826set dummy "$WWWDecodeDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033828$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033829if ${ac_cv_path_WWWDecodeDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033830 $as_echo_n "(cached) " >&6
33831else
33832 case $WWWDecodeDelegate in
33833 [\\/]* | ?:[\\/]*)
33834 ac_cv_path_WWWDecodeDelegate="$WWWDecodeDelegate" # Let the user override the test with a path.
33835 ;;
33836 *)
33837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33838for as_dir in $PATH
33839do
33840 IFS=$as_save_IFS
33841 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033842 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033843 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033844 ac_cv_path_WWWDecodeDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033846 break 2
33847 fi
33848done
cristy8b350f62009-11-15 23:12:43 +000033849 done
cristy3ed852e2009-09-05 21:47:34 +000033850IFS=$as_save_IFS
33851
33852 test -z "$ac_cv_path_WWWDecodeDelegate" && ac_cv_path_WWWDecodeDelegate=""$WWWDecodeDelegateDefault""
33853 ;;
33854esac
33855fi
33856WWWDecodeDelegate=$ac_cv_path_WWWDecodeDelegate
33857if test -n "$WWWDecodeDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WWWDecodeDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033859$as_echo "$WWWDecodeDelegate" >&6; }
33860else
cristy8b350f62009-11-15 23:12:43 +000033861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033862$as_echo "no" >&6; }
33863fi
33864
33865
33866# Extract the first word of ""$XPSDelegateDefault"", so it can be a program name with args.
33867set dummy "$XPSDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033869$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033870if ${ac_cv_path_XPSDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033871 $as_echo_n "(cached) " >&6
33872else
33873 case $XPSDelegate in
33874 [\\/]* | ?:[\\/]*)
33875 ac_cv_path_XPSDelegate="$XPSDelegate" # Let the user override the test with a path.
33876 ;;
33877 *)
33878 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33879for as_dir in $PATH
33880do
33881 IFS=$as_save_IFS
33882 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033883 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033884 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033885 ac_cv_path_XPSDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033886 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033887 break 2
33888 fi
33889done
cristy8b350f62009-11-15 23:12:43 +000033890 done
cristy3ed852e2009-09-05 21:47:34 +000033891IFS=$as_save_IFS
33892
33893 test -z "$ac_cv_path_XPSDelegate" && ac_cv_path_XPSDelegate=""$XPSDelegateDefault""
33894 ;;
33895esac
33896fi
33897XPSDelegate=$ac_cv_path_XPSDelegate
33898if test -n "$XPSDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XPSDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033900$as_echo "$XPSDelegate" >&6; }
33901else
cristy8b350f62009-11-15 23:12:43 +000033902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033903$as_echo "no" >&6; }
33904fi
33905
33906
33907# Extract the first word of ""$ZipDelegateDefault"", so it can be a program name with args.
33908set dummy "$ZipDelegateDefault"; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000033909{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000033910$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000033911if ${ac_cv_path_ZipDelegate+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000033912 $as_echo_n "(cached) " >&6
33913else
33914 case $ZipDelegate in
33915 [\\/]* | ?:[\\/]*)
33916 ac_cv_path_ZipDelegate="$ZipDelegate" # Let the user override the test with a path.
33917 ;;
33918 *)
33919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33920for as_dir in $PATH
33921do
33922 IFS=$as_save_IFS
33923 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000033924 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000033925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000033926 ac_cv_path_ZipDelegate="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000033927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000033928 break 2
33929 fi
33930done
cristy8b350f62009-11-15 23:12:43 +000033931 done
cristy3ed852e2009-09-05 21:47:34 +000033932IFS=$as_save_IFS
33933
33934 test -z "$ac_cv_path_ZipDelegate" && ac_cv_path_ZipDelegate=""$ZipDelegateDefault""
33935 ;;
33936esac
33937fi
33938ZipDelegate=$ac_cv_path_ZipDelegate
33939if test -n "$ZipDelegate"; then
cristy8b350f62009-11-15 23:12:43 +000033940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZipDelegate" >&5
cristy3ed852e2009-09-05 21:47:34 +000033941$as_echo "$ZipDelegate" >&6; }
33942else
cristy8b350f62009-11-15 23:12:43 +000033943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000033944$as_echo "no" >&6; }
33945fi
33946
33947
33948
33949# Prefer lpr to lp; lp needs options tacked on.
33950if test "$LPRDelegate" != no; then
33951 PrintDelegate="$LPRDelegate"
33952else
33953 PrintDelegate="$LPDelegate -c -s"
33954fi
33955
33956
33957# Installed ImageMagick utiltity paths
33958ConvertDelegate="${BIN_DIR}/${ConvertDelegateDefault}"
33959DisplayDelegate="${BIN_DIR}/${DisplayDelegateDefault}"
33960MogrifyDelegate="${BIN_DIR}/${MogrifyDelegateDefault}"
33961
33962# Set delegate booleans
33963have_ffmpeg='no'; if test "$MPEGDecodeDelegate" != "$MPEGDecodeDelegateDefault" ; then have_ffmpeg='yes'; fi
33964have_fig2dev='no' ; if test "$FIGDecodeDelegate" != "$FIGDecodeDelegateDefault" ; then have_fig2dev='yes'; fi
33965have_gs='no' ; if test "$PSDelegate" != "$PSDelegateDefault"; then have_gs='yes'; fi
33966have_hp2xx='no' ; if test "$HPGLDecodeDelegate" != "$HPGLDecodeDelegateDefault" ; then have_hp2xx='yes'; fi
33967have_ilbmtoppm='no' ; if test "$ILBMDecodeDelegate" != "$ILBMDecodeDelegateDefault" ; then have_ilbmtoppm='yes'; fi
cristy935c86e2010-06-05 23:50:07 +000033968have_mrsid='no'; if test "$MrSIDDecodeDelegate" != "$MrSIDDecodeDelegateDefault" ; then have_mrsid='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033969have_pcl='no' ; if test "$PCLDelegate" != "$PCLDelegateDefault"; then have_pcl='yes'; fi
33970have_ppmtoilbm='no' ; if test "$ILBMEncodeDelegate" != "$ILBMEncodeDelegateDefault" ; then have_ppmtoilbm='yes'; fi
cristy3ed852e2009-09-05 21:47:34 +000033971have_ralcgm='no' ; if test "$CGMDecodeDelegate" != "$CGMDecodeDelegateDefault" ; then have_ralcgm='yes'; fi
33972have_xps='no' ; if test "$XPSDelegate" != "$XPSDelegateDefault"; then have_xps='yes'; fi
33973
33974#
33975# Test for font directories
33976#
33977type_include_files=''
33978
cristy430a7312010-01-21 20:44:04 +000033979# Dejavu fonts.
33980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Dejavu fonts directory" >&5
33981$as_echo_n "checking for Dejavu fonts directory... " >&6; }
33982dejavu_font_dir=''
33983if test "${with_dejavu_font_dir}" != 'default'; then
33984 dejavu_font_dir="${with_dejavu_font_dir}/"
33985else
33986 for font_dir in "${prefix}/share/dejavu/fonts/" '/usr/share/fonts/dejavu/'; do
33987 if test -f "${font_dir}DejaVuSerif.ttf"; then
33988 dejavu_font_dir="${font_dir}"
33989 break 1
33990 fi
33991 done
33992fi
33993if test "${dejavu_font_dir}x" != 'x'; then
33994 type_include_files="${type_include_files} "'<include file="type-dejavu.xml" />'
cristy09b53e12011-10-14 12:47:22 +000033995 { $as_echo "$as_me:${as_lineno-$LINENO}: $dejavu_font_dir" >&5
33996$as_echo "$as_me: $dejavu_font_dir" >&6;}
cristy430a7312010-01-21 20:44:04 +000033997else
cristy09b53e12011-10-14 12:47:22 +000033998 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
33999$as_echo "$as_me: not found!" >&6;};
cristy430a7312010-01-21 20:44:04 +000034000fi
34001
34002
cristy3ed852e2009-09-05 21:47:34 +000034003# Windows
34004windows_font_dir=''
34005if test "$with_windows_font_dir" != "no" && test -n "$with_windows_font_dir"; then
34006 windows_font_dir="${with_windows_font_dir}/"
34007fi
cristy430a7312010-01-21 20:44:04 +000034008if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034009 if test -f '/usr/X11R6/lib/X11/fonts/truetype/arial.ttf'; then
34010 windows_font_dir='/usr/X11R6/lib/X11/fonts/truetype/'
34011 fi
34012 if test -f '/usr/X11R7/lib/X11/fonts/truetype/arial.ttf'; then
34013 windows_font_dir='/usr/X11R7/lib/X11/fonts/truetype/'
34014 fi
34015 if test -f '/usr/share/fonts/msttcore/arial.ttf'; then
34016 windows_font_dir='/usr/share/fonts/msttcore/truetype/'
34017 fi
34018fi
cristy430a7312010-01-21 20:44:04 +000034019if test "${windows_font_dir}x" != 'x'; then
cristy3ed852e2009-09-05 21:47:34 +000034020 type_include_files="$type_include_files "'<include file="type-windows.xml" />'
34021fi
34022
34023
34024# Ghostscript
cristy8b350f62009-11-15 23:12:43 +000034025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript fonts directory" >&5
cristy3ed852e2009-09-05 21:47:34 +000034026$as_echo_n "checking for Ghostscript fonts directory... " >&6; }
34027ghostscript_font_dir=''
34028if test "${with_gs_font_dir}" != 'default'; then
34029 ghostscript_font_dir="${with_gs_font_dir}/"
34030else
34031 if test "${native_win32_build}" = 'yes'; then
34032 # Native Windows Build
34033 for font_dir in "c:\\Program Files\\gs\\fonts\\" "c:\\Program Files \(x86\)\\gs\\fonts\\" "c:\\gs\\fonts\\"; do
34034 if test -f "${font_dir}a010013l.pfb"; then
34035 ghostscript_font_dir="$font_dir"
34036 break 1
34037 fi
34038 done
34039 if test "${PSDelegate}" != 'gswin32c'; then
34040 ghostscript_font_dir=`echo "${PSDelegate}" | sed -e 's:/gs/.*:/gs:;s:^/::;s/./&:/;s:/:\\\\:g'`"\\fonts\\"
34041 fi
34042 else
34043 # Linux / Mac OS X / Unix Build
34044 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
34045 if test -f "${font_dir}a010013l.pfb"; then
34046 ghostscript_font_dir="${font_dir}"
34047 break 1
34048 fi
34049 done
34050 if test "${ghostscript_font_dir}x" = 'x'; then
34051 if test "$PSDelegate" != 'gs'; then
34052 ghostscript_font_dir=`echo "$PSDelegate" | sed -e 's:/bin/gs:/share/ghostscript/fonts:'`"/"
34053 fi
34054 fi
34055 fi
34056fi
34057if test "${ghostscript_font_dir}x" != 'x'; then
34058 type_include_files="${type_include_files} "'<include file="type-ghostscript.xml" />'
cristy09b53e12011-10-14 12:47:22 +000034059 { $as_echo "$as_me:${as_lineno-$LINENO}: $ghostscript_font_dir" >&5
34060$as_echo "$as_me: $ghostscript_font_dir" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034061else
cristy09b53e12011-10-14 12:47:22 +000034062 { $as_echo "$as_me:${as_lineno-$LINENO}: not found!" >&5
34063$as_echo "$as_me: not found!" >&6;};
cristy3ed852e2009-09-05 21:47:34 +000034064fi
34065
34066case "${build_os}" in
34067 mingw* )
34068 PSDelegate=`$WinPathScript "$PSDelegate" 1`
34069 ;;
34070esac
34071
34072
34073
34074#
34075# Handle case where user doesn't want frozen paths
34076#
34077if test "$with_frozenpaths" != 'yes'; then
34078 # Re-set delegate definitions to default (no paths)
34079 AutotraceDecodeDelegate="$AutotraceDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034080 BlenderDecodeDelegate="$BlenderDecodeDelegateDefault"
34081 BZIPDelegate="$BZIPDelegateDefault"
34082 BrowseDelegate="$BrowseDelegateDefault"
34083 CGMDecodeDelegate="$CGMDecodeDelegateDefault"
34084 CatDelegate="$CatDelegateDefault"
34085 ConvertDelegate="$ConvertDelegateDefault"
34086 GVCDecodeDelegate="$GVCDecodeDelegateDefault"
34087 DVIDecodeDelegate="$DVIDecodeDelegateDefault"
34088 EchoDelegate="$EchoDelegateDefault"
34089 EditorDelegate="$EditorDelegateDefault"
34090 FIGDecodeDelegate="$FIGDecodeDelegateDefault"
34091 GnuplotDecodeDelegate="$GnuplotDecodeDelegateDefault"
34092 HPGLDecodeDelegate="$HPGLDecodeDelegateDefault"
34093 HTMLDecodeDelegate="$HTMLDecodeDelegateDefault"
34094 ILBMDecodeDelegate="$ILBMDecodeDelegateDefault"
34095 ILBMEncodeDelegate="$ILBMEncodeDelegateDefault"
34096 LPDelegate="$LPDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034097 LaunchDelegate="$LaunchDelegateDefault"
34098 MANDelegate="$MANDelegateDefault"
34099 MPEGDecodeDelegate="$MPEGDecodeDelegateDefault"
34100 MPEGEncodeDelegate="$MPEGEncodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034101 MogrifyDelegate="$MogrifyDelegateDefault"
cristy935c86e2010-06-05 23:50:07 +000034102 MrSIDDecodeDelegate="$MrSIDDecodeDelegateDefault"
34103 MVDelegate="$MVDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034104 PCLDelegate="$PCLDelegateDefault"
34105 PGPDecodeDelegate="$PGPDecodeDelegateDefault"
34106 POVDelegate="$POVDelegateDefault"
34107 PSDelegate="$PSDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034108 RLEEncodeDelegate="$RLEEncodeDelegateDefault"
34109 RMDelegate="$RMDelegateDefault"
cristy4689cf02010-02-17 21:15:45 +000034110 RSVGDecodeDelegate="$RSVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034111 SCANDecodeDelegate="$SCANDecodeDelegateDefault"
cristyec6934f2012-08-14 18:38:40 +000034112 SVGDecodeDelegate="$SVGDecodeDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034113 ShowImageDelegate="$ShowImageDelegateDefault"
34114 TXTDelegate="$TXTDelegateDefault"
cristy5ac9ac82010-07-29 13:24:24 +000034115 UniconvertorDelegate="$UniconvertorDelegateDefault"
cristy3ed852e2009-09-05 21:47:34 +000034116 WMFDecodeDelegate="$WMFDecodeDelegateDefault"
34117 WWWDecodeDelegate="$WWWDecodeDelegateDefault"
34118 XPSDelegate="$XPSDelegateDefault"
34119 ZipDelegate="$ZipDelegateDefault"
34120fi
34121
34122# Delegate substitutions
34123
34124
34125
34126
34127
34128
34129
34130
34131
34132
34133
34134
34135
34136
34137
34138
34139
34140
34141
34142
34143
34144
34145
34146
34147
34148
34149
34150
34151
34152
34153
34154
34155
34156
34157
34158
34159
34160
34161
34162
cristy3ed852e2009-09-05 21:47:34 +000034163#
34164# RPM support.
34165#
34166RPM=''
34167for ac_prog in gnutar gtar tar
34168do
34169 # Extract the first word of "$ac_prog", so it can be a program name with args.
34170set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034172$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034173if ${ac_cv_prog_TAR+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034174 $as_echo_n "(cached) " >&6
34175else
34176 if test -n "$TAR"; then
34177 ac_cv_prog_TAR="$TAR" # Let the user override the test.
34178else
34179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34180for as_dir in $PATH
34181do
34182 IFS=$as_save_IFS
34183 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034184 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034186 ac_cv_prog_TAR="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034188 break 2
34189 fi
34190done
cristy8b350f62009-11-15 23:12:43 +000034191 done
cristy3ed852e2009-09-05 21:47:34 +000034192IFS=$as_save_IFS
34193
34194fi
34195fi
34196TAR=$ac_cv_prog_TAR
34197if test -n "$TAR"; then
cristy8b350f62009-11-15 23:12:43 +000034198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
cristy3ed852e2009-09-05 21:47:34 +000034199$as_echo "$TAR" >&6; }
34200else
cristy8b350f62009-11-15 23:12:43 +000034201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034202$as_echo "no" >&6; }
34203fi
34204
34205
34206 test -n "$TAR" && break
34207done
34208
34209for ac_prog in perl
34210do
34211 # Extract the first word of "$ac_prog", so it can be a program name with args.
34212set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034214$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034215if ${ac_cv_prog_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034216 $as_echo_n "(cached) " >&6
34217else
34218 if test -n "$PERL"; then
34219 ac_cv_prog_PERL="$PERL" # Let the user override the test.
34220else
34221as_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_prog_PERL="$ac_prog"
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
34236fi
34237fi
34238PERL=$ac_cv_prog_PERL
34239if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034241$as_echo "$PERL" >&6; }
34242else
cristy8b350f62009-11-15 23:12:43 +000034243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034244$as_echo "no" >&6; }
34245fi
34246
34247
34248 test -n "$PERL" && break
34249done
34250
34251for ac_prog in rpmbuild rpm
34252do
34253 # Extract the first word of "$ac_prog", so it can be a program name with args.
34254set dummy $ac_prog; 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_prog_RPM+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034258 $as_echo_n "(cached) " >&6
34259else
34260 if test -n "$RPM"; then
34261 ac_cv_prog_RPM="$RPM" # Let the user override the test.
34262else
34263as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34264for as_dir in $PATH
34265do
34266 IFS=$as_save_IFS
34267 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034268 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034269 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034270 ac_cv_prog_RPM="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034271 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034272 break 2
34273 fi
34274done
cristy8b350f62009-11-15 23:12:43 +000034275 done
cristy3ed852e2009-09-05 21:47:34 +000034276IFS=$as_save_IFS
34277
34278fi
34279fi
34280RPM=$ac_cv_prog_RPM
34281if test -n "$RPM"; then
cristy8b350f62009-11-15 23:12:43 +000034282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
cristy3ed852e2009-09-05 21:47:34 +000034283$as_echo "$RPM" >&6; }
34284else
cristy8b350f62009-11-15 23:12:43 +000034285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034286$as_echo "no" >&6; }
34287fi
34288
34289
34290 test -n "$RPM" && break
34291done
34292
34293
cristy73bd4a52010-10-05 11:24:23 +000034294ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal"}
34295
34296
34297AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
34298
34299
34300AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake"}
34301
34302
34303AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
34304
34305
34306 if test "x$RPM" != "x" ; then
34307 RPM_DELEGATE_TRUE=
34308 RPM_DELEGATE_FALSE='#'
34309else
34310 RPM_DELEGATE_TRUE='#'
34311 RPM_DELEGATE_FALSE=
34312fi
34313
cristy3ed852e2009-09-05 21:47:34 +000034314
34315#
34316# 7ZIP support (http://p7zip.sourceforge.net/)
34317#
34318P7ZIP=''
34319for ac_prog in 7za
34320do
34321 # Extract the first word of "$ac_prog", so it can be a program name with args.
34322set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034324$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034325if ${ac_cv_prog_P7ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034326 $as_echo_n "(cached) " >&6
34327else
34328 if test -n "$P7ZIP"; then
34329 ac_cv_prog_P7ZIP="$P7ZIP" # Let the user override the test.
34330else
34331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34332for as_dir in $PATH
34333do
34334 IFS=$as_save_IFS
34335 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034336 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034338 ac_cv_prog_P7ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034340 break 2
34341 fi
34342done
cristy8b350f62009-11-15 23:12:43 +000034343 done
cristy3ed852e2009-09-05 21:47:34 +000034344IFS=$as_save_IFS
34345
34346fi
34347fi
34348P7ZIP=$ac_cv_prog_P7ZIP
34349if test -n "$P7ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $P7ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034351$as_echo "$P7ZIP" >&6; }
34352else
cristy8b350f62009-11-15 23:12:43 +000034353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034354$as_echo "no" >&6; }
34355fi
34356
34357
34358 test -n "$P7ZIP" && break
34359done
34360
34361
cristy73bd4a52010-10-05 11:24:23 +000034362 if test "x$P7ZIP" != "x" ; then
34363 P7ZIP_DELEGATE_TRUE=
34364 P7ZIP_DELEGATE_FALSE='#'
34365else
34366 P7ZIP_DELEGATE_TRUE='#'
34367 P7ZIP_DELEGATE_FALSE=
34368fi
34369
cristy3ed852e2009-09-05 21:47:34 +000034370
34371#
34372# ZIP support (http://www.info-zip.org/Zip.html)
34373#
34374ZIP=''
34375for ac_prog in zip
34376do
34377 # Extract the first word of "$ac_prog", so it can be a program name with args.
34378set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034380$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034381if ${ac_cv_prog_ZIP+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034382 $as_echo_n "(cached) " >&6
34383else
34384 if test -n "$ZIP"; then
34385 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
34386else
34387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34388for as_dir in $PATH
34389do
34390 IFS=$as_save_IFS
34391 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034392 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034393 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034394 ac_cv_prog_ZIP="$ac_prog"
cristy8b350f62009-11-15 23:12:43 +000034395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034396 break 2
34397 fi
34398done
cristy8b350f62009-11-15 23:12:43 +000034399 done
cristy3ed852e2009-09-05 21:47:34 +000034400IFS=$as_save_IFS
34401
34402fi
34403fi
34404ZIP=$ac_cv_prog_ZIP
34405if test -n "$ZIP"; then
cristy8b350f62009-11-15 23:12:43 +000034406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
cristy3ed852e2009-09-05 21:47:34 +000034407$as_echo "$ZIP" >&6; }
34408else
cristy8b350f62009-11-15 23:12:43 +000034409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034410$as_echo "no" >&6; }
34411fi
34412
34413
34414 test -n "$ZIP" && break
34415done
34416
34417
cristy73bd4a52010-10-05 11:24:23 +000034418 if test "x$ZIP" != "x" ; then
34419 ZIP_DELEGATE_TRUE=
34420 ZIP_DELEGATE_FALSE='#'
34421else
34422 ZIP_DELEGATE_TRUE='#'
34423 ZIP_DELEGATE_FALSE=
34424fi
34425
cristy3ed852e2009-09-05 21:47:34 +000034426
34427#
34428# GhostPCL related configuration.
34429#
34430PCLColorDevice=ppmraw
cristy8bc84082011-09-07 13:57:00 +000034431PCLCMYKDevice=pamcmyk32
cristy3ed852e2009-09-05 21:47:34 +000034432PCLMonoDevice=pbmraw
34433if test -z "$PCLVersion"; then
34434 PCLVersion='unknown'
34435fi
34436if test $have_pcl = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034437 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34438$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034440$as_echo_n "checking for PCL... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034441 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34442$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034443 # PCLColorDevice
cristy8b350f62009-11-15 23:12:43 +000034444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034445$as_echo_n "checking for pcl color device... " >&6; }
34446 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34447 :
34448 else
34449 PCLColorDevice=ppmraw
34450 fi
cristy09b53e12011-10-14 12:47:22 +000034451 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLColorDevice" >&5
34452$as_echo "$as_me: $PCLColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034453
34454 # PCLCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034456$as_echo_n "checking for pcl CMYK device... " >&6; }
34457 if $PCLDelegate -dBATCH -sDEVICE=$PCLColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34458 :
34459 else
34460 PCLCMYKDevice=$PCLColorDevice
34461 fi
cristy09b53e12011-10-14 12:47:22 +000034462 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLCMYKDevice" >&5
34463$as_echo "$as_me: $PCLCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034464
34465 # PCLMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcl mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034467$as_echo_n "checking for pcl mono device... " >&6; }
34468 if $PCLDelegate -dBATCH -sDEVICE=$PCLMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34469 :
34470 else
34471 PCLMonoDevice=$PCLColorDevice
34472 fi
cristy09b53e12011-10-14 12:47:22 +000034473 { $as_echo "$as_me:${as_lineno-$LINENO}: $PCLMonoDevice" >&5
34474$as_echo "$as_me: $PCLMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034475fi
34476
34477
34478
34479
34480
34481
34482#
34483# GhostXPS related configuration.
34484#
34485XPSColorDevice=ppmraw
34486XPSCMYKDevice=bmpsep8
34487XPSMonoDevice=pbmraw
34488if test -z "$XPSVersion"; then
34489 XPSVersion='unknown'
34490fi
34491if test $have_xps = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034492 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34493$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XPS" >&5
cristy3ed852e2009-09-05 21:47:34 +000034495$as_echo_n "checking for XPS... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034496 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34497$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034498 # XPSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034500$as_echo_n "checking for xps color device... " >&6; }
34501 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34502 :
34503 else
34504 XPSColorDevice=ppmraw
34505 fi
cristy09b53e12011-10-14 12:47:22 +000034506 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSColorDevice" >&5
34507$as_echo "$as_me: $XPSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034508
34509 # XPSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034511$as_echo_n "checking for xps CMYK device... " >&6; }
34512 if $XPSDelegate -dBATCH -sDEVICE=$XPSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34513 :
34514 else
34515 XPSCMYKDevice=$XPSColorDevice
34516 fi
cristy09b53e12011-10-14 12:47:22 +000034517 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSCMYKDevice" >&5
34518$as_echo "$as_me: $XPSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034519
34520 # XPSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xps mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034522$as_echo_n "checking for xps mono device... " >&6; }
34523 if $XPSDelegate -dBATCH -sDEVICE=$XPSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34524 :
34525 else
34526 XPSMonoDevice=$XPSColorDevice
34527 fi
cristy09b53e12011-10-14 12:47:22 +000034528 { $as_echo "$as_me:${as_lineno-$LINENO}: $XPSMonoDevice" >&5
34529$as_echo "$as_me: $XPSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034530fi
34531
34532
34533
34534
34535
34536
34537#
34538# Ghostscript related configuration.
34539#
cristya97426c2011-02-04 01:41:27 +000034540GSAlphaDevice=pngalpha
cristy3ed852e2009-09-05 21:47:34 +000034541GSColorDevice=pnmraw
34542GSCMYKDevice=pam
34543GSMonoDevice=pbmraw
34544GSPDFDevice=pdfwrite
34545GSPSDevice=pswrite
34546GSEPSDevice=epswrite
34547GSVersion='unknown'
34548if test $have_gs = 'yes'; then
cristy09b53e12011-10-14 12:47:22 +000034549 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34550$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript" >&5
cristy3ed852e2009-09-05 21:47:34 +000034552$as_echo_n "checking for Ghostscript... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034553 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34554$as_echo "$as_me: " >&6;}
cristy8b350f62009-11-15 23:12:43 +000034555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ghostscript version" >&5
cristy3ed852e2009-09-05 21:47:34 +000034556$as_echo_n "checking for Ghostscript version... " >&6; }
34557 if GSVersion=`$PSDelegate --version`; then
34558 :
34559 else
34560 GSVersion=`$PSDelegate --help | sed -e '1q' | awk '{ print $3 }'`
34561 fi
cristy09b53e12011-10-14 12:47:22 +000034562 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSVersion" >&5
34563$as_echo "$as_me: $GSVersion" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034564
34565 # GSAlphaDevice
cristy8b350f62009-11-15 23:12:43 +000034566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs alpha device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034567$as_echo_n "checking for gs alpha device... " >&6; }
34568 if $PSDelegate -q -dBATCH -sDEVICE=$GSAlphaDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34569 :
34570 else
34571 GSAlphaDevice=pnmraw
34572 fi
cristy09b53e12011-10-14 12:47:22 +000034573 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSAlphaDevice" >&5
34574$as_echo "$as_me: $GSAlphaDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034575
34576 # GSColorDevice
cristy8b350f62009-11-15 23:12:43 +000034577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs color device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034578$as_echo_n "checking for gs color device... " >&6; }
34579 if $PSDelegate -q -dBATCH -sDEVICE=$GSColorDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34580 :
34581 else
34582 GSColorDevice=pnmraw
34583 fi
cristy09b53e12011-10-14 12:47:22 +000034584 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSColorDevice" >&5
34585$as_echo "$as_me: $GSColorDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034586
34587 # GSCMYKDevice
cristy8b350f62009-11-15 23:12:43 +000034588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs CMYK device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034589$as_echo_n "checking for gs CMYK device... " >&6; }
34590 if $PSDelegate -q -dBATCH -sDEVICE=$GSCMYKDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34591 :
34592 else
34593 GSCMYKDevice=bmpsep8
34594 fi
cristy09b53e12011-10-14 12:47:22 +000034595 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSCMYKDevice" >&5
34596$as_echo "$as_me: $GSCMYKDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034597
34598 # GSMonoDevice
cristy8b350f62009-11-15 23:12:43 +000034599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs mono device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034600$as_echo_n "checking for gs mono device... " >&6; }
34601 if $PSDelegate -q -dBATCH -sDEVICE=$GSMonoDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34602 :
34603 else
34604 GSMonoDevice=$GSColorDevice
34605 fi
cristy09b53e12011-10-14 12:47:22 +000034606 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSMonoDevice" >&5
34607$as_echo "$as_me: $GSMonoDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034608
34609 # GSPDFDevice
cristy8b350f62009-11-15 23:12:43 +000034610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PDF writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034611$as_echo_n "checking for gs PDF writing device... " >&6; }
34612 if $PSDelegate -q -dBATCH -sDEVICE=$GSPDFDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34613 :
34614 else
34615 GSPDFDevice=nodevice
34616 fi
cristy09b53e12011-10-14 12:47:22 +000034617 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPDFDevice" >&5
34618$as_echo "$as_me: $GSPDFDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034619
34620 # GSPSDevice
cristy8b350f62009-11-15 23:12:43 +000034621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs PS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034622$as_echo_n "checking for gs PS writing device... " >&6; }
34623 if $PSDelegate -q -dBATCH -sDEVICE=$GSPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34624 :
34625 else
34626 GSPSDevice=nodevice
34627 fi
cristy09b53e12011-10-14 12:47:22 +000034628 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSPSDevice" >&5
34629$as_echo "$as_me: $GSPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034630
34631 # GSEPSDevice
cristy8b350f62009-11-15 23:12:43 +000034632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gs EPS writing device" >&5
cristy3ed852e2009-09-05 21:47:34 +000034633$as_echo_n "checking for gs EPS writing device... " >&6; }
34634 if $PSDelegate -q -dBATCH -sDEVICE=$GSEPSDevice -sOutputFile=/dev/null < /dev/null 2> /dev/null; then
34635 :
34636 else
34637 GSEPSDevice=nodevice
34638 fi
cristy09b53e12011-10-14 12:47:22 +000034639 { $as_echo "$as_me:${as_lineno-$LINENO}: $GSEPSDevice" >&5
34640$as_echo "$as_me: $GSEPSDevice" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034641fi
34642
34643
34644
34645
34646
34647
34648
34649
34650
34651
34652#
34653# PerlMagick-related configuration
34654#
34655
34656# Look for PERL if PerlMagick requested
34657# If name/path of desired PERL interpreter is specified, look for that one first
34658have_perl='no'
34659if test "$with_perl" != 'no'; then
cristy09b53e12011-10-14 12:47:22 +000034660 { $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
34661$as_echo "$as_me: -------------------------------------------------------------" >&6;}
cristy8b350f62009-11-15 23:12:43 +000034662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034663$as_echo_n "checking for Perl... " >&6; }
cristy09b53e12011-10-14 12:47:22 +000034664 { $as_echo "$as_me:${as_lineno-$LINENO}: " >&5
34665$as_echo "$as_me: " >&6;}
cristy3ed852e2009-09-05 21:47:34 +000034666 if test "$with_perl" != 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
cristy3ed852e2009-09-05 21:47:34 +000034668$as_echo_n "checking for perl... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034669if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034670 $as_echo_n "(cached) " >&6
34671else
34672 ac_cv_path_PERL="$with_perl"
34673fi
cristy8b350f62009-11-15 23:12:43 +000034674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034675$as_echo "$ac_cv_path_PERL" >&6; };
34676 PERL=$ac_cv_path_PERL
34677 have_perl="$ac_cv_path_PERL"
34678 else
34679 for ac_prog in perl perl5
34680do
34681 # Extract the first word of "$ac_prog", so it can be a program name with args.
34682set dummy $ac_prog; ac_word=$2
cristy8b350f62009-11-15 23:12:43 +000034683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
cristy3ed852e2009-09-05 21:47:34 +000034684$as_echo_n "checking for $ac_word... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034685if ${ac_cv_path_PERL+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034686 $as_echo_n "(cached) " >&6
34687else
34688 case $PERL in
34689 [\\/]* | ?:[\\/]*)
34690 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
34691 ;;
34692 *)
34693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
34694for as_dir in $PATH
34695do
34696 IFS=$as_save_IFS
34697 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000034698 for ac_exec_ext in '' $ac_executable_extensions; do
cristy14fefe52012-05-21 00:59:18 +000034699 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
cristy3ed852e2009-09-05 21:47:34 +000034700 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
cristy8b350f62009-11-15 23:12:43 +000034701 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
cristy3ed852e2009-09-05 21:47:34 +000034702 break 2
34703 fi
34704done
cristy8b350f62009-11-15 23:12:43 +000034705 done
cristy3ed852e2009-09-05 21:47:34 +000034706IFS=$as_save_IFS
34707
34708 ;;
34709esac
34710fi
34711PERL=$ac_cv_path_PERL
34712if test -n "$PERL"; then
cristy8b350f62009-11-15 23:12:43 +000034713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
cristy3ed852e2009-09-05 21:47:34 +000034714$as_echo "$PERL" >&6; }
34715else
cristy8b350f62009-11-15 23:12:43 +000034716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
cristy3ed852e2009-09-05 21:47:34 +000034717$as_echo "no" >&6; }
34718fi
34719
34720
34721 test -n "$PERL" && break
34722done
34723 if test "$ac_cv_path_PERL"; then
34724 have_perl="$ac_cv_path_PERL"
34725 fi
34726 fi
34727fi
34728
cristy949301e2010-01-06 01:38:40 +000034729if test "$with_perl" != 'yes' ; then
34730 DISTCHECK_CONFIG_FLAGS="${DISTCHECK_CONFIG_FLAGS} --with-perl=$with_perl "
34731fi
34732
34733PERL_SUPPORTS_DESTDIR='no'
34734
cristy3ed852e2009-09-05 21:47:34 +000034735with_perl_static='no'
34736with_perl_dynamic='no'
34737if test "$have_perl" != 'no'; then
34738 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'no'; then
34739 with_perl_static='yes'
34740 fi
34741 if test "$with_perl" != 'no' && test "$libtool_build_shared_libs" = 'yes'; then
34742 with_perl_dynamic='yes'
34743 fi
34744 # Is PERL's MakeMaker new enough to support DESTDIR?
cristy73bd4a52010-10-05 11:24:23 +000034745
34746
34747
34748
34749 if test -n "$PERL"; then :
34750
34751 ax_perl_version="5.8.1"
34752
34753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl version" >&5
34754$as_echo_n "checking for perl version... " >&6; }
34755
34756 perl_version=`$PERL --version 2>&1 | $GREP "This is perl" | $SED -e 's/.* v\([0-9]*\.[0-9]*\.[0-9]*\) .*/\1/'`
34757
34758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $perl_version" >&5
34759$as_echo "$perl_version" >&6; }
34760
34761 PERL_VERSION=$perl_version
34762
34763
34764
34765
34766
34767 # Used to indicate true or false condition
34768 ax_compare_version=false
34769
34770 # Convert the two version strings to be compared into a format that
34771 # allows a simple string comparison. The end result is that a version
34772 # string of the form 1.12.5-r617 will be converted to the form
34773 # 0001001200050617. In other words, each number is zero padded to four
34774 # digits, and non digits are removed.
34775
34776 ax_compare_version_A=`echo "$ax_perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34777 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34778 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34779 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34780 -e 's/[^0-9]//g'`
34781
34782
34783 ax_compare_version_B=`echo "$perl_version" | sed -e 's/\([0-9]*\)/Z\1Z/g' \
34784 -e 's/Z\([0-9]\)Z/Z0\1Z/g' \
34785 -e 's/Z\([0-9][0-9]\)Z/Z0\1Z/g' \
34786 -e 's/Z\([0-9][0-9][0-9]\)Z/Z0\1Z/g' \
34787 -e 's/[^0-9]//g'`
34788
34789
34790 ax_compare_version=`echo "x$ax_compare_version_A
34791x$ax_compare_version_B" | sed 's/^ *//' | sort | sed "s/x${ax_compare_version_A}/true/;s/x${ax_compare_version_B}/false/;1q"`
34792
34793
34794
34795 if test "$ax_compare_version" = "true" ; then
34796
34797 :
34798 PERL_SUPPORTS_DESTDIR='yes'
34799
34800 else
34801 :
34802 PERL_SUPPORTS_DESTDIR='no'
34803
34804 fi
34805
34806
34807else
34808
34809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find the perl interpreter" >&5
34810$as_echo "$as_me: WARNING: could not find the perl interpreter" >&2;}
34811 PERL_SUPPORTS_DESTDIR='no'
34812
cristy3ed852e2009-09-05 21:47:34 +000034813fi
cristy73bd4a52010-10-05 11:24:23 +000034814
34815fi
34816 if test "$have_perl" != 'no'; then
34817 WITH_PERL_TRUE=
34818 WITH_PERL_FALSE='#'
34819else
34820 WITH_PERL_TRUE='#'
34821 WITH_PERL_FALSE=
34822fi
34823
34824 if test $with_perl_static = 'yes'; then
34825 WITH_PERL_STATIC_TRUE=
34826 WITH_PERL_STATIC_FALSE='#'
34827else
34828 WITH_PERL_STATIC_TRUE='#'
34829 WITH_PERL_STATIC_FALSE=
34830fi
34831
34832 if test $with_perl_dynamic = 'yes'; then
34833 WITH_PERL_DYNAMIC_TRUE=
34834 WITH_PERL_DYNAMIC_FALSE='#'
34835else
34836 WITH_PERL_DYNAMIC_TRUE='#'
34837 WITH_PERL_DYNAMIC_FALSE=
34838fi
34839
cristy3ed852e2009-09-05 21:47:34 +000034840
34841
34842# Determine path to pick up MagickCore library from for use with building PerlMagick
34843MAGICKCORE_PATH="${LIB_DIR}"
34844if test $with_perl_static = 'yes'; then
34845 # Find out where libtool hides its uninstalled libraries (as libtool_objdir)
34846 libtool_objdir=$objdir
34847
34848 # Linker search path to library, followed by -lMagickCore
cristy4c08aed2011-07-01 19:47:50 +000034849 MAGICKCORE_PATH="${builddir}/MagickCore/${libtool_objdir}"
cristy3ed852e2009-09-05 21:47:34 +000034850fi
34851
34852
34853# Create a simple string containing format names for all delegate libraries
34854DELEGATES=''
34855if test "$have_autotrace" = 'yes'; then DELEGATES="$DELEGATES autotrace"; fi
34856if test "$have_bzlib" = 'yes'; then DELEGATES="$DELEGATES bzlib"; fi
34857if test "$have_djvu" = 'yes'; then DELEGATES="$DELEGATES djvu"; fi
34858if test "$have_dps" = 'yes'; then DELEGATES="$DELEGATES dps"; fi
34859if test "$have_fftw" = 'yes'; then DELEGATES="$DELEGATES fftw"; fi
34860if test "$have_fpx" = 'yes'; then DELEGATES="$DELEGATES fpx"; fi
34861if test "$have_fontconfig" = 'yes'; then DELEGATES="$DELEGATES fontconfig"; fi
34862if test "$have_freetype" = 'yes'; then DELEGATES="$DELEGATES freetype"; fi
34863if test "$have_gslib" = 'yes'; then DELEGATES="$DELEGATES gs"; fi
34864if test "$have_gvc" = 'yes'; then DELEGATES="$DELEGATES gvc"; fi
34865if test "$have_jbig" = 'yes'; then DELEGATES="$DELEGATES jbig"; fi
34866if test "$have_jpeg" = 'yes'; then
34867 DELEGATES="$DELEGATES jpeg";
34868 if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES jng"; fi
34869fi
34870if test "$have_jp2" = 'yes'; then DELEGATES="$DELEGATES jp2"; fi
cristy71203402010-06-18 13:12:03 +000034871if test "$have_lcms2" = 'yes'; then DELEGATES="$DELEGATES lcms2"; fi
cristy3ed852e2009-09-05 21:47:34 +000034872if test "$have_lcms" = 'yes'; then DELEGATES="$DELEGATES lcms"; fi
34873if test "$have_lqr" = 'yes'; then DELEGATES="$DELEGATES lqr"; fi
cristyfbb0ef02010-12-19 02:32:11 +000034874if test "$have_lzma" = 'yes'; then DELEGATES="$DELEGATES lzma"; fi
cristy3ed852e2009-09-05 21:47:34 +000034875if test "$have_ffmpeg" = 'yes'; then DELEGATES="$DELEGATES mpeg"; fi
34876if test "$have_openexr" = 'yes'; then DELEGATES="$DELEGATES openexr"; fi
cristy29d54c72012-04-09 12:08:27 +000034877if test "$have_pango" = 'yes'; then DELEGATES="$DELEGATES pango"; fi
cristy3ed852e2009-09-05 21:47:34 +000034878if test "$have_png" = 'yes'; then DELEGATES="$DELEGATES png"; fi
34879if test "$have_rsvg" = 'yes'; then DELEGATES="$DELEGATES rsvg"; fi
34880if test "$have_tiff" = 'yes'; then DELEGATES="$DELEGATES tiff"; fi
34881if test "$have_x" = 'yes'; then DELEGATES="$DELEGATES x11"; fi
34882if test "$have_xml" = 'yes'; then DELEGATES="$DELEGATES xml"; fi
34883if test "$have_wmf" = 'yes'; then DELEGATES="$DELEGATES wmf"; fi
34884if test "$have_zlib" = 'yes'; then DELEGATES="$DELEGATES zlib"; fi
34885
34886
34887
34888#
34889# Handle special compiler flags
34890#
34891
34892# Add '-p' if prof source profiling support enabled
34893if test "$enable_prof" = 'yes'; then
34894 CFLAGS="-p $CFLAGS"
34895 CXXFLAGS="-p $CXXFLAGS"
34896 LDFLAGS="-p $LDFLAGS"
34897fi
34898
34899# Add '-pg' if gprof source profiling support enabled
34900if test "$enable_gprof" = 'yes'; then
34901 CFLAGS="-pg $CFLAGS"
34902 CXXFLAGS="-pg $CXXFLAGS"
34903 LDFLAGS="-pg $LDFLAGS"
34904fi
34905
34906# Add '-ftest-coverage -fprofile-arcs' if gcov source profiling support enabled
34907# This is a gcc-specific feature
34908if test "$enable_gcov" = 'yes'; then
cristy8b350f62009-11-15 23:12:43 +000034909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034910$as_echo_n "checking for _gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034911if ${ac_cv_lib_gcov__gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034912 $as_echo_n "(cached) " >&6
34913else
34914 ac_check_lib_save_LIBS=$LIBS
34915LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034916cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034917/* end confdefs.h. */
34918
34919/* Override any GCC internal prototype to avoid an error.
34920 Use char because int might match the return type of a GCC
34921 builtin and then its argument prototype would still apply. */
34922#ifdef __cplusplus
34923extern "C"
34924#endif
34925char _gcov_init ();
34926int
34927main ()
34928{
34929return _gcov_init ();
34930 ;
34931 return 0;
34932}
34933_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034934if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034935 ac_cv_lib_gcov__gcov_init=yes
34936else
cristy8b350f62009-11-15 23:12:43 +000034937 ac_cv_lib_gcov__gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034938fi
cristy8b350f62009-11-15 23:12:43 +000034939rm -f core conftest.err conftest.$ac_objext \
34940 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034941LIBS=$ac_check_lib_save_LIBS
34942fi
cristy8b350f62009-11-15 23:12:43 +000034943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov__gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034944$as_echo "$ac_cv_lib_gcov__gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034945if test "x$ac_cv_lib_gcov__gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034946 cat >>confdefs.h <<_ACEOF
34947#define HAVE_LIBGCOV 1
34948_ACEOF
34949
34950 LIBS="-lgcov $LIBS"
34951
34952fi
34953
cristy8b350f62009-11-15 23:12:43 +000034954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gcov_init in -lgcov" >&5
cristy3ed852e2009-09-05 21:47:34 +000034955$as_echo_n "checking for __gcov_init in -lgcov... " >&6; }
cristyda16f162011-02-19 23:52:17 +000034956if ${ac_cv_lib_gcov___gcov_init+:} false; then :
cristy3ed852e2009-09-05 21:47:34 +000034957 $as_echo_n "(cached) " >&6
34958else
34959 ac_check_lib_save_LIBS=$LIBS
34960LIBS="-lgcov $LIBS"
cristy8b350f62009-11-15 23:12:43 +000034961cat confdefs.h - <<_ACEOF >conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034962/* end confdefs.h. */
34963
34964/* Override any GCC internal prototype to avoid an error.
34965 Use char because int might match the return type of a GCC
34966 builtin and then its argument prototype would still apply. */
34967#ifdef __cplusplus
34968extern "C"
34969#endif
34970char __gcov_init ();
34971int
34972main ()
34973{
34974return __gcov_init ();
34975 ;
34976 return 0;
34977}
34978_ACEOF
cristy8b350f62009-11-15 23:12:43 +000034979if ac_fn_c_try_link "$LINENO"; then :
cristy3ed852e2009-09-05 21:47:34 +000034980 ac_cv_lib_gcov___gcov_init=yes
34981else
cristy8b350f62009-11-15 23:12:43 +000034982 ac_cv_lib_gcov___gcov_init=no
cristy3ed852e2009-09-05 21:47:34 +000034983fi
cristy8b350f62009-11-15 23:12:43 +000034984rm -f core conftest.err conftest.$ac_objext \
34985 conftest$ac_exeext conftest.$ac_ext
cristy3ed852e2009-09-05 21:47:34 +000034986LIBS=$ac_check_lib_save_LIBS
34987fi
cristy8b350f62009-11-15 23:12:43 +000034988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcov___gcov_init" >&5
cristy3ed852e2009-09-05 21:47:34 +000034989$as_echo "$ac_cv_lib_gcov___gcov_init" >&6; }
cristyda16f162011-02-19 23:52:17 +000034990if test "x$ac_cv_lib_gcov___gcov_init" = xyes; then :
cristy3ed852e2009-09-05 21:47:34 +000034991 cat >>confdefs.h <<_ACEOF
34992#define HAVE_LIBGCOV 1
34993_ACEOF
34994
34995 LIBS="-lgcov $LIBS"
34996
34997fi
34998
34999 case "$target_os" in
35000 darwin*)
35001 OSX_GCOV_LDFLAG="-Wl,-single_module"
35002 ;;
35003 *)
35004 OSX_GCOV_LDFLAG=""
35005 ;;
35006 esac
35007
35008 CFLAGS="-ftest-coverage -fprofile-arcs $CFLAGS"
35009 CXXFLAGS="-ftest-coverage -fprofile-arcs $CXXFLAGS"
35010 LDFLAGS="-ftest-coverage -fprofile-arcs $LDFLAGS"
35011fi
35012
35013#
35014# Build library dependency list for libMagickCore
35015#
35016
cristyc6722092012-10-14 00:19:31 +000035017if test "$build_modules" != 'no'; then
cristy5eef09f2012-10-16 12:08:28 +000035018 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 $LTDL_LIBS $GDI32_LIBS $MATH_LIBS $GOMP_LIBS $CL_LIBS $UMEM_LIBS $THREAD_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035019else
cristy3a75f062012-09-08 23:29:40 +000035020 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 +000035021fi
35022
35023
35024#
35025# Remove extraneous spaces from output variables (asthetic)
35026#
35027X_CFLAGS=`echo $X_CFLAGS | sed -e 's/ */ /g'`
35028X_PRE_LIBS=`echo $X_PRE_LIBS | sed -e 's/ */ /g'`
35029X_LIBS=`echo $X_LIBS | sed -e 's/ */ /g'`
35030X_EXTRA_LIBS=`echo $X_EXTRA_LIBS | sed -e 's/ */ /g'`
35031
35032CC=`echo $CC | sed -e 's/ */ /g'`
35033CFLAGS=`echo $CFLAGS | sed -e 's/ */ /g'`
35034CPPFLAGS=`echo $CPPFLAGS | sed -e 's/ */ /g'`
35035CXXFLAGS=`echo $CXXFLAGS | sed -e 's/ */ /g'`
35036DELEGATES=`echo $DELEGATES | sed -e 's/^ //g'`
35037DISTCHECK_CONFIG_FLAGS=`echo $DISTCHECK_CONFIG_FLAGS | sed -e 's/ */ /g'`
35038LDFLAGS=`echo $LDFLAGS | sed -e 's/ */ /g'`
35039TESTED_LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35040MAGICK_DEP_LIBS=`echo $MAGICK_DEP_LIBS | sed -e 's/ */ /g'`
35041#LIBS=`echo $LIBS | sed -e 's/ */ /g'`
35042
35043# Pass only user-provided LIBS as "global" libraries
35044LIBS=$USER_LIBS
35045
35046#AC_SUBST(CPPFLAGS)
35047
35048#AC_SUBST(LDFLAGS)
35049#AC_SUBST(X_PRE_LIBS)
35050#AC_SUBST(X_LIBS)
35051#AC_SUBST(X_EXTRA_LIBS)
35052
35053MAGICK_CFLAGS=$CFLAGS
35054MAGICK_CXXFLAGS="$CXXFLAGS"
35055MAGICK_CPPFLAGS=`echo $MAGICK_CPPFLAGS | sed -e 's/ */ /g'`
35056MAGICK_PCFLAGS=`echo $MAGICK_PCFLAGS | sed -e 's/ */ /g'`
35057MAGICK_LDFLAGS="-L$LIB_DIR $LDFLAGS"
cristyc6722092012-10-14 00:19:31 +000035058MAGICK_LIBS="-lMagickCore $MAGICK_DEP_LIBS"
cristy3ed852e2009-09-05 21:47:34 +000035059
35060
35061
35062
35063
35064
35065
35066
cristyfd9dcd42010-08-08 18:07:02 +000035067
cristy3ed852e2009-09-05 21:47:34 +000035068# Set configured scripts to executable.
35069ac_config_commands="$ac_config_commands default"
35070
cristy2bd4b6e2012-07-22 15:29:11 +000035071ac_config_commands="$ac_config_commands magick.sh.in"
35072
cristy3ed852e2009-09-05 21:47:34 +000035073ac_config_commands="$ac_config_commands MagickCore-config.in"
35074
cristy3ed852e2009-09-05 21:47:34 +000035075ac_config_commands="$ac_config_commands MagickWand-config.in"
35076
cristy3ed852e2009-09-05 21:47:34 +000035077ac_config_commands="$ac_config_commands Magick++-config.in"
35078
35079ac_config_commands="$ac_config_commands PerlMagick/check.sh.in"
35080
35081
cristy09b53e12011-10-14 12:47:22 +000035082{ $as_echo "$as_me:${as_lineno-$LINENO}: -------------------------------------------------------------" >&5
35083$as_echo "$as_me: -------------------------------------------------------------" >&6;}
35084{ $as_echo "$as_me:${as_lineno-$LINENO}: Update ImageMagick configuration" >&5
35085$as_echo "$as_me: Update ImageMagick configuration" >&6;}
cristy3ed852e2009-09-05 21:47:34 +000035086cat >confcache <<\_ACEOF
35087# This file is a shell script that caches the results of configure
35088# tests run on this system so they can be shared between configure
35089# scripts and configure runs, see configure's option --config-cache.
35090# It is not useful on other systems. If it contains results you don't
35091# want to keep, you may remove or edit it.
35092#
35093# config.status only pays attention to the cache file if you give it
35094# the --recheck option to rerun configure.
35095#
35096# `ac_cv_env_foo' variables (set or unset) will be overridden when
35097# loading this file, other *unset* `ac_cv_foo' will be assigned the
35098# following values.
35099
35100_ACEOF
35101
35102# The following way of writing the cache mishandles newlines in values,
35103# but we know of no workaround that is simple, portable, and efficient.
35104# So, we kill variables containing newlines.
35105# Ultrix sh set writes to stderr and can't be redirected directly,
35106# and sets the high bit in the cache file unless we assign to the vars.
35107(
35108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
35109 eval ac_val=\$$ac_var
35110 case $ac_val in #(
35111 *${as_nl}*)
35112 case $ac_var in #(
cristy8b350f62009-11-15 23:12:43 +000035113 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
cristy3ed852e2009-09-05 21:47:34 +000035114$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
35115 esac
35116 case $ac_var in #(
35117 _ | IFS | as_nl) ;; #(
35118 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
cristy8b350f62009-11-15 23:12:43 +000035119 *) { eval $ac_var=; unset $ac_var;} ;;
cristy3ed852e2009-09-05 21:47:34 +000035120 esac ;;
35121 esac
35122 done
35123
35124 (set) 2>&1 |
35125 case $as_nl`(ac_space=' '; set) 2>&1` in #(
35126 *${as_nl}ac_space=\ *)
cristy8b350f62009-11-15 23:12:43 +000035127 # `set' does not quote correctly, so add quotes: double-quote
35128 # substitution turns \\\\ into \\, and sed turns \\ into \.
cristy3ed852e2009-09-05 21:47:34 +000035129 sed -n \
35130 "s/'/'\\\\''/g;
35131 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
35132 ;; #(
35133 *)
35134 # `set' quotes correctly as required by POSIX, so do not add quotes.
35135 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
35136 ;;
35137 esac |
35138 sort
35139) |
35140 sed '
35141 /^ac_cv_env_/b end
35142 t clear
35143 :clear
35144 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
35145 t end
35146 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
35147 :end' >>confcache
35148if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
35149 if test -w "$cache_file"; then
cristyda16f162011-02-19 23:52:17 +000035150 if test "x$cache_file" != "x/dev/null"; then
cristy8b350f62009-11-15 23:12:43 +000035151 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035152$as_echo "$as_me: updating cache $cache_file" >&6;}
cristyda16f162011-02-19 23:52:17 +000035153 if test ! -f "$cache_file" || test -h "$cache_file"; then
35154 cat confcache >"$cache_file"
35155 else
35156 case $cache_file in #(
35157 */* | ?:*)
35158 mv -f confcache "$cache_file"$$ &&
35159 mv -f "$cache_file"$$ "$cache_file" ;; #(
35160 *)
35161 mv -f confcache "$cache_file" ;;
35162 esac
35163 fi
35164 fi
cristy3ed852e2009-09-05 21:47:34 +000035165 else
cristy8b350f62009-11-15 23:12:43 +000035166 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000035167$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
35168 fi
35169fi
35170rm -f confcache
35171
35172test "x$prefix" = xNONE && prefix=$ac_default_prefix
35173# Let make expand exec_prefix.
35174test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
35175
35176DEFS=-DHAVE_CONFIG_H
35177
35178ac_libobjs=
35179ac_ltlibobjs=
cristy98dddb52010-11-04 00:30:15 +000035180U=
cristy3ed852e2009-09-05 21:47:34 +000035181for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
35182 # 1. Remove the extension, and $U if already installed.
35183 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
35184 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
35185 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
35186 # will be set to the directory where LIBOBJS objects are built.
cristy8b350f62009-11-15 23:12:43 +000035187 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
35188 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
cristy3ed852e2009-09-05 21:47:34 +000035189done
35190LIBOBJS=$ac_libobjs
35191
35192LTLIBOBJS=$ac_ltlibobjs
35193
35194
cristyc0890a62012-07-19 00:18:20 +000035195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
35196$as_echo_n "checking that generated files are newer than configure... " >&6; }
35197 if test -n "$am_sleep_pid"; then
35198 # Hide warnings about reused PIDs.
35199 wait $am_sleep_pid 2>/dev/null
35200 fi
35201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
35202$as_echo "done" >&6; }
cristy73bd4a52010-10-05 11:24:23 +000035203 if test -n "$EXEEXT"; then
35204 am__EXEEXT_TRUE=
35205 am__EXEEXT_FALSE='#'
35206else
35207 am__EXEEXT_TRUE='#'
35208 am__EXEEXT_FALSE=
35209fi
cristy3ed852e2009-09-05 21:47:34 +000035210
cristy73bd4a52010-10-05 11:24:23 +000035211if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035212 as_fn_error $? "conditional \"AMDEP\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035213Usually this means the macro was only invoked conditionally." "$LINENO" 5
35214fi
35215if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035216 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035217Usually this means the macro was only invoked conditionally." "$LINENO" 5
35218fi
35219if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035220 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035221Usually this means the macro was only invoked conditionally." "$LINENO" 5
35222fi
35223if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035224 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035225Usually this means the macro was only invoked conditionally." "$LINENO" 5
35226fi
cristy9b86f202012-11-28 21:55:35 +000035227if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
35228 as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
35229Usually this means the macro was only invoked conditionally." "$LINENO" 5
35230fi
cristy73bd4a52010-10-05 11:24:23 +000035231if test -z "${WINGDI32_DELEGATE_TRUE}" && test -z "${WINGDI32_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035232 as_fn_error $? "conditional \"WINGDI32_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035233Usually this means the macro was only invoked conditionally." "$LINENO" 5
35234fi
35235if test -z "${WIN32_NATIVE_BUILD_TRUE}" && test -z "${WIN32_NATIVE_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035236 as_fn_error $? "conditional \"WIN32_NATIVE_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035237Usually this means the macro was only invoked conditionally." "$LINENO" 5
35238fi
35239if test -z "${CYGWIN_BUILD_TRUE}" && test -z "${CYGWIN_BUILD_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035240 as_fn_error $? "conditional \"CYGWIN_BUILD\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035241Usually this means the macro was only invoked conditionally." "$LINENO" 5
35242fi
35243if test -z "${USING_CL_TRUE}" && test -z "${USING_CL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035244 as_fn_error $? "conditional \"USING_CL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035245Usually this means the macro was only invoked conditionally." "$LINENO" 5
35246fi
cristy73bd4a52010-10-05 11:24:23 +000035247if test -z "${WITH_SHARED_LIBS_TRUE}" && test -z "${WITH_SHARED_LIBS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035248 as_fn_error $? "conditional \"WITH_SHARED_LIBS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035249Usually this means the macro was only invoked conditionally." "$LINENO" 5
35250fi
35251if test -z "${WITH_MODULES_TRUE}" && test -z "${WITH_MODULES_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035252 as_fn_error $? "conditional \"WITH_MODULES\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035253Usually this means the macro was only invoked conditionally." "$LINENO" 5
35254fi
cristy73bd4a52010-10-05 11:24:23 +000035255if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035256 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035257Usually this means the macro was only invoked conditionally." "$LINENO" 5
35258fi
cristy71d8c202012-03-20 17:05:01 +000035259if test -z "${LEGACY_SUPPORT_TRUE}" && test -z "${LEGACY_SUPPORT_FALSE}"; then
35260 as_fn_error $? "conditional \"LEGACY_SUPPORT\" was never defined.
35261Usually this means the macro was only invoked conditionally." "$LINENO" 5
35262fi
cristy73bd4a52010-10-05 11:24:23 +000035263
35264if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035265 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035266Usually this means the macro was only invoked conditionally." "$LINENO" 5
35267fi
35268if test -z "${WITH_MAGICK_PLUS_PLUS_TRUE}" && test -z "${WITH_MAGICK_PLUS_PLUS_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035269 as_fn_error $? "conditional \"WITH_MAGICK_PLUS_PLUS\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035270Usually this means the macro was only invoked conditionally." "$LINENO" 5
35271fi
35272if test -z "${HasUMEM_TRUE}" && test -z "${HasUMEM_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035273 as_fn_error $? "conditional \"HasUMEM\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035274Usually this means the macro was only invoked conditionally." "$LINENO" 5
35275fi
35276if test -z "${BZLIB_DELEGATE_TRUE}" && test -z "${BZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035277 as_fn_error $? "conditional \"BZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035278Usually this means the macro was only invoked conditionally." "$LINENO" 5
35279fi
35280if test -z "${X11_DELEGATE_TRUE}" && test -z "${X11_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035281 as_fn_error $? "conditional \"X11_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035282Usually this means the macro was only invoked conditionally." "$LINENO" 5
35283fi
35284if test -z "${ZLIB_DELEGATE_TRUE}" && test -z "${ZLIB_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035285 as_fn_error $? "conditional \"ZLIB_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035286Usually this means the macro was only invoked conditionally." "$LINENO" 5
35287fi
cristy5eef09f2012-10-16 12:08:28 +000035288if test -z "${WITH_LTDL_TRUE}" && test -z "${WITH_LTDL_FALSE}"; then
35289 as_fn_error $? "conditional \"WITH_LTDL\" was never defined.
35290Usually this means the macro was only invoked conditionally." "$LINENO" 5
35291fi
cristy73bd4a52010-10-05 11:24:23 +000035292if test -z "${AUTOTRACE_DELEGATE_TRUE}" && test -z "${AUTOTRACE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035293 as_fn_error $? "conditional \"AUTOTRACE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035294Usually this means the macro was only invoked conditionally." "$LINENO" 5
35295fi
35296if test -z "${DPS_DELEGATE_TRUE}" && test -z "${DPS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035297 as_fn_error $? "conditional \"DPS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035298Usually this means the macro was only invoked conditionally." "$LINENO" 5
35299fi
35300if test -z "${DJVU_DELEGATE_TRUE}" && test -z "${DJVU_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035301 as_fn_error $? "conditional \"DJVU_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035302Usually this means the macro was only invoked conditionally." "$LINENO" 5
35303fi
35304if test -z "${FFTW_DELEGATE_TRUE}" && test -z "${FFTW_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035305 as_fn_error $? "conditional \"FFTW_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035306Usually this means the macro was only invoked conditionally." "$LINENO" 5
35307fi
35308if test -z "${FPX_DELEGATE_TRUE}" && test -z "${FPX_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035309 as_fn_error $? "conditional \"FPX_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035310Usually this means the macro was only invoked conditionally." "$LINENO" 5
35311fi
35312if test -z "${FONTCONFIG_DELEGATE_TRUE}" && test -z "${FONTCONFIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035313 as_fn_error $? "conditional \"FONTCONFIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035314Usually this means the macro was only invoked conditionally." "$LINENO" 5
35315fi
35316if test -z "${FREETYPE_DELEGATE_TRUE}" && test -z "${FREETYPE_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035317 as_fn_error $? "conditional \"FREETYPE_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035318Usually this means the macro was only invoked conditionally." "$LINENO" 5
35319fi
35320if test -z "${GS_DELEGATE_TRUE}" && test -z "${GS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035321 as_fn_error $? "conditional \"GS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035322Usually this means the macro was only invoked conditionally." "$LINENO" 5
35323fi
35324if test -z "${GVC_DELEGATE_TRUE}" && test -z "${GVC_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035325 as_fn_error $? "conditional \"GVC_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035326Usually this means the macro was only invoked conditionally." "$LINENO" 5
35327fi
35328if test -z "${JBIG_DELEGATE_TRUE}" && test -z "${JBIG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035329 as_fn_error $? "conditional \"JBIG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035330Usually this means the macro was only invoked conditionally." "$LINENO" 5
35331fi
35332if test -z "${JPEG_DELEGATE_TRUE}" && test -z "${JPEG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035333 as_fn_error $? "conditional \"JPEG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035334Usually this means the macro was only invoked conditionally." "$LINENO" 5
35335fi
35336if test -z "${JP2_DELEGATE_TRUE}" && test -z "${JP2_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035337 as_fn_error $? "conditional \"JP2_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035338Usually this means the macro was only invoked conditionally." "$LINENO" 5
35339fi
35340if test -z "${LCMS_DELEGATE_TRUE}" && test -z "${LCMS_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035341 as_fn_error $? "conditional \"LCMS_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035342Usually this means the macro was only invoked conditionally." "$LINENO" 5
35343fi
35344if test -z "${LQR_DELEGATE_TRUE}" && test -z "${LQR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035345 as_fn_error $? "conditional \"LQR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035346Usually this means the macro was only invoked conditionally." "$LINENO" 5
35347fi
cristyfbb0ef02010-12-19 02:32:11 +000035348if test -z "${LZMA_DELEGATE_TRUE}" && test -z "${LZMA_DELEGATE_FALSE}"; then
35349 as_fn_error $? "conditional \"LZMA_DELEGATE\" was never defined.
35350Usually this means the macro was only invoked conditionally." "$LINENO" 5
35351fi
cristy73bd4a52010-10-05 11:24:23 +000035352if test -z "${OPENEXR_DELEGATE_TRUE}" && test -z "${OPENEXR_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035353 as_fn_error $? "conditional \"OPENEXR_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035354Usually this means the macro was only invoked conditionally." "$LINENO" 5
35355fi
cristy41cbe8a2011-10-27 01:35:18 +000035356if test -z "${PANGO_DELEGATE_TRUE}" && test -z "${PANGO_DELEGATE_FALSE}"; then
35357 as_fn_error $? "conditional \"PANGO_DELEGATE\" was never defined.
35358Usually this means the macro was only invoked conditionally." "$LINENO" 5
35359fi
cristya054b762012-03-26 23:16:00 +000035360if test -z "${PANGOCAIRO_DELEGATE_TRUE}" && test -z "${PANGOCAIRO_DELEGATE_FALSE}"; then
35361 as_fn_error $? "conditional \"PANGOCAIRO_DELEGATE\" was never defined.
cristy41cbe8a2011-10-27 01:35:18 +000035362Usually this means the macro was only invoked conditionally." "$LINENO" 5
35363fi
cristy73bd4a52010-10-05 11:24:23 +000035364if test -z "${PNG_DELEGATE_TRUE}" && test -z "${PNG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035365 as_fn_error $? "conditional \"PNG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035366Usually this means the macro was only invoked conditionally." "$LINENO" 5
35367fi
35368if test -z "${RSVG_DELEGATE_TRUE}" && test -z "${RSVG_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035369 as_fn_error $? "conditional \"RSVG_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035370Usually this means the macro was only invoked conditionally." "$LINENO" 5
35371fi
35372if test -z "${CAIRO_DELEGATE_TRUE}" && test -z "${CAIRO_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035373 as_fn_error $? "conditional \"CAIRO_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035374Usually this means the macro was only invoked conditionally." "$LINENO" 5
35375fi
35376if test -z "${TIFF_DELEGATE_TRUE}" && test -z "${TIFF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035377 as_fn_error $? "conditional \"TIFF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035378Usually this means the macro was only invoked conditionally." "$LINENO" 5
35379fi
cristyb1860752011-03-14 00:27:46 +000035380if test -z "${WEBP_DELEGATE_TRUE}" && test -z "${WEBP_DELEGATE_FALSE}"; then
35381 as_fn_error $? "conditional \"WEBP_DELEGATE\" was never defined.
35382Usually this means the macro was only invoked conditionally." "$LINENO" 5
35383fi
cristy73bd4a52010-10-05 11:24:23 +000035384if test -z "${WMF_DELEGATE_TRUE}" && test -z "${WMF_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035385 as_fn_error $? "conditional \"WMF_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035386Usually this means the macro was only invoked conditionally." "$LINENO" 5
35387fi
35388if test -z "${XML_DELEGATE_TRUE}" && test -z "${XML_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035389 as_fn_error $? "conditional \"XML_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035390Usually this means the macro was only invoked conditionally." "$LINENO" 5
35391fi
35392if test -z "${RPM_DELEGATE_TRUE}" && test -z "${RPM_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035393 as_fn_error $? "conditional \"RPM_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035394Usually this means the macro was only invoked conditionally." "$LINENO" 5
35395fi
35396if test -z "${P7ZIP_DELEGATE_TRUE}" && test -z "${P7ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035397 as_fn_error $? "conditional \"P7ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035398Usually this means the macro was only invoked conditionally." "$LINENO" 5
35399fi
35400if test -z "${ZIP_DELEGATE_TRUE}" && test -z "${ZIP_DELEGATE_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035401 as_fn_error $? "conditional \"ZIP_DELEGATE\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035402Usually this means the macro was only invoked conditionally." "$LINENO" 5
35403fi
35404if test -z "${WITH_PERL_TRUE}" && test -z "${WITH_PERL_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035405 as_fn_error $? "conditional \"WITH_PERL\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035406Usually this means the macro was only invoked conditionally." "$LINENO" 5
35407fi
35408if test -z "${WITH_PERL_STATIC_TRUE}" && test -z "${WITH_PERL_STATIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035409 as_fn_error $? "conditional \"WITH_PERL_STATIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035410Usually this means the macro was only invoked conditionally." "$LINENO" 5
35411fi
35412if test -z "${WITH_PERL_DYNAMIC_TRUE}" && test -z "${WITH_PERL_DYNAMIC_FALSE}"; then
cristy98dddb52010-11-04 00:30:15 +000035413 as_fn_error $? "conditional \"WITH_PERL_DYNAMIC\" was never defined.
cristy73bd4a52010-10-05 11:24:23 +000035414Usually this means the macro was only invoked conditionally." "$LINENO" 5
35415fi
cristy3ed852e2009-09-05 21:47:34 +000035416
cristyda16f162011-02-19 23:52:17 +000035417: "${CONFIG_STATUS=./config.status}"
cristy3ed852e2009-09-05 21:47:34 +000035418ac_write_fail=0
35419ac_clean_files_save=$ac_clean_files
35420ac_clean_files="$ac_clean_files $CONFIG_STATUS"
cristy8b350f62009-11-15 23:12:43 +000035421{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
cristy3ed852e2009-09-05 21:47:34 +000035422$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
cristy8b350f62009-11-15 23:12:43 +000035423as_write_fail=0
35424cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035425#! $SHELL
35426# Generated by $as_me.
35427# Run this file to recreate the current configuration.
35428# Compiler output produced by configure, useful for debugging
35429# configure, is in config.log if it exists.
35430
35431debug=false
35432ac_cs_recheck=false
35433ac_cs_silent=false
cristy3ed852e2009-09-05 21:47:34 +000035434
cristy8b350f62009-11-15 23:12:43 +000035435SHELL=\${CONFIG_SHELL-$SHELL}
35436export SHELL
35437_ASEOF
35438cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
35439## -------------------- ##
35440## M4sh Initialization. ##
35441## -------------------- ##
cristy3ed852e2009-09-05 21:47:34 +000035442
35443# Be more Bourne compatible
35444DUALCASE=1; export DUALCASE # for MKS sh
cristy8b350f62009-11-15 23:12:43 +000035445if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
cristy3ed852e2009-09-05 21:47:34 +000035446 emulate sh
35447 NULLCMD=:
35448 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
35449 # is contrary to our usage. Disable this feature.
35450 alias -g '${1+"$@"}'='"$@"'
35451 setopt NO_GLOB_SUBST
35452else
cristy8b350f62009-11-15 23:12:43 +000035453 case `(set -o) 2>/dev/null` in #(
35454 *posix*) :
35455 set -o posix ;; #(
35456 *) :
35457 ;;
cristy3ed852e2009-09-05 21:47:34 +000035458esac
cristy3ed852e2009-09-05 21:47:34 +000035459fi
35460
35461
cristy3ed852e2009-09-05 21:47:34 +000035462as_nl='
35463'
35464export as_nl
35465# Printing a long string crashes Solaris 7 /usr/bin/printf.
35466as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
35467as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
35468as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
cristy8b350f62009-11-15 23:12:43 +000035469# Prefer a ksh shell builtin over an external printf program on Solaris,
35470# but without wasting forks for bash or zsh.
35471if test -z "$BASH_VERSION$ZSH_VERSION" \
35472 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
35473 as_echo='print -r --'
35474 as_echo_n='print -rn --'
35475elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
cristy3ed852e2009-09-05 21:47:34 +000035476 as_echo='printf %s\n'
35477 as_echo_n='printf %s'
35478else
35479 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
35480 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
35481 as_echo_n='/usr/ucb/echo -n'
35482 else
35483 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
35484 as_echo_n_body='eval
35485 arg=$1;
cristy8b350f62009-11-15 23:12:43 +000035486 case $arg in #(
cristy3ed852e2009-09-05 21:47:34 +000035487 *"$as_nl"*)
35488 expr "X$arg" : "X\\(.*\\)$as_nl";
35489 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
35490 esac;
35491 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
35492 '
35493 export as_echo_n_body
35494 as_echo_n='sh -c $as_echo_n_body as_echo'
35495 fi
35496 export as_echo_body
35497 as_echo='sh -c $as_echo_body as_echo'
35498fi
35499
35500# The user is always right.
35501if test "${PATH_SEPARATOR+set}" != set; then
35502 PATH_SEPARATOR=:
35503 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
35504 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
35505 PATH_SEPARATOR=';'
35506 }
35507fi
35508
cristy3ed852e2009-09-05 21:47:34 +000035509
35510# IFS
35511# We need space, tab and new line, in precisely that order. Quoting is
35512# there to prevent editors from complaining about space-tab.
35513# (If _AS_PATH_WALK were called with IFS unset, it would disable word
35514# splitting by setting IFS to empty value.)
35515IFS=" "" $as_nl"
35516
35517# Find who we are. Look in the path if we contain no directory separator.
cristyda16f162011-02-19 23:52:17 +000035518as_myself=
cristy8b350f62009-11-15 23:12:43 +000035519case $0 in #((
cristy3ed852e2009-09-05 21:47:34 +000035520 *[\\/]* ) as_myself=$0 ;;
35521 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
35522for as_dir in $PATH
35523do
35524 IFS=$as_save_IFS
35525 test -z "$as_dir" && as_dir=.
cristy8b350f62009-11-15 23:12:43 +000035526 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
35527 done
cristy3ed852e2009-09-05 21:47:34 +000035528IFS=$as_save_IFS
35529
35530 ;;
35531esac
35532# We did not find ourselves, most probably we were run as `sh COMMAND'
35533# in which case we are not to be found in the path.
35534if test "x$as_myself" = x; then
35535 as_myself=$0
35536fi
35537if test ! -f "$as_myself"; then
35538 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
cristy8b350f62009-11-15 23:12:43 +000035539 exit 1
cristy3ed852e2009-09-05 21:47:34 +000035540fi
35541
cristy8b350f62009-11-15 23:12:43 +000035542# Unset variables that we do not need and which cause bugs (e.g. in
35543# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
35544# suppresses any "Segmentation fault" message there. '((' could
35545# trigger a bug in pdksh 5.2.14.
35546for as_var in BASH_ENV ENV MAIL MAILPATH
35547do eval test x\${$as_var+set} = xset \
35548 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
cristy3ed852e2009-09-05 21:47:34 +000035549done
35550PS1='$ '
35551PS2='> '
35552PS4='+ '
35553
35554# NLS nuisances.
35555LC_ALL=C
35556export LC_ALL
35557LANGUAGE=C
35558export LANGUAGE
35559
cristy8b350f62009-11-15 23:12:43 +000035560# CDPATH.
35561(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
35562
35563
cristy98dddb52010-11-04 00:30:15 +000035564# as_fn_error STATUS ERROR [LINENO LOG_FD]
35565# ----------------------------------------
cristy8b350f62009-11-15 23:12:43 +000035566# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
35567# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
cristy98dddb52010-11-04 00:30:15 +000035568# script with STATUS, using 1 if that was 0.
cristy8b350f62009-11-15 23:12:43 +000035569as_fn_error ()
35570{
cristy98dddb52010-11-04 00:30:15 +000035571 as_status=$1; test $as_status -eq 0 && as_status=1
35572 if test "$4"; then
35573 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
35574 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
cristy8b350f62009-11-15 23:12:43 +000035575 fi
cristy98dddb52010-11-04 00:30:15 +000035576 $as_echo "$as_me: error: $2" >&2
cristy8b350f62009-11-15 23:12:43 +000035577 as_fn_exit $as_status
35578} # as_fn_error
35579
35580
35581# as_fn_set_status STATUS
35582# -----------------------
35583# Set $? to STATUS, without forking.
35584as_fn_set_status ()
35585{
35586 return $1
35587} # as_fn_set_status
35588
35589# as_fn_exit STATUS
35590# -----------------
35591# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
35592as_fn_exit ()
35593{
35594 set +e
35595 as_fn_set_status $1
35596 exit $1
35597} # as_fn_exit
35598
35599# as_fn_unset VAR
35600# ---------------
35601# Portably unset VAR.
35602as_fn_unset ()
35603{
35604 { eval $1=; unset $1;}
35605}
35606as_unset=as_fn_unset
35607# as_fn_append VAR VALUE
35608# ----------------------
35609# Append the text in VALUE to the end of the definition contained in VAR. Take
35610# advantage of any shell optimizations that allow amortized linear growth over
35611# repeated appends, instead of the typical quadratic growth present in naive
35612# implementations.
35613if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
35614 eval 'as_fn_append ()
35615 {
35616 eval $1+=\$2
35617 }'
35618else
35619 as_fn_append ()
35620 {
35621 eval $1=\$$1\$2
35622 }
35623fi # as_fn_append
35624
35625# as_fn_arith ARG...
35626# ------------------
35627# Perform arithmetic evaluation on the ARGs, and store the result in the
35628# global $as_val. Take advantage of shells that can avoid forks. The arguments
35629# must be portable across $(()) and expr.
35630if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
35631 eval 'as_fn_arith ()
35632 {
35633 as_val=$(( $* ))
35634 }'
35635else
35636 as_fn_arith ()
35637 {
35638 as_val=`expr "$@" || test $? -eq 1`
35639 }
35640fi # as_fn_arith
35641
35642
cristy3ed852e2009-09-05 21:47:34 +000035643if expr a : '\(a\)' >/dev/null 2>&1 &&
35644 test "X`expr 00001 : '.*\(...\)'`" = X001; then
35645 as_expr=expr
35646else
35647 as_expr=false
35648fi
35649
35650if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
35651 as_basename=basename
35652else
35653 as_basename=false
35654fi
35655
cristy8b350f62009-11-15 23:12:43 +000035656if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
35657 as_dirname=dirname
35658else
35659 as_dirname=false
35660fi
cristy3ed852e2009-09-05 21:47:34 +000035661
cristy3ed852e2009-09-05 21:47:34 +000035662as_me=`$as_basename -- "$0" ||
35663$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
35664 X"$0" : 'X\(//\)$' \| \
35665 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
35666$as_echo X/"$0" |
35667 sed '/^.*\/\([^/][^/]*\)\/*$/{
35668 s//\1/
35669 q
35670 }
35671 /^X\/\(\/\/\)$/{
35672 s//\1/
35673 q
35674 }
35675 /^X\/\(\/\).*/{
35676 s//\1/
35677 q
35678 }
35679 s/.*/./; q'`
35680
cristy8b350f62009-11-15 23:12:43 +000035681# Avoid depending upon Character Ranges.
35682as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35683as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
35684as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35685as_cr_digits='0123456789'
35686as_cr_alnum=$as_cr_Letters$as_cr_digits
cristy3ed852e2009-09-05 21:47:34 +000035687
35688ECHO_C= ECHO_N= ECHO_T=
cristy8b350f62009-11-15 23:12:43 +000035689case `echo -n x` in #(((((
cristy3ed852e2009-09-05 21:47:34 +000035690-n*)
cristy8b350f62009-11-15 23:12:43 +000035691 case `echo 'xy\c'` in
cristy3ed852e2009-09-05 21:47:34 +000035692 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
cristy8b350f62009-11-15 23:12:43 +000035693 xy) ECHO_C='\c';;
35694 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
35695 ECHO_T=' ';;
cristy3ed852e2009-09-05 21:47:34 +000035696 esac;;
35697*)
35698 ECHO_N='-n';;
35699esac
cristy3ed852e2009-09-05 21:47:34 +000035700
35701rm -f conf$$ conf$$.exe conf$$.file
35702if test -d conf$$.dir; then
35703 rm -f conf$$.dir/conf$$.file
35704else
35705 rm -f conf$$.dir
35706 mkdir conf$$.dir 2>/dev/null
35707fi
35708if (echo >conf$$.file) 2>/dev/null; then
35709 if ln -s conf$$.file conf$$ 2>/dev/null; then
35710 as_ln_s='ln -s'
35711 # ... but there are two gotchas:
35712 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
35713 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
cristy14fefe52012-05-21 00:59:18 +000035714 # In both cases, we have to default to `cp -pR'.
cristy3ed852e2009-09-05 21:47:34 +000035715 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
cristy14fefe52012-05-21 00:59:18 +000035716 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035717 elif ln conf$$.file conf$$ 2>/dev/null; then
35718 as_ln_s=ln
35719 else
cristy14fefe52012-05-21 00:59:18 +000035720 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035721 fi
35722else
cristy14fefe52012-05-21 00:59:18 +000035723 as_ln_s='cp -pR'
cristy3ed852e2009-09-05 21:47:34 +000035724fi
35725rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
35726rmdir conf$$.dir 2>/dev/null
35727
cristy8b350f62009-11-15 23:12:43 +000035728
35729# as_fn_mkdir_p
35730# -------------
35731# Create "$as_dir" as a directory, including parents if necessary.
35732as_fn_mkdir_p ()
35733{
35734
35735 case $as_dir in #(
35736 -*) as_dir=./$as_dir;;
35737 esac
35738 test -d "$as_dir" || eval $as_mkdir_p || {
35739 as_dirs=
35740 while :; do
35741 case $as_dir in #(
35742 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
35743 *) as_qdir=$as_dir;;
35744 esac
35745 as_dirs="'$as_qdir' $as_dirs"
35746 as_dir=`$as_dirname -- "$as_dir" ||
35747$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
35748 X"$as_dir" : 'X\(//\)[^/]' \| \
35749 X"$as_dir" : 'X\(//\)$' \| \
35750 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
35751$as_echo X"$as_dir" |
35752 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
35753 s//\1/
35754 q
35755 }
35756 /^X\(\/\/\)[^/].*/{
35757 s//\1/
35758 q
35759 }
35760 /^X\(\/\/\)$/{
35761 s//\1/
35762 q
35763 }
35764 /^X\(\/\).*/{
35765 s//\1/
35766 q
35767 }
35768 s/.*/./; q'`
35769 test -d "$as_dir" && break
35770 done
35771 test -z "$as_dirs" || eval "mkdir $as_dirs"
cristy98dddb52010-11-04 00:30:15 +000035772 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
cristy8b350f62009-11-15 23:12:43 +000035773
35774
35775} # as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000035776if mkdir -p . 2>/dev/null; then
cristy8b350f62009-11-15 23:12:43 +000035777 as_mkdir_p='mkdir -p "$as_dir"'
cristy3ed852e2009-09-05 21:47:34 +000035778else
35779 test -d ./-p && rmdir ./-p
35780 as_mkdir_p=false
35781fi
35782
cristy14fefe52012-05-21 00:59:18 +000035783
35784# as_fn_executable_p FILE
35785# -----------------------
35786# Test if FILE is an executable regular file.
35787as_fn_executable_p ()
35788{
35789 test -f "$1" && test -x "$1"
35790} # as_fn_executable_p
35791as_test_x='test -x'
35792as_executable_p=as_fn_executable_p
cristy3ed852e2009-09-05 21:47:34 +000035793
35794# Sed expression to map a string onto a valid CPP name.
35795as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
35796
35797# Sed expression to map a string onto a valid variable name.
35798as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
35799
35800
35801exec 6>&1
cristy8b350f62009-11-15 23:12:43 +000035802## ----------------------------------- ##
35803## Main body of $CONFIG_STATUS script. ##
35804## ----------------------------------- ##
35805_ASEOF
35806test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
cristy3ed852e2009-09-05 21:47:34 +000035807
cristy8b350f62009-11-15 23:12:43 +000035808cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35809# Save the log message, to keep $0 and so on meaningful, and to
cristy3ed852e2009-09-05 21:47:34 +000035810# report actual input values of CONFIG_FILES etc. instead of their
35811# values after options handling.
35812ac_log="
cristy29eb34e2011-10-16 00:46:08 +000035813This file was extended by ImageMagick $as_me 7.0.0-0, which was
cristy14fefe52012-05-21 00:59:18 +000035814generated by GNU Autoconf 2.69. Invocation command line was
cristy3ed852e2009-09-05 21:47:34 +000035815
35816 CONFIG_FILES = $CONFIG_FILES
35817 CONFIG_HEADERS = $CONFIG_HEADERS
35818 CONFIG_LINKS = $CONFIG_LINKS
35819 CONFIG_COMMANDS = $CONFIG_COMMANDS
35820 $ $0 $@
35821
35822on `(hostname || uname -n) 2>/dev/null | sed 1q`
35823"
35824
35825_ACEOF
35826
35827case $ac_config_files in *"
35828"*) set x $ac_config_files; shift; ac_config_files=$*;;
35829esac
35830
35831case $ac_config_headers in *"
35832"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
35833esac
35834
35835
35836cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35837# Files that config.status was made for.
35838config_files="$ac_config_files"
35839config_headers="$ac_config_headers"
35840config_commands="$ac_config_commands"
35841
35842_ACEOF
35843
35844cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35845ac_cs_usage="\
cristy8b350f62009-11-15 23:12:43 +000035846\`$as_me' instantiates files and other configuration actions
35847from templates according to the current configuration. Unless the files
35848and actions are specified as TAGs, all are instantiated by default.
cristy3ed852e2009-09-05 21:47:34 +000035849
cristy8b350f62009-11-15 23:12:43 +000035850Usage: $0 [OPTION]... [TAG]...
cristy3ed852e2009-09-05 21:47:34 +000035851
35852 -h, --help print this help, then exit
35853 -V, --version print version number and configuration settings, then exit
cristycd4c5312009-11-22 01:19:08 +000035854 --config print configuration, then exit
cristy3ed852e2009-09-05 21:47:34 +000035855 -q, --quiet, --silent
35856 do not print progress messages
35857 -d, --debug don't remove temporary files
35858 --recheck update $as_me by reconfiguring in the same conditions
35859 --file=FILE[:TEMPLATE]
35860 instantiate the configuration file FILE
35861 --header=FILE[:TEMPLATE]
35862 instantiate the configuration header FILE
35863
35864Configuration files:
35865$config_files
35866
35867Configuration headers:
35868$config_headers
35869
35870Configuration commands:
35871$config_commands
35872
cristy8b350f62009-11-15 23:12:43 +000035873Report bugs to <http://www.imagemagick.org>."
cristy3ed852e2009-09-05 21:47:34 +000035874
35875_ACEOF
35876cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristycd4c5312009-11-22 01:19:08 +000035877ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
cristy3ed852e2009-09-05 21:47:34 +000035878ac_cs_version="\\
cristy29eb34e2011-10-16 00:46:08 +000035879ImageMagick config.status 7.0.0-0
cristy14fefe52012-05-21 00:59:18 +000035880configured by $0, generated by GNU Autoconf 2.69,
cristycd4c5312009-11-22 01:19:08 +000035881 with options \\"\$ac_cs_config\\"
cristy3ed852e2009-09-05 21:47:34 +000035882
cristy14fefe52012-05-21 00:59:18 +000035883Copyright (C) 2012 Free Software Foundation, Inc.
cristy3ed852e2009-09-05 21:47:34 +000035884This config.status script is free software; the Free Software Foundation
35885gives unlimited permission to copy, distribute and modify it."
35886
35887ac_pwd='$ac_pwd'
35888srcdir='$srcdir'
35889INSTALL='$INSTALL'
cristy73bd4a52010-10-05 11:24:23 +000035890MKDIR_P='$MKDIR_P'
35891AWK='$AWK'
cristy3ed852e2009-09-05 21:47:34 +000035892test -n "\$AWK" || AWK=awk
35893_ACEOF
35894
35895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35896# The default lists apply if the user does not specify any file.
35897ac_need_defaults=:
35898while test $# != 0
35899do
35900 case $1 in
cristyda16f162011-02-19 23:52:17 +000035901 --*=?*)
cristy3ed852e2009-09-05 21:47:34 +000035902 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35903 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
35904 ac_shift=:
35905 ;;
cristyda16f162011-02-19 23:52:17 +000035906 --*=)
35907 ac_option=`expr "X$1" : 'X\([^=]*\)='`
35908 ac_optarg=
35909 ac_shift=:
35910 ;;
cristy3ed852e2009-09-05 21:47:34 +000035911 *)
35912 ac_option=$1
35913 ac_optarg=$2
35914 ac_shift=shift
35915 ;;
35916 esac
35917
35918 case $ac_option in
35919 # Handling of the options.
35920 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
35921 ac_cs_recheck=: ;;
35922 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
35923 $as_echo "$ac_cs_version"; exit ;;
cristycd4c5312009-11-22 01:19:08 +000035924 --config | --confi | --conf | --con | --co | --c )
35925 $as_echo "$ac_cs_config"; exit ;;
cristy3ed852e2009-09-05 21:47:34 +000035926 --debug | --debu | --deb | --de | --d | -d )
35927 debug=: ;;
35928 --file | --fil | --fi | --f )
35929 $ac_shift
35930 case $ac_optarg in
35931 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
cristyda16f162011-02-19 23:52:17 +000035932 '') as_fn_error $? "missing file argument" ;;
cristy3ed852e2009-09-05 21:47:34 +000035933 esac
cristy8b350f62009-11-15 23:12:43 +000035934 as_fn_append CONFIG_FILES " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035935 ac_need_defaults=false;;
35936 --header | --heade | --head | --hea )
35937 $ac_shift
35938 case $ac_optarg in
35939 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
35940 esac
cristy8b350f62009-11-15 23:12:43 +000035941 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
cristy3ed852e2009-09-05 21:47:34 +000035942 ac_need_defaults=false;;
35943 --he | --h)
35944 # Conflict between --help and --header
cristy98dddb52010-11-04 00:30:15 +000035945 as_fn_error $? "ambiguous option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035946Try \`$0 --help' for more information.";;
cristy3ed852e2009-09-05 21:47:34 +000035947 --help | --hel | -h )
35948 $as_echo "$ac_cs_usage"; exit ;;
35949 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
35950 | -silent | --silent | --silen | --sile | --sil | --si | --s)
35951 ac_cs_silent=: ;;
35952
35953 # This is an error.
cristy98dddb52010-11-04 00:30:15 +000035954 -*) as_fn_error $? "unrecognized option: \`$1'
cristy8b350f62009-11-15 23:12:43 +000035955Try \`$0 --help' for more information." ;;
cristy3ed852e2009-09-05 21:47:34 +000035956
cristy8b350f62009-11-15 23:12:43 +000035957 *) as_fn_append ac_config_targets " $1"
cristy3ed852e2009-09-05 21:47:34 +000035958 ac_need_defaults=false ;;
35959
35960 esac
35961 shift
35962done
35963
35964ac_configure_extra_args=
35965
35966if $ac_cs_silent; then
35967 exec 6>/dev/null
35968 ac_configure_extra_args="$ac_configure_extra_args --silent"
35969fi
35970
35971_ACEOF
35972cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
35973if \$ac_cs_recheck; then
cristy14fefe52012-05-21 00:59:18 +000035974 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
cristy3ed852e2009-09-05 21:47:34 +000035975 shift
35976 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
35977 CONFIG_SHELL='$SHELL'
35978 export CONFIG_SHELL
35979 exec "\$@"
35980fi
35981
35982_ACEOF
35983cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
35984exec 5>>config.log
35985{
35986 echo
35987 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
35988## Running $as_me. ##
35989_ASBOX
35990 $as_echo "$ac_log"
35991} >&5
35992
35993_ACEOF
35994cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristy73bd4a52010-10-05 11:24:23 +000035995#
35996# INIT-COMMANDS
35997#
35998PACKAGE="$PACKAGE"
35999AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
36000
36001
36002# The HP-UX ksh and POSIX shell print the target directory to stdout
36003# if CDPATH is set.
36004(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
36005
36006sed_quote_subst='$sed_quote_subst'
36007double_quote_subst='$double_quote_subst'
36008delay_variable_subst='$delay_variable_subst'
cristy0c60a692010-11-04 01:09:47 +000036009SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
36010Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
36011GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
36012EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
36013FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
36014SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
36015ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
36016LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
36017macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
36018macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
36019AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
36020DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
36021OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
36022enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
36023enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
36024pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
36025enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
cristy99bd5232011-12-07 14:38:20 +000036026PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036027host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
36028host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
36029host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
36030build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
36031build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
36032build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
36033NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
36034LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
36035max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
36036ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
36037exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
36038lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
36039lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
36040lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036041lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
36042lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036043reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
36044reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
36045deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
36046file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036047file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
36048want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
36049sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036050AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
36051AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036052archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036053STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
36054RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
36055old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36056old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36057old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
36058lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
36059CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
36060CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
36061compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
36062GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
36063lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
36064lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
36065lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
36066lt_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 +000036067nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
36068lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036069objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
36070MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
36071lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036072lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036073lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036074lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
36075lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
36076need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036077MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036078DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
36079NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
36080LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
36081OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
36082OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
36083libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
36084shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
36085extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36086archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
36087enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
36088export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
36089whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
36090compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
36091old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
36092old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
36093archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
36094archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36095module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
36096module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
36097with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
36098allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
36099no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
36100hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036101hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
36102hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
36103hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
36104hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
36105hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
36106hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
36107inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
36108link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036109always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
36110export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
36111exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
36112include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
36113prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036114postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036115file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
36116variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
36117need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
36118need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
36119version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
36120runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
36121shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
36122shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
36123libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
36124library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
36125soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
36126install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
36127postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
36128postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
36129finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
36130finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
36131hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
36132sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
36133sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
36134hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
36135enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
36136enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
36137enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
36138old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
36139striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
36140compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
36141predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
36142postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
36143predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
36144postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
36145compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
36146LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
36147reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
36148reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36149old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36150compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
36151GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
36152lt_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 +000036153lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036154lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036155lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
36156lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
36157archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
36158enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
36159export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36160whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
36161compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
36162old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36163old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36164archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36165archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36166module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36167module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36168with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
36169allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36170no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
36171hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036172hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
36173hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
36174hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
36175hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
36176hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
36177hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
36178inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
36179link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036180always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
36181export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
36182exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36183include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
36184prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristyda16f162011-02-19 23:52:17 +000036185postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
cristy0c60a692010-11-04 01:09:47 +000036186file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
36187hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
36188compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
36189predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36190postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
36191predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
36192postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
36193compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
cristy73bd4a52010-10-05 11:24:23 +000036194
36195LTCC='$LTCC'
36196LTCFLAGS='$LTCFLAGS'
36197compiler='$compiler_DEFAULT'
36198
cristy0c60a692010-11-04 01:09:47 +000036199# A function that is used when there is no print builtin or printf.
36200func_fallback_echo ()
36201{
36202 eval 'cat <<_LTECHO_EOF
36203\$1
36204_LTECHO_EOF'
36205}
36206
cristy73bd4a52010-10-05 11:24:23 +000036207# Quote evaled strings.
36208for var in SED \
36209GREP \
36210EGREP \
36211FGREP \
cristy0c60a692010-11-04 01:09:47 +000036212SHELL \
36213ECHO \
cristy73bd4a52010-10-05 11:24:23 +000036214LD \
cristy0c60a692010-11-04 01:09:47 +000036215AS \
36216DLLTOOL \
36217OBJDUMP \
cristy99bd5232011-12-07 14:38:20 +000036218PATH_SEPARATOR \
cristy73bd4a52010-10-05 11:24:23 +000036219NM \
36220LN_S \
36221lt_SP2NL \
36222lt_NL2SP \
36223reload_flag \
36224deplibs_check_method \
36225file_magic_cmd \
cristyda16f162011-02-19 23:52:17 +000036226file_magic_glob \
36227want_nocaseglob \
36228sharedlib_from_linklib_cmd \
cristy73bd4a52010-10-05 11:24:23 +000036229AR \
36230AR_FLAGS \
cristyda16f162011-02-19 23:52:17 +000036231archiver_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036232STRIP \
36233RANLIB \
36234CC \
36235CFLAGS \
36236compiler \
36237lt_cv_sys_global_symbol_pipe \
36238lt_cv_sys_global_symbol_to_cdecl \
36239lt_cv_sys_global_symbol_to_c_name_address \
36240lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
cristyda16f162011-02-19 23:52:17 +000036241nm_file_list_spec \
cristy73bd4a52010-10-05 11:24:23 +000036242lt_prog_compiler_no_builtin_flag \
cristy73bd4a52010-10-05 11:24:23 +000036243lt_prog_compiler_pic \
cristyda16f162011-02-19 23:52:17 +000036244lt_prog_compiler_wl \
cristy73bd4a52010-10-05 11:24:23 +000036245lt_prog_compiler_static \
36246lt_cv_prog_compiler_c_o \
36247need_locks \
cristyda16f162011-02-19 23:52:17 +000036248MANIFEST_TOOL \
cristy73bd4a52010-10-05 11:24:23 +000036249DSYMUTIL \
36250NMEDIT \
36251LIPO \
36252OTOOL \
36253OTOOL64 \
36254shrext_cmds \
36255export_dynamic_flag_spec \
36256whole_archive_flag_spec \
36257compiler_needs_object \
36258with_gnu_ld \
36259allow_undefined_flag \
36260no_undefined_flag \
36261hardcode_libdir_flag_spec \
cristy73bd4a52010-10-05 11:24:23 +000036262hardcode_libdir_separator \
cristy73bd4a52010-10-05 11:24:23 +000036263exclude_expsyms \
36264include_expsyms \
36265file_list_spec \
36266variables_saved_for_relink \
36267libname_spec \
36268library_names_spec \
36269soname_spec \
cristy0c60a692010-11-04 01:09:47 +000036270install_override_mode \
cristy73bd4a52010-10-05 11:24:23 +000036271finish_eval \
36272old_striplib \
36273striplib \
36274compiler_lib_search_dirs \
36275predep_objects \
36276postdep_objects \
36277predeps \
36278postdeps \
36279compiler_lib_search_path \
36280LD_CXX \
cristy0c60a692010-11-04 01:09:47 +000036281reload_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036282compiler_CXX \
36283lt_prog_compiler_no_builtin_flag_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036284lt_prog_compiler_pic_CXX \
cristyda16f162011-02-19 23:52:17 +000036285lt_prog_compiler_wl_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036286lt_prog_compiler_static_CXX \
36287lt_cv_prog_compiler_c_o_CXX \
36288export_dynamic_flag_spec_CXX \
36289whole_archive_flag_spec_CXX \
36290compiler_needs_object_CXX \
36291with_gnu_ld_CXX \
36292allow_undefined_flag_CXX \
36293no_undefined_flag_CXX \
36294hardcode_libdir_flag_spec_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036295hardcode_libdir_separator_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036296exclude_expsyms_CXX \
36297include_expsyms_CXX \
36298file_list_spec_CXX \
36299compiler_lib_search_dirs_CXX \
36300predep_objects_CXX \
36301postdep_objects_CXX \
36302predeps_CXX \
36303postdeps_CXX \
36304compiler_lib_search_path_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036305 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036306 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036307 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036308 ;;
36309 *)
36310 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36311 ;;
36312 esac
36313done
36314
36315# Double-quote double-evaled strings.
36316for var in reload_cmds \
36317old_postinstall_cmds \
36318old_postuninstall_cmds \
36319old_archive_cmds \
36320extract_expsyms_cmds \
36321old_archive_from_new_cmds \
36322old_archive_from_expsyms_cmds \
36323archive_cmds \
36324archive_expsym_cmds \
36325module_cmds \
36326module_expsym_cmds \
36327export_symbols_cmds \
36328prelink_cmds \
cristyda16f162011-02-19 23:52:17 +000036329postlink_cmds \
cristy73bd4a52010-10-05 11:24:23 +000036330postinstall_cmds \
36331postuninstall_cmds \
36332finish_cmds \
36333sys_lib_search_path_spec \
36334sys_lib_dlsearch_path_spec \
cristy0c60a692010-11-04 01:09:47 +000036335reload_cmds_CXX \
cristy73bd4a52010-10-05 11:24:23 +000036336old_archive_cmds_CXX \
36337old_archive_from_new_cmds_CXX \
36338old_archive_from_expsyms_cmds_CXX \
36339archive_cmds_CXX \
36340archive_expsym_cmds_CXX \
36341module_cmds_CXX \
36342module_expsym_cmds_CXX \
36343export_symbols_cmds_CXX \
cristyda16f162011-02-19 23:52:17 +000036344prelink_cmds_CXX \
36345postlink_cmds_CXX; do
cristy0c60a692010-11-04 01:09:47 +000036346 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
cristy73bd4a52010-10-05 11:24:23 +000036347 *[\\\\\\\`\\"\\\$]*)
cristy0c60a692010-11-04 01:09:47 +000036348 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
cristy73bd4a52010-10-05 11:24:23 +000036349 ;;
36350 *)
36351 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
36352 ;;
36353 esac
36354done
36355
cristy73bd4a52010-10-05 11:24:23 +000036356ac_aux_dir='$ac_aux_dir'
36357xsi_shell='$xsi_shell'
36358lt_shell_append='$lt_shell_append'
36359
36360# See if we are running on zsh, and set the options which allow our
36361# commands through without removal of \ escapes INIT.
36362if test -n "\${ZSH_VERSION+set}" ; then
36363 setopt NO_GLOB_SUBST
36364fi
36365
36366
36367 PACKAGE='$PACKAGE'
36368 VERSION='$VERSION'
36369 TIMESTAMP='$TIMESTAMP'
36370 RM='$RM'
36371 ofile='$ofile'
36372
36373
36374
36375
36376
36377
cristy3ed852e2009-09-05 21:47:34 +000036378_ACEOF
36379
36380cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36381
36382# Handling of arguments.
36383for ac_config_target in $ac_config_targets
36384do
36385 case $ac_config_target in
36386 "config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS config/config.h" ;;
cristy4c08aed2011-07-01 19:47:50 +000036387 "MagickCore/magick-config.h") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore/magick-config.h" ;;
cristy305c5dd2012-09-13 00:30:13 +000036388 "common.shi") CONFIG_FILES="$CONFIG_FILES common.shi" ;;
cristy3ed852e2009-09-05 21:47:34 +000036389 "config/configure.xml") CONFIG_FILES="$CONFIG_FILES config/configure.xml" ;;
36390 "config/delegates.xml") CONFIG_FILES="$CONFIG_FILES config/delegates.xml" ;;
36391 "config/ImageMagick.rdf") CONFIG_FILES="$CONFIG_FILES config/ImageMagick.rdf" ;;
36392 "config/MagickCore.dox") CONFIG_FILES="$CONFIG_FILES config/MagickCore.dox" ;;
36393 "config/MagickWand.dox") CONFIG_FILES="$CONFIG_FILES config/MagickWand.dox" ;;
cristy2df32802012-09-17 01:15:28 +000036394 "config/Magick++.dox") CONFIG_FILES="$CONFIG_FILES config/Magick++.dox" ;;
cristy430a7312010-01-21 20:44:04 +000036395 "config/type-dejavu.xml") CONFIG_FILES="$CONFIG_FILES config/type-dejavu.xml" ;;
cristy3ed852e2009-09-05 21:47:34 +000036396 "config/type-ghostscript.xml") CONFIG_FILES="$CONFIG_FILES config/type-ghostscript.xml" ;;
36397 "config/type-windows.xml") CONFIG_FILES="$CONFIG_FILES config/type-windows.xml" ;;
36398 "config/type.xml") CONFIG_FILES="$CONFIG_FILES config/type.xml" ;;
36399 "ImageMagick.spec") CONFIG_FILES="$CONFIG_FILES ImageMagick.spec" ;;
36400 "Magick++/bin/Magick++-config") CONFIG_FILES="$CONFIG_FILES Magick++/bin/Magick++-config" ;;
cristy4c08aed2011-07-01 19:47:50 +000036401 "MagickCore/ImageMagick.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/ImageMagick.pc" ;;
cristy3ed852e2009-09-05 21:47:34 +000036402 "Magick++/lib/ImageMagick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/ImageMagick++.pc" ;;
36403 "Magick++/lib/Magick++.pc") CONFIG_FILES="$CONFIG_FILES Magick++/lib/Magick++.pc" ;;
cristy4c08aed2011-07-01 19:47:50 +000036404 "MagickCore/MagickCore-config") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore-config" ;;
36405 "MagickCore/MagickCore.pc") CONFIG_FILES="$CONFIG_FILES MagickCore/MagickCore.pc" ;;
36406 "MagickCore/version.h") CONFIG_FILES="$CONFIG_FILES MagickCore/version.h" ;;
cristy3ed852e2009-09-05 21:47:34 +000036407 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
36408 "magick.sh") CONFIG_FILES="$CONFIG_FILES magick.sh" ;;
36409 "PerlMagick/Magick.pm") CONFIG_FILES="$CONFIG_FILES PerlMagick/Magick.pm" ;;
36410 "PerlMagick/Makefile.PL") CONFIG_FILES="$CONFIG_FILES PerlMagick/Makefile.PL" ;;
36411 "PerlMagick/check.sh") CONFIG_FILES="$CONFIG_FILES PerlMagick/check.sh" ;;
36412 "utilities/animate.1") CONFIG_FILES="$CONFIG_FILES utilities/animate.1" ;;
36413 "utilities/compare.1") CONFIG_FILES="$CONFIG_FILES utilities/compare.1" ;;
36414 "utilities/composite.1") CONFIG_FILES="$CONFIG_FILES utilities/composite.1" ;;
36415 "utilities/conjure.1") CONFIG_FILES="$CONFIG_FILES utilities/conjure.1" ;;
36416 "utilities/convert.1") CONFIG_FILES="$CONFIG_FILES utilities/convert.1" ;;
36417 "utilities/display.1") CONFIG_FILES="$CONFIG_FILES utilities/display.1" ;;
36418 "utilities/identify.1") CONFIG_FILES="$CONFIG_FILES utilities/identify.1" ;;
36419 "utilities/ImageMagick.1") CONFIG_FILES="$CONFIG_FILES utilities/ImageMagick.1" ;;
36420 "utilities/import.1") CONFIG_FILES="$CONFIG_FILES utilities/import.1" ;;
36421 "utilities/mogrify.1") CONFIG_FILES="$CONFIG_FILES utilities/mogrify.1" ;;
36422 "utilities/montage.1") CONFIG_FILES="$CONFIG_FILES utilities/montage.1" ;;
36423 "utilities/stream.1") CONFIG_FILES="$CONFIG_FILES utilities/stream.1" ;;
cristy4c08aed2011-07-01 19:47:50 +000036424 "MagickWand/MagickWand-config") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand-config" ;;
36425 "MagickWand/MagickWand.pc") CONFIG_FILES="$CONFIG_FILES MagickWand/MagickWand.pc" ;;
cristy73bd4a52010-10-05 11:24:23 +000036426 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
36427 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
cristy3ed852e2009-09-05 21:47:34 +000036428 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
cristy2bd4b6e2012-07-22 15:29:11 +000036429 "magick.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS magick.sh.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036430 "MagickCore-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickCore-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036431 "MagickWand-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS MagickWand-config.in" ;;
cristy3ed852e2009-09-05 21:47:34 +000036432 "Magick++-config.in") CONFIG_COMMANDS="$CONFIG_COMMANDS Magick++-config.in" ;;
36433 "PerlMagick/check.sh.in") CONFIG_COMMANDS="$CONFIG_COMMANDS PerlMagick/check.sh.in" ;;
36434
cristy98dddb52010-11-04 00:30:15 +000036435 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036436 esac
36437done
36438
36439
36440# If the user did not use the arguments to specify the items to instantiate,
36441# then the envvar interface is used. Set only those that are not.
36442# We use the long form for the default assignment because of an extremely
36443# bizarre bug on SunOS 4.1.3.
36444if $ac_need_defaults; then
36445 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
36446 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
36447 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
36448fi
36449
36450# Have a temporary directory for convenience. Make it in the build tree
36451# simply because there is no reason against having it here, and in addition,
36452# creating and moving files from /tmp can sometimes cause problems.
36453# Hook for its removal unless debugging.
36454# Note that there is a small window in which the directory will not be cleaned:
36455# after its creation but before its name has been assigned to `$tmp'.
36456$debug ||
36457{
cristyda16f162011-02-19 23:52:17 +000036458 tmp= ac_tmp=
cristy3ed852e2009-09-05 21:47:34 +000036459 trap 'exit_status=$?
cristyda16f162011-02-19 23:52:17 +000036460 : "${ac_tmp:=$tmp}"
36461 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
cristy3ed852e2009-09-05 21:47:34 +000036462' 0
cristy8b350f62009-11-15 23:12:43 +000036463 trap 'as_fn_exit 1' 1 2 13 15
cristy3ed852e2009-09-05 21:47:34 +000036464}
36465# Create a (secure) tmp directory for tmp files.
36466
36467{
36468 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
cristyda16f162011-02-19 23:52:17 +000036469 test -d "$tmp"
cristy3ed852e2009-09-05 21:47:34 +000036470} ||
36471{
36472 tmp=./conf$$-$RANDOM
36473 (umask 077 && mkdir "$tmp")
cristy98dddb52010-11-04 00:30:15 +000036474} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036475ac_tmp=$tmp
cristy3ed852e2009-09-05 21:47:34 +000036476
36477# Set up the scripts for CONFIG_FILES section.
36478# No need to generate them if there are no CONFIG_FILES.
36479# This happens for instance with `./config.status config.h'.
36480if test -n "$CONFIG_FILES"; then
36481
36482
cristy8b350f62009-11-15 23:12:43 +000036483ac_cr=`echo X | tr X '\015'`
36484# On cygwin, bash can eat \r inside `` if the user requested igncr.
36485# But we know of no other shell where ac_cr would be empty at this
36486# point, so we can use a bashism as a fallback.
36487if test "x$ac_cr" = x; then
36488 eval ac_cr=\$\'\\r\'
36489fi
cristy3ed852e2009-09-05 21:47:34 +000036490ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
36491if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
cristy98dddb52010-11-04 00:30:15 +000036492 ac_cs_awk_cr='\\r'
cristy3ed852e2009-09-05 21:47:34 +000036493else
36494 ac_cs_awk_cr=$ac_cr
36495fi
36496
cristyda16f162011-02-19 23:52:17 +000036497echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
cristy3ed852e2009-09-05 21:47:34 +000036498_ACEOF
36499
36500
36501{
36502 echo "cat >conf$$subs.awk <<_ACEOF" &&
36503 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
36504 echo "_ACEOF"
36505} >conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036506 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
36507ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
cristy3ed852e2009-09-05 21:47:34 +000036508ac_delim='%!_!# '
36509for ac_last_try in false false false false false :; do
36510 . ./conf$$subs.sh ||
cristy98dddb52010-11-04 00:30:15 +000036511 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036512
36513 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
36514 if test $ac_delim_n = $ac_delim_num; then
36515 break
36516 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036517 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036518 else
36519 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36520 fi
36521done
36522rm -f conf$$subs.sh
36523
36524cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
cristyda16f162011-02-19 23:52:17 +000036525cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036526_ACEOF
36527sed -n '
36528h
36529s/^/S["/; s/!.*/"]=/
36530p
36531g
36532s/^[^!]*!//
36533:repl
36534t repl
36535s/'"$ac_delim"'$//
36536t delim
36537:nl
36538h
cristycd4c5312009-11-22 01:19:08 +000036539s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036540t more1
36541s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
36542p
36543n
36544b repl
36545:more1
36546s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36547p
36548g
36549s/.\{148\}//
36550t nl
36551:delim
36552h
cristycd4c5312009-11-22 01:19:08 +000036553s/\(.\{148\}\)..*/\1/
cristy3ed852e2009-09-05 21:47:34 +000036554t more2
36555s/["\\]/\\&/g; s/^/"/; s/$/"/
36556p
36557b
36558:more2
36559s/["\\]/\\&/g; s/^/"/; s/$/"\\/
36560p
36561g
36562s/.\{148\}//
36563t delim
36564' <conf$$subs.awk | sed '
36565/^[^""]/{
36566 N
36567 s/\n//
36568}
36569' >>$CONFIG_STATUS || ac_write_fail=1
36570rm -f conf$$subs.awk
36571cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36572_ACAWK
cristyda16f162011-02-19 23:52:17 +000036573cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
cristy3ed852e2009-09-05 21:47:34 +000036574 for (key in S) S_is_set[key] = 1
36575 FS = ""
36576
36577}
36578{
36579 line = $ 0
36580 nfields = split(line, field, "@")
36581 substed = 0
36582 len = length(field[1])
36583 for (i = 2; i < nfields; i++) {
36584 key = field[i]
36585 keylen = length(key)
36586 if (S_is_set[key]) {
36587 value = S[key]
36588 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
36589 len += length(value) + length(field[++i])
36590 substed = 1
36591 } else
36592 len += 1 + keylen
36593 }
36594
36595 print line
36596}
36597
36598_ACAWK
36599_ACEOF
36600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36601if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
36602 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
36603else
36604 cat
cristyda16f162011-02-19 23:52:17 +000036605fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
cristy98dddb52010-11-04 00:30:15 +000036606 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036607_ACEOF
36608
cristy98dddb52010-11-04 00:30:15 +000036609# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
36610# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
cristy3ed852e2009-09-05 21:47:34 +000036611# trailing colons and then remove the whole line if VPATH becomes empty
36612# (actually we leave an empty line to preserve line numbers).
36613if test "x$srcdir" = x.; then
cristy98dddb52010-11-04 00:30:15 +000036614 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
36615h
36616s///
36617s/^/:/
36618s/[ ]*$/:/
36619s/:\$(srcdir):/:/g
36620s/:\${srcdir}:/:/g
36621s/:@srcdir@:/:/g
36622s/^:*//
cristy3ed852e2009-09-05 21:47:34 +000036623s/:*$//
cristy98dddb52010-11-04 00:30:15 +000036624x
36625s/\(=[ ]*\).*/\1/
36626G
36627s/\n//
cristy3ed852e2009-09-05 21:47:34 +000036628s/^[^=]*=[ ]*$//
36629}'
36630fi
36631
36632cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36633fi # test -n "$CONFIG_FILES"
36634
36635# Set up the scripts for CONFIG_HEADERS section.
36636# No need to generate them if there are no CONFIG_HEADERS.
36637# This happens for instance with `./config.status Makefile'.
36638if test -n "$CONFIG_HEADERS"; then
cristyda16f162011-02-19 23:52:17 +000036639cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
cristy3ed852e2009-09-05 21:47:34 +000036640BEGIN {
36641_ACEOF
36642
36643# Transform confdefs.h into an awk script `defines.awk', embedded as
36644# here-document in config.status, that substitutes the proper values into
36645# config.h.in to produce config.h.
36646
36647# Create a delimiter string that does not exist in confdefs.h, to ease
36648# handling of long lines.
36649ac_delim='%!_!# '
36650for ac_last_try in false false :; do
cristyda16f162011-02-19 23:52:17 +000036651 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
36652 if test -z "$ac_tt"; then
cristy3ed852e2009-09-05 21:47:34 +000036653 break
36654 elif $ac_last_try; then
cristy98dddb52010-11-04 00:30:15 +000036655 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036656 else
36657 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
36658 fi
36659done
36660
36661# For the awk script, D is an array of macro values keyed by name,
36662# likewise P contains macro parameters if any. Preserve backslash
36663# newline sequences.
36664
36665ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
36666sed -n '
36667s/.\{148\}/&'"$ac_delim"'/g
36668t rset
36669:rset
36670s/^[ ]*#[ ]*define[ ][ ]*/ /
36671t def
36672d
36673:def
36674s/\\$//
36675t bsnl
36676s/["\\]/\\&/g
36677s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36678D["\1"]=" \3"/p
36679s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
36680d
36681:bsnl
36682s/["\\]/\\&/g
36683s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
36684D["\1"]=" \3\\\\\\n"\\/p
36685t cont
36686s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
36687t cont
36688d
36689:cont
36690n
36691s/.\{148\}/&'"$ac_delim"'/g
36692t clear
36693:clear
36694s/\\$//
36695t bsnlc
36696s/["\\]/\\&/g; s/^/"/; s/$/"/p
36697d
36698:bsnlc
36699s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
36700b cont
36701' <confdefs.h | sed '
36702s/'"$ac_delim"'/"\\\
36703"/g' >>$CONFIG_STATUS || ac_write_fail=1
36704
36705cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36706 for (key in D) D_is_set[key] = 1
36707 FS = ""
36708}
36709/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
36710 line = \$ 0
36711 split(line, arg, " ")
36712 if (arg[1] == "#") {
36713 defundef = arg[2]
36714 mac1 = arg[3]
36715 } else {
36716 defundef = substr(arg[1], 2)
36717 mac1 = arg[2]
36718 }
36719 split(mac1, mac2, "(") #)
36720 macro = mac2[1]
36721 prefix = substr(line, 1, index(line, defundef) - 1)
36722 if (D_is_set[macro]) {
36723 # Preserve the white space surrounding the "#".
36724 print prefix "define", macro P[macro] D[macro]
36725 next
36726 } else {
36727 # Replace #undef with comments. This is necessary, for example,
36728 # in the case of _POSIX_SOURCE, which is predefined and required
36729 # on some systems where configure will not decide to define it.
36730 if (defundef == "undef") {
36731 print "/*", prefix defundef, macro, "*/"
36732 next
36733 }
36734 }
36735}
36736{ print }
36737_ACAWK
36738_ACEOF
36739cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
cristy98dddb52010-11-04 00:30:15 +000036740 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036741fi # test -n "$CONFIG_HEADERS"
36742
36743
36744eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
36745shift
36746for ac_tag
36747do
36748 case $ac_tag in
36749 :[FHLC]) ac_mode=$ac_tag; continue;;
36750 esac
36751 case $ac_mode$ac_tag in
36752 :[FHL]*:*);;
cristy98dddb52010-11-04 00:30:15 +000036753 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036754 :[FH]-) ac_tag=-:-;;
36755 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
36756 esac
36757 ac_save_IFS=$IFS
36758 IFS=:
36759 set x $ac_tag
36760 IFS=$ac_save_IFS
36761 shift
36762 ac_file=$1
36763 shift
36764
36765 case $ac_mode in
36766 :L) ac_source=$1;;
36767 :[FH])
36768 ac_file_inputs=
36769 for ac_f
36770 do
36771 case $ac_f in
cristyda16f162011-02-19 23:52:17 +000036772 -) ac_f="$ac_tmp/stdin";;
cristy3ed852e2009-09-05 21:47:34 +000036773 *) # Look for the file first in the build tree, then in the source tree
36774 # (if the path is not absolute). The absolute path cannot be DOS-style,
36775 # because $ac_f cannot contain `:'.
36776 test -f "$ac_f" ||
36777 case $ac_f in
36778 [\\/$]*) false;;
36779 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
36780 esac ||
cristy98dddb52010-11-04 00:30:15 +000036781 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
cristy3ed852e2009-09-05 21:47:34 +000036782 esac
36783 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
cristy8b350f62009-11-15 23:12:43 +000036784 as_fn_append ac_file_inputs " '$ac_f'"
cristy3ed852e2009-09-05 21:47:34 +000036785 done
36786
36787 # Let's still pretend it is `configure' which instantiates (i.e., don't
36788 # use $as_me), people would be surprised to read:
36789 # /* config.h. Generated by config.status. */
36790 configure_input='Generated from '`
36791 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
36792 `' by configure.'
36793 if test x"$ac_file" != x-; then
36794 configure_input="$ac_file. $configure_input"
cristy8b350f62009-11-15 23:12:43 +000036795 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
cristy3ed852e2009-09-05 21:47:34 +000036796$as_echo "$as_me: creating $ac_file" >&6;}
36797 fi
36798 # Neutralize special characters interpreted by sed in replacement strings.
36799 case $configure_input in #(
36800 *\&* | *\|* | *\\* )
36801 ac_sed_conf_input=`$as_echo "$configure_input" |
36802 sed 's/[\\\\&|]/\\\\&/g'`;; #(
36803 *) ac_sed_conf_input=$configure_input;;
36804 esac
36805
36806 case $ac_tag in
cristyda16f162011-02-19 23:52:17 +000036807 *:-:* | *:-) cat >"$ac_tmp/stdin" \
cristy98dddb52010-11-04 00:30:15 +000036808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
cristy3ed852e2009-09-05 21:47:34 +000036809 esac
36810 ;;
36811 esac
36812
36813 ac_dir=`$as_dirname -- "$ac_file" ||
36814$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36815 X"$ac_file" : 'X\(//\)[^/]' \| \
36816 X"$ac_file" : 'X\(//\)$' \| \
36817 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
36818$as_echo X"$ac_file" |
36819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
36820 s//\1/
36821 q
36822 }
36823 /^X\(\/\/\)[^/].*/{
36824 s//\1/
36825 q
36826 }
36827 /^X\(\/\/\)$/{
36828 s//\1/
36829 q
36830 }
36831 /^X\(\/\).*/{
36832 s//\1/
36833 q
36834 }
36835 s/.*/./; q'`
cristy8b350f62009-11-15 23:12:43 +000036836 as_dir="$ac_dir"; as_fn_mkdir_p
cristy3ed852e2009-09-05 21:47:34 +000036837 ac_builddir=.
36838
36839case "$ac_dir" in
36840.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
36841*)
36842 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
36843 # A ".." for each directory in $ac_dir_suffix.
36844 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
36845 case $ac_top_builddir_sub in
36846 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
36847 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
36848 esac ;;
36849esac
36850ac_abs_top_builddir=$ac_pwd
36851ac_abs_builddir=$ac_pwd$ac_dir_suffix
36852# for backward compatibility:
36853ac_top_builddir=$ac_top_build_prefix
36854
36855case $srcdir in
36856 .) # We are building in place.
36857 ac_srcdir=.
36858 ac_top_srcdir=$ac_top_builddir_sub
36859 ac_abs_top_srcdir=$ac_pwd ;;
36860 [\\/]* | ?:[\\/]* ) # Absolute name.
36861 ac_srcdir=$srcdir$ac_dir_suffix;
36862 ac_top_srcdir=$srcdir
36863 ac_abs_top_srcdir=$srcdir ;;
36864 *) # Relative name.
36865 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
36866 ac_top_srcdir=$ac_top_build_prefix$srcdir
36867 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
36868esac
36869ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
36870
36871
36872 case $ac_mode in
36873 :F)
36874 #
36875 # CONFIG_FILE
36876 #
36877
36878 case $INSTALL in
36879 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
36880 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
36881 esac
cristy73bd4a52010-10-05 11:24:23 +000036882 ac_MKDIR_P=$MKDIR_P
36883 case $MKDIR_P in
36884 [\\/$]* | ?:[\\/]* ) ;;
36885 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
36886 esac
cristy3ed852e2009-09-05 21:47:34 +000036887_ACEOF
36888
36889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36890# If the template does not know about datarootdir, expand it.
36891# FIXME: This hack should be removed a few years after 2.60.
36892ac_datarootdir_hack=; ac_datarootdir_seen=
cristy3ed852e2009-09-05 21:47:34 +000036893ac_sed_dataroot='
36894/datarootdir/ {
36895 p
36896 q
36897}
36898/@datadir@/p
36899/@docdir@/p
36900/@infodir@/p
36901/@localedir@/p
cristy8b350f62009-11-15 23:12:43 +000036902/@mandir@/p'
cristy3ed852e2009-09-05 21:47:34 +000036903case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
36904*datarootdir*) ac_datarootdir_seen=yes;;
36905*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
cristy8b350f62009-11-15 23:12:43 +000036906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
cristy3ed852e2009-09-05 21:47:34 +000036907$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
36908_ACEOF
36909cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36910 ac_datarootdir_hack='
36911 s&@datadir@&$datadir&g
36912 s&@docdir@&$docdir&g
36913 s&@infodir@&$infodir&g
36914 s&@localedir@&$localedir&g
36915 s&@mandir@&$mandir&g
cristy8b350f62009-11-15 23:12:43 +000036916 s&\\\${datarootdir}&$datarootdir&g' ;;
cristy3ed852e2009-09-05 21:47:34 +000036917esac
36918_ACEOF
36919
36920# Neutralize VPATH when `$srcdir' = `.'.
36921# Shell code in configure.ac might set extrasub.
36922# FIXME: do we really want to maintain this feature?
36923cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
36924ac_sed_extra="$ac_vpsub
36925$extrasub
36926_ACEOF
36927cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
36928:t
36929/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
36930s|@configure_input@|$ac_sed_conf_input|;t t
36931s&@top_builddir@&$ac_top_builddir_sub&;t t
36932s&@top_build_prefix@&$ac_top_build_prefix&;t t
36933s&@srcdir@&$ac_srcdir&;t t
36934s&@abs_srcdir@&$ac_abs_srcdir&;t t
36935s&@top_srcdir@&$ac_top_srcdir&;t t
36936s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
36937s&@builddir@&$ac_builddir&;t t
36938s&@abs_builddir@&$ac_abs_builddir&;t t
36939s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
36940s&@INSTALL@&$ac_INSTALL&;t t
cristy73bd4a52010-10-05 11:24:23 +000036941s&@MKDIR_P@&$ac_MKDIR_P&;t t
cristy3ed852e2009-09-05 21:47:34 +000036942$ac_datarootdir_hack
36943"
cristyda16f162011-02-19 23:52:17 +000036944eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
36945 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036946
36947test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
cristyda16f162011-02-19 23:52:17 +000036948 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
36949 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
36950 "$ac_tmp/out"`; test -z "$ac_out"; } &&
cristy8b350f62009-11-15 23:12:43 +000036951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036952which seems to be undefined. Please make sure it is defined" >&5
cristy3ed852e2009-09-05 21:47:34 +000036953$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
cristy98dddb52010-11-04 00:30:15 +000036954which seems to be undefined. Please make sure it is defined" >&2;}
cristy3ed852e2009-09-05 21:47:34 +000036955
cristyda16f162011-02-19 23:52:17 +000036956 rm -f "$ac_tmp/stdin"
cristy3ed852e2009-09-05 21:47:34 +000036957 case $ac_file in
cristyda16f162011-02-19 23:52:17 +000036958 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
36959 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
cristy3ed852e2009-09-05 21:47:34 +000036960 esac \
cristy98dddb52010-11-04 00:30:15 +000036961 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036962 ;;
36963 :H)
36964 #
36965 # CONFIG_HEADER
36966 #
36967 if test x"$ac_file" != x-; then
36968 {
36969 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036970 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
36971 } >"$ac_tmp/config.h" \
cristy98dddb52010-11-04 00:30:15 +000036972 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristyda16f162011-02-19 23:52:17 +000036973 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
cristy8b350f62009-11-15 23:12:43 +000036974 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
cristy3ed852e2009-09-05 21:47:34 +000036975$as_echo "$as_me: $ac_file is unchanged" >&6;}
36976 else
36977 rm -f "$ac_file"
cristyda16f162011-02-19 23:52:17 +000036978 mv "$ac_tmp/config.h" "$ac_file" \
cristy98dddb52010-11-04 00:30:15 +000036979 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036980 fi
36981 else
36982 $as_echo "/* $configure_input */" \
cristyda16f162011-02-19 23:52:17 +000036983 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
cristy98dddb52010-11-04 00:30:15 +000036984 || as_fn_error $? "could not create -" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000036985 fi
cristy73bd4a52010-10-05 11:24:23 +000036986# Compute "$ac_file"'s index in $config_headers.
36987_am_arg="$ac_file"
36988_am_stamp_count=1
36989for _am_header in $config_headers :; do
36990 case $_am_header in
36991 $_am_arg | $_am_arg:* )
36992 break ;;
36993 * )
36994 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
36995 esac
36996done
36997echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
36998$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
36999 X"$_am_arg" : 'X\(//\)[^/]' \| \
37000 X"$_am_arg" : 'X\(//\)$' \| \
37001 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
37002$as_echo X"$_am_arg" |
37003 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37004 s//\1/
37005 q
37006 }
37007 /^X\(\/\/\)[^/].*/{
37008 s//\1/
37009 q
37010 }
37011 /^X\(\/\/\)$/{
37012 s//\1/
37013 q
37014 }
37015 /^X\(\/\).*/{
37016 s//\1/
37017 q
37018 }
37019 s/.*/./; q'`/stamp-h$_am_stamp_count
cristy3ed852e2009-09-05 21:47:34 +000037020 ;;
37021
cristy8b350f62009-11-15 23:12:43 +000037022 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
cristy3ed852e2009-09-05 21:47:34 +000037023$as_echo "$as_me: executing $ac_file commands" >&6;}
37024 ;;
37025 esac
37026
37027
37028 case $ac_file$ac_mode in
cristy4c08aed2011-07-01 19:47:50 +000037029 "MagickCore/magick-config.h":C) ac_prefix_conf_OUT=`echo MagickCore/magick-config.h`
cristy73bd4a52010-10-05 11:24:23 +000037030ac_prefix_conf_DEF=`echo _$ac_prefix_conf_OUT | sed -e "y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:" -e "s/[^abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ]/_/g"`
37031ac_prefix_conf_PKG=`echo MagickCore`
37032ac_prefix_conf_LOW=`echo _$ac_prefix_conf_PKG | sed -e "y:ABCDEFGHIJKLMNOPQRSTUVWXYZ-:abcdefghijklmnopqrstuvwxyz_:"`
37033ac_prefix_conf_UPP=`echo $ac_prefix_conf_PKG | sed -e "y:abcdefghijklmnopqrstuvwxyz-:ABCDEFGHIJKLMNOPQRSTUVWXYZ_:" -e "/^[0123456789]/s/^/_/"`
37034ac_prefix_conf_INP=`echo "" | sed -e 's/ *//'`
37035if test ".$ac_prefix_conf_INP" = "."; then
37036 for ac_file in : $CONFIG_HEADERS; do test "_$ac_file" = _: && continue
37037 case "$ac_file" in
37038 *.h) ac_prefix_conf_INP=$ac_file ;;
37039 *)
37040 esac
37041 test ".$ac_prefix_conf_INP" != "." && break
37042 done
37043fi
37044if test ".$ac_prefix_conf_INP" = "."; then
37045 case "$ac_prefix_conf_OUT" in
37046 */*) ac_prefix_conf_INP=`basename "$ac_prefix_conf_OUT"`
37047 ;;
37048 *-*) ac_prefix_conf_INP=`echo "$ac_prefix_conf_OUT" | sed -e "s/[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*-//"`
37049 ;;
37050 *) ac_prefix_conf_INP=config.h
37051 ;;
37052 esac
37053fi
37054if test -z "$ac_prefix_conf_PKG" ; then
cristy98dddb52010-11-04 00:30:15 +000037055 as_fn_error $? "no prefix for _PREFIX_PKG_CONFIG_H" "$LINENO" 5
cristy73bd4a52010-10-05 11:24:23 +000037056else
37057 if test ! -f "$ac_prefix_conf_INP" ; then if test -f "$srcdir/$ac_prefix_conf_INP" ; then
37058 ac_prefix_conf_INP="$srcdir/$ac_prefix_conf_INP"
37059 fi fi
37060 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&5
37061$as_echo "$as_me: creating $ac_prefix_conf_OUT - prefix $ac_prefix_conf_UPP for $ac_prefix_conf_INP defines" >&6;}
37062 if test -f $ac_prefix_conf_INP ; then
cristy24fc1fe2010-10-23 21:13:01 +000037063 $as_echo "s/^#undef *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]\\)/#undef $ac_prefix_conf_UPP""_\\1/" > conftest.prefix
37064 $as_echo "s/^#undef *\\([abcdefghijklmnopqrstuvwxyz]\\)/#undef $ac_prefix_conf_LOW""_\\1/" >> conftest.prefix
37065 $as_echo "s/^#define *\\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_UPP""_\\1\\" >> conftest.prefix
37066 $as_echo "#define $ac_prefix_conf_UPP""_\\1\\2\\" >> conftest.prefix
37067 $as_echo "#endif/" >> conftest.prefix
37068 $as_echo "s/^#define *\\([abcdefghijklmnopqrstuvwxyz][abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_]*\\)\\(.*\\)/#ifndef $ac_prefix_conf_LOW""_\\1\\" >> conftest.prefix
37069 $as_echo "#define $ac_prefix_conf_LOW""_\\1\\2\\" >> conftest.prefix
37070 $as_echo "#endif/" >> conftest.prefix
cristy73bd4a52010-10-05 11:24:23 +000037071 # now executing _script on _DEF input to create _OUT output file
37072 echo "#ifndef $ac_prefix_conf_DEF" >$tmp/pconfig.h
37073 echo "#define $ac_prefix_conf_DEF 1" >>$tmp/pconfig.h
37074 echo ' ' >>$tmp/pconfig.h
37075 echo /'*' $ac_prefix_conf_OUT. Generated automatically at end of configure. '*'/ >>$tmp/pconfig.h
37076
37077 sed -f conftest.prefix $ac_prefix_conf_INP >>$tmp/pconfig.h
37078 echo ' ' >>$tmp/pconfig.h
37079 echo '/* once:' $ac_prefix_conf_DEF '*/' >>$tmp/pconfig.h
37080 echo "#endif" >>$tmp/pconfig.h
37081 if cmp -s $ac_prefix_conf_OUT $tmp/pconfig.h 2>/dev/null; then
37082 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_prefix_conf_OUT is unchanged" >&5
37083$as_echo "$as_me: $ac_prefix_conf_OUT is unchanged" >&6;}
37084 else
37085 ac_dir=`$as_dirname -- "$ac_prefix_conf_OUT" ||
37086$as_expr X"$ac_prefix_conf_OUT" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37087 X"$ac_prefix_conf_OUT" : 'X\(//\)[^/]' \| \
37088 X"$ac_prefix_conf_OUT" : 'X\(//\)$' \| \
37089 X"$ac_prefix_conf_OUT" : 'X\(/\)' \| . 2>/dev/null ||
37090$as_echo X"$ac_prefix_conf_OUT" |
37091 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37092 s//\1/
37093 q
37094 }
37095 /^X\(\/\/\)[^/].*/{
37096 s//\1/
37097 q
37098 }
37099 /^X\(\/\/\)$/{
37100 s//\1/
37101 q
37102 }
37103 /^X\(\/\).*/{
37104 s//\1/
37105 q
37106 }
37107 s/.*/./; q'`
37108 as_dir="$ac_dir"; as_fn_mkdir_p
37109 rm -f "$ac_prefix_conf_OUT"
37110 mv $tmp/pconfig.h "$ac_prefix_conf_OUT"
37111 fi
37112 cp conftest.prefix _configs.sed
37113 else
cristy98dddb52010-11-04 00:30:15 +000037114 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 +000037115 fi
37116 rm -f conftest.*
37117fi
37118 ;;
37119 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
37120 # Autoconf 2.62 quotes --file arguments for eval, but not when files
37121 # are listed without --file. Let's play safe and only enable the eval
37122 # if we detect the quoting.
37123 case $CONFIG_FILES in
37124 *\'*) eval set x "$CONFIG_FILES" ;;
37125 *) set x $CONFIG_FILES ;;
37126 esac
37127 shift
37128 for mf
37129 do
37130 # Strip MF so we end up with the name of the file.
37131 mf=`echo "$mf" | sed -e 's/:.*$//'`
37132 # Check whether this is an Automake generated Makefile or not.
cristyc0890a62012-07-19 00:18:20 +000037133 # We used to match only the files named 'Makefile.in', but
cristy73bd4a52010-10-05 11:24:23 +000037134 # some people rename them; so instead we look at the file content.
37135 # Grep'ing the first line is not enough: some people post-process
37136 # each Makefile.in and add a new line on top of each file to say so.
37137 # Grep'ing the whole file is not good either: AIX grep has a line
37138 # limit of 2048, but all sed's we know have understand at least 4000.
37139 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
37140 dirpart=`$as_dirname -- "$mf" ||
37141$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37142 X"$mf" : 'X\(//\)[^/]' \| \
37143 X"$mf" : 'X\(//\)$' \| \
37144 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
37145$as_echo X"$mf" |
37146 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37147 s//\1/
37148 q
37149 }
37150 /^X\(\/\/\)[^/].*/{
37151 s//\1/
37152 q
37153 }
37154 /^X\(\/\/\)$/{
37155 s//\1/
37156 q
37157 }
37158 /^X\(\/\).*/{
37159 s//\1/
37160 q
37161 }
37162 s/.*/./; q'`
37163 else
37164 continue
37165 fi
37166 # Extract the definition of DEPDIR, am__include, and am__quote
cristyc0890a62012-07-19 00:18:20 +000037167 # from the Makefile without running 'make'.
cristy73bd4a52010-10-05 11:24:23 +000037168 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
37169 test -z "$DEPDIR" && continue
37170 am__include=`sed -n 's/^am__include = //p' < "$mf"`
37171 test -z "am__include" && continue
37172 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
cristy73bd4a52010-10-05 11:24:23 +000037173 # Find all dependency output files, they are included files with
37174 # $(DEPDIR) in their names. We invoke sed twice because it is the
37175 # simplest approach to changing $(DEPDIR) to its actual value in the
37176 # expansion.
37177 for file in `sed -n "
37178 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
cristyc0890a62012-07-19 00:18:20 +000037179 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
cristy73bd4a52010-10-05 11:24:23 +000037180 # Make sure the directory exists.
37181 test -f "$dirpart/$file" && continue
37182 fdir=`$as_dirname -- "$file" ||
37183$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37184 X"$file" : 'X\(//\)[^/]' \| \
37185 X"$file" : 'X\(//\)$' \| \
37186 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
37187$as_echo X"$file" |
37188 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37189 s//\1/
37190 q
37191 }
37192 /^X\(\/\/\)[^/].*/{
37193 s//\1/
37194 q
37195 }
37196 /^X\(\/\/\)$/{
37197 s//\1/
37198 q
37199 }
37200 /^X\(\/\).*/{
37201 s//\1/
37202 q
37203 }
37204 s/.*/./; q'`
37205 as_dir=$dirpart/$fdir; as_fn_mkdir_p
37206 # echo "creating $dirpart/$file"
37207 echo '# dummy' > "$dirpart/$file"
37208 done
37209 done
37210}
37211 ;;
37212 "libtool":C)
37213
37214 # See if we are running on zsh, and set the options which allow our
37215 # commands through without removal of \ escapes.
37216 if test -n "${ZSH_VERSION+set}" ; then
37217 setopt NO_GLOB_SUBST
37218 fi
37219
37220 cfgfile="${ofile}T"
37221 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
37222 $RM "$cfgfile"
37223
37224 cat <<_LT_EOF >> "$cfgfile"
37225#! $SHELL
37226
37227# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
37228# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
37229# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
37230# NOTE: Changes made to this file will be lost: look at ltmain.sh.
37231#
37232# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
cristy99bd5232011-12-07 14:38:20 +000037233# 2006, 2007, 2008, 2009, 2010, 2011 Free Software
37234# Foundation, Inc.
cristy73bd4a52010-10-05 11:24:23 +000037235# Written by Gordon Matzigkeit, 1996
37236#
37237# This file is part of GNU Libtool.
37238#
37239# GNU Libtool is free software; you can redistribute it and/or
37240# modify it under the terms of the GNU General Public License as
37241# published by the Free Software Foundation; either version 2 of
37242# the License, or (at your option) any later version.
37243#
37244# As a special exception to the GNU General Public License,
37245# if you distribute this file as part of a program or library that
37246# is built using GNU Libtool, you may include this file under the
37247# same distribution terms that you use for the rest of that program.
37248#
37249# GNU Libtool is distributed in the hope that it will be useful,
37250# but WITHOUT ANY WARRANTY; without even the implied warranty of
37251# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
37252# GNU General Public License for more details.
37253#
37254# You should have received a copy of the GNU General Public License
37255# along with GNU Libtool; see the file COPYING. If not, a copy
37256# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
37257# obtained by writing to the Free Software Foundation, Inc.,
37258# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
37259
37260
37261# The names of the tagged configurations supported by this script.
37262available_tags="CXX "
37263
37264# ### BEGIN LIBTOOL CONFIG
37265
37266# A sed program that does not truncate output.
37267SED=$lt_SED
37268
37269# Sed that helps us avoid accidentally triggering echo(1) options like -n.
37270Xsed="\$SED -e 1s/^X//"
37271
37272# A grep program that handles long lines.
37273GREP=$lt_GREP
37274
37275# An ERE matcher.
37276EGREP=$lt_EGREP
37277
37278# A literal string matcher.
37279FGREP=$lt_FGREP
37280
cristy0c60a692010-11-04 01:09:47 +000037281# Shell to use when invoking shell scripts.
37282SHELL=$lt_SHELL
37283
37284# An echo program that protects backslashes.
37285ECHO=$lt_ECHO
37286
cristy73bd4a52010-10-05 11:24:23 +000037287# Which release of libtool.m4 was used?
37288macro_version=$macro_version
37289macro_revision=$macro_revision
37290
37291# Assembler program.
cristy0c60a692010-11-04 01:09:47 +000037292AS=$lt_AS
cristy73bd4a52010-10-05 11:24:23 +000037293
37294# DLL creation program.
cristy0c60a692010-11-04 01:09:47 +000037295DLLTOOL=$lt_DLLTOOL
cristy73bd4a52010-10-05 11:24:23 +000037296
37297# Object dumper program.
cristy0c60a692010-11-04 01:09:47 +000037298OBJDUMP=$lt_OBJDUMP
cristy73bd4a52010-10-05 11:24:23 +000037299
37300# Whether or not to build shared libraries.
37301build_libtool_libs=$enable_shared
37302
37303# Whether or not to build static libraries.
37304build_old_libs=$enable_static
37305
37306# What type of objects to build.
37307pic_mode=$pic_mode
37308
37309# Whether or not to optimize for fast installation.
37310fast_install=$enable_fast_install
37311
cristy99bd5232011-12-07 14:38:20 +000037312# The PATH separator for the build system.
37313PATH_SEPARATOR=$lt_PATH_SEPARATOR
37314
cristy73bd4a52010-10-05 11:24:23 +000037315# The host system.
37316host_alias=$host_alias
37317host=$host
37318host_os=$host_os
37319
37320# The build system.
37321build_alias=$build_alias
37322build=$build
37323build_os=$build_os
37324
37325# A BSD- or MS-compatible name lister.
37326NM=$lt_NM
37327
37328# Whether we need soft or hard links.
37329LN_S=$lt_LN_S
37330
37331# What is the maximum length of a command?
37332max_cmd_len=$max_cmd_len
37333
37334# Object file suffix (normally "o").
37335objext=$ac_objext
37336
37337# Executable file suffix (normally "").
37338exeext=$exeext
37339
37340# whether the shell understands "unset".
37341lt_unset=$lt_unset
37342
37343# turn spaces into newlines.
37344SP2NL=$lt_lt_SP2NL
37345
37346# turn newlines into spaces.
37347NL2SP=$lt_lt_NL2SP
37348
cristyda16f162011-02-19 23:52:17 +000037349# convert \$build file names to \$host format.
37350to_host_file_cmd=$lt_cv_to_host_file_cmd
37351
37352# convert \$build files to toolchain format.
37353to_tool_file_cmd=$lt_cv_to_tool_file_cmd
37354
cristy73bd4a52010-10-05 11:24:23 +000037355# Method to check whether dependent libraries are shared objects.
37356deplibs_check_method=$lt_deplibs_check_method
37357
cristyda16f162011-02-19 23:52:17 +000037358# Command to use when deplibs_check_method = "file_magic".
cristy73bd4a52010-10-05 11:24:23 +000037359file_magic_cmd=$lt_file_magic_cmd
37360
cristyda16f162011-02-19 23:52:17 +000037361# How to find potential files when deplibs_check_method = "file_magic".
37362file_magic_glob=$lt_file_magic_glob
37363
37364# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
37365want_nocaseglob=$lt_want_nocaseglob
37366
37367# Command to associate shared and link libraries.
37368sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
37369
cristy73bd4a52010-10-05 11:24:23 +000037370# The archiver.
37371AR=$lt_AR
cristyda16f162011-02-19 23:52:17 +000037372
37373# Flags to create an archive.
cristy73bd4a52010-10-05 11:24:23 +000037374AR_FLAGS=$lt_AR_FLAGS
37375
cristyda16f162011-02-19 23:52:17 +000037376# How to feed a file listing to the archiver.
37377archiver_list_spec=$lt_archiver_list_spec
37378
cristy73bd4a52010-10-05 11:24:23 +000037379# A symbol stripping program.
37380STRIP=$lt_STRIP
37381
37382# Commands used to install an old-style archive.
37383RANLIB=$lt_RANLIB
37384old_postinstall_cmds=$lt_old_postinstall_cmds
37385old_postuninstall_cmds=$lt_old_postuninstall_cmds
37386
cristy0c60a692010-11-04 01:09:47 +000037387# Whether to use a lock for old archive extraction.
37388lock_old_archive_extraction=$lock_old_archive_extraction
37389
cristy73bd4a52010-10-05 11:24:23 +000037390# A C compiler.
37391LTCC=$lt_CC
37392
37393# LTCC compiler flags.
37394LTCFLAGS=$lt_CFLAGS
37395
37396# Take the output of nm and produce a listing of raw symbols and C names.
37397global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
37398
37399# Transform the output of nm in a proper C declaration.
37400global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
37401
37402# Transform the output of nm in a C name address pair.
37403global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
37404
37405# Transform the output of nm in a C name address pair when lib prefix is needed.
37406global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
37407
cristyda16f162011-02-19 23:52:17 +000037408# Specify filename containing input files for \$NM.
37409nm_file_list_spec=$lt_nm_file_list_spec
37410
37411# The root where to search for dependent libraries,and in which our libraries should be installed.
37412lt_sysroot=$lt_sysroot
37413
cristy73bd4a52010-10-05 11:24:23 +000037414# The name of the directory that contains temporary libtool files.
37415objdir=$objdir
37416
cristy73bd4a52010-10-05 11:24:23 +000037417# Used to examine libraries when file_magic_cmd begins with "file".
37418MAGIC_CMD=$MAGIC_CMD
37419
37420# Must we lock files when doing compilation?
37421need_locks=$lt_need_locks
37422
cristyda16f162011-02-19 23:52:17 +000037423# Manifest tool.
37424MANIFEST_TOOL=$lt_MANIFEST_TOOL
37425
cristy73bd4a52010-10-05 11:24:23 +000037426# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
37427DSYMUTIL=$lt_DSYMUTIL
37428
37429# Tool to change global to local symbols on Mac OS X.
37430NMEDIT=$lt_NMEDIT
37431
37432# Tool to manipulate fat objects and archives on Mac OS X.
37433LIPO=$lt_LIPO
37434
37435# ldd/readelf like tool for Mach-O binaries on Mac OS X.
37436OTOOL=$lt_OTOOL
37437
37438# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
37439OTOOL64=$lt_OTOOL64
37440
37441# Old archive suffix (normally "a").
37442libext=$libext
37443
37444# Shared library suffix (normally ".so").
37445shrext_cmds=$lt_shrext_cmds
37446
37447# The commands to extract the exported symbol list from a shared archive.
37448extract_expsyms_cmds=$lt_extract_expsyms_cmds
37449
37450# Variables whose values should be saved in libtool wrapper scripts and
37451# restored at link time.
37452variables_saved_for_relink=$lt_variables_saved_for_relink
37453
37454# Do we need the "lib" prefix for modules?
37455need_lib_prefix=$need_lib_prefix
37456
37457# Do we need a version for libraries?
37458need_version=$need_version
37459
37460# Library versioning type.
37461version_type=$version_type
37462
37463# Shared library runtime path variable.
37464runpath_var=$runpath_var
37465
37466# Shared library path variable.
37467shlibpath_var=$shlibpath_var
37468
37469# Is shlibpath searched before the hard-coded library search path?
37470shlibpath_overrides_runpath=$shlibpath_overrides_runpath
37471
37472# Format of library name prefix.
37473libname_spec=$lt_libname_spec
37474
37475# List of archive names. First name is the real one, the rest are links.
37476# The last name is the one that the linker finds with -lNAME
37477library_names_spec=$lt_library_names_spec
37478
37479# The coded name of the library, if different from the real name.
37480soname_spec=$lt_soname_spec
37481
cristy0c60a692010-11-04 01:09:47 +000037482# Permission mode override for installation of shared libraries.
37483install_override_mode=$lt_install_override_mode
37484
cristy73bd4a52010-10-05 11:24:23 +000037485# Command to use after installation of a shared archive.
37486postinstall_cmds=$lt_postinstall_cmds
37487
37488# Command to use after uninstallation of a shared archive.
37489postuninstall_cmds=$lt_postuninstall_cmds
37490
37491# Commands used to finish a libtool library installation in a directory.
37492finish_cmds=$lt_finish_cmds
37493
37494# As "finish_cmds", except a single script fragment to be evaled but
37495# not shown.
37496finish_eval=$lt_finish_eval
37497
37498# Whether we should hardcode library paths into libraries.
37499hardcode_into_libs=$hardcode_into_libs
37500
37501# Compile-time system search path for libraries.
37502sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
37503
37504# Run-time system search path for libraries.
37505sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
37506
37507# Whether dlopen is supported.
37508dlopen_support=$enable_dlopen
37509
37510# Whether dlopen of programs is supported.
37511dlopen_self=$enable_dlopen_self
37512
37513# Whether dlopen of statically linked programs is supported.
37514dlopen_self_static=$enable_dlopen_self_static
37515
37516# Commands to strip libraries.
37517old_striplib=$lt_old_striplib
37518striplib=$lt_striplib
37519
37520
37521# The linker used to build libraries.
37522LD=$lt_LD
37523
cristy0c60a692010-11-04 01:09:47 +000037524# How to create reloadable object files.
37525reload_flag=$lt_reload_flag
37526reload_cmds=$lt_reload_cmds
37527
cristy73bd4a52010-10-05 11:24:23 +000037528# Commands used to build an old-style archive.
37529old_archive_cmds=$lt_old_archive_cmds
37530
37531# A language specific compiler.
37532CC=$lt_compiler
37533
37534# Is the compiler the GNU compiler?
37535with_gcc=$GCC
37536
37537# Compiler flag to turn off builtin functions.
37538no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
37539
cristy73bd4a52010-10-05 11:24:23 +000037540# Additional compiler flags for building library objects.
37541pic_flag=$lt_lt_prog_compiler_pic
37542
cristyda16f162011-02-19 23:52:17 +000037543# How to pass a linker flag through the compiler.
37544wl=$lt_lt_prog_compiler_wl
37545
cristy73bd4a52010-10-05 11:24:23 +000037546# Compiler flag to prevent dynamic linking.
37547link_static_flag=$lt_lt_prog_compiler_static
37548
37549# Does compiler simultaneously support -c and -o options?
37550compiler_c_o=$lt_lt_cv_prog_compiler_c_o
37551
37552# Whether or not to add -lc for building shared libraries.
37553build_libtool_need_lc=$archive_cmds_need_lc
37554
37555# Whether or not to disallow shared libs when runtime libs are static.
37556allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
37557
37558# Compiler flag to allow reflexive dlopens.
37559export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
37560
37561# Compiler flag to generate shared objects directly from archives.
37562whole_archive_flag_spec=$lt_whole_archive_flag_spec
37563
37564# Whether the compiler copes with passing no objects directly.
37565compiler_needs_object=$lt_compiler_needs_object
37566
37567# Create an old-style archive from a shared archive.
37568old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
37569
37570# Create a temporary old-style archive to link instead of a shared archive.
37571old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
37572
37573# Commands used to build a shared archive.
37574archive_cmds=$lt_archive_cmds
37575archive_expsym_cmds=$lt_archive_expsym_cmds
37576
37577# Commands used to build a loadable module if different from building
37578# a shared archive.
37579module_cmds=$lt_module_cmds
37580module_expsym_cmds=$lt_module_expsym_cmds
37581
37582# Whether we are building with GNU ld or not.
37583with_gnu_ld=$lt_with_gnu_ld
37584
37585# Flag that allows shared libraries with undefined symbols to be built.
37586allow_undefined_flag=$lt_allow_undefined_flag
37587
37588# Flag that enforces no undefined symbols.
37589no_undefined_flag=$lt_no_undefined_flag
37590
37591# Flag to hardcode \$libdir into a binary during linking.
37592# This must work even if \$libdir does not exist
37593hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
37594
cristy73bd4a52010-10-05 11:24:23 +000037595# Whether we need a single "-rpath" flag with a separated argument.
37596hardcode_libdir_separator=$lt_hardcode_libdir_separator
37597
37598# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37599# DIR into the resulting binary.
37600hardcode_direct=$hardcode_direct
37601
37602# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37603# DIR into the resulting binary and the resulting library dependency is
37604# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37605# library is relocated.
37606hardcode_direct_absolute=$hardcode_direct_absolute
37607
37608# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37609# into the resulting binary.
37610hardcode_minus_L=$hardcode_minus_L
37611
37612# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37613# into the resulting binary.
37614hardcode_shlibpath_var=$hardcode_shlibpath_var
37615
37616# Set to "yes" if building a shared library automatically hardcodes DIR
37617# into the library and all subsequent libraries and executables linked
37618# against it.
37619hardcode_automatic=$hardcode_automatic
37620
37621# Set to yes if linker adds runtime paths of dependent libraries
37622# to runtime path list.
37623inherit_rpath=$inherit_rpath
37624
37625# Whether libtool must link a program against all its dependency libraries.
37626link_all_deplibs=$link_all_deplibs
37627
cristy73bd4a52010-10-05 11:24:23 +000037628# Set to "yes" if exported symbols are required.
37629always_export_symbols=$always_export_symbols
37630
37631# The commands to list exported symbols.
37632export_symbols_cmds=$lt_export_symbols_cmds
37633
37634# Symbols that should not be listed in the preloaded symbols.
37635exclude_expsyms=$lt_exclude_expsyms
37636
37637# Symbols that must always be exported.
37638include_expsyms=$lt_include_expsyms
37639
37640# Commands necessary for linking programs (against libraries) with templates.
37641prelink_cmds=$lt_prelink_cmds
37642
cristyda16f162011-02-19 23:52:17 +000037643# Commands necessary for finishing linking programs.
37644postlink_cmds=$lt_postlink_cmds
37645
cristy73bd4a52010-10-05 11:24:23 +000037646# Specify filename containing input files.
37647file_list_spec=$lt_file_list_spec
37648
37649# How to hardcode a shared library path into an executable.
37650hardcode_action=$hardcode_action
37651
37652# The directories searched by this compiler when creating a shared library.
37653compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
37654
37655# Dependencies to place before and after the objects being linked to
37656# create a shared library.
37657predep_objects=$lt_predep_objects
37658postdep_objects=$lt_postdep_objects
37659predeps=$lt_predeps
37660postdeps=$lt_postdeps
37661
37662# The library search path used internally by the compiler when linking
37663# a shared library.
37664compiler_lib_search_path=$lt_compiler_lib_search_path
37665
37666# ### END LIBTOOL CONFIG
37667
37668_LT_EOF
37669
37670 case $host_os in
37671 aix3*)
37672 cat <<\_LT_EOF >> "$cfgfile"
37673# AIX sometimes has problems with the GCC collect2 program. For some
37674# reason, if we set the COLLECT_NAMES environment variable, the problems
37675# vanish in a puff of smoke.
37676if test "X${COLLECT_NAMES+set}" != Xset; then
37677 COLLECT_NAMES=
37678 export COLLECT_NAMES
37679fi
37680_LT_EOF
37681 ;;
37682 esac
37683
37684
37685ltmain="$ac_aux_dir/ltmain.sh"
37686
37687
37688 # We use sed instead of cat because bash on DJGPP gets confused if
37689 # if finds mixed CR/LF and LF-only lines. Since sed operates in
37690 # text mode, it properly converts lines to CR/LF. This bash problem
37691 # is reportedly fixed, but why not run on old versions too?
cristyda16f162011-02-19 23:52:17 +000037692 sed '$q' "$ltmain" >> "$cfgfile" \
37693 || (rm -f "$cfgfile"; exit 1)
cristy73bd4a52010-10-05 11:24:23 +000037694
cristyda16f162011-02-19 23:52:17 +000037695 if test x"$xsi_shell" = xyes; then
37696 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
37697func_dirname ()\
37698{\
37699\ case ${1} in\
37700\ */*) func_dirname_result="${1%/*}${2}" ;;\
37701\ * ) func_dirname_result="${3}" ;;\
37702\ esac\
37703} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
37704 && mv -f "$cfgfile.tmp" "$cfgfile" \
37705 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37706test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037707
37708
cristyda16f162011-02-19 23:52:17 +000037709 sed -e '/^func_basename ()$/,/^} # func_basename /c\
37710func_basename ()\
37711{\
37712\ func_basename_result="${1##*/}"\
37713} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
37714 && mv -f "$cfgfile.tmp" "$cfgfile" \
37715 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37716test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037717
37718
cristyda16f162011-02-19 23:52:17 +000037719 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
37720func_dirname_and_basename ()\
37721{\
37722\ case ${1} in\
37723\ */*) func_dirname_result="${1%/*}${2}" ;;\
37724\ * ) func_dirname_result="${3}" ;;\
37725\ esac\
37726\ func_basename_result="${1##*/}"\
37727} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
37728 && mv -f "$cfgfile.tmp" "$cfgfile" \
37729 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37730test 0 -eq $? || _lt_function_replace_fail=:
cristy73bd4a52010-10-05 11:24:23 +000037731
cristyda16f162011-02-19 23:52:17 +000037732
37733 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
37734func_stripname ()\
37735{\
37736\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
37737\ # positional parameters, so assign one to ordinary parameter first.\
37738\ func_stripname_result=${3}\
37739\ func_stripname_result=${func_stripname_result#"${1}"}\
37740\ func_stripname_result=${func_stripname_result%"${2}"}\
37741} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
37742 && mv -f "$cfgfile.tmp" "$cfgfile" \
37743 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37744test 0 -eq $? || _lt_function_replace_fail=:
37745
37746
37747 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
37748func_split_long_opt ()\
37749{\
37750\ func_split_long_opt_name=${1%%=*}\
37751\ func_split_long_opt_arg=${1#*=}\
37752} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
37753 && mv -f "$cfgfile.tmp" "$cfgfile" \
37754 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37755test 0 -eq $? || _lt_function_replace_fail=:
37756
37757
37758 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
37759func_split_short_opt ()\
37760{\
37761\ func_split_short_opt_arg=${1#??}\
37762\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
37763} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
37764 && mv -f "$cfgfile.tmp" "$cfgfile" \
37765 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37766test 0 -eq $? || _lt_function_replace_fail=:
37767
37768
37769 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
37770func_lo2o ()\
37771{\
37772\ case ${1} in\
37773\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
37774\ *) func_lo2o_result=${1} ;;\
37775\ esac\
37776} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
37777 && mv -f "$cfgfile.tmp" "$cfgfile" \
37778 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37779test 0 -eq $? || _lt_function_replace_fail=:
37780
37781
37782 sed -e '/^func_xform ()$/,/^} # func_xform /c\
37783func_xform ()\
37784{\
37785 func_xform_result=${1%.*}.lo\
37786} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
37787 && mv -f "$cfgfile.tmp" "$cfgfile" \
37788 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37789test 0 -eq $? || _lt_function_replace_fail=:
37790
37791
37792 sed -e '/^func_arith ()$/,/^} # func_arith /c\
37793func_arith ()\
37794{\
37795 func_arith_result=$(( $* ))\
37796} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
37797 && mv -f "$cfgfile.tmp" "$cfgfile" \
37798 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37799test 0 -eq $? || _lt_function_replace_fail=:
37800
37801
37802 sed -e '/^func_len ()$/,/^} # func_len /c\
37803func_len ()\
37804{\
37805 func_len_result=${#1}\
37806} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
37807 && mv -f "$cfgfile.tmp" "$cfgfile" \
37808 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37809test 0 -eq $? || _lt_function_replace_fail=:
37810
37811fi
37812
37813if test x"$lt_shell_append" = xyes; then
37814 sed -e '/^func_append ()$/,/^} # func_append /c\
37815func_append ()\
37816{\
37817 eval "${1}+=\\${2}"\
37818} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
37819 && mv -f "$cfgfile.tmp" "$cfgfile" \
37820 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37821test 0 -eq $? || _lt_function_replace_fail=:
37822
37823
37824 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
37825func_append_quoted ()\
37826{\
37827\ func_quote_for_eval "${2}"\
37828\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
37829} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
37830 && mv -f "$cfgfile.tmp" "$cfgfile" \
37831 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37832test 0 -eq $? || _lt_function_replace_fail=:
37833
37834
37835 # Save a `func_append' function call where possible by direct use of '+='
37836 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
37837 && mv -f "$cfgfile.tmp" "$cfgfile" \
37838 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37839 test 0 -eq $? || _lt_function_replace_fail=:
37840else
37841 # Save a `func_append' function call even when '+=' is not available
37842 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
37843 && mv -f "$cfgfile.tmp" "$cfgfile" \
37844 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
37845 test 0 -eq $? || _lt_function_replace_fail=:
37846fi
37847
37848if test x"$_lt_function_replace_fail" = x":"; then
37849 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
37850$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
37851fi
37852
37853
37854 mv -f "$cfgfile" "$ofile" ||
cristy73bd4a52010-10-05 11:24:23 +000037855 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
37856 chmod +x "$ofile"
37857
37858
37859 cat <<_LT_EOF >> "$ofile"
37860
37861# ### BEGIN LIBTOOL TAG CONFIG: CXX
37862
37863# The linker used to build libraries.
37864LD=$lt_LD_CXX
37865
cristy0c60a692010-11-04 01:09:47 +000037866# How to create reloadable object files.
37867reload_flag=$lt_reload_flag_CXX
37868reload_cmds=$lt_reload_cmds_CXX
37869
cristy73bd4a52010-10-05 11:24:23 +000037870# Commands used to build an old-style archive.
37871old_archive_cmds=$lt_old_archive_cmds_CXX
37872
37873# A language specific compiler.
37874CC=$lt_compiler_CXX
37875
37876# Is the compiler the GNU compiler?
37877with_gcc=$GCC_CXX
37878
37879# Compiler flag to turn off builtin functions.
37880no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
37881
cristy73bd4a52010-10-05 11:24:23 +000037882# Additional compiler flags for building library objects.
37883pic_flag=$lt_lt_prog_compiler_pic_CXX
37884
cristyda16f162011-02-19 23:52:17 +000037885# How to pass a linker flag through the compiler.
37886wl=$lt_lt_prog_compiler_wl_CXX
37887
cristy73bd4a52010-10-05 11:24:23 +000037888# Compiler flag to prevent dynamic linking.
37889link_static_flag=$lt_lt_prog_compiler_static_CXX
37890
37891# Does compiler simultaneously support -c and -o options?
37892compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
37893
37894# Whether or not to add -lc for building shared libraries.
37895build_libtool_need_lc=$archive_cmds_need_lc_CXX
37896
37897# Whether or not to disallow shared libs when runtime libs are static.
37898allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
37899
37900# Compiler flag to allow reflexive dlopens.
37901export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
37902
37903# Compiler flag to generate shared objects directly from archives.
37904whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
37905
37906# Whether the compiler copes with passing no objects directly.
37907compiler_needs_object=$lt_compiler_needs_object_CXX
37908
37909# Create an old-style archive from a shared archive.
37910old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
37911
37912# Create a temporary old-style archive to link instead of a shared archive.
37913old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
37914
37915# Commands used to build a shared archive.
37916archive_cmds=$lt_archive_cmds_CXX
37917archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
37918
37919# Commands used to build a loadable module if different from building
37920# a shared archive.
37921module_cmds=$lt_module_cmds_CXX
37922module_expsym_cmds=$lt_module_expsym_cmds_CXX
37923
37924# Whether we are building with GNU ld or not.
37925with_gnu_ld=$lt_with_gnu_ld_CXX
37926
37927# Flag that allows shared libraries with undefined symbols to be built.
37928allow_undefined_flag=$lt_allow_undefined_flag_CXX
37929
37930# Flag that enforces no undefined symbols.
37931no_undefined_flag=$lt_no_undefined_flag_CXX
37932
37933# Flag to hardcode \$libdir into a binary during linking.
37934# This must work even if \$libdir does not exist
37935hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
37936
cristy73bd4a52010-10-05 11:24:23 +000037937# Whether we need a single "-rpath" flag with a separated argument.
37938hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
37939
37940# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37941# DIR into the resulting binary.
37942hardcode_direct=$hardcode_direct_CXX
37943
37944# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
37945# DIR into the resulting binary and the resulting library dependency is
37946# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
37947# library is relocated.
37948hardcode_direct_absolute=$hardcode_direct_absolute_CXX
37949
37950# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
37951# into the resulting binary.
37952hardcode_minus_L=$hardcode_minus_L_CXX
37953
37954# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
37955# into the resulting binary.
37956hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
37957
37958# Set to "yes" if building a shared library automatically hardcodes DIR
37959# into the library and all subsequent libraries and executables linked
37960# against it.
37961hardcode_automatic=$hardcode_automatic_CXX
37962
37963# Set to yes if linker adds runtime paths of dependent libraries
37964# to runtime path list.
37965inherit_rpath=$inherit_rpath_CXX
37966
37967# Whether libtool must link a program against all its dependency libraries.
37968link_all_deplibs=$link_all_deplibs_CXX
37969
cristy73bd4a52010-10-05 11:24:23 +000037970# Set to "yes" if exported symbols are required.
37971always_export_symbols=$always_export_symbols_CXX
37972
37973# The commands to list exported symbols.
37974export_symbols_cmds=$lt_export_symbols_cmds_CXX
37975
37976# Symbols that should not be listed in the preloaded symbols.
37977exclude_expsyms=$lt_exclude_expsyms_CXX
37978
37979# Symbols that must always be exported.
37980include_expsyms=$lt_include_expsyms_CXX
37981
37982# Commands necessary for linking programs (against libraries) with templates.
37983prelink_cmds=$lt_prelink_cmds_CXX
37984
cristyda16f162011-02-19 23:52:17 +000037985# Commands necessary for finishing linking programs.
37986postlink_cmds=$lt_postlink_cmds_CXX
37987
cristy73bd4a52010-10-05 11:24:23 +000037988# Specify filename containing input files.
37989file_list_spec=$lt_file_list_spec_CXX
37990
37991# How to hardcode a shared library path into an executable.
37992hardcode_action=$hardcode_action_CXX
37993
37994# The directories searched by this compiler when creating a shared library.
37995compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
37996
37997# Dependencies to place before and after the objects being linked to
37998# create a shared library.
37999predep_objects=$lt_predep_objects_CXX
38000postdep_objects=$lt_postdep_objects_CXX
38001predeps=$lt_predeps_CXX
38002postdeps=$lt_postdeps_CXX
38003
38004# The library search path used internally by the compiler when linking
38005# a shared library.
38006compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
38007
38008# ### END LIBTOOL TAG CONFIG: CXX
38009_LT_EOF
38010
38011 ;;
cristy2bd4b6e2012-07-22 15:29:11 +000038012 "magick.sh.in":C) chmod +x magick.sh ;;
cristy4c08aed2011-07-01 19:47:50 +000038013 "MagickCore-config.in":C) chmod +x MagickCore/MagickCore-config ;;
cristy4c08aed2011-07-01 19:47:50 +000038014 "MagickWand-config.in":C) chmod +x MagickWand/MagickWand-config ;;
cristy3ed852e2009-09-05 21:47:34 +000038015 "Magick++-config.in":C) chmod +x Magick++/bin/Magick++-config ;;
38016 "PerlMagick/check.sh.in":C) chmod +x PerlMagick/check.sh ;;
38017
38018 esac
38019done # for ac_tag
38020
38021
cristy8b350f62009-11-15 23:12:43 +000038022as_fn_exit 0
cristy3ed852e2009-09-05 21:47:34 +000038023_ACEOF
cristy3ed852e2009-09-05 21:47:34 +000038024ac_clean_files=$ac_clean_files_save
38025
38026test $ac_write_fail = 0 ||
cristy98dddb52010-11-04 00:30:15 +000038027 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
cristy3ed852e2009-09-05 21:47:34 +000038028
38029
38030# configure is writing to config.log, and then calls config.status.
38031# config.status does its own redirection, appending to config.log.
38032# Unfortunately, on DOS this fails, as config.log is still kept open
38033# by configure, so config.status won't be able to write to it; its
38034# output is simply discarded. So we exec the FD to /dev/null,
38035# effectively closing config.log, so it can be properly (re)opened and
38036# appended to by config.status. When coming back to configure, we
38037# need to make the FD available again.
38038if test "$no_create" != yes; then
38039 ac_cs_success=:
38040 ac_config_status_args=
38041 test "$silent" = yes &&
38042 ac_config_status_args="$ac_config_status_args --quiet"
38043 exec 5>/dev/null
38044 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
38045 exec 5>>config.log
38046 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
38047 # would make configure fail if this is the last instruction.
cristy98dddb52010-11-04 00:30:15 +000038048 $ac_cs_success || as_fn_exit 1
cristy3ed852e2009-09-05 21:47:34 +000038049fi
38050if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
cristy8b350f62009-11-15 23:12:43 +000038051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
cristy3ed852e2009-09-05 21:47:34 +000038052$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
38053fi
38054
38055
38056rm -f magick-version
38057
cristy430a7312010-01-21 20:44:04 +000038058result_dejavu_font_dir='none'
38059if test "${dejavu_font_dir}x" != 'x'; then
38060 result_dejavu_font_dir=$dejavu_font_dir
38061fi
38062
cristy3ed852e2009-09-05 21:47:34 +000038063result_ghostscript_font_dir='none'
38064if test "${ghostscript_font_dir}x" != 'x'; then
38065 result_ghostscript_font_dir=$ghostscript_font_dir
38066fi
38067
38068result_windows_font_dir='none'
38069if test "${windows_font_dir}x" != 'x'; then
38070 result_windows_font_dir=${windows_font_dir}
38071fi
38072
cristy09b53e12011-10-14 12:47:22 +000038073{ $as_echo "$as_me:${as_lineno-$LINENO}:
cristy3ed852e2009-09-05 21:47:34 +000038074ImageMagick is configured as follows. Please verify that this configuration
38075matches your expectations.
38076
38077Host system type: $host
38078Build system type: $build
38079
38080 Option Value
38081-------------------------------------------------------------------------------
38082Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38083Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038084Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038085GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38086Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38087High Dynamic Range Imagery
38088 --enable-hdri=$enable_hdri $enable_hdri
38089
38090Delegate Configuration:
38091BZLIB --with-bzlib=$with_bzlib $have_bzlib
38092Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038093Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038094DJVU --with-djvu=$with_djvu $have_djvu
38095DPS --with-dps=$with_dps $have_dps
38096FFTW --with-fftw=$with_fftw $have_fftw
38097FlashPIX --with-fpx=$with_fpx $have_fpx
38098FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38099FreeType --with-freetype=$with_freetype $have_freetype
38100GhostPCL None $PCLDelegate ($PCLVersion)
38101GhostXPS None $XPSDelegate ($XPSVersion)
38102Ghostscript None $PSDelegate ($GSVersion)
38103Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38104Ghostscript lib --with-gslib=$with_gslib $have_gslib
38105Graphviz --with-gvc=$with_gvc $have_gvc
38106JBIG --with-jbig=$with_jbig $have_jbig
38107JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38108JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038109LCMS v1 --with-lcms=$with_lcms $have_lcms
38110LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038111LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038112LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038113LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038114Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38115OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038116PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038117PERL --with-perl=$with_perl $have_perl
38118PNG --with-png=$with_png $have_png
38119RSVG --with-rsvg=$with_rsvg $have_rsvg
38120TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038121WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038122Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy5eef09f2012-10-16 12:08:28 +000038123WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038124X11 --with-x=$with_x $have_x
38125XML --with-xml=$with_xml $have_xml
38126ZLIB --with-zlib=$with_zlib $have_zlib
38127
38128X11 Configuration:
38129 X_CFLAGS = $X_CFLAGS
38130 X_PRE_LIBS = $X_PRE_LIBS
38131 X_LIBS = $X_LIBS
38132 X_EXTRA_LIBS = $X_EXTRA_LIBS
38133
38134Options used to compile and link:
38135 PREFIX = $PREFIX_DIR
38136 EXEC-PREFIX = $EXEC_PREFIX_DIR
38137 VERSION = $PACKAGE_VERSION
38138 CC = $CC
38139 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038140 CPPFLAGS = $MAGICK_CPPFLAGS
38141 PCFLAGS = $MAGICK_PCFLAGS
38142 DEFS = $DEFS
38143 LDFLAGS = $LDFLAGS
38144 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38145 LIBS = $MAGICK_LIBS
38146 CXX = $CXX
38147 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038148 FEATURES = $MAGICK_FEATURES
cristy3ed852e2009-09-05 21:47:34 +000038149" >&5
cristy09b53e12011-10-14 12:47:22 +000038150$as_echo "$as_me:
cristy3ed852e2009-09-05 21:47:34 +000038151ImageMagick is configured as follows. Please verify that this configuration
38152matches your expectations.
38153
38154Host system type: $host
38155Build system type: $build
38156
38157 Option Value
38158-------------------------------------------------------------------------------
38159Shared libraries --enable-shared=$enable_shared $libtool_build_shared_libs
38160Static libraries --enable-static=$enable_static $libtool_build_static_libs
cristyc6722092012-10-14 00:19:31 +000038161Module support --with-modules=$build_modules $build_modules
cristy3ed852e2009-09-05 21:47:34 +000038162GNU ld --with-gnu-ld=$with_gnu_ld $lt_cv_prog_gnu_ld
38163Quantum depth --with-quantum-depth=$with_quantum_depth $with_quantum_depth
38164High Dynamic Range Imagery
38165 --enable-hdri=$enable_hdri $enable_hdri
38166
38167Delegate Configuration:
38168BZLIB --with-bzlib=$with_bzlib $have_bzlib
38169Autotrace --with-autotrace=$with_autotrace $have_autotrace
cristy430a7312010-01-21 20:44:04 +000038170Dejavu fonts --with-dejavu-font-dir=$with_dejavu_font_dir $result_dejavu_font_dir
cristy3ed852e2009-09-05 21:47:34 +000038171DJVU --with-djvu=$with_djvu $have_djvu
38172DPS --with-dps=$with_dps $have_dps
38173FFTW --with-fftw=$with_fftw $have_fftw
38174FlashPIX --with-fpx=$with_fpx $have_fpx
38175FontConfig --with-fontconfig=$with_fontconfig $have_fontconfig
38176FreeType --with-freetype=$with_freetype $have_freetype
38177GhostPCL None $PCLDelegate ($PCLVersion)
38178GhostXPS None $XPSDelegate ($XPSVersion)
38179Ghostscript None $PSDelegate ($GSVersion)
38180Ghostscript fonts --with-gs-font-dir=$with_gs_font_dir $result_ghostscript_font_dir
38181Ghostscript lib --with-gslib=$with_gslib $have_gslib
38182Graphviz --with-gvc=$with_gvc $have_gvc
38183JBIG --with-jbig=$with_jbig $have_jbig
38184JPEG v1 --with-jpeg=$with_jpeg $have_jpeg
38185JPEG-2000 --with-jp2=$with_jp2 $have_jp2
cristy71203402010-06-18 13:12:03 +000038186LCMS v1 --with-lcms=$with_lcms $have_lcms
38187LCMS v2 --with-lcms2=$with_lcms2 $have_lcms2
cristy3ed852e2009-09-05 21:47:34 +000038188LQR --with-lqr=$with_lqr $have_lqr
cristy5eef09f2012-10-16 12:08:28 +000038189LTDL --with-ltdl=$with_ltdl $have_ltdl
cristyfbb0ef02010-12-19 02:32:11 +000038190LZMA --with-lzma=$with_lzma $have_lzma
cristy3ed852e2009-09-05 21:47:34 +000038191Magick++ --with-magick-plus-plus=$with_magick_plus_plus $have_magick_plus_plus
38192OpenEXR --with-openexr=$with_openexr $have_openexr
cristy41cbe8a2011-10-27 01:35:18 +000038193PANGO --with-pango=$with_pango $have_pango
cristy3ed852e2009-09-05 21:47:34 +000038194PERL --with-perl=$with_perl $have_perl
38195PNG --with-png=$with_png $have_png
38196RSVG --with-rsvg=$with_rsvg $have_rsvg
38197TIFF --with-tiff=$with_tiff $have_tiff
cristyb1860752011-03-14 00:27:46 +000038198WEBP --with-webp=$with_webp $have_webp
cristy3ed852e2009-09-05 21:47:34 +000038199Windows fonts --with-windows-font-dir=$with_windows_font_dir $result_windows_font_dir
cristy5eef09f2012-10-16 12:08:28 +000038200WMF --with-wmf=$with_wmf $have_wmf
cristy3ed852e2009-09-05 21:47:34 +000038201X11 --with-x=$with_x $have_x
38202XML --with-xml=$with_xml $have_xml
38203ZLIB --with-zlib=$with_zlib $have_zlib
38204
38205X11 Configuration:
38206 X_CFLAGS = $X_CFLAGS
38207 X_PRE_LIBS = $X_PRE_LIBS
38208 X_LIBS = $X_LIBS
38209 X_EXTRA_LIBS = $X_EXTRA_LIBS
38210
38211Options used to compile and link:
38212 PREFIX = $PREFIX_DIR
38213 EXEC-PREFIX = $EXEC_PREFIX_DIR
38214 VERSION = $PACKAGE_VERSION
38215 CC = $CC
38216 CFLAGS = $CFLAGS
cristy3ed852e2009-09-05 21:47:34 +000038217 CPPFLAGS = $MAGICK_CPPFLAGS
38218 PCFLAGS = $MAGICK_PCFLAGS
38219 DEFS = $DEFS
38220 LDFLAGS = $LDFLAGS
38221 MAGICK_LDFLAGS = $MAGICK_LDFLAGS
38222 LIBS = $MAGICK_LIBS
38223 CXX = $CXX
38224 CXXFLAGS = $CXXFLAGS
cristyfd9dcd42010-08-08 18:07:02 +000038225 FEATURES = $MAGICK_FEATURES
cristy09b53e12011-10-14 12:47:22 +000038226" >&6;}